From be5ddd56af88c1422da5a4f1aca3e05af83f6a1f Mon Sep 17 00:00:00 2001 From: ponyjackal Date: Fri, 26 Apr 2024 08:18:23 -0700 Subject: [PATCH] feat: update eth payments in erc1155Purchase --- .../erc1155Purchase/erc1155Purchase.spec.ts | 29 +- .../erc1155Purchase/erc1155Purchase.ts | 10 +- .../erc1155Purchase-0xc6c925c0.json | 1958 +++++++++++++++++ src/helpers/utils.ts | 2 - 4 files changed, 1992 insertions(+), 7 deletions(-) create mode 100644 src/contextualizers/test/transactions/erc1155Purchase-0xc6c925c0.json diff --git a/src/contextualizers/heuristics/erc1155Purchase/erc1155Purchase.spec.ts b/src/contextualizers/heuristics/erc1155Purchase/erc1155Purchase.spec.ts index 93896ad2..91126e01 100644 --- a/src/contextualizers/heuristics/erc1155Purchase/erc1155Purchase.spec.ts +++ b/src/contextualizers/heuristics/erc1155Purchase/erc1155Purchase.spec.ts @@ -1,8 +1,10 @@ import { Transaction } from '../../../types'; -import { detect } from './erc1155Purchase'; +import { detect, generate } from './erc1155Purchase'; import erc1155Purchase0x156df9f7 from '../../test/transactions/erc1155Purchase-0x156df9f7.json'; import erc1155Sale0x16b2334d from '../../test/transactions/erc1155Sale-0x16b2334d.json'; +import erc1155Purchase0xc6c925c0 from '../../test/transactions/erc1155Purchase-0xc6c925c0.json'; import catchall0xc35c01ac from '../../test/transactions/catchall-0xc35c01ac.json'; +import { contextSummary } from '../../../helpers/utils'; describe('ERC1155 Purchase', () => { it('Should detect ERC1155 Purchase transaction', () => { @@ -15,6 +17,31 @@ describe('ERC1155 Purchase', () => { erc1155Sale0x16b2334d as unknown as Transaction, ); expect(isERC1155Purchase2).toBe(true); + + const isERC1155Purchase3 = detect( + erc1155Purchase0xc6c925c0 as unknown as Transaction, + ); + expect(isERC1155Purchase3).toBe(true); + }); + + it('Should generate context for ERC1155 Purchase', () => { + const erc1155Purchase1 = generate( + erc1155Purchase0xc6c925c0 as unknown as Transaction, + ); + expect(erc1155Purchase1.context?.summaries?.en.title).toBe('NFT Purchase'); + expect(erc1155Purchase1.context?.variables?.tokenOrTokens['token']).toBe( + '0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a', + ); + expect(erc1155Purchase1.context?.variables?.tokenOrTokens['tokenId']).toBe( + '1', + ); + expect(erc1155Purchase1.context?.variables?.tokenOrTokens['value']).toBe( + '1', + ); + const desc1 = contextSummary(erc1155Purchase1.context); + expect(desc1).toBe( + '0x15cc6926a4bea1eb176a738f7a8c63e65b437f84 BOUGHT 1 0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a #1 for 0.00824 ETH from 0x1ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b', + ); }); it('Should not detect ERC1155 Purchase transaction', () => { diff --git a/src/contextualizers/heuristics/erc1155Purchase/erc1155Purchase.ts b/src/contextualizers/heuristics/erc1155Purchase/erc1155Purchase.ts index 4456f83c..a8a49c9e 100644 --- a/src/contextualizers/heuristics/erc1155Purchase/erc1155Purchase.ts +++ b/src/contextualizers/heuristics/erc1155Purchase/erc1155Purchase.ts @@ -79,7 +79,7 @@ export function detect(transaction: Transaction): boolean { return false; } -function generate(transaction: Transaction): Transaction { +export function generate(transaction: Transaction): Transaction { if (!transaction.assetTransfers || !transaction.netAssetTransfers) { return transaction; } @@ -98,10 +98,12 @@ function generate(transaction: Transaction): Transaction { const totalERC20Payment: Record = computeERC20Price( erc20Payments, - [transaction.from], + receivingAddresses, ); - const totalETHPayment = computeETHPrice(ethPayments, [transaction.from]); - const totalAssets = erc20Payments.length + ethPayments.length; + const totalETHPayment = computeETHPrice(ethPayments, receivingAddresses); + const totalAssets = + Object.keys(totalERC20Payment).length + + (totalETHPayment > BigInt(0) ? 1 : 0); transaction.context = { variables: { diff --git a/src/contextualizers/test/transactions/erc1155Purchase-0xc6c925c0.json b/src/contextualizers/test/transactions/erc1155Purchase-0xc6c925c0.json new file mode 100644 index 00000000..194ef30c --- /dev/null +++ b/src/contextualizers/test/transactions/erc1155Purchase-0xc6c925c0.json @@ -0,0 +1,1958 @@ +{ + "_id": "66293bf5a2f0ada31357c183", + "blockHash": "0x862fe8b8a6484503e42f03fb9f4d0a574613d98cec5effdf2fedce81403da554", + "blockNumber": 13594497, + "from": "0x15cc6926a4bea1eb176a738f7a8c63e65b437f84", + "gas": 233334, + "gasPrice": "120838642", + "maxFeePerGas": "362608571", + "maxPriorityFeePerGas": "737425", + "hash": "0xc6c9abe556cd474722697df4f923a9a5519a40ae2e7b320c38869e2d54f225c0", + "input": "0x760f2a0b000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000d8f24f5f0382e197c1e87ad82b357209383470cf0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000001d463c80f3000000000000000000000000000000000000000000000000000000000000000006c476af662900000000000000000000000000000000000000000000000000000000000000c000000000000000000000000015cc6926a4bea1eb176a738f7a8c63e65b437f8400000000000000000000000015cc6926a4bea1eb176a738f7a8c63e65b437f840000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000001c6bf526340000000000000000000000000000000000000000000000000000000000000000066000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000052000000000000000000000000000000000000000000000000000000000000005800000000000000000000000001ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000066293a19000000000000000000000000000000000000000000000000000000006650c7190000000000000000000000000000000000000000000000000000000000000000360c6ebe00000000000000000000000000000000000000001f7b72de2166bb2a0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f00000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000030000000000000000000000006541dc28acb78e1b024f5ffe1c840bc3e6fcf36a0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a4a42c3568000000000000000000000000000000000000000000000000000001a4a42c35680000000000000000000000000001ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b5e620f480000000000000000000000000000000000000000000000000000000b5e620f480000000000000000000000000000000a26b00c1f0df003000390027140000faa71900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016bcc41e9000000000000000000000000000000000000000000000000000000016bcc41e900000000000000000000000000009652721d02b9db43f4311102820158abb4ecc95b000000000000000000000000000000000000000000000000000000000000004094c0b2514f2dedbe51515798c17586e6ce0e373811e76ffafc7a943b4182e02916434d2b8bdd929bef11d2019d320d7ccf921162825db54a3c5524de249e69ee000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000007bf90111ad7c22bec9e9dff8a01a44713cc1b1b60000000000000000000000000000000000000000000000000000da475abf0000000000000000000000000000000000000000000000000000000000001d4da48b274ce220", + "nonce": 100, + "to": "0x1aed60a97192157fda7fb26267a439d523d09c5e", + "transactionIndex": 46, + "value": "8240000000000000", + "type": 2, + "accessList": [], + "chainId": 8453, + "v": "0x0", + "r": "0x9ed88f5baecfa7c59bfa1618ea1408d3ff63907bbc6c193613a3679753a9a751", + "s": "0x482bdc89ff64b59255b8280d1b32a38d3eae42e4c5db15dd19d31dcdca6948b2", + "yParity": "0x0", + "receipt": { + "blockHash": "0x862fe8b8a6484503e42f03fb9f4d0a574613d98cec5effdf2fedce81403da554", + "blockNumber": 13594497, + "contractAddress": null, + "cumulativeGasUsed": 7012109, + "effectiveGasPrice": 120838642, + "from": "0x15cc6926a4bea1eb176a738f7a8c63e65b437f84", + "gasUsed": 216989, + "l1Fee": "0x4258c561de", + "l1GasPrice": "0x43247f668", + "l1GasUsed": "0x3818", + "logsBloom": "0x00002000000000000000000000000000000000000000000000000000010000000000000000020000000000000000000000000000000000000000000000002000000000004000000020000002000000000000000000000000000000000000000000000000020200000000800000000801000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000040080001000010400000000040000080000000000000000000010000000001000000000000000000000000000000000040000000000008000000000000000020000000000000014000000000800040000000000000000800000010080000000000", + "status": true, + "to": "0x1aed60a97192157fda7fb26267a439d523d09c5e", + "transactionHash": "0xc6c9abe556cd474722697df4f923a9a5519a40ae2e7b320c38869e2d54f225c0", + "transactionIndex": 46, + "type": "0x2", + "logs": [ + { + "_id": "66293bf5a2f0ada31357c07d", + "address": "0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a", + "data": "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001", + "blockNumber": 13594497, + "transactionHash": "0xc6c9abe556cd474722697df4f923a9a5519a40ae2e7b320c38869e2d54f225c0", + "transactionIndex": 46, + "blockHash": "0x862fe8b8a6484503e42f03fb9f4d0a574613d98cec5effdf2fedce81403da554", + "logIndex": 207, + "removed": false, + "id": "log_8c6a393b", + "decoded": { + "signature": "TransferSingle(address,address,address,uint256,uint256)", + "signature_with_arg_names": "TransferSingle(address indexed operator,address indexed from,address indexed to,uint256 id,uint256 value)", + "name": "TransferSingle", + "decoded": [ + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address", + "decoded": "0x1e0049783f008a0085193e00003d00cd54003c71" + }, + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address", + "decoded": "0x1ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address", + "decoded": "0x15cc6926a4bea1eb176a738f7a8c63e65b437f84" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "id", + "type": "uint256", + "decoded": "1" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256", + "decoded": "1" + } + ] + }, + "topic0": "0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62", + "topic1": "0x0000000000000000000000001e0049783f008a0085193e00003d00cd54003c71", + "topic2": "0x0000000000000000000000001ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b", + "topic3": "0x00000000000000000000000015cc6926a4bea1eb176a738f7a8c63e65b437f84" + }, + { + "_id": "66293bf5a2f0ada31357c07e", + "address": "0x0000000000000068f116a894984e2db1123eb395", + "data": "0xad25371405aa7e891ebe837f79a7960cd21a7883987978eb77049a8407f4e71f00000000000000000000000015cc6926a4bea1eb176a738f7a8c63e65b437f8400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000030000000000000000000000006541dc28acb78e1b024f5ffe1c840bc3e6fcf36a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a4a42c35680000000000000000000000000001ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b5e620f480000000000000000000000000000000a26b00c1f0df003000390027140000faa71900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016bcc41e900000000000000000000000000009652721d02b9db43f4311102820158abb4ecc95b", + "blockNumber": 13594497, + "transactionHash": "0xc6c9abe556cd474722697df4f923a9a5519a40ae2e7b320c38869e2d54f225c0", + "transactionIndex": 46, + "blockHash": "0x862fe8b8a6484503e42f03fb9f4d0a574613d98cec5effdf2fedce81403da554", + "logIndex": 208, + "removed": false, + "id": "log_04b5790f", + "decoded": null, + "topic0": "0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31", + "topic1": "0x0000000000000000000000001ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b", + "topic2": "0x0000000000000000000000000000000000000000000000000000000000000000" + }, + { + "_id": "66293bf5a2f0ada31357c07f", + "address": "0x7bf90111ad7c22bec9e9dff8a01a44713cc1b1b6", + "data": "0x0000000000000000000000000000000000000000000000000000da475abf0000", + "blockNumber": 13594497, + "transactionHash": "0xc6c9abe556cd474722697df4f923a9a5519a40ae2e7b320c38869e2d54f225c0", + "transactionIndex": 46, + "blockHash": "0x862fe8b8a6484503e42f03fb9f4d0a574613d98cec5effdf2fedce81403da554", + "logIndex": 209, + "removed": false, + "id": "log_3910118e", + "decoded": { + "signature": "SafeReceived(address,uint256)", + "signature_with_arg_names": "SafeReceived(address indexed sender,uint256 value)", + "name": "SafeReceived", + "decoded": [ + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address", + "decoded": "0xd8f24f5f0382e197c1e87ad82b357209383470cf" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256", + "decoded": "240000000000000" + } + ] + }, + "topic0": "0x3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d", + "topic1": "0x000000000000000000000000d8f24f5f0382e197c1e87ad82b357209383470cf" + } + ] + }, + "decoded": null, + "assetTransfers": [ + { + "from": "0x15cc6926a4bea1eb176a738f7a8c63e65b437f84", + "to": "0x1aed60a97192157fda7fb26267a439d523d09c5e", + "type": "eth", + "value": "8240000000000000" + }, + { + "from": "0x1aed60a97192157fda7fb26267a439d523d09c5e", + "to": "0xd8f24f5f0382e197c1e87ad82b357209383470cf", + "type": "eth", + "value": "8240000000000000" + }, + { + "from": "0xd8f24f5f0382e197c1e87ad82b357209383470cf", + "to": "0x0000000000000068f116a894984e2db1123eb395", + "type": "eth", + "value": "8000000000000000" + }, + { + "from": "0x0000000000000068f116a894984e2db1123eb395", + "to": "0x1ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b", + "type": "eth", + "value": "7400000000000000" + }, + { + "from": "0x0000000000000068f116a894984e2db1123eb395", + "to": "0x0000a26b00c1f0df003000390027140000faa719", + "type": "eth", + "value": "200000000000000" + }, + { + "from": "0x0000000000000068f116a894984e2db1123eb395", + "to": "0x9652721d02b9db43f4311102820158abb4ecc95b", + "type": "eth", + "value": "400000000000000" + }, + { + "contract": "0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a", + "from": "0x1ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b", + "to": "0x15cc6926a4bea1eb176a738f7a8c63e65b437f84", + "tokenId": "1", + "value": "1", + "type": "erc1155" + }, + { + "from": "0xd8f24f5f0382e197c1e87ad82b357209383470cf", + "to": "0x7bf90111ad7c22bec9e9dff8a01a44713cc1b1b6", + "type": "eth", + "value": "240000000000000" + } + ], + "delegateCalls": [ + { + "action": { + "callType": "delegatecall", + "from": "0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a", + "gas": "0xef5a", + "input": "0xf242432a0000000000000000000000001ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b00000000000000000000000015cc6926a4bea1eb176a738f7a8c63e65b437f840000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000", + "to": "0x805e0a08de70f85c01f7848370d5e3fc08aad0ea", + "value": "0x0" + }, + "blockHash": "0x862fe8b8a6484503e42f03fb9f4d0a574613d98cec5effdf2fedce81403da554", + "blockNumber": 13594497, + "result": { + "gasUsed": "0x8736", + "output": "0x0" + }, + "subtraces": 0, + "traceAddress": [ + 0, + 3, + 4, + 0, + 0 + ], + "transactionHash": "0xc6c9abe556cd474722697df4f923a9a5519a40ae2e7b320c38869e2d54f225c0", + "transactionPosition": 46, + "type": "call" + }, + { + "action": { + "callType": "delegatecall", + "from": "0x7bf90111ad7c22bec9e9dff8a01a44713cc1b1b6", + "gas": "0x1387", + "input": "0x", + "to": "0xfb1bffc9d739b8d520daf37df666da4c687191ea", + "value": "0xda475abf0000" + }, + "blockHash": "0x862fe8b8a6484503e42f03fb9f4d0a574613d98cec5effdf2fedce81403da554", + "blockNumber": 13594497, + "result": { + "gasUsed": "0x5e0", + "output": "0x0" + }, + "subtraces": 0, + "traceAddress": [ + 0, + 5, + 0 + ], + "transactionHash": "0xc6c9abe556cd474722697df4f923a9a5519a40ae2e7b320c38869e2d54f225c0", + "transactionPosition": 46, + "type": "call" + } + ], + "errors": [], + "parties": [ + "0x15cc6926a4bea1eb176a738f7a8c63e65b437f84", + "0x1aed60a97192157fda7fb26267a439d523d09c5e", + "0xd8f24f5f0382e197c1e87ad82b357209383470cf", + "0x0000000000000068f116a894984e2db1123eb395", + "0x0000000000000000000000000000000000000001", + "0x1ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b", + "0x0000a26b00c1f0df003000390027140000faa719", + "0x9652721d02b9db43f4311102820158abb4ecc95b", + "0x1e0049783f008a0085193e00003d00cd54003c71", + "0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a", + "0x805e0a08de70f85c01f7848370d5e3fc08aad0ea", + "0x7bf90111ad7c22bec9e9dff8a01a44713cc1b1b6", + "0xfb1bffc9d739b8d520daf37df666da4c687191ea", + "0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a-1" + ], + "sigHash": "0x760f2a0b", + "internalSigHashes": [ + { + "from": "0x15cc6926a4bea1eb176a738f7a8c63e65b437f84", + "to": "0x1aed60a97192157fda7fb26267a439d523d09c5e", + "sigHash": "0x760f2a0b" + }, + { + "from": "0x1aed60a97192157fda7fb26267a439d523d09c5e", + "to": "0xd8f24f5f0382e197c1e87ad82b357209383470cf", + "sigHash": "0x76af6629" + }, + { + "from": "0xd8f24f5f0382e197c1e87ad82b357209383470cf", + "to": "0x0000000000000068f116a894984e2db1123eb395", + "sigHash": "0xf07ec373" + }, + { + "from": "0xd8f24f5f0382e197c1e87ad82b357209383470cf", + "to": "0x0000000000000068f116a894984e2db1123eb395", + "sigHash": "0x79df72bd" + }, + { + "from": "0xd8f24f5f0382e197c1e87ad82b357209383470cf", + "to": "0x0000000000000068f116a894984e2db1123eb395", + "sigHash": "0x46423aa7" + }, + { + "from": "0xd8f24f5f0382e197c1e87ad82b357209383470cf", + "to": "0x0000000000000068f116a894984e2db1123eb395", + "sigHash": "0xe7acab24" + }, + { + "from": "0x0000000000000068f116a894984e2db1123eb395", + "to": "0x0000000000000000000000000000000000000001", + "sigHash": "0x14c4e02c" + }, + { + "from": "0x0000000000000068f116a894984e2db1123eb395", + "to": "0x1ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b", + "sigHash": "0x" + }, + { + "from": "0x0000000000000068f116a894984e2db1123eb395", + "to": "0x0000a26b00c1f0df003000390027140000faa719", + "sigHash": "0x" + }, + { + "from": "0x0000000000000068f116a894984e2db1123eb395", + "to": "0x9652721d02b9db43f4311102820158abb4ecc95b", + "sigHash": "0x" + }, + { + "from": "0x0000000000000068f116a894984e2db1123eb395", + "to": "0x1e0049783f008a0085193e00003d00cd54003c71", + "sigHash": "0x4ce34aa2" + }, + { + "from": "0x1e0049783f008a0085193e00003d00cd54003c71", + "to": "0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a", + "sigHash": "0xf242432a" + }, + { + "from": "0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a", + "to": "0x805e0a08de70f85c01f7848370d5e3fc08aad0ea", + "sigHash": "0xf242432a" + }, + { + "from": "0xd8f24f5f0382e197c1e87ad82b357209383470cf", + "to": "0x0000000000000068f116a894984e2db1123eb395", + "sigHash": "0x46423aa7" + }, + { + "from": "0xd8f24f5f0382e197c1e87ad82b357209383470cf", + "to": "0x7bf90111ad7c22bec9e9dff8a01a44713cc1b1b6", + "sigHash": "0x" + }, + { + "from": "0x7bf90111ad7c22bec9e9dff8a01a44713cc1b1b6", + "to": "0xfb1bffc9d739b8d520daf37df666da4c687191ea", + "sigHash": "0x" + } + ], + "timestamp": 1713978341, + "baseFeePerGas": 120101217, + "transactionFee": "26220656088938", + "logs": [ + { + "_id": "66293bf5a2f0ada31357c07d", + "address": "0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a", + "data": "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001", + "blockNumber": 13594497, + "transactionHash": "0xc6c9abe556cd474722697df4f923a9a5519a40ae2e7b320c38869e2d54f225c0", + "transactionIndex": 46, + "blockHash": "0x862fe8b8a6484503e42f03fb9f4d0a574613d98cec5effdf2fedce81403da554", + "logIndex": 207, + "removed": false, + "id": "log_8c6a393b", + "decoded": { + "signature": "TransferSingle(address,address,address,uint256,uint256)", + "signature_with_arg_names": "TransferSingle(address indexed operator,address indexed from,address indexed to,uint256 id,uint256 value)", + "name": "TransferSingle", + "decoded": [ + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address", + "decoded": "0x1e0049783f008a0085193e00003d00cd54003c71" + }, + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address", + "decoded": "0x1ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address", + "decoded": "0x15cc6926a4bea1eb176a738f7a8c63e65b437f84" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "id", + "type": "uint256", + "decoded": "1" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256", + "decoded": "1" + } + ] + }, + "topic0": "0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62", + "topic1": "0x0000000000000000000000001e0049783f008a0085193e00003d00cd54003c71", + "topic2": "0x0000000000000000000000001ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b", + "topic3": "0x00000000000000000000000015cc6926a4bea1eb176a738f7a8c63e65b437f84" + }, + { + "_id": "66293bf5a2f0ada31357c07e", + "address": "0x0000000000000068f116a894984e2db1123eb395", + "data": "0xad25371405aa7e891ebe837f79a7960cd21a7883987978eb77049a8407f4e71f00000000000000000000000015cc6926a4bea1eb176a738f7a8c63e65b437f8400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000030000000000000000000000006541dc28acb78e1b024f5ffe1c840bc3e6fcf36a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a4a42c35680000000000000000000000000001ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b5e620f480000000000000000000000000000000a26b00c1f0df003000390027140000faa71900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016bcc41e900000000000000000000000000009652721d02b9db43f4311102820158abb4ecc95b", + "blockNumber": 13594497, + "transactionHash": "0xc6c9abe556cd474722697df4f923a9a5519a40ae2e7b320c38869e2d54f225c0", + "transactionIndex": 46, + "blockHash": "0x862fe8b8a6484503e42f03fb9f4d0a574613d98cec5effdf2fedce81403da554", + "logIndex": 208, + "removed": false, + "id": "log_04b5790f", + "decoded": null, + "topic0": "0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31", + "topic1": "0x0000000000000000000000001ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b", + "topic2": "0x0000000000000000000000000000000000000000000000000000000000000000" + }, + { + "_id": "66293bf5a2f0ada31357c07f", + "address": "0x7bf90111ad7c22bec9e9dff8a01a44713cc1b1b6", + "data": "0x0000000000000000000000000000000000000000000000000000da475abf0000", + "blockNumber": 13594497, + "transactionHash": "0xc6c9abe556cd474722697df4f923a9a5519a40ae2e7b320c38869e2d54f225c0", + "transactionIndex": 46, + "blockHash": "0x862fe8b8a6484503e42f03fb9f4d0a574613d98cec5effdf2fedce81403da554", + "logIndex": 209, + "removed": false, + "id": "log_3910118e", + "decoded": { + "signature": "SafeReceived(address,uint256)", + "signature_with_arg_names": "SafeReceived(address indexed sender,uint256 value)", + "name": "SafeReceived", + "decoded": [ + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address", + "decoded": "0xd8f24f5f0382e197c1e87ad82b357209383470cf" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256", + "decoded": "240000000000000" + } + ] + }, + "topic0": "0x3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d", + "topic1": "0x000000000000000000000000d8f24f5f0382e197c1e87ad82b357209383470cf" + } + ], + "netAssetTransfers": { + "0x15cc6926a4bea1eb176a738f7a8c63e65b437f84": { + "received": [ + { + "contract": "0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a", + "tokenId": "1", + "type": "erc1155", + "value": "1" + } + ], + "sent": [ + { + "type": "eth", + "value": "8240000000000000" + } + ] + }, + "0x1ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b": { + "received": [ + { + "type": "eth", + "value": "7400000000000000" + } + ], + "sent": [ + { + "contract": "0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a", + "tokenId": "1", + "type": "erc1155", + "value": "1", + "imageUrl": "https://api-base.reservoir.tools/redirect/tokens/0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a:1/image/v1?imageSize=small" + } + ] + }, + "0x0000a26b00c1f0df003000390027140000faa719": { + "received": [ + { + "type": "eth", + "value": "200000000000000" + } + ], + "sent": [] + }, + "0x9652721d02b9db43f4311102820158abb4ecc95b": { + "received": [ + { + "type": "eth", + "value": "400000000000000" + } + ], + "sent": [] + }, + "0x7bf90111ad7c22bec9e9dff8a01a44713cc1b1b6": { + "received": [ + { + "type": "eth", + "value": "240000000000000" + } + ], + "sent": [] + } + }, + "pseudotransactions": [], + "contractsCreated": [], + "enrichedParties": { + "0x15cc6926a4bea1eb176a738f7a8c63e65b437f84": [ + { + "chainId": 0, + "isContract": false, + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + } + ], + "0x1aed60a97192157fda7fb26267a439d523d09c5e": [ + { + "chainId": 11155111, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 59144, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 999, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 8453, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 84531, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 84532, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 7777777, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + } + ], + "0xd8f24f5f0382e197c1e87ad82b357209383470cf": [ + { + "chainId": 10, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 8453, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 11155111, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 1, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + } + ], + "0x0000000000000068f116a894984e2db1123eb395": [ + { + "chainId": 11155111, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 10, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 1, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 8453, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 84532, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 7777777, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 11155420, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 999999999, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + } + ], + "0x0000000000000000000000000000000000000001": [ + { + "chainId": 0, + "isContract": false, + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + } + ], + "0x1ddbaec4f1d056bcb6a6e7a6f2e8790ff2ae552b": [ + { + "chainId": 0, + "isContract": false, + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + } + ], + "0x0000a26b00c1f0df003000390027140000faa719": [ + { + "chainId": 999, + "label": { + "public": "OpenSea: Fees 3" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 5, + "label": { + "public": "OpenSea: Fees 3" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 1, + "label": { + "public": "OpenSea: Fees 3" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 420, + "label": { + "public": "OpenSea: Fees 3" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 8453, + "label": { + "public": "OpenSea: Fees 3" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 84531, + "label": { + "public": "OpenSea: Fees 3" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 7777777, + "label": { + "public": "OpenSea: Fees 3" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + } + ], + "0x9652721d02b9db43f4311102820158abb4ecc95b": [ + { + "chainId": 0, + "isContract": false, + "ensNew": { + "handle": "mint.base.eth", + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": "base", + "avatar": "https://i.imgur.com/7Q0QBrm.jpg", + "fid": 12142 + } + } + ], + "0x1e0049783f008a0085193e00003d00cd54003c71": [ + { + "chainId": 11155111, + "label": { + "public": "OpenSea: Conduit" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 999, + "label": { + "public": "OpenSea: Conduit" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 5, + "label": { + "public": "OpenSea: Conduit" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 1, + "label": { + "public": "OpenSea: Conduit" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 420, + "label": { + "public": "OpenSea: Conduit" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 8453, + "label": { + "public": "OpenSea: Conduit" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 84531, + "label": { + "public": "OpenSea: Conduit" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 84532, + "label": { + "public": "OpenSea: Conduit" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 7777777, + "label": { + "public": "OpenSea: Conduit" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 11155420, + "label": { + "public": "OpenSea: Conduit" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 999999999, + "label": { + "public": "OpenSea: Conduit" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + } + ], + "0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a": [ + { + "chainId": 8453, + "label": { + "public": "No Disk Required" + }, + "isContract": true, + "tokenStandard": "erc1155", + "imgUrl": "", + "decimals": 18, + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + } + ], + "0x805e0a08de70f85c01f7848370d5e3fc08aad0ea": [ + { + "chainId": 10, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 8453, + "label": { + "public": "" + }, + "isContract": true, + "tokenStandard": "erc1155", + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 1, + "label": { + "public": "" + }, + "isContract": true, + "tokenStandard": "erc721", + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 5, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 84531, + "label": { + "public": "" + }, + "isContract": true, + "tokenStandard": "erc721", + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 999999999, + "label": { + "public": "" + }, + "isContract": true, + "tokenStandard": "erc20", + "imgUrl": "", + "decimals": "0", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + } + ], + "0x7bf90111ad7c22bec9e9dff8a01a44713cc1b1b6": [ + { + "chainId": 8453, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + } + ], + "0xfb1bffc9d739b8d520daf37df666da4c687191ea": [ + { + "chainId": 919, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 8453, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 11155111, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 59144, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 420, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 1, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 5, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 84531, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 84532, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 7777777, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 11155420, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + }, + { + "chainId": 999999999, + "label": { + "public": "" + }, + "isContract": true, + "imgUrl": "", + "decimals": "", + "symbol": "", + "ensNew": { + "handle": null, + "avatar": null + }, + "bns": { + "handle": null, + "avatar": null + }, + "farcaster": { + "handle": null, + "avatar": null, + "fid": null + } + } + ] + }, + "assetsEnriched": { + "0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a-1": { + "contract": "0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a", + "tokenId": "1", + "type": "erc1155", + "value": "1", + "imageUrl": "https://api-base.reservoir.tools/redirect/tokens/0x6541dc28acb78e1b024f5ffe1c840bc3e6fcf36a:1/image/v1?imageSize=small" + } + } +} \ No newline at end of file diff --git a/src/helpers/utils.ts b/src/helpers/utils.ts index 795d2d9f..66ac5b1d 100644 --- a/src/helpers/utils.ts +++ b/src/helpers/utils.ts @@ -17,8 +17,6 @@ import { RawBlock, StdObj, NetAssetTransfers, - ERC20Asset, - ETHAsset, ERC721Asset, ERC1155Asset, AssetTransfer,