update graphql simulator test vector

This commit is contained in:
jangko 2023-07-03 20:28:42 +07:00
parent c7302b4ece
commit 217068790d
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
28 changed files with 221 additions and 92 deletions

View File

@ -5,9 +5,9 @@
"responses": [{
"data" : {
"block" : {
"number" : 32
"number" : "0x21"
}
}
}],
"statusCode": 200
}
}

View File

@ -4,13 +4,13 @@
"responses":[{
"data" : {
"block" : {
"number" : 8,
"number" : "0x8",
"call" : {
"data" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"status" : 1
"status" : "0x1"
}
}
}
}],
"statusCode": 200
}
}

View File

@ -4,13 +4,13 @@
"responses":[{
"data" : {
"block" : {
"number" : 32,
"number" : "0x21",
"call" : {
"data" : "0x0000000000000000000000000000000000000000000000000000000000000001",
"status" : 1
"status" : "0x1"
}
}
}
}],
"statusCode": 200
}
}

View File

@ -1,11 +1,11 @@
{
"request" :"{block{estimateGas (data: {from :\"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f\", data :\"0x608060405234801561001057600080fd5b50610157806100206000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633bdab8bf146100515780639ae97baa14610068575b600080fd5b34801561005d57600080fd5b5061006661007f565b005b34801561007457600080fd5b5061007d6100b9565b005b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60016040518082815260200191505060405180910390a1565b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60026040518082815260200191505060405180910390a17fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60036040518082815260200191505060405180910390a15600a165627a7a7230582010ddaa52e73a98c06dbcd22b234b97206c1d7ed64a7c048e10c2043a3d2309cb0029\"})}}",
"request" :"{block(number: 32) {estimateGas (data: {from :\"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f\", data :\"0x608060405234801561001057600080fd5b50610157806100206000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633bdab8bf146100515780639ae97baa14610068575b600080fd5b34801561005d57600080fd5b5061006661007f565b005b34801561007457600080fd5b5061007d6100b9565b005b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60016040518082815260200191505060405180910390a1565b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60026040518082815260200191505060405180910390a17fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60036040518082815260200191505060405180910390a15600a165627a7a7230582010ddaa52e73a98c06dbcd22b234b97206c1d7ed64a7c048e10c2043a3d2309cb0029\"})}}",
"responses":[{
"data" : {
"block" : {
"estimateGas" : 111953
"estimateGas" : "0x1b551"
}
}
}],
"statusCode": 200
}
}

View File

@ -1,11 +1,11 @@
{
"request" :"{block{ estimateGas(data:{}) }}",
"request" :"{block(number: 32) { estimateGas(data:{}) }}",
"responses":[{
"data" : {
"block" : {
"estimateGas" : 21000
"estimateGas" : "0x5208"
}
}
}],
"statusCode": 200
}
}

View File

@ -3,9 +3,9 @@
"responses":[{
"data" : {
"block" : {
"estimateGas" : 21000
"estimateGas" : "0x5208"
}
}
}],
"statusCode": 200
}
}

View File

@ -7,28 +7,28 @@
"responses": [{
"data" : {
"block" : {
"number" : 30,
"number" : "0x1e",
"transactions" : [ {
"hash" : "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4"
} ],
"timestamp" : "0x561bc336",
"difficulty" : "0x20740",
"totalDifficulty" : "0x3e6cc0",
"gasUsed" : 23585,
"gasLimit" : 3141592,
"gasUsed" : "0x5c21",
"gasLimit" : "0x2fefd8",
"hash" : "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6",
"nonce" : "0x5c321bd9e9f040f1",
"ommerCount" : 0,
"ommerCount" : "0x0",
"logsBloom" : "0x00000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000080000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000400000000000000000200000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000800000000040000000000000000000000000000000000000000010000000000000000000000000",
"mixHash" : "0x6ce1c4afb4f85fefd1b0ed966b20cd248f08d9a5b0df773f75c6c2f5cc237b7c",
"ommerHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"extraData" : "0x",
"stateRoot" : "0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e",
"receiptsRoot" : "0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d",
"transactionCount" : 1,
"transactionCount" : "0x1",
"transactionsRoot" : "0x5a8d5d966b48e1331ae19eb459eb28882cdc7654e615d37774b79204e875dc01"
}
}
}],
"statusCode": 200
}
}

View File

@ -13,18 +13,18 @@
"timestamp" : "0x561bc336",
"difficulty" : "0x20740",
"totalDifficulty" : "0x3e6cc0",
"gasUsed" : 23585,
"gasLimit" : 3141592,
"gasUsed" : "0x5c21",
"gasLimit" : "0x2fefd8",
"hash" : "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6",
"nonce" : "0x5c321bd9e9f040f1",
"ommerCount" : 0,
"ommerCount" : "0x0",
"logsBloom" : "0x00000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000080000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000400000000000000000200000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000800000000040000000000000000000000000000000000000000010000000000000000000000000",
"mixHash" : "0x6ce1c4afb4f85fefd1b0ed966b20cd248f08d9a5b0df773f75c6c2f5cc237b7c",
"ommerHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"extraData" : "0x",
"stateRoot" : "0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e",
"receiptsRoot" : "0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d",
"transactionCount" : 1,
"transactionCount" : "0x1",
"transactionsRoot" : "0x5a8d5d966b48e1331ae19eb459eb28882cdc7654e615d37774b79204e875dc01",
"ommers" : [ ],
"ommerAt" : null,
@ -41,4 +41,4 @@
}
}],
"statusCode": 200
}
}

View File

@ -7,7 +7,7 @@
"responses": [{
"data" : {
"block" : {
"transactionCount" : 1
"transactionCount" : "0x1"
}
}
}],

View File

@ -13,21 +13,21 @@
"timestamp" : "0x561bc336",
"difficulty" : "0x20740",
"totalDifficulty" : "0x3e6cc0",
"gasUsed" : 23585,
"gasLimit" : 3141592,
"gasUsed" : "0x5c21",
"gasLimit" : "0x2fefd8",
"hash" : "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6",
"nonce" : "0x5c321bd9e9f040f1",
"ommerCount" : 0,
"ommerCount" : "0x0",
"logsBloom" : "0x00000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000080000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000400000000000000000200000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000800000000040000000000000000000000000000000000000000010000000000000000000000000",
"mixHash" : "0x6ce1c4afb4f85fefd1b0ed966b20cd248f08d9a5b0df773f75c6c2f5cc237b7c",
"ommerHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"extraData" : "0x",
"stateRoot" : "0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e",
"receiptsRoot" : "0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d",
"transactionCount" : 1,
"transactionCount" : "0x1",
"transactionsRoot" : "0x5a8d5d966b48e1331ae19eb459eb28882cdc7654e615d37774b79204e875dc01"
}
}
}],
"statusCode": 200
}
}

View File

@ -4,7 +4,7 @@
"data" : {
"block" : {
"logs" : [ {
"index" : 0,
"index" : "0x0",
"topics" : [ "0x65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be580" ],
"data" : "0x000000000000000000000000000000000000000000000000000000000000002a",
"account" : {

View File

@ -4,7 +4,7 @@
"data": {
"logs": [
{
"index": 0,
"index": "0x0",
"topics": [
"0x65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be580"
],
@ -15,12 +15,12 @@
"transaction": {
"hash": "0x97a385bf570ced7821c6495b3877ddd2afd5c452f350f0d4876e98d9161389c6",
"block": {
"number": 23
"number": "0x17"
}
}
},
{
"index": 0,
"index": "0x0",
"topics": [],
"data": "0x000000000000000000000000000000000000000000000000000000000000002a",
"account": {
@ -29,7 +29,7 @@
"transaction": {
"hash": "0x5ecd942096ab3f70c5bcc8f3a98f88c4ff0a3bd986417df9948eb1819db76d0e",
"block": {
"number": 24
"number": "0x18"
}
}
}
@ -37,4 +37,4 @@
}
}],
"statusCode": 200
}
}

View File

@ -7,12 +7,12 @@
"block": {
"hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6"
},
"gas": 314159,
"gas": "0x4cb2f",
"gasPrice": "0x1",
"hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4",
"inputData": "0xe8beef5b",
"nonce": 29,
"index": 0,
"nonce": "0x1d",
"index": "0x0",
"value": "0xa",
"from": {
"address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
@ -22,7 +22,7 @@
},
"logs": [
{
"index": 0
"index": "0x0"
}
],
"status": null,
@ -51,7 +51,7 @@
}
],
"nonce": "0x1d",
"status": 0,
"status": "0x0",
"to": {
"address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"
},
@ -61,4 +61,4 @@
}
],
"statusCode": 200
}
}

View File

@ -1,24 +1,13 @@
{
"request": "{block{ account(address: \"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b\") { transactionCount } }}",
"responses": [
{
"data": {
"block": {
"account": {
"transactionCount": 32
}
}
}
},
{
"data": {
"block": {
"account": {
"transactionCount": "0x20"
}
"responses": [{
"data": {
"block": {
"account": {
"transactionCount": "0x21"
}
}
}
],
}],
"statusCode": 200
}
}

View File

@ -11,14 +11,14 @@
"createdContract": {
"address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"
},
"cumulativeGasUsed": 493172,
"cumulativeGasUsed": "0x78674",
"from": {
"address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
},
"gas": 3141592,
"gasUsed": 493172,
"gas": "0x2fefd8",
"gasUsed": "0x78674",
"hash": "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed",
"index": 0,
"index": "0x0",
"logs": [],
"to": null
}
@ -34,12 +34,12 @@
"createdContract": {
"address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"
},
"cumulativeGasUsed": 493172,
"cumulativeGasUsed": "0x78674",
"from": {
"address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
},
"gas": "0x2fefd8",
"gasUsed": 493172,
"gasUsed": "0x78674",
"hash": "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed",
"index": 0,
"logs": [],

View File

@ -5,20 +5,20 @@
"responses": [{
"data": {
"pending": {
"transactionCount": 1,
"transactionCount": "0x1",
"transactions": [
{
"nonce": 50,
"gas": 1048575
"nonce": "0x32",
"gas": "0xfffff"
}
],
"account": {
"balance": "0x140"
},
"estimateGas": 21000,
"estimateGas": "0x5208",
"call": {
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
"status": 1
"status": "0x1"
}
}
}

View File

@ -1,6 +1,6 @@
{
"request":
"{ syncing {startingBlock currentBlock highestBlock pulledStates knownStates } }",
"{ syncing {startingBlock currentBlock highestBlock } }",
"responses": [{
"data" : {

View File

@ -4,16 +4,19 @@
"data": {
"blocks": [
{
"number": 30
"number": "0x1e"
},
{
"number": 31
"number": "0x1f"
},
{
"number": 32
"number": "0x20"
},
{
"number": "0x21"
}
]
}
}],
"statusCode": 200
}
}

View File

@ -7,34 +7,34 @@
"responses":[{
"data" : {
"blocks" : [ {
"number" : 30,
"gasUsed" : 23585,
"gasLimit" : 3141592,
"number" : "0x1e",
"gasUsed" : "0x5c21",
"gasLimit" : "0x2fefd8",
"hash" : "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6",
"nonce" : "0x5c321bd9e9f040f1",
"stateRoot" : "0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e",
"receiptsRoot" : "0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d",
"transactionCount" : 1
"transactionCount" : "0x1"
}, {
"number" : 31,
"gasUsed" : 24303,
"gasLimit" : 3141592,
"number" : "0x1f",
"gasUsed" : "0x5eef",
"gasLimit" : "0x2fefd8",
"hash" : "0x0f765087745aa259d9e5ac39c367c57432a16ed98e3b0d81c5b51d10f301dc49",
"nonce" : "0xd3a27a3001616468",
"stateRoot" : "0xa80997cf804269d64f2479baf535cf8f9090b70fbf515741c6995564f1e678bd",
"receiptsRoot" : "0x2440c44a3f75ad8b0425a73e7be2f61a5171112465cfd14e62e735b56d7178e6",
"transactionCount" : 1
"transactionCount" : "0x1"
}, {
"number" : 32,
"gasUsed" : 23705,
"gasLimit" : 3141592,
"number" : "0x20",
"gasUsed" : "0x5c99",
"gasLimit" : "0x2fefd8",
"hash" : "0x71d59849ddd98543bdfbe8548f5eed559b07b8aaf196369f39134500eab68e53",
"nonce" : "0xdb063000b00e8026",
"stateRoot" : "0xf65f3dd13f72f5fa5607a5224691419969b4f4bae7a00a6cdb853f2ca9eeb1be",
"receiptsRoot" : "0xa50a7e67e833f4502524371ee462ccbcc6c6cabd2aeb1555c56150007a53183c",
"transactionCount" : 1
"transactionCount" : "0x1"
} ]
}
}],
"statusCode": 200
}
}

View File

@ -0,0 +1,14 @@
{
"request": "{block (number : \"0x1e\") { gasUsed gasLimit hash }} ",
"responses":[{
"data" : {
"block" : {
"gasUsed" : "0x5c21",
"gasLimit" : "0x2fefd8",
"hash" : "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6"
}
}
}],
"statusCode": 200
}

View File

@ -0,0 +1,22 @@
{
"request": "{ logs( filter: { fromBlock:\"0x14\", toBlock: \"0x18\", topics : [], addresses : []}) { index transaction{hash} } }",
"responses": [{
"data": {
"logs": [
{
"index": "0x0",
"transaction": {
"hash": "0x97a385bf570ced7821c6495b3877ddd2afd5c452f350f0d4876e98d9161389c6"
}
},
{
"index": "0x0",
"transaction": {
"hash": "0x5ecd942096ab3f70c5bcc8f3a98f88c4ff0a3bd986417df9948eb1819db76d0e"
}
}
]
}
}],
"statusCode": 200
}

View File

@ -0,0 +1,18 @@
{
"request": "{transaction (hash : \"0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4\") { block { number } from(block: \"0x1d\") {transactionCount}} } ",
"responses": [
{
"data": {
"transaction": {
"block": {
"number": "0x1e"
},
"from": {
"transactionCount": "0x1d"
}
}
}
}
],
"statusCode": 200
}

View File

@ -0,0 +1,15 @@
{
"request":
"{ block (number: 32) { number withdrawalsRoot withdrawals { index amount } } }",
"responses": [{
"data" : {
"block" : {
"number" : "0x20",
"withdrawalsRoot": null,
"withdrawals": null
}
}
}],
"statusCode": 200
}

View File

@ -0,0 +1,20 @@
{
"request":
"{ block (number: 33) { number withdrawalsRoot withdrawals { index amount validator address } } }",
"responses": [{
"data" : {
"block" : {
"number" : "0x21",
"withdrawalsRoot": "0x37945ab58d2712a26df2a38d217e822694927e29b30d5993d7a53ccea618d1f3",
"withdrawals": [{
"index": "0x0",
"amount": "0x2540be400",
"validator": "0xa",
"address": "0x0000000000000000000000000000000000000dad"
}]
}
}
}],
"statusCode": 200
}

View File

@ -0,0 +1,19 @@
{
"request": "{transaction (hash : \"0x3ecd2ca6cf26c864d0ea5f038a58d4cd4a46a3e242fe92f446f392fdc232dd98\") { accessList { address storageKeys } maxFeePerGas maxPriorityFeePerGas nonce type status } } ",
"responses": [{
"data": {
"transaction": {
"accessList": [{
"address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f",
"storageKeys": ["0x0000000000000000000000000000000000000000000000000000000000000000"]
}],
"maxFeePerGas": "0xb2d05e00",
"maxPriorityFeePerGas": "0x3b9aca00",
"nonce": "0x20",
"type": "0x2",
"status": "0x1"
}
}
}],
"statusCode": 200
}

View File

@ -0,0 +1,29 @@
{
"request": "{block (number : 33) { baseFeePerGas difficulty extraData miner { address } mixHash nonce stateRoot totalDifficulty withdrawalsRoot withdrawals { address amount index validator } }} ",
"responses":[{
"data" : {
"block" : {
"baseFeePerGas": "0x3b9aca00",
"difficulty": "0x0",
"extraData": "0x",
"miner": {
"address": "0x0000000000000000000000000000000000000000"
},
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"stateRoot": "0x0d3c456bb68669bad05da3a1a766daab236c9df1da8f74edf5ebe9383f00084c",
"totalDifficulty": "0x427c00",
"withdrawalsRoot": "0x37945ab58d2712a26df2a38d217e822694927e29b30d5993d7a53ccea618d1f3",
"withdrawals": [
{
"address": "0x0000000000000000000000000000000000000dad",
"amount": "0x2540be400",
"index": "0x0",
"validator": "0xa"
}
]
}
}
}],
"statusCode": 200
}