Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
add balance vector (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirahsapong authored Mar 28, 2024
1 parent 4242e2f commit 2fed068
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions hosted/test-vectors/protocol/vectors/parse-balance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"description": "Balance parses from string",
"input": "{\"metadata\":{\"from\":\"did:dht:t6gdbr4qs95b4j6pbdxe4rzp41am735pm9c65135gajusam9xx8o\",\"kind\":\"balance\",\"id\":\"balance_01ht38w02ae2kbhwbcakmnp8qb\",\"createdAt\":\"2024-03-28T19:33:56.938Z\",\"protocol\":\"1.0\"},\"data\":{\"currencyCode\":\"USD\",\"available\":\"400.00\"},\"signature\":\"eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpkaHQ6dDZnZGJyNHFzOTViNGo2cGJkeGU0cnpwNDFhbTczNXBtOWM2NTEzNWdhanVzYW05eHg4byMwIn0..t-cVr4Djf9APYgEESNd4BO7DX6HMGd8KRzm_7sFP_oba4Ngh16BMagx_IBDcZJyeEKlUD51CdUy-ffJ4WWH_AQ\"}",
"output": {
"metadata": {
"from": "did:dht:t6gdbr4qs95b4j6pbdxe4rzp41am735pm9c65135gajusam9xx8o",
"kind": "balance",
"id": "balance_01ht38w02ae2kbhwbcakmnp8qb",
"createdAt": "2024-03-28T19:33:56.938Z",
"protocol": "1.0"
},
"data": {
"currencyCode": "USD",
"available": "400.00"
},
"signature": "eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpkaHQ6dDZnZGJyNHFzOTViNGo2cGJkeGU0cnpwNDFhbTczNXBtOWM2NTEzNWdhanVzYW05eHg4byMwIn0..t-cVr4Djf9APYgEESNd4BO7DX6HMGd8KRzm_7sFP_oba4Ngh16BMagx_IBDcZJyeEKlUD51CdUy-ffJ4WWH_AQ"
},
"error": false
}

0 comments on commit 2fed068

Please sign in to comment.