-
Notifications
You must be signed in to change notification settings - Fork 210
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 #3390 from TrueBlocks/improve-state-call-2
Adds a few tests for allowing ens names where previously only hex add…
- Loading branch information
Showing
8 changed files
with
128 additions
and
4 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
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
29 changes: 29 additions & 0 deletions
29
test/gold/tools/getState/api_tests/getState_contract_call2_api.txt
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,29 @@ | ||
state?call='manifestHashMap(0xf503017d7baf7fbc0fff7492b751025c6a78179b,\"mainnet\")'&addrs=unchainedindex.eth&blocks=14976122&fmt=json | ||
{ | ||
"data": [ | ||
{ | ||
"address": "0x0c316b7042b419d07d343f2f4f5bd54ff731183d", | ||
"blockNumber": 14976122, | ||
"bytes": "000000000000000000000000f503017d7baf7fbc0fff7492b751025c6a78179b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000076d61696e6e657400000000000000000000000000000000000000000000000000", | ||
"callResult": { | ||
"encoding": "0x7087e4bd", | ||
"name": "manifestHashMap", | ||
"outputs": { | ||
"val_0": "QmessHj4WFWuo4qiF8c1tyY53QHewqj9iy7sa1RLH86TDw" | ||
}, | ||
"signature": "manifestHashMap(address,string)" | ||
}, | ||
"encoding": "0x7087e4bd" | ||
} | ||
], | ||
"meta": { | ||
"client": "0xdeadbeef", | ||
"finalized": "0xdeadbeef", | ||
"staging": "0xdeadbeef", | ||
"ripe": "0xdeadbeef", | ||
"unripe": "0xdeadbeef", | ||
"chainId": 1, | ||
"networkId": 1, | ||
"chain": "mainnet" | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
test/gold/tools/getState/api_tests/getState_contract_call2_api_ens.txt
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,29 @@ | ||
state?call='manifestHashMap(trueblocks.eth,\"mainnet\")'&addrs=unchainedindex.eth&blocks=14976122&fmt=json | ||
{ | ||
"data": [ | ||
{ | ||
"address": "0x0c316b7042b419d07d343f2f4f5bd54ff731183d", | ||
"blockNumber": 14976122, | ||
"bytes": "000000000000000000000000f503017d7baf7fbc0fff7492b751025c6a78179b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000076d61696e6e657400000000000000000000000000000000000000000000000000", | ||
"callResult": { | ||
"encoding": "0x7087e4bd", | ||
"name": "manifestHashMap", | ||
"outputs": { | ||
"val_0": "QmessHj4WFWuo4qiF8c1tyY53QHewqj9iy7sa1RLH86TDw" | ||
}, | ||
"signature": "manifestHashMap(address,string)" | ||
}, | ||
"encoding": "0x7087e4bd" | ||
} | ||
], | ||
"meta": { | ||
"client": "0xdeadbeef", | ||
"finalized": "0xdeadbeef", | ||
"staging": "0xdeadbeef", | ||
"ripe": "0xdeadbeef", | ||
"unripe": "0xdeadbeef", | ||
"chainId": 1, | ||
"networkId": 1, | ||
"chain": "mainnet" | ||
} | ||
} |
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,26 @@ | ||
chifra state --call 'manifestHashMap(0xf503017d7baf7fbc0fff7492b751025c6a78179b,mainnet)' unchainedindex.eth 14976122 --fmt json | ||
TEST[DATE|TIME] Addrs: [0x0c316b7042b419d07d343f2f4f5bd54ff731183d] | ||
TEST[DATE|TIME] Blocks: [14976122] | ||
TEST[DATE|TIME] Call: manifestHashMap(0xf503017d7baf7fbc0fff7492b751025c6a78179b,"mainnet") | ||
TEST[DATE|TIME] Caps: cache,decache,ether | ||
TEST[DATE|TIME] Format: json | ||
ArgHex::Capture: [0xf503017d7baf7fbc0fff7492b751025c6a78179b] | ||
ArgHex::Capture: [0xf503017d7baf7fbc0fff7492b751025c6a78179b] | ||
{ | ||
"data": [ | ||
{ | ||
"address": "0x0c316b7042b419d07d343f2f4f5bd54ff731183d", | ||
"blockNumber": 14976122, | ||
"bytes": "000000000000000000000000f503017d7baf7fbc0fff7492b751025c6a78179b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000076d61696e6e657400000000000000000000000000000000000000000000000000", | ||
"callResult": { | ||
"encoding": "0x7087e4bd", | ||
"name": "manifestHashMap", | ||
"outputs": { | ||
"val_0": "QmessHj4WFWuo4qiF8c1tyY53QHewqj9iy7sa1RLH86TDw" | ||
}, | ||
"signature": "manifestHashMap(address,string)" | ||
}, | ||
"encoding": "0x7087e4bd" | ||
} | ||
] | ||
} |
26 changes: 26 additions & 0 deletions
26
test/gold/tools/getState/getState_contract_call2_cmd_ens.txt
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,26 @@ | ||
chifra state --call 'manifestHashMap(trueblocks.eth,mainnet)' unchainedindex.eth 14976122 --fmt json | ||
TEST[DATE|TIME] Addrs: [0x0c316b7042b419d07d343f2f4f5bd54ff731183d] | ||
TEST[DATE|TIME] Blocks: [14976122] | ||
TEST[DATE|TIME] Call: manifestHashMap(0xf503017d7baf7fbc0fff7492b751025c6a78179b,"mainnet") | ||
TEST[DATE|TIME] Caps: cache,decache,ether | ||
TEST[DATE|TIME] Format: json | ||
ArgHex::Capture: [0xf503017d7baf7fbc0fff7492b751025c6a78179b] | ||
ArgHex::Capture: [0xf503017d7baf7fbc0fff7492b751025c6a78179b] | ||
{ | ||
"data": [ | ||
{ | ||
"address": "0x0c316b7042b419d07d343f2f4f5bd54ff731183d", | ||
"blockNumber": 14976122, | ||
"bytes": "000000000000000000000000f503017d7baf7fbc0fff7492b751025c6a78179b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000076d61696e6e657400000000000000000000000000000000000000000000000000", | ||
"callResult": { | ||
"encoding": "0x7087e4bd", | ||
"name": "manifestHashMap", | ||
"outputs": { | ||
"val_0": "QmessHj4WFWuo4qiF8c1tyY53QHewqj9iy7sa1RLH86TDw" | ||
}, | ||
"signature": "manifestHashMap(address,string)" | ||
}, | ||
"encoding": "0x7087e4bd" | ||
} | ||
] | ||
} |