generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new vectors with protocol field (#265)
- Loading branch information
1 parent
84d3c78
commit d7464a6
Showing
6 changed files
with
49 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
{ | ||
"description": "Close parses from string", | ||
"input": "{\"metadata\":{\"from\":\"did:dht:1uh6jhzqsreubaunfcrmaqux5nq66hxm3fmj9wpt4w1zmpn6mzuy\",\"to\":\"did:dht:qo833wcry68i4hbpp6c5uegauamq1a4mrc8bp6z6dot5reou8x1o\",\"exchangeId\":\"rfq_01hqf9etfgf228jgagrpg57024\",\"kind\":\"close\",\"id\":\"close_01hqf9etfhfyt8sdeh67rcgdby\",\"createdAt\":\"2024-02-25T04:48:01.521Z\"},\"data\":{\"reason\":\"The reason for closing the exchange\"},\"signature\":\"eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpkaHQ6MXVoNmpoenFzcmV1YmF1bmZjcm1hcXV4NW5xNjZoeG0zZm1qOXdwdDR3MXptcG42bXp1eSMwIn0..H5Zhi71tbFsEoU8kc_MYBBvDzoGkLi_7R3PKdP0gBfmPMpABreMGim28Km-AAUOYvDQBtDkcfacJexHJzNWuDg\"}", | ||
"input": "{\"metadata\":{\"from\":\"did:dht:ese8j947ro8uth1mqpnhtcr64s39zn1tgq75q34uo6hikf7zzmyy\",\"to\":\"did:dht:n46hom5afi6xrsxmddx5rjecyyx1faz4ocs4ie43tfkyo4darh9y\",\"exchangeId\":\"rfq_01hrqn6pk2ehasa0p9d14hsp8s\",\"protocol\":\"1.0\",\"kind\":\"close\",\"id\":\"close_01hrqn6pk2ehasa0p9d6wtgqkr\",\"createdAt\":\"2024-03-11T21:02:55.586Z\"},\"data\":{\"reason\":\"The reason for closing the exchange\"},\"signature\":\"eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpkaHQ6ZXNlOGo5NDdybzh1dGgxbXFwbmh0Y3I2NHMzOXpuMXRncTc1cTM0dW82aGlrZjd6em15eSMwIn0..TL3H01A0J0Iz3404lxHviua4SCIIBm4z_7N8N287tr3nZbbXU8djqDS1UPUUPztt-8wvgWTBS-oPOneYCoqLCA\"}", | ||
"output": { | ||
"metadata": { | ||
"from": "did:dht:1uh6jhzqsreubaunfcrmaqux5nq66hxm3fmj9wpt4w1zmpn6mzuy", | ||
"to": "did:dht:qo833wcry68i4hbpp6c5uegauamq1a4mrc8bp6z6dot5reou8x1o", | ||
"exchangeId": "rfq_01hqf9etfgf228jgagrpg57024", | ||
"from": "did:dht:ese8j947ro8uth1mqpnhtcr64s39zn1tgq75q34uo6hikf7zzmyy", | ||
"to": "did:dht:n46hom5afi6xrsxmddx5rjecyyx1faz4ocs4ie43tfkyo4darh9y", | ||
"exchangeId": "rfq_01hrqn6pk2ehasa0p9d14hsp8s", | ||
"protocol": "1.0", | ||
"kind": "close", | ||
"id": "close_01hqf9etfhfyt8sdeh67rcgdby", | ||
"createdAt": "2024-02-25T04:48:01.521Z" | ||
"id": "close_01hrqn6pk2ehasa0p9d6wtgqkr", | ||
"createdAt": "2024-03-11T21:02:55.586Z" | ||
}, | ||
"data": { | ||
"reason": "The reason for closing the exchange" | ||
}, | ||
"signature": "eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpkaHQ6MXVoNmpoenFzcmV1YmF1bmZjcm1hcXV4NW5xNjZoeG0zZm1qOXdwdDR3MXptcG42bXp1eSMwIn0..H5Zhi71tbFsEoU8kc_MYBBvDzoGkLi_7R3PKdP0gBfmPMpABreMGim28Km-AAUOYvDQBtDkcfacJexHJzNWuDg" | ||
"signature": "eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpkaHQ6ZXNlOGo5NDdybzh1dGgxbXFwbmh0Y3I2NHMzOXpuMXRncTc1cTM0dW82aGlrZjd6em15eSMwIn0..TL3H01A0J0Iz3404lxHviua4SCIIBm4z_7N8N287tr3nZbbXU8djqDS1UPUUPztt-8wvgWTBS-oPOneYCoqLCA" | ||
}, | ||
"error": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
{ | ||
"description": "Order parses from string", | ||
"input": "{\"metadata\":{\"from\":\"did:dht:qo833wcry68i4hbpp6c5uegauamq1a4mrc8bp6z6dot5reou8x1o\",\"to\":\"did:dht:1uh6jhzqsreubaunfcrmaqux5nq66hxm3fmj9wpt4w1zmpn6mzuy\",\"exchangeId\":\"rfq_01hqf9etfnetzv039v0kzhbc59\",\"externalId\":\"ext_1234\",\"kind\":\"order\",\"id\":\"order_01hqf9etfnetzv039v0pjk2rvh\",\"createdAt\":\"2024-02-25T04:48:01.526Z\"},\"data\":{},\"signature\":\"eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpkaHQ6cW84MzN3Y3J5NjhpNGhicHA2YzV1ZWdhdWFtcTFhNG1yYzhicDZ6NmRvdDVyZW91OHgxbyMwIn0..5d_nN_O3WgVvy47LeuJkYekhIwWRTsj6haifd7YVOP4j3eosjkK5ucHSIcrOk0aGxuaYuTREJSa9enLJsGG8AQ\"}", | ||
"input": "{\"metadata\":{\"from\":\"did:dht:139kcr7tex71x9rdn414yymm87bi9d7xbuato74xufrtee7eebiy\",\"to\":\"did:dht:bn4ea1bfu8ijeo8zi1tawau73qs5eopgs3ixj1tkkufjhhwadb8y\",\"exchangeId\":\"rfq_01hrqn6pn3fn7tqn94ftvwf1jn\",\"externalId\":\"ext_1234\",\"protocol\":\"1.0\",\"kind\":\"order\",\"id\":\"order_01hrqn6pn3fn7tqn94fx0d5vch\",\"createdAt\":\"2024-03-11T21:02:55.651Z\"},\"data\":{},\"signature\":\"eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpkaHQ6MTM5a2NyN3RleDcxeDlyZG40MTR5eW1tODdiaTlkN3hidWF0bzc0eHVmcnRlZTdlZWJpeSMwIn0..RYe41mMtjWkt6LYVdJIzFLIOptYnf-OVh6PXvqWOo8NvBxY7u4ziAXNgY1Z8Re9TYH4kJsZeftSljJwJ5YI9CQ\"}", | ||
"output": { | ||
"metadata": { | ||
"from": "did:dht:qo833wcry68i4hbpp6c5uegauamq1a4mrc8bp6z6dot5reou8x1o", | ||
"to": "did:dht:1uh6jhzqsreubaunfcrmaqux5nq66hxm3fmj9wpt4w1zmpn6mzuy", | ||
"exchangeId": "rfq_01hqf9etfnetzv039v0kzhbc59", | ||
"from": "did:dht:139kcr7tex71x9rdn414yymm87bi9d7xbuato74xufrtee7eebiy", | ||
"to": "did:dht:bn4ea1bfu8ijeo8zi1tawau73qs5eopgs3ixj1tkkufjhhwadb8y", | ||
"exchangeId": "rfq_01hrqn6pn3fn7tqn94ftvwf1jn", | ||
"externalId": "ext_1234", | ||
"protocol": "1.0", | ||
"kind": "order", | ||
"id": "order_01hqf9etfnetzv039v0pjk2rvh", | ||
"createdAt": "2024-02-25T04:48:01.526Z" | ||
"id": "order_01hrqn6pn3fn7tqn94fx0d5vch", | ||
"createdAt": "2024-03-11T21:02:55.651Z" | ||
}, | ||
"data": {}, | ||
"signature": "eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpkaHQ6cW84MzN3Y3J5NjhpNGhicHA2YzV1ZWdhdWFtcTFhNG1yYzhicDZ6NmRvdDVyZW91OHgxbyMwIn0..5d_nN_O3WgVvy47LeuJkYekhIwWRTsj6haifd7YVOP4j3eosjkK5ucHSIcrOk0aGxuaYuTREJSa9enLJsGG8AQ" | ||
"signature": "eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpkaHQ6MTM5a2NyN3RleDcxeDlyZG40MTR5eW1tODdiaTlkN3hidWF0bzc0eHVmcnRlZTdlZWJpeSMwIn0..RYe41mMtjWkt6LYVdJIzFLIOptYnf-OVh6PXvqWOo8NvBxY7u4ziAXNgY1Z8Re9TYH4kJsZeftSljJwJ5YI9CQ" | ||
}, | ||
"error": false | ||
} |
15 changes: 8 additions & 7 deletions
15
hosted/test-vectors/protocol/vectors/parse-orderstatus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
{ | ||
"description": "Order Status parses from string", | ||
"input": "{\"metadata\":{\"from\":\"did:dht:1uh6jhzqsreubaunfcrmaqux5nq66hxm3fmj9wpt4w1zmpn6mzuy\",\"to\":\"did:dht:qo833wcry68i4hbpp6c5uegauamq1a4mrc8bp6z6dot5reou8x1o\",\"exchangeId\":\"rfq_01hqf9etfqevksmfw5r49s3ex4\",\"kind\":\"orderstatus\",\"id\":\"orderstatus_01hqf9etfqevksmfw5r9c3m7t2\",\"createdAt\":\"2024-02-25T04:48:01.527Z\"},\"data\":{\"orderStatus\":\"wee\"},\"signature\":\"eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpkaHQ6MXVoNmpoenFzcmV1YmF1bmZjcm1hcXV4NW5xNjZoeG0zZm1qOXdwdDR3MXptcG42bXp1eSMwIn0..206MrLHyUOlxWVArN_O-2YrNa2lwiMgG0aCi_11ia4rDAPU_Ww7rTr4twLaDVvCz1Jq3ZczxDvYNq7xXbbccCA\"}", | ||
"input": "{\"metadata\":{\"from\":\"did:dht:geiro75xjbn81snmangwc35wkfsra8mt3awbga8drrjde5z9r9jo\",\"to\":\"did:dht:n46hom5afi6xrsxmddx5rjecyyx1faz4ocs4ie43tfkyo4darh9y\",\"exchangeId\":\"rfq_01hrqn6pp1e48a3meq95dzmkzs\",\"protocol\":\"1.0\",\"kind\":\"orderstatus\",\"id\":\"orderstatus_01hrqn6pp1e48a3meq9b3brgta\",\"createdAt\":\"2024-03-11T21:02:55.681Z\"},\"data\":{\"orderStatus\":\"wee\"},\"signature\":\"eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpkaHQ6Z2Vpcm83NXhqYm44MXNubWFuZ3djMzV3a2ZzcmE4bXQzYXdiZ2E4ZHJyamRlNXo5cjlqbyMwIn0..aHifNdyzwVZ-bvqyp8H6WHE_K_24y1-sdPIohXPvdBZXIxjqMb2tDaeJLKbtz1mcoYDau_N-_5kVqVSeGtUYCA\"}", | ||
"output": { | ||
"metadata": { | ||
"from": "did:dht:1uh6jhzqsreubaunfcrmaqux5nq66hxm3fmj9wpt4w1zmpn6mzuy", | ||
"to": "did:dht:qo833wcry68i4hbpp6c5uegauamq1a4mrc8bp6z6dot5reou8x1o", | ||
"exchangeId": "rfq_01hqf9etfqevksmfw5r49s3ex4", | ||
"from": "did:dht:geiro75xjbn81snmangwc35wkfsra8mt3awbga8drrjde5z9r9jo", | ||
"to": "did:dht:n46hom5afi6xrsxmddx5rjecyyx1faz4ocs4ie43tfkyo4darh9y", | ||
"exchangeId": "rfq_01hrqn6pp1e48a3meq95dzmkzs", | ||
"protocol": "1.0", | ||
"kind": "orderstatus", | ||
"id": "orderstatus_01hqf9etfqevksmfw5r9c3m7t2", | ||
"createdAt": "2024-02-25T04:48:01.527Z" | ||
"id": "orderstatus_01hrqn6pp1e48a3meq9b3brgta", | ||
"createdAt": "2024-03-11T21:02:55.681Z" | ||
}, | ||
"data": { | ||
"orderStatus": "wee" | ||
}, | ||
"signature": "eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpkaHQ6MXVoNmpoenFzcmV1YmF1bmZjcm1hcXV4NW5xNjZoeG0zZm1qOXdwdDR3MXptcG42bXp1eSMwIn0..206MrLHyUOlxWVArN_O-2YrNa2lwiMgG0aCi_11ia4rDAPU_Ww7rTr4twLaDVvCz1Jq3ZczxDvYNq7xXbbccCA" | ||
"signature": "eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpkaHQ6Z2Vpcm83NXhqYm44MXNubWFuZ3djMzV3a2ZzcmE4bXQzYXdiZ2E4ZHJyamRlNXo5cjlqbyMwIn0..aHifNdyzwVZ-bvqyp8H6WHE_K_24y1-sdPIohXPvdBZXIxjqMb2tDaeJLKbtz1mcoYDau_N-_5kVqVSeGtUYCA" | ||
}, | ||
"error": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.