-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #915 from oasisprotocol/ptrus/feature/filter-trans…
…actions-multiple api/transactions: Filtering by multiple method types
- Loading branch information
Showing
16 changed files
with
11,341 additions
and
16 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
api: Support filtering transaction by multiple method types |
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
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
5 changes: 5 additions & 0 deletions
5
tests/e2e_regression/damask/expected/emerald_txs_by_multiple_methods.body
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"is_total_count_clipped": false, | ||
"total_count": 0, | ||
"transactions": [] | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/e2e_regression/damask/expected/emerald_txs_by_multiple_methods.headers
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/json | ||
Vary: Origin | ||
Date: UNINTERESTING | ||
Content-Length: UNINTERESTING | ||
|
159 changes: 159 additions & 0 deletions
159
tests/e2e_regression/damask/expected/txs_by_method.body
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 |
---|---|---|
@@ -0,0 +1,159 @@ | ||
{ | ||
"is_total_count_clipped": false, | ||
"total_count": 8, | ||
"transactions": [ | ||
{ | ||
"block": 8049946, | ||
"body": { | ||
"amount": "10000000", | ||
"to": "oasis1qz068qtggv6kdstymnvqm46rpv6p6tk6pueffdqu" | ||
}, | ||
"fee": "100", | ||
"gas_limit": "1263", | ||
"hash": "4defe2afa3abbd4668958e360e184c73381e8b99ebb8082b911f6b28c811da97", | ||
"index": 0, | ||
"method": "staking.Transfer", | ||
"nonce": 10, | ||
"sender": "oasis1qrqnh093w0pv8asfmc37pyal6yn2h4cnwvdqtzm0", | ||
"success": true, | ||
"timestamp": "2022-04-11T12:44:08Z" | ||
}, | ||
{ | ||
"block": 8049935, | ||
"body": { | ||
"amount": "10000000", | ||
"to": "oasis1qz068qtggv6kdstymnvqm46rpv6p6tk6pueffdqu" | ||
}, | ||
"fee": "0", | ||
"gas_limit": "1263", | ||
"hash": "b40bd05e4f7f0f9700b9934449019ecc340a8af8f505cdebc5adcf3d265c2660", | ||
"index": 0, | ||
"method": "staking.Transfer", | ||
"nonce": 9, | ||
"sender": "oasis1qrqnh093w0pv8asfmc37pyal6yn2h4cnwvdqtzm0", | ||
"success": true, | ||
"timestamp": "2022-04-11T12:43:05Z" | ||
}, | ||
{ | ||
"block": 8049891, | ||
"body": { | ||
"amount": "100000000", | ||
"to": "oasis1qrqnh093w0pv8asfmc37pyal6yn2h4cnwvdqtzm0" | ||
}, | ||
"fee": "0", | ||
"gas_limit": "1264", | ||
"hash": "a116e6343d076569695f0a7a539e38990dcd1c553e94ce3149821673e7f6a07c", | ||
"index": 0, | ||
"method": "staking.Transfer", | ||
"nonce": 8, | ||
"sender": "oasis1qrqnh093w0pv8asfmc37pyal6yn2h4cnwvdqtzm0", | ||
"success": true, | ||
"timestamp": "2022-04-11T12:38:50Z" | ||
}, | ||
{ | ||
"block": 8049872, | ||
"body": { | ||
"amount": "1000000", | ||
"to": "oasis1qz068qtggv6kdstymnvqm46rpv6p6tk6pueffdqu" | ||
}, | ||
"error": { | ||
"code": 9, | ||
"message": "staking: amount is lower than the minimum transfer amount", | ||
"module": "staking" | ||
}, | ||
"fee": "0", | ||
"gas_limit": "1263", | ||
"hash": "75a09c999ae3535a661be4f7def83d6165a9555ec7af74cf3963c41f1e657f88", | ||
"index": 0, | ||
"method": "staking.Transfer", | ||
"nonce": 7, | ||
"sender": "oasis1qrqnh093w0pv8asfmc37pyal6yn2h4cnwvdqtzm0", | ||
"success": false, | ||
"timestamp": "2022-04-11T12:37:00Z" | ||
}, | ||
{ | ||
"block": 8049424, | ||
"body": { | ||
"amount": "100000", | ||
"to": "oasis1qp6pu7sr822u3mecyt3vtzm54wq2rl5ezg5gutvz" | ||
}, | ||
"error": { | ||
"code": 9, | ||
"message": "staking: amount is lower than the minimum transfer amount", | ||
"module": "staking" | ||
}, | ||
"fee": "0", | ||
"gas_limit": "1263", | ||
"hash": "f7a03e0912d355901ee794e5fec79a6b4c91363fc27d953596ee6de5c1492798", | ||
"index": 0, | ||
"method": "staking.Transfer", | ||
"nonce": 11, | ||
"sender": "oasis1qqnk4au603zs94k0d0n7c0hkx8t4p6r87s60axru", | ||
"success": false, | ||
"timestamp": "2022-04-11T11:52:24Z" | ||
}, | ||
{ | ||
"block": 8049393, | ||
"body": { | ||
"amount": "100000", | ||
"to": "oasis1qr8znzva3h28hausy7n3fput0fn80sajeywmwp5y" | ||
}, | ||
"error": { | ||
"code": 9, | ||
"message": "staking: amount is lower than the minimum transfer amount", | ||
"module": "staking" | ||
}, | ||
"fee": "0", | ||
"gas_limit": "1264", | ||
"hash": "7fe023700667850e13b1f416b07e45ff95cf36f2e05221a7d6ef8bfc484b0614", | ||
"index": 0, | ||
"method": "staking.Transfer", | ||
"nonce": 237, | ||
"sender": "oasis1qr8znzva3h28hausy7n3fput0fn80sajeywmwp5y", | ||
"success": false, | ||
"timestamp": "2022-04-11T11:49:14Z" | ||
}, | ||
{ | ||
"block": 8049349, | ||
"body": { | ||
"amount": "1000000", | ||
"to": "oasis1qr8znzva3h28hausy7n3fput0fn80sajeywmwp5y" | ||
}, | ||
"error": { | ||
"code": 9, | ||
"message": "staking: amount is lower than the minimum transfer amount", | ||
"module": "staking" | ||
}, | ||
"fee": "0", | ||
"gas_limit": "1264", | ||
"hash": "20e0bb3ca2c4f46577faeabd47b25ca6eb8815acafc77df2a4969d249636447c", | ||
"index": 0, | ||
"method": "staking.Transfer", | ||
"nonce": 236, | ||
"sender": "oasis1qr8znzva3h28hausy7n3fput0fn80sajeywmwp5y", | ||
"success": false, | ||
"timestamp": "2022-04-11T11:44:34Z" | ||
}, | ||
{ | ||
"block": 8049343, | ||
"body": { | ||
"amount": "100000", | ||
"to": "oasis1qr8znzva3h28hausy7n3fput0fn80sajeywmwp5y" | ||
}, | ||
"error": { | ||
"code": 9, | ||
"message": "staking: amount is lower than the minimum transfer amount", | ||
"module": "staking" | ||
}, | ||
"fee": "0", | ||
"gas_limit": "1264", | ||
"hash": "ad659789abf19ef8430a0a07606789b94fd85659880c399df1c9cf1b6c8c9ae6", | ||
"index": 0, | ||
"method": "staking.Transfer", | ||
"nonce": 235, | ||
"sender": "oasis1qr8znzva3h28hausy7n3fput0fn80sajeywmwp5y", | ||
"success": false, | ||
"timestamp": "2022-04-11T11:43:55Z" | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/json | ||
Vary: Origin | ||
Date: UNINTERESTING | ||
Transfer-Encoding: chunked | ||
|
Oops, something went wrong.