Skip to content

Commit

Permalink
chore: snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Oct 3, 2024
1 parent 3b21236 commit 8f9eefb
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 43 deletions.
34 changes: 17 additions & 17 deletions packages/core/src/actions/getBlock.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test('args: blockNumber', async () => {
"gasUsed": 26325393n,
"hash": "0xcfa5df46abf1521f68ae72a7f7c4661949f4fb08a3d1296fe8082f6580a414e0",
"logsBloom": "0x2df3b5a24d2d57e7d73f96dbfea3577b1d5fbaacfcb9b5fb86db74d2e4ffd1e48bba050c33edada84fe477213937158c1e95d3da9f457f6f36e3ff0afdffcb667c5ee5f9e3ddffa9db1af6bbf15fcbbca5139717d5eedab4daa63cd8bb7dfa3e976b1e7023e2dc4586cef3caa0b73d6ff2ba3afb989c9f58f6b67bb4ed596c5aeb78cef51f69ad3675df70ffbd2aa6576d7c9e3debd00cccec3b69fc617b8568bfe588f7e126ef591f34ddd0d8b68c28b7ed45b46af3a7bb75c0e2fe4bec54fb772c87ae6f7efcdfb13139b758cfda4d98dffe426fef6d1c2e55f36b5bb1f0a2aef7bcbdf83d31ea646cf6ef3fe9d8b9af2ad4197f7ea2de462bd029fdef7e6f",
"miner": "0x4838b106fce9647bdf1e7877bf73ce8b0bad5f97",
"miner": "0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97",
"mixHash": "0x92ac9cd6e57bacd7c7d3e9b087c3907b1c085e284eec2dce7379a847cb4c9940",
"nonce": "0x0000000000000000",
"number": 19258213n,
Expand All @@ -41,97 +41,97 @@ test('args: blockNumber', async () => {
"uncles": [],
"withdrawals": [
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x112da72",
"index": "0x21ec946",
"validatorIndex": "0x5cd8e",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x1119345",
"index": "0x21ec947",
"validatorIndex": "0x5cd8f",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x110e2ca",
"index": "0x21ec948",
"validatorIndex": "0x5cd90",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x1119245",
"index": "0x21ec949",
"validatorIndex": "0x5cd91",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x1115a03",
"index": "0x21ec94a",
"validatorIndex": "0x5cd92",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x111cf3f",
"index": "0x21ec94b",
"validatorIndex": "0x5cd93",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x1106006",
"index": "0x21ec94c",
"validatorIndex": "0x5cd94",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x1115bb3",
"index": "0x21ec94d",
"validatorIndex": "0x5cd95",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x111e0d9",
"index": "0x21ec94e",
"validatorIndex": "0x5cd96",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x110829f",
"index": "0x21ec94f",
"validatorIndex": "0x5cd97",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x11029ab",
"index": "0x21ec950",
"validatorIndex": "0x5cd98",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x11140a6",
"index": "0x21ec951",
"validatorIndex": "0x5cd99",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x111396c",
"index": "0x21ec952",
"validatorIndex": "0x5cd9a",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x110de16",
"index": "0x21ec953",
"validatorIndex": "0x5cd9b",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x1121062",
"index": "0x21ec954",
"validatorIndex": "0x5cd9c",
},
{
"address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
"address": "0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f",
"amount": "0x11188bc",
"index": "0x21ec955",
"validatorIndex": "0x5cd9d",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/actions/getTransaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test('default', async () => {
"blockHash": "0x61c4e868008b465addd7c0a5da03db28bb9911597c58e239a85dd14dd43fd56a",
"blockNumber": 17488642n,
"chainId": 1,
"from": "0xd2135cfb216b74109775236e36d4b433f1df507b",
"from": "0xd2135CfB216b74109775236E36d4b433F1DF507B",
"gas": 53671n,
"gasPrice": 15806335296n,
"hash": "0xa559259bd2d0e8372421e222ff3545f705b5da60005bd787a23c2e68d6d7fefd",
Expand All @@ -24,7 +24,7 @@ test('default', async () => {
"nonce": 29,
"r": "0x60a19c4a708571d2a7c661dc5494542fa2c6ddd8e7dc218e4c4795b6ba7969f5",
"s": "0x7ef2778cc21f5c12861208d0c030e77193a234273e32a1dd5066d7d677aa1ef2",
"to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"transactionIndex": 58,
"type": "eip1559",
"typeHex": "0x2",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/actions/getTransactionReceipt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ test('default', async () => {
"contractAddress": null,
"cumulativeGasUsed": 21000n,
"effectiveGasPrice": 33427926161n,
"from": "0x043022ef9fca1066024d19d681e2ccf44ff90de3",
"from": "0x043022ef9fCa1066024d19d681e2CcF44Ff90De3",
"gasUsed": 21000n,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "success",
"to": "0x318a5fb4f1604fc46375a1db9a9018b6e423b345",
"to": "0x318a5FB4F1604FC46375A1dB9A9018B6e423b345",
"transactionHash": "0xbf7d27700d053765c9638d3b9d39eb3c56bfc48377583e8be483d61f9f18a871",
"transactionIndex": 0,
"type": "legacy",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/hooks/useTransaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test('default', async () => {
"blockHash": "0xd725a38b51e5ceec8c5f6c9ccfdb2cc423af993bb650af5eedca5e4be7156ba7",
"blockNumber": 15189204n,
"chainId": 1,
"from": "0xa0cf798816d4b9b9866b5330eea46a18382f251e",
"from": "0xA0Cf798816D4b9b9866b5330EEa46a18382f251e",
"gas": 21000n,
"gasPrice": 9371645552n,
"hash": "0x60668ed8c2dc110d61d945a936fcd45b8f13654e5c78481c8c825d1148c7ef30",
Expand All @@ -29,7 +29,7 @@ test('default', async () => {
"nonce": 86,
"r": "0x40174f9a38df876c1a7ce2587848819d4082ccd6d67a88aa5cabe59bf594e14f",
"s": "0x7c0c82f62a8a5a9b0e9cf30a54a72fdae8fc54b5b79ddafef0acd30e94e83872",
"to": "0xd2135cfb216b74109775236e36d4b433f1df507b",
"to": "0xd2135CfB216b74109775236E36d4b433F1DF507B",
"transactionIndex": 144,
"type": "eip1559",
"typeHex": "0x2",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/hooks/useTransactionConfirmations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ test('parameters: transactionReceipt', async () => {
"contractAddress": null,
"cumulativeGasUsed": 12949744n,
"effectiveGasPrice": 9371645552n,
"from": "0xa0cf798816d4b9b9866b5330eea46a18382f251e",
"from": "0xA0Cf798816D4b9b9866b5330EEa46a18382f251e",
"gasUsed": 21000n,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "success",
"to": "0xd2135cfb216b74109775236e36d4b433f1df507b",
"to": "0xd2135CfB216b74109775236E36d4b433F1DF507B",
"transactionHash": "0x60668ed8c2dc110d61d945a936fcd45b8f13654e5c78481c8c825d1148c7ef30",
"transactionIndex": 144,
"type": "eip1559",
Expand Down
12 changes: 6 additions & 6 deletions packages/react/src/hooks/useTransactionReceipt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ test('default', async () => {
"contractAddress": null,
"cumulativeGasUsed": 21000n,
"effectiveGasPrice": 33427926161n,
"from": "0x043022ef9fca1066024d19d681e2ccf44ff90de3",
"from": "0x043022ef9fCa1066024d19d681e2CcF44Ff90De3",
"gasUsed": 21000n,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "success",
"to": "0x318a5fb4f1604fc46375a1db9a9018b6e423b345",
"to": "0x318a5FB4F1604FC46375A1dB9A9018B6e423b345",
"transactionHash": "0xbf7d27700d053765c9638d3b9d39eb3c56bfc48377583e8be483d61f9f18a871",
"transactionIndex": 0,
"type": "legacy",
Expand Down Expand Up @@ -83,12 +83,12 @@ test('parameters: chainId', async () => {
"contractAddress": null,
"cumulativeGasUsed": 21000n,
"effectiveGasPrice": 33427926161n,
"from": "0x043022ef9fca1066024d19d681e2ccf44ff90de3",
"from": "0x043022ef9fCa1066024d19d681e2CcF44Ff90De3",
"gasUsed": 21000n,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "success",
"to": "0x318a5fb4f1604fc46375a1db9a9018b6e423b345",
"to": "0x318a5FB4F1604FC46375A1dB9A9018B6e423b345",
"transactionHash": "0xbf7d27700d053765c9638d3b9d39eb3c56bfc48377583e8be483d61f9f18a871",
"transactionIndex": 0,
"type": "legacy",
Expand Down Expand Up @@ -185,12 +185,12 @@ test('behavior: hash: undefined -> defined', async () => {
"contractAddress": null,
"cumulativeGasUsed": 21000n,
"effectiveGasPrice": 33427926161n,
"from": "0x043022ef9fca1066024d19d681e2ccf44ff90de3",
"from": "0x043022ef9fCa1066024d19d681e2CcF44Ff90De3",
"gasUsed": 21000n,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "success",
"to": "0x318a5fb4f1604fc46375a1db9a9018b6e423b345",
"to": "0x318a5FB4F1604FC46375A1dB9A9018B6e423b345",
"transactionHash": "0xbf7d27700d053765c9638d3b9d39eb3c56bfc48377583e8be483d61f9f18a871",
"transactionIndex": 0,
"type": "legacy",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/hooks/useWaitForTransactionReceipt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ test('default', async () => {
"contractAddress": null,
"cumulativeGasUsed": 12949744n,
"effectiveGasPrice": 9371645552n,
"from": "0xa0cf798816d4b9b9866b5330eea46a18382f251e",
"from": "0xA0Cf798816D4b9b9866b5330EEa46a18382f251e",
"gasUsed": 21000n,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "success",
"to": "0xd2135cfb216b74109775236e36d4b433f1df507b",
"to": "0xd2135CfB216b74109775236E36d4b433F1DF507B",
"transactionHash": "0x60668ed8c2dc110d61d945a936fcd45b8f13654e5c78481c8c825d1148c7ef30",
"transactionIndex": 144,
"type": "eip1559",
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/src/composables/useTransaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test('default', async () => {
"blockHash": "0xd725a38b51e5ceec8c5f6c9ccfdb2cc423af993bb650af5eedca5e4be7156ba7",
"blockNumber": 15189204n,
"chainId": 1,
"from": "0xa0cf798816d4b9b9866b5330eea46a18382f251e",
"from": "0xA0Cf798816D4b9b9866b5330EEa46a18382f251e",
"gas": 21000n,
"gasPrice": 9371645552n,
"hash": "0x60668ed8c2dc110d61d945a936fcd45b8f13654e5c78481c8c825d1148c7ef30",
Expand All @@ -30,7 +30,7 @@ test('default', async () => {
"nonce": 86,
"r": "0x40174f9a38df876c1a7ce2587848819d4082ccd6d67a88aa5cabe59bf594e14f",
"s": "0x7c0c82f62a8a5a9b0e9cf30a54a72fdae8fc54b5b79ddafef0acd30e94e83872",
"to": "0xd2135cfb216b74109775236e36d4b433f1df507b",
"to": "0xd2135CfB216b74109775236E36d4b433F1DF507B",
"transactionIndex": 144,
"type": "eip1559",
"typeHex": "0x2",
Expand Down
12 changes: 6 additions & 6 deletions packages/vue/src/composables/useTransactionReceipt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ test('default', async () => {
"contractAddress": null,
"cumulativeGasUsed": 21000n,
"effectiveGasPrice": 33427926161n,
"from": "0x043022ef9fca1066024d19d681e2ccf44ff90de3",
"from": "0x043022ef9fCa1066024d19d681e2CcF44Ff90De3",
"gasUsed": 21000n,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "success",
"to": "0x318a5fb4f1604fc46375a1db9a9018b6e423b345",
"to": "0x318a5FB4F1604FC46375A1dB9A9018B6e423b345",
"transactionHash": "0xbf7d27700d053765c9638d3b9d39eb3c56bfc48377583e8be483d61f9f18a871",
"transactionIndex": 0,
"type": "legacy",
Expand Down Expand Up @@ -85,12 +85,12 @@ test('parameters: chainId', async () => {
"contractAddress": null,
"cumulativeGasUsed": 21000n,
"effectiveGasPrice": 33427926161n,
"from": "0x043022ef9fca1066024d19d681e2ccf44ff90de3",
"from": "0x043022ef9fCa1066024d19d681e2CcF44Ff90De3",
"gasUsed": 21000n,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "success",
"to": "0x318a5fb4f1604fc46375a1db9a9018b6e423b345",
"to": "0x318a5FB4F1604FC46375A1dB9A9018B6e423b345",
"transactionHash": "0xbf7d27700d053765c9638d3b9d39eb3c56bfc48377583e8be483d61f9f18a871",
"transactionIndex": 0,
"type": "legacy",
Expand Down Expand Up @@ -155,12 +155,12 @@ test('behavior: hash: undefined -> defined', async () => {
"contractAddress": null,
"cumulativeGasUsed": 21000n,
"effectiveGasPrice": 33427926161n,
"from": "0x043022ef9fca1066024d19d681e2ccf44ff90de3",
"from": "0x043022ef9fCa1066024d19d681e2CcF44Ff90De3",
"gasUsed": 21000n,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "success",
"to": "0x318a5fb4f1604fc46375a1db9a9018b6e423b345",
"to": "0x318a5FB4F1604FC46375A1dB9A9018B6e423b345",
"transactionHash": "0xbf7d27700d053765c9638d3b9d39eb3c56bfc48377583e8be483d61f9f18a871",
"transactionIndex": 0,
"type": "legacy",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ test('default', async () => {
"contractAddress": null,
"cumulativeGasUsed": 12949744n,
"effectiveGasPrice": 9371645552n,
"from": "0xa0cf798816d4b9b9866b5330eea46a18382f251e",
"from": "0xA0Cf798816D4b9b9866b5330EEa46a18382f251e",
"gasUsed": 21000n,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "success",
"to": "0xd2135cfb216b74109775236e36d4b433f1df507b",
"to": "0xd2135CfB216b74109775236E36d4b433F1DF507B",
"transactionHash": "0x60668ed8c2dc110d61d945a936fcd45b8f13654e5c78481c8c825d1148c7ef30",
"transactionIndex": 144,
"type": "eip1559",
Expand Down

0 comments on commit 8f9eefb

Please sign in to comment.