@sentio/sdk 2.0.0-rc.2 → 2.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/aptos/api.d.ts +5 -0
- package/lib/aptos/api.js +21 -0
- package/lib/aptos/api.js.map +1 -0
- package/lib/aptos/aptos-plugin.d.ts +14 -0
- package/lib/aptos/aptos-plugin.js +146 -0
- package/lib/aptos/aptos-plugin.js.map +1 -0
- package/lib/aptos/aptos-processor.d.ts +72 -0
- package/lib/aptos/aptos-processor.js +201 -0
- package/lib/aptos/aptos-processor.js.map +1 -0
- package/lib/aptos/builtin/0x1.d.ts +1914 -0
- package/lib/aptos/builtin/0x1.js +2727 -0
- package/lib/aptos/builtin/0x1.js.map +1 -0
- package/lib/aptos/builtin/0x3.d.ts +491 -0
- package/lib/aptos/builtin/0x3.js +496 -0
- package/lib/aptos/builtin/0x3.js.map +1 -0
- package/lib/aptos/builtin/index.d.ts +2 -0
- package/lib/aptos/builtin/index.js +6 -0
- package/lib/aptos/builtin/index.js.map +1 -0
- package/lib/aptos/codegen/codegen.d.ts +21 -0
- package/lib/aptos/codegen/codegen.js +380 -0
- package/lib/aptos/codegen/codegen.js.map +1 -0
- package/lib/aptos/codegen/index.d.ts +1 -0
- package/lib/aptos/codegen/index.js +2 -0
- package/lib/aptos/codegen/index.js.map +1 -0
- package/lib/aptos/codegen/typegen.d.ts +18 -0
- package/lib/aptos/codegen/typegen.js +145 -0
- package/lib/aptos/codegen/typegen.js.map +1 -0
- package/lib/{core/generic-processor.test.d.ts → aptos/codegen/typegen.test.d.ts} +0 -0
- package/lib/aptos/codegen/typegen.test.js.map +1 -0
- package/lib/aptos/context.d.ts +21 -0
- package/lib/aptos/context.js +59 -0
- package/lib/aptos/context.js.map +1 -0
- package/lib/aptos/index.d.ts +9 -0
- package/lib/aptos/index.js +8 -0
- package/lib/aptos/index.js.map +1 -0
- package/lib/aptos/models.d.ts +27 -0
- package/lib/aptos/models.js +2 -0
- package/lib/aptos/models.js.map +1 -0
- package/lib/aptos/move-coder.d.ts +22 -0
- package/lib/aptos/move-coder.js +162 -0
- package/lib/aptos/move-coder.js.map +1 -0
- package/lib/aptos/move-types.d.ts +10 -0
- package/lib/aptos/move-types.js +2 -0
- package/lib/aptos/move-types.js.map +1 -0
- package/lib/aptos/network.d.ts +11 -0
- package/lib/aptos/network.js +27 -0
- package/lib/aptos/network.js.map +1 -0
- package/lib/aptos/run-codegen.d.ts +1 -0
- package/lib/aptos/run-codegen.js +12 -0
- package/lib/aptos/run-codegen.js.map +1 -0
- package/lib/aptos/tests/aptos.test.d.ts +1 -0
- package/lib/aptos/tests/aptos.test.js.map +1 -0
- package/lib/aptos/tests/souffl3.d.ts +1 -0
- package/lib/aptos/tests/souffl3.js +44 -0
- package/lib/aptos/tests/souffl3.js.map +1 -0
- package/lib/aptos/tests/types/index.d.ts +3 -0
- package/lib/aptos/tests/types/index.js +7 -0
- package/lib/aptos/tests/types/index.js.map +1 -0
- package/lib/aptos/tests/types/reserved.d.ts +345 -0
- package/lib/aptos/tests/types/reserved.js +301 -0
- package/lib/aptos/tests/types/reserved.js.map +1 -0
- package/lib/aptos/tests/types/soffl3.d.ts +812 -0
- package/lib/aptos/tests/types/soffl3.js +548 -0
- package/lib/aptos/tests/types/soffl3.js.map +1 -0
- package/lib/aptos/tests/types/souffle.d.ts +340 -0
- package/lib/aptos/tests/types/souffle.js +295 -0
- package/lib/aptos/tests/types/souffle.js.map +1 -0
- package/lib/aptos/types.d.ts +9 -0
- package/lib/aptos/types.js +130 -0
- package/lib/aptos/types.js.map +1 -0
- package/lib/aptos/types.test.d.ts +1 -0
- package/lib/aptos/types.test.js.map +1 -0
- package/lib/aptos/utils.d.ts +7 -0
- package/lib/aptos/utils.js +20 -0
- package/lib/aptos/utils.js.map +1 -0
- package/lib/core/base-context.d.ts +4 -4
- package/lib/core/base-context.js +7 -11
- package/lib/core/base-context.js.map +1 -1
- package/lib/core/big-decimal.d.ts +2 -0
- package/lib/core/big-decimal.js +11 -7
- package/lib/core/big-decimal.js.map +1 -1
- package/lib/{utils → core}/chain.d.ts +0 -0
- package/lib/{utils → core}/chain.js +7 -12
- package/lib/core/chain.js.map +1 -0
- package/lib/core/core-plugin.js +9 -13
- package/lib/core/core-plugin.js.map +1 -1
- package/lib/core/event-tracker.d.ts +2 -2
- package/lib/core/event-tracker.js +6 -13
- package/lib/core/event-tracker.js.map +1 -1
- package/lib/core/exporter.d.ts +2 -2
- package/lib/core/exporter.js +4 -9
- package/lib/core/exporter.js.map +1 -1
- package/lib/core/index.d.ts +10 -9
- package/lib/core/index.js +10 -32
- package/lib/core/index.js.map +1 -1
- package/lib/core/logger.d.ts +2 -2
- package/lib/core/logger.js +7 -11
- package/lib/core/logger.js.map +1 -1
- package/lib/core/metadata.d.ts +4 -0
- package/lib/core/metadata.js +21 -7
- package/lib/core/metadata.js.map +1 -1
- package/lib/core/meter.d.ts +3 -7
- package/lib/core/meter.js +22 -57
- package/lib/core/meter.js.map +1 -1
- package/lib/core/meter.test.js.map +1 -1
- package/lib/core/numberish.d.ts +1 -3
- package/lib/core/numberish.js +11 -26
- package/lib/core/numberish.js.map +1 -1
- package/lib/core/numberish.test.js.map +1 -1
- package/lib/core/sui-plugin.js +12 -16
- package/lib/core/sui-plugin.js.map +1 -1
- package/lib/core/sui-processor.d.ts +1 -1
- package/lib/core/sui-processor.js +6 -12
- package/lib/core/sui-processor.js.map +1 -1
- package/lib/eth/account-processor-state.d.ts +1 -1
- package/lib/eth/account-processor-state.js +2 -6
- package/lib/eth/account-processor-state.js.map +1 -1
- package/lib/eth/account-processor.d.ts +7 -7
- package/lib/eth/account-processor.js +23 -27
- package/lib/eth/account-processor.js.map +1 -1
- package/lib/eth/base-processor-template.d.ts +9 -8
- package/lib/eth/base-processor-template.js +8 -14
- package/lib/eth/base-processor-template.js.map +1 -1
- package/lib/eth/base-processor.d.ts +8 -7
- package/lib/eth/base-processor.js +21 -27
- package/lib/eth/base-processor.js.map +1 -1
- package/lib/{core → eth}/bind-options.d.ts +0 -0
- package/lib/eth/bind-options.js +40 -0
- package/lib/eth/bind-options.js.map +1 -0
- package/lib/eth/binds.d.ts +3 -3
- package/lib/eth/binds.js +11 -19
- package/lib/eth/binds.js.map +1 -1
- package/lib/eth/builtin/eacaggregatorproxy/index.d.ts +3 -0
- package/lib/eth/builtin/eacaggregatorproxy/index.js +7 -0
- package/lib/eth/builtin/eacaggregatorproxy/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/eacaggregatorproxy/test-utils.d.ts +1 -1
- package/lib/{builtin → eth/builtin}/eacaggregatorproxy/test-utils.js +9 -16
- package/lib/eth/builtin/eacaggregatorproxy/test-utils.js.map +1 -0
- package/lib/eth/builtin/erc1155/index.d.ts +3 -0
- package/lib/eth/builtin/erc1155/index.js +7 -0
- package/lib/eth/builtin/erc1155/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/erc1155/test-utils.d.ts +1 -1
- package/lib/{builtin → eth/builtin}/erc1155/test-utils.js +9 -16
- package/lib/eth/builtin/erc1155/test-utils.js.map +1 -0
- package/lib/eth/builtin/erc20/index.d.ts +3 -0
- package/lib/eth/builtin/erc20/index.js +7 -0
- package/lib/eth/builtin/erc20/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/erc20/test-utils.d.ts +1 -1
- package/lib/{builtin → eth/builtin}/erc20/test-utils.js +7 -13
- package/lib/eth/builtin/erc20/test-utils.js.map +1 -0
- package/lib/eth/builtin/erc20bytes/index.d.ts +3 -0
- package/lib/eth/builtin/erc20bytes/index.js +7 -0
- package/lib/eth/builtin/erc20bytes/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/erc20bytes/test-utils.d.ts +1 -1
- package/lib/{builtin → eth/builtin}/erc20bytes/test-utils.js +5 -10
- package/lib/eth/builtin/erc20bytes/test-utils.js.map +1 -0
- package/lib/eth/builtin/erc721/index.d.ts +3 -0
- package/lib/eth/builtin/erc721/index.js +7 -0
- package/lib/eth/builtin/erc721/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/erc721/test-utils.d.ts +1 -1
- package/lib/{builtin → eth/builtin}/erc721/test-utils.js +7 -13
- package/lib/eth/builtin/erc721/test-utils.js.map +1 -0
- package/lib/eth/builtin/index.d.ts +8 -0
- package/lib/eth/builtin/index.js +9 -0
- package/lib/eth/builtin/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/EACAggregatorProxy.d.ts +6 -6
- package/lib/eth/builtin/internal/EACAggregatorProxy.js +2 -0
- package/lib/eth/builtin/internal/EACAggregatorProxy.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/ERC1155.d.ts +6 -6
- package/lib/eth/builtin/internal/ERC1155.js +2 -0
- package/lib/eth/builtin/internal/ERC1155.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/ERC20.d.ts +5 -5
- package/lib/eth/builtin/internal/ERC20.js +2 -0
- package/lib/eth/builtin/internal/ERC20.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/ERC20Bytes.d.ts +4 -4
- package/lib/eth/builtin/internal/ERC20Bytes.js +2 -0
- package/lib/eth/builtin/internal/ERC20Bytes.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/ERC721.d.ts +5 -5
- package/lib/eth/builtin/internal/ERC721.js +2 -0
- package/lib/eth/builtin/internal/ERC721.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/WETH9.d.ts +6 -6
- package/lib/eth/builtin/internal/WETH9.js +2 -0
- package/lib/eth/builtin/internal/WETH9.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/common.d.ts +4 -2
- package/lib/{builtin → eth/builtin}/internal/common.js +1 -2
- package/lib/eth/builtin/internal/common.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/eacaggregatorproxy_processor.d.ts +3 -3
- package/lib/{builtin → eth/builtin}/internal/eacaggregatorproxy_processor.js +123 -221
- package/lib/eth/builtin/internal/eacaggregatorproxy_processor.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/erc1155_processor.d.ts +3 -3
- package/lib/{builtin → eth/builtin}/internal/erc1155_processor.js +45 -78
- package/lib/eth/builtin/internal/erc1155_processor.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/erc20_processor.d.ts +3 -3
- package/lib/{builtin → eth/builtin}/internal/erc20_processor.js +63 -111
- package/lib/eth/builtin/internal/erc20_processor.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/erc20bytes_processor.d.ts +3 -3
- package/lib/{builtin → eth/builtin}/internal/erc20bytes_processor.js +51 -89
- package/lib/eth/builtin/internal/erc20bytes_processor.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/erc721_processor.d.ts +3 -3
- package/lib/{builtin → eth/builtin}/internal/erc721_processor.js +69 -122
- package/lib/eth/builtin/internal/erc721_processor.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/factories/EACAggregatorProxy__factory.d.ts +1 -1
- package/lib/{builtin → eth/builtin}/internal/factories/EACAggregatorProxy__factory.js +4 -8
- package/lib/eth/builtin/internal/factories/EACAggregatorProxy__factory.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/factories/ERC1155__factory.d.ts +1 -1
- package/lib/{builtin → eth/builtin}/internal/factories/ERC1155__factory.js +4 -8
- package/lib/eth/builtin/internal/factories/ERC1155__factory.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/factories/ERC20Bytes__factory.d.ts +1 -1
- package/lib/{builtin → eth/builtin}/internal/factories/ERC20Bytes__factory.js +4 -8
- package/lib/eth/builtin/internal/factories/ERC20Bytes__factory.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/factories/ERC20__factory.d.ts +1 -1
- package/lib/{builtin → eth/builtin}/internal/factories/ERC20__factory.js +4 -8
- package/lib/eth/builtin/internal/factories/ERC20__factory.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/factories/ERC721__factory.d.ts +1 -1
- package/lib/{builtin → eth/builtin}/internal/factories/ERC721__factory.js +4 -8
- package/lib/eth/builtin/internal/factories/ERC721__factory.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/factories/WETH9__factory.d.ts +1 -1
- package/lib/{builtin → eth/builtin}/internal/factories/WETH9__factory.js +4 -8
- package/lib/eth/builtin/internal/factories/WETH9__factory.js.map +1 -0
- package/lib/eth/builtin/internal/factories/index.d.ts +6 -0
- package/lib/eth/builtin/internal/factories/index.js +10 -0
- package/lib/eth/builtin/internal/factories/index.js.map +1 -0
- package/lib/eth/builtin/internal/index.d.ts +13 -0
- package/lib/eth/builtin/internal/index.js +8 -0
- package/lib/eth/builtin/internal/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/weth9_processor.d.ts +3 -3
- package/lib/{builtin → eth/builtin}/internal/weth9_processor.js +51 -89
- package/lib/eth/builtin/internal/weth9_processor.js.map +1 -0
- package/lib/eth/builtin/weth9/index.d.ts +3 -0
- package/lib/eth/builtin/weth9/index.js +7 -0
- package/lib/eth/builtin/weth9/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/weth9/test-utils.d.ts +1 -1
- package/lib/{builtin → eth/builtin}/weth9/test-utils.js +9 -16
- package/lib/eth/builtin/weth9/test-utils.js.map +1 -0
- package/lib/eth/codegen/codegen.d.ts +1 -0
- package/lib/eth/codegen/codegen.js +53 -0
- package/lib/eth/codegen/codegen.js.map +1 -0
- package/lib/{target-ethers-sentio/index.d.ts → eth/codegen/ethers-sentio.d.ts} +1 -1
- package/lib/eth/codegen/ethers-sentio.js +57 -0
- package/lib/eth/codegen/ethers-sentio.js.map +1 -0
- package/lib/{target-ethers-sentio → eth/codegen}/event-handler.d.ts +0 -0
- package/lib/eth/codegen/event-handler.js +46 -0
- package/lib/eth/codegen/event-handler.js.map +1 -0
- package/lib/{target-ethers-sentio → eth/codegen}/file.d.ts +0 -0
- package/lib/{target-ethers-sentio → eth/codegen}/file.js +33 -39
- package/lib/eth/codegen/file.js.map +1 -0
- package/lib/{target-ethers-sentio → eth/codegen}/functions-handler.d.ts +0 -0
- package/lib/{target-ethers-sentio → eth/codegen}/functions-handler.js +12 -18
- package/lib/eth/codegen/functions-handler.js.map +1 -0
- package/lib/eth/codegen/index.d.ts +1 -0
- package/lib/eth/codegen/index.js +2 -0
- package/lib/eth/codegen/index.js.map +1 -0
- package/lib/{target-ethers-sentio → eth/codegen}/types.d.ts +0 -0
- package/lib/{target-ethers-sentio → eth/codegen}/types.js +3 -9
- package/lib/eth/codegen/types.js.map +1 -0
- package/lib/{target-ethers-sentio → eth/codegen}/view-function.d.ts +0 -0
- package/lib/eth/codegen/view-function.js +62 -0
- package/lib/eth/codegen/view-function.js.map +1 -0
- package/lib/{core → eth}/context.d.ts +5 -5
- package/lib/{core → eth}/context.js +14 -23
- package/lib/eth/context.js.map +1 -0
- package/lib/eth/error.d.ts +1 -0
- package/lib/eth/error.js +3 -0
- package/lib/eth/error.js.map +1 -0
- package/lib/eth/eth-plugin.js +30 -34
- package/lib/eth/eth-plugin.js.map +1 -1
- package/lib/eth/eth.d.ts +13 -0
- package/lib/eth/eth.js +44 -0
- package/lib/eth/eth.js.map +1 -0
- package/lib/eth/generic-processor.d.ts +3 -3
- package/lib/eth/generic-processor.js +9 -13
- package/lib/eth/generic-processor.js.map +1 -1
- package/lib/eth/generic-processor.test.d.ts +1 -0
- package/lib/eth/generic-processor.test.js.map +1 -0
- package/lib/eth/index.d.ts +11 -6
- package/lib/eth/index.js +10 -14
- package/lib/eth/index.js.map +1 -1
- package/lib/eth/provider.js +13 -17
- package/lib/eth/provider.js.map +1 -1
- package/lib/eth/run-codegen.d.ts +2 -0
- package/lib/eth/run-codegen.js +12 -0
- package/lib/eth/run-codegen.js.map +1 -0
- package/lib/eth/trace.js +1 -2
- package/lib/eth/trace.js.map +1 -1
- package/lib/index.d.ts +2 -5
- package/lib/index.js +3 -18
- package/lib/index.js.map +1 -1
- package/lib/jest.config.d.ts +9 -0
- package/lib/jest.config.js +9 -0
- package/lib/jest.config.js.map +1 -0
- package/lib/promise-or-void.js +1 -2
- package/lib/solana/builtin/index.d.ts +1 -0
- package/lib/solana/builtin/index.js +2 -0
- package/lib/solana/builtin/index.js.map +1 -0
- package/lib/solana/builtin/spl-token-processor.d.ts +39 -0
- package/lib/solana/builtin/spl-token-processor.js +254 -0
- package/lib/solana/builtin/spl-token-processor.js.map +1 -0
- package/lib/solana/builtin/types.d.ts +427 -0
- package/lib/solana/builtin/types.js +200 -0
- package/lib/solana/builtin/types.js.map +1 -0
- package/lib/solana/codegen/codegen.d.ts +1 -0
- package/lib/solana/codegen/codegen.js +122 -0
- package/lib/solana/codegen/codegen.js.map +1 -0
- package/lib/solana/codegen/index.d.ts +1 -0
- package/lib/solana/codegen/index.js +2 -0
- package/lib/solana/codegen/index.js.map +1 -0
- package/lib/solana/index.d.ts +4 -0
- package/lib/solana/index.js +5 -0
- package/lib/solana/index.js.map +1 -0
- package/lib/solana/run-codegen.d.ts +2 -0
- package/lib/solana/run-codegen.js +12 -0
- package/lib/solana/run-codegen.js.map +1 -0
- package/lib/solana/solana-context.d.ts +9 -0
- package/lib/solana/solana-context.js +28 -0
- package/lib/solana/solana-context.js.map +1 -0
- package/lib/solana/solana-options.d.ts +10 -0
- package/lib/solana/solana-options.js +10 -0
- package/lib/solana/solana-options.js.map +1 -0
- package/lib/solana/solana-plugin.d.ts +9 -0
- package/lib/solana/solana-plugin.js +87 -0
- package/lib/solana/solana-plugin.js.map +1 -0
- package/lib/solana/solana-processor.d.ts +43 -0
- package/lib/solana/solana-processor.js +72 -0
- package/lib/solana/solana-processor.js.map +1 -0
- package/lib/solana/tests/solana.test.d.ts +1 -0
- package/lib/solana/tests/solana.test.js.map +1 -0
- package/lib/solana/tests/types/basic_1.d.ts +26 -0
- package/lib/solana/tests/types/basic_1.js +63 -0
- package/lib/solana/tests/types/basic_1.js.map +1 -0
- package/lib/solana/tests/types/basic_1_processor.d.ts +21 -0
- package/lib/solana/tests/types/basic_1_processor.js +35 -0
- package/lib/solana/tests/types/basic_1_processor.js.map +1 -0
- package/lib/solana/tests/types/token_bridge.d.ts +29 -0
- package/lib/solana/tests/types/token_bridge.js +938 -0
- package/lib/solana/tests/types/token_bridge.js.map +1 -0
- package/lib/solana/tests/types/token_bridge_processor.d.ts +212 -0
- package/lib/solana/tests/types/token_bridge_processor.js +134 -0
- package/lib/solana/tests/types/token_bridge_processor.js.map +1 -0
- package/lib/solana/tests/wormhole-token-bridge.d.ts +15 -0
- package/lib/solana/tests/wormhole-token-bridge.js +79 -0
- package/lib/solana/tests/wormhole-token-bridge.js.map +1 -0
- package/lib/testing/index.d.ts +3 -2
- package/lib/testing/index.js +3 -10
- package/lib/testing/index.js.map +1 -1
- package/lib/testing/metric-utils.d.ts +1 -1
- package/lib/testing/metric-utils.js +7 -13
- package/lib/testing/metric-utils.js.map +1 -1
- package/lib/testing/test-processor-server.d.ts +3 -4
- package/lib/testing/test-processor-server.js +24 -29
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/testing/test-provider.js +5 -9
- package/lib/testing/test-provider.js.map +1 -1
- package/lib/tsup.config.ts +31 -0
- package/lib/utils/conversion.d.ts +0 -5
- package/lib/utils/conversion.js +22 -27
- package/lib/utils/conversion.js.map +1 -1
- package/lib/utils/dex-price.js +14 -19
- package/lib/utils/dex-price.js.map +1 -1
- package/lib/utils/dex-price.test.js.map +1 -1
- package/lib/utils/erc20.test.js.map +1 -1
- package/lib/utils/index.d.ts +3 -4
- package/lib/utils/index.js +3 -8
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/price.d.ts +11 -11
- package/lib/utils/price.js +10 -16
- package/lib/utils/price.js.map +1 -1
- package/lib/utils/token.d.ts +1 -2
- package/lib/utils/token.js +23 -40
- package/lib/utils/token.js.map +1 -1
- package/package.json +51 -25
- package/src/aptos/abis/0x1.json +9205 -0
- package/src/aptos/abis/0x3.json +1515 -0
- package/src/aptos/api.ts +23 -0
- package/src/aptos/aptos-plugin.ts +183 -0
- package/src/aptos/aptos-processor.ts +331 -0
- package/src/aptos/builtin/0x1.ts +4685 -0
- package/src/aptos/builtin/0x3.ts +1010 -0
- package/src/{builtin/weth9 → aptos/builtin}/index.ts +2 -3
- package/src/aptos/codegen/codegen.ts +457 -0
- package/src/aptos/codegen/index.ts +1 -0
- package/src/aptos/codegen/tsconfig.json +8 -0
- package/src/aptos/codegen/typegen.ts +165 -0
- package/src/aptos/context.ts +72 -0
- package/src/aptos/index.ts +10 -0
- package/src/aptos/models.ts +35 -0
- package/src/aptos/move-coder.ts +199 -0
- package/src/aptos/move-types.ts +11 -0
- package/src/aptos/network.ts +29 -0
- package/src/aptos/run-codegen.ts +13 -0
- package/src/aptos/tests/abis/reserved.json +402 -0
- package/src/aptos/tests/abis/soffl3.json +1411 -0
- package/src/aptos/tests/abis/souffle.json +389 -0
- package/src/aptos/tests/souffl3.ts +57 -0
- package/src/aptos/tests/types/index.ts +6 -0
- package/src/aptos/tests/types/reserved.ts +781 -0
- package/src/aptos/tests/types/soffl3.ts +1567 -0
- package/src/aptos/tests/types/souffle.ts +780 -0
- package/src/aptos/types.ts +149 -0
- package/src/aptos/utils.ts +26 -0
- package/src/core/base-context.ts +4 -4
- package/src/core/big-decimal.ts +11 -0
- package/src/{utils → core}/chain.ts +0 -0
- package/src/core/core-plugin.ts +3 -3
- package/src/core/event-tracker.ts +2 -2
- package/src/core/exporter.ts +3 -3
- package/src/core/index.ts +10 -10
- package/src/core/logger.ts +2 -2
- package/src/core/metadata.ts +23 -2
- package/src/core/meter.ts +3 -26
- package/src/core/numberish.ts +1 -12
- package/src/core/sui-plugin.ts +2 -2
- package/src/core/sui-processor.ts +1 -1
- package/src/{abis → eth/abis}/EACAggregatorProxy.json +0 -0
- package/src/{abis → eth/abis}/ERC1155.json +0 -0
- package/src/{abis → eth/abis}/ERC20.json +0 -0
- package/src/{abis → eth/abis}/ERC20Bytes.json +0 -0
- package/src/{abis → eth/abis}/ERC721.json +0 -0
- package/src/{abis → eth/abis}/WETH9.json +0 -0
- package/src/eth/account-processor-state.ts +1 -1
- package/src/eth/account-processor.ts +11 -11
- package/src/eth/base-processor-template.ts +8 -7
- package/src/eth/base-processor.ts +12 -22
- package/src/{core → eth}/bind-options.ts +0 -0
- package/src/eth/binds.ts +3 -3
- package/src/eth/builtin/eacaggregatorproxy/index.ts +7 -0
- package/src/{builtin → eth/builtin}/eacaggregatorproxy/test-utils.ts +1 -1
- package/src/eth/builtin/erc1155/index.ts +7 -0
- package/src/{builtin → eth/builtin}/erc1155/test-utils.ts +1 -1
- package/src/eth/builtin/erc20/index.ts +7 -0
- package/src/{builtin → eth/builtin}/erc20/test-utils.ts +1 -1
- package/src/eth/builtin/erc20bytes/index.ts +7 -0
- package/src/{builtin → eth/builtin}/erc20bytes/test-utils.ts +1 -1
- package/src/eth/builtin/erc721/index.ts +7 -0
- package/src/{builtin → eth/builtin}/erc721/test-utils.ts +1 -1
- package/src/eth/builtin/index.ts +8 -0
- package/src/{builtin → eth/builtin}/internal/EACAggregatorProxy.ts +6 -10
- package/src/{builtin → eth/builtin}/internal/ERC1155.ts +6 -10
- package/src/{builtin → eth/builtin}/internal/ERC20.ts +5 -8
- package/src/{builtin → eth/builtin}/internal/ERC20Bytes.ts +4 -6
- package/src/{builtin → eth/builtin}/internal/ERC721.ts +5 -8
- package/src/{builtin → eth/builtin}/internal/WETH9.ts +6 -10
- package/src/eth/builtin/internal/common.ts +22 -0
- package/src/{builtin → eth/builtin}/internal/eacaggregatorproxy_processor.ts +93 -165
- package/src/{builtin → eth/builtin}/internal/erc1155_processor.ts +28 -52
- package/src/{builtin → eth/builtin}/internal/erc20_processor.ts +43 -75
- package/src/{builtin → eth/builtin}/internal/erc20bytes_processor.ts +33 -57
- package/src/{builtin → eth/builtin}/internal/erc721_processor.ts +48 -84
- package/src/{builtin → eth/builtin}/internal/factories/EACAggregatorProxy__factory.ts +1 -1
- package/src/{builtin → eth/builtin}/internal/factories/ERC1155__factory.ts +1 -1
- package/src/{builtin → eth/builtin}/internal/factories/ERC20Bytes__factory.ts +1 -1
- package/src/{builtin → eth/builtin}/internal/factories/ERC20__factory.ts +1 -1
- package/src/{builtin → eth/builtin}/internal/factories/ERC721__factory.ts +1 -1
- package/src/{builtin → eth/builtin}/internal/factories/WETH9__factory.ts +1 -1
- package/src/eth/builtin/internal/factories/index.ts +9 -0
- package/src/eth/builtin/internal/index.ts +16 -0
- package/src/{builtin → eth/builtin}/internal/weth9_processor.ts +33 -57
- package/src/eth/builtin/weth9/index.ts +7 -0
- package/src/{builtin → eth/builtin}/weth9/test-utils.ts +1 -1
- package/src/eth/codegen/codegen.ts +62 -0
- package/src/{target-ethers-sentio/index.ts → eth/codegen/ethers-sentio.ts} +5 -2
- package/src/{target-ethers-sentio → eth/codegen}/event-handler.ts +2 -2
- package/src/{target-ethers-sentio → eth/codegen}/file.ts +13 -12
- package/src/{target-ethers-sentio → eth/codegen}/functions-handler.ts +4 -5
- package/src/eth/codegen/index.ts +1 -0
- package/src/eth/codegen/tsconfig.json +8 -0
- package/src/{target-ethers-sentio → eth/codegen}/types.ts +1 -1
- package/src/{target-ethers-sentio → eth/codegen}/view-function.ts +7 -12
- package/src/{core → eth}/context.ts +5 -6
- package/src/eth/error.ts +4 -0
- package/src/eth/eth-plugin.ts +3 -3
- package/src/eth/eth.ts +56 -0
- package/src/eth/generic-processor.ts +5 -5
- package/src/eth/index.ts +12 -6
- package/src/eth/provider.ts +4 -3
- package/src/eth/run-codegen.ts +12 -0
- package/src/index.ts +2 -9
- package/src/jest.config.ts +8 -0
- package/src/solana/builtin/index.ts +1 -0
- package/src/solana/builtin/spl-token-processor.ts +298 -0
- package/src/solana/builtin/types.ts +279 -0
- package/src/solana/codegen/codegen.ts +140 -0
- package/src/solana/codegen/index.ts +1 -0
- package/src/solana/codegen/tsconfig.json +8 -0
- package/src/solana/index.ts +4 -0
- package/src/solana/run-codegen.ts +13 -0
- package/src/solana/solana-context.ts +30 -0
- package/src/solana/solana-options.ts +11 -0
- package/src/solana/solana-plugin.ts +103 -0
- package/src/solana/solana-processor.ts +102 -0
- package/src/solana/tests/abis/basic_1.json +62 -0
- package/src/solana/tests/abis/token_bridge.json +937 -0
- package/src/solana/tests/types/basic_1.ts +62 -0
- package/src/solana/tests/types/basic_1_processor.ts +42 -0
- package/src/solana/tests/types/token_bridge.ts +937 -0
- package/src/solana/tests/types/token_bridge_processor.ts +150 -0
- package/src/solana/tests/wormhole-token-bridge.ts +96 -0
- package/src/testing/index.ts +3 -3
- package/src/testing/metric-utils.ts +2 -2
- package/src/testing/test-processor-server.ts +5 -5
- package/src/testing/test-provider.ts +1 -1
- package/src/tsup.config.ts +31 -0
- package/src/utils/conversion.ts +21 -25
- package/src/utils/dex-price.ts +4 -5
- package/src/utils/index.ts +3 -4
- package/src/utils/price.ts +1 -1
- package/src/utils/token.ts +20 -31
- package/lib/builtin/eacaggregatorproxy/index.d.ts +0 -2
- package/lib/builtin/eacaggregatorproxy/index.js +0 -9
- package/lib/builtin/eacaggregatorproxy/index.js.map +0 -1
- package/lib/builtin/eacaggregatorproxy/test-utils.js.map +0 -1
- package/lib/builtin/erc1155/index.d.ts +0 -2
- package/lib/builtin/erc1155/index.js +0 -9
- package/lib/builtin/erc1155/index.js.map +0 -1
- package/lib/builtin/erc1155/test-utils.js.map +0 -1
- package/lib/builtin/erc20/index.d.ts +0 -2
- package/lib/builtin/erc20/index.js +0 -9
- package/lib/builtin/erc20/index.js.map +0 -1
- package/lib/builtin/erc20/test-utils.js.map +0 -1
- package/lib/builtin/erc20bytes/index.d.ts +0 -2
- package/lib/builtin/erc20bytes/index.js +0 -9
- package/lib/builtin/erc20bytes/index.js.map +0 -1
- package/lib/builtin/erc20bytes/test-utils.js.map +0 -1
- package/lib/builtin/erc721/index.d.ts +0 -2
- package/lib/builtin/erc721/index.js +0 -9
- package/lib/builtin/erc721/index.js.map +0 -1
- package/lib/builtin/erc721/test-utils.js.map +0 -1
- package/lib/builtin/index.d.ts +0 -4
- package/lib/builtin/index.js +0 -9
- package/lib/builtin/index.js.map +0 -1
- package/lib/builtin/internal/EACAggregatorProxy.js +0 -3
- package/lib/builtin/internal/EACAggregatorProxy.js.map +0 -1
- package/lib/builtin/internal/ERC1155.js +0 -3
- package/lib/builtin/internal/ERC1155.js.map +0 -1
- package/lib/builtin/internal/ERC20.js +0 -3
- package/lib/builtin/internal/ERC20.js.map +0 -1
- package/lib/builtin/internal/ERC20Bytes.js +0 -3
- package/lib/builtin/internal/ERC20Bytes.js.map +0 -1
- package/lib/builtin/internal/ERC721.js +0 -3
- package/lib/builtin/internal/ERC721.js.map +0 -1
- package/lib/builtin/internal/WETH9.js +0 -3
- package/lib/builtin/internal/WETH9.js.map +0 -1
- package/lib/builtin/internal/common.js.map +0 -1
- package/lib/builtin/internal/eacaggregatorproxy_processor.js.map +0 -1
- package/lib/builtin/internal/erc1155_processor.js.map +0 -1
- package/lib/builtin/internal/erc20_processor.js.map +0 -1
- package/lib/builtin/internal/erc20bytes_processor.js.map +0 -1
- package/lib/builtin/internal/erc721_processor.js.map +0 -1
- package/lib/builtin/internal/factories/EACAggregatorProxy__factory.js.map +0 -1
- package/lib/builtin/internal/factories/ERC1155__factory.js.map +0 -1
- package/lib/builtin/internal/factories/ERC20Bytes__factory.js.map +0 -1
- package/lib/builtin/internal/factories/ERC20__factory.js.map +0 -1
- package/lib/builtin/internal/factories/ERC721__factory.js.map +0 -1
- package/lib/builtin/internal/factories/WETH9__factory.js.map +0 -1
- package/lib/builtin/internal/factories/index.d.ts +0 -6
- package/lib/builtin/internal/factories/index.js +0 -19
- package/lib/builtin/internal/factories/index.js.map +0 -1
- package/lib/builtin/internal/index.d.ts +0 -13
- package/lib/builtin/internal/index.js +0 -18
- package/lib/builtin/internal/index.js.map +0 -1
- package/lib/builtin/internal/weth9_processor.js.map +0 -1
- package/lib/builtin/weth9/index.d.ts +0 -2
- package/lib/builtin/weth9/index.js +0 -9
- package/lib/builtin/weth9/index.js.map +0 -1
- package/lib/builtin/weth9/test-utils.js.map +0 -1
- package/lib/core/bind-options.js +0 -47
- package/lib/core/bind-options.js.map +0 -1
- package/lib/core/context.js.map +0 -1
- package/lib/core/generic-processor.test.js.map +0 -1
- package/lib/error.d.ts +0 -7
- package/lib/error.js +0 -43
- package/lib/error.js.map +0 -1
- package/lib/target-ethers-sentio/event-handler.js +0 -52
- package/lib/target-ethers-sentio/event-handler.js.map +0 -1
- package/lib/target-ethers-sentio/file.js.map +0 -1
- package/lib/target-ethers-sentio/functions-handler.js.map +0 -1
- package/lib/target-ethers-sentio/index.js +0 -58
- package/lib/target-ethers-sentio/index.js.map +0 -1
- package/lib/target-ethers-sentio/types.js.map +0 -1
- package/lib/target-ethers-sentio/view-function.js +0 -74
- package/lib/target-ethers-sentio/view-function.js.map +0 -1
- package/lib/utils/chain.js.map +0 -1
- package/lib/webpack.config.js +0 -50
- package/src/builtin/eacaggregatorproxy/index.ts +0 -6
- package/src/builtin/erc1155/index.ts +0 -6
- package/src/builtin/erc20/index.ts +0 -6
- package/src/builtin/erc20bytes/index.ts +0 -6
- package/src/builtin/erc721/index.ts +0 -6
- package/src/builtin/index.ts +0 -4
- package/src/builtin/internal/common.ts +0 -46
- package/src/builtin/internal/factories/index.ts +0 -9
- package/src/builtin/internal/index.ts +0 -16
- package/src/error.ts +0 -45
- package/src/target-ethers-sentio/.eslintrc.json +0 -14
- package/src/target-ethers-sentio/tsconfig.json +0 -9
- package/src/webpack.config.js +0 -50
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * as eacaggregatorproxy from './eacaggregatorproxy/index.js'
|
|
2
|
+
export { EACAggregatorProxyProcessor, EACAggregatorProxyProcessorTemplate } from './eacaggregatorproxy/index.js'
|
|
3
|
+
export * as erc20 from './erc20/index.js'
|
|
4
|
+
export { ERC20Processor, ERC20ProcessorTemplate } from './erc20/index.js'
|
|
5
|
+
export * as erc20bytes from './erc20bytes/index.js'
|
|
6
|
+
export { ERC20BytesProcessor, ERC20BytesProcessorTemplate } from './erc20bytes/index.js'
|
|
7
|
+
export * as weth9 from './weth9/index.js'
|
|
8
|
+
export { WETH9Processor, WETH9ProcessorTemplate } from './weth9/index.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import type { BaseContract, Interface
|
|
4
|
+
import type { BaseContract, Interface } from "ethers";
|
|
5
5
|
import type { ContractRunner } from "ethers/providers";
|
|
6
|
-
import type { TypedEventFilter, TypedEvent, PromiseOrValue } from "./common";
|
|
6
|
+
import type { TypedEventFilter, TypedEvent, PromiseOrValue } from "./common.js";
|
|
7
7
|
|
|
8
8
|
export interface EACAggregatorProxyInterface extends Interface {}
|
|
9
9
|
|
|
@@ -15,8 +15,7 @@ export interface AnswerUpdatedEventObject {
|
|
|
15
15
|
export type AnswerUpdatedEvent = TypedEvent<
|
|
16
16
|
[bigint, bigint, bigint],
|
|
17
17
|
AnswerUpdatedEventObject
|
|
18
|
-
|
|
19
|
-
LogDescription;
|
|
18
|
+
>;
|
|
20
19
|
|
|
21
20
|
export type AnswerUpdatedEventFilter = TypedEventFilter<AnswerUpdatedEvent>;
|
|
22
21
|
|
|
@@ -28,8 +27,7 @@ export interface NewRoundEventObject {
|
|
|
28
27
|
export type NewRoundEvent = TypedEvent<
|
|
29
28
|
[bigint, string, bigint],
|
|
30
29
|
NewRoundEventObject
|
|
31
|
-
|
|
32
|
-
LogDescription;
|
|
30
|
+
>;
|
|
33
31
|
|
|
34
32
|
export type NewRoundEventFilter = TypedEventFilter<NewRoundEvent>;
|
|
35
33
|
|
|
@@ -40,8 +38,7 @@ export interface OwnershipTransferRequestedEventObject {
|
|
|
40
38
|
export type OwnershipTransferRequestedEvent = TypedEvent<
|
|
41
39
|
[string, string],
|
|
42
40
|
OwnershipTransferRequestedEventObject
|
|
43
|
-
|
|
44
|
-
LogDescription;
|
|
41
|
+
>;
|
|
45
42
|
|
|
46
43
|
export type OwnershipTransferRequestedEventFilter =
|
|
47
44
|
TypedEventFilter<OwnershipTransferRequestedEvent>;
|
|
@@ -53,8 +50,7 @@ export interface OwnershipTransferredEventObject {
|
|
|
53
50
|
export type OwnershipTransferredEvent = TypedEvent<
|
|
54
51
|
[string, string],
|
|
55
52
|
OwnershipTransferredEventObject
|
|
56
|
-
|
|
57
|
-
LogDescription;
|
|
53
|
+
>;
|
|
58
54
|
|
|
59
55
|
export type OwnershipTransferredEventFilter =
|
|
60
56
|
TypedEventFilter<OwnershipTransferredEvent>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import type { BaseContract, Interface
|
|
4
|
+
import type { BaseContract, Interface } from "ethers";
|
|
5
5
|
import type { ContractRunner } from "ethers/providers";
|
|
6
|
-
import type { TypedEventFilter, TypedEvent, PromiseOrValue } from "./common";
|
|
6
|
+
import type { TypedEventFilter, TypedEvent, PromiseOrValue } from "./common.js";
|
|
7
7
|
|
|
8
8
|
export interface ERC1155Interface extends Interface {}
|
|
9
9
|
|
|
@@ -15,8 +15,7 @@ export interface ApprovalForAllEventObject {
|
|
|
15
15
|
export type ApprovalForAllEvent = TypedEvent<
|
|
16
16
|
[string, string, boolean],
|
|
17
17
|
ApprovalForAllEventObject
|
|
18
|
-
|
|
19
|
-
LogDescription;
|
|
18
|
+
>;
|
|
20
19
|
|
|
21
20
|
export type ApprovalForAllEventFilter = TypedEventFilter<ApprovalForAllEvent>;
|
|
22
21
|
|
|
@@ -30,8 +29,7 @@ export interface TransferBatchEventObject {
|
|
|
30
29
|
export type TransferBatchEvent = TypedEvent<
|
|
31
30
|
[string, string, string, bigint[], bigint[]],
|
|
32
31
|
TransferBatchEventObject
|
|
33
|
-
|
|
34
|
-
LogDescription;
|
|
32
|
+
>;
|
|
35
33
|
|
|
36
34
|
export type TransferBatchEventFilter = TypedEventFilter<TransferBatchEvent>;
|
|
37
35
|
|
|
@@ -45,8 +43,7 @@ export interface TransferSingleEventObject {
|
|
|
45
43
|
export type TransferSingleEvent = TypedEvent<
|
|
46
44
|
[string, string, string, bigint, bigint],
|
|
47
45
|
TransferSingleEventObject
|
|
48
|
-
|
|
49
|
-
LogDescription;
|
|
46
|
+
>;
|
|
50
47
|
|
|
51
48
|
export type TransferSingleEventFilter = TypedEventFilter<TransferSingleEvent>;
|
|
52
49
|
|
|
@@ -54,8 +51,7 @@ export interface URIEventObject {
|
|
|
54
51
|
value: string;
|
|
55
52
|
id: bigint;
|
|
56
53
|
}
|
|
57
|
-
export type URIEvent = TypedEvent<[string, bigint], URIEventObject
|
|
58
|
-
LogDescription;
|
|
54
|
+
export type URIEvent = TypedEvent<[string, bigint], URIEventObject>;
|
|
59
55
|
|
|
60
56
|
export type URIEventFilter = TypedEventFilter<URIEvent>;
|
|
61
57
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import type { BaseContract, Interface
|
|
4
|
+
import type { BaseContract, Interface } from "ethers";
|
|
5
5
|
import type { ContractRunner } from "ethers/providers";
|
|
6
|
-
import type { TypedEventFilter, TypedEvent, PromiseOrValue } from "./common";
|
|
6
|
+
import type { TypedEventFilter, TypedEvent, PromiseOrValue } from "./common.js";
|
|
7
7
|
|
|
8
8
|
export interface ERC20Interface extends Interface {}
|
|
9
9
|
|
|
@@ -15,8 +15,7 @@ export interface ApprovalEventObject {
|
|
|
15
15
|
export type ApprovalEvent = TypedEvent<
|
|
16
16
|
[string, string, bigint],
|
|
17
17
|
ApprovalEventObject
|
|
18
|
-
|
|
19
|
-
LogDescription;
|
|
18
|
+
>;
|
|
20
19
|
|
|
21
20
|
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
22
21
|
|
|
@@ -27,8 +26,7 @@ export interface OwnershipTransferredEventObject {
|
|
|
27
26
|
export type OwnershipTransferredEvent = TypedEvent<
|
|
28
27
|
[string, string],
|
|
29
28
|
OwnershipTransferredEventObject
|
|
30
|
-
|
|
31
|
-
LogDescription;
|
|
29
|
+
>;
|
|
32
30
|
|
|
33
31
|
export type OwnershipTransferredEventFilter =
|
|
34
32
|
TypedEventFilter<OwnershipTransferredEvent>;
|
|
@@ -41,8 +39,7 @@ export interface TransferEventObject {
|
|
|
41
39
|
export type TransferEvent = TypedEvent<
|
|
42
40
|
[string, string, bigint],
|
|
43
41
|
TransferEventObject
|
|
44
|
-
|
|
45
|
-
LogDescription;
|
|
42
|
+
>;
|
|
46
43
|
|
|
47
44
|
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
48
45
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import type { BaseContract, Interface
|
|
4
|
+
import type { BaseContract, Interface } from "ethers";
|
|
5
5
|
import type { ContractRunner } from "ethers/providers";
|
|
6
|
-
import type { TypedEventFilter, TypedEvent, PromiseOrValue } from "./common";
|
|
6
|
+
import type { TypedEventFilter, TypedEvent, PromiseOrValue } from "./common.js";
|
|
7
7
|
|
|
8
8
|
export interface ERC20BytesInterface extends Interface {}
|
|
9
9
|
|
|
@@ -15,8 +15,7 @@ export interface ApprovalEventObject {
|
|
|
15
15
|
export type ApprovalEvent = TypedEvent<
|
|
16
16
|
[string, string, bigint],
|
|
17
17
|
ApprovalEventObject
|
|
18
|
-
|
|
19
|
-
LogDescription;
|
|
18
|
+
>;
|
|
20
19
|
|
|
21
20
|
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
22
21
|
|
|
@@ -28,8 +27,7 @@ export interface TransferEventObject {
|
|
|
28
27
|
export type TransferEvent = TypedEvent<
|
|
29
28
|
[string, string, bigint],
|
|
30
29
|
TransferEventObject
|
|
31
|
-
|
|
32
|
-
LogDescription;
|
|
30
|
+
>;
|
|
33
31
|
|
|
34
32
|
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
35
33
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import type { BaseContract, Interface
|
|
4
|
+
import type { BaseContract, Interface } from "ethers";
|
|
5
5
|
import type { ContractRunner } from "ethers/providers";
|
|
6
|
-
import type { TypedEventFilter, TypedEvent, PromiseOrValue } from "./common";
|
|
6
|
+
import type { TypedEventFilter, TypedEvent, PromiseOrValue } from "./common.js";
|
|
7
7
|
|
|
8
8
|
export interface ERC721Interface extends Interface {}
|
|
9
9
|
|
|
@@ -15,8 +15,7 @@ export interface ApprovalEventObject {
|
|
|
15
15
|
export type ApprovalEvent = TypedEvent<
|
|
16
16
|
[string, string, bigint],
|
|
17
17
|
ApprovalEventObject
|
|
18
|
-
|
|
19
|
-
LogDescription;
|
|
18
|
+
>;
|
|
20
19
|
|
|
21
20
|
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
22
21
|
|
|
@@ -28,8 +27,7 @@ export interface ApprovalForAllEventObject {
|
|
|
28
27
|
export type ApprovalForAllEvent = TypedEvent<
|
|
29
28
|
[string, string, boolean],
|
|
30
29
|
ApprovalForAllEventObject
|
|
31
|
-
|
|
32
|
-
LogDescription;
|
|
30
|
+
>;
|
|
33
31
|
|
|
34
32
|
export type ApprovalForAllEventFilter = TypedEventFilter<ApprovalForAllEvent>;
|
|
35
33
|
|
|
@@ -41,8 +39,7 @@ export interface TransferEventObject {
|
|
|
41
39
|
export type TransferEvent = TypedEvent<
|
|
42
40
|
[string, string, bigint],
|
|
43
41
|
TransferEventObject
|
|
44
|
-
|
|
45
|
-
LogDescription;
|
|
42
|
+
>;
|
|
46
43
|
|
|
47
44
|
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
48
45
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import type { BaseContract, Interface
|
|
4
|
+
import type { BaseContract, Interface } from "ethers";
|
|
5
5
|
import type { ContractRunner } from "ethers/providers";
|
|
6
|
-
import type { TypedEventFilter, TypedEvent, PromiseOrValue } from "./common";
|
|
6
|
+
import type { TypedEventFilter, TypedEvent, PromiseOrValue } from "./common.js";
|
|
7
7
|
|
|
8
8
|
export interface WETH9Interface extends Interface {}
|
|
9
9
|
|
|
@@ -15,8 +15,7 @@ export interface ApprovalEventObject {
|
|
|
15
15
|
export type ApprovalEvent = TypedEvent<
|
|
16
16
|
[string, string, bigint],
|
|
17
17
|
ApprovalEventObject
|
|
18
|
-
|
|
19
|
-
LogDescription;
|
|
18
|
+
>;
|
|
20
19
|
|
|
21
20
|
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
22
21
|
|
|
@@ -28,8 +27,7 @@ export interface TransferEventObject {
|
|
|
28
27
|
export type TransferEvent = TypedEvent<
|
|
29
28
|
[string, string, bigint],
|
|
30
29
|
TransferEventObject
|
|
31
|
-
|
|
32
|
-
LogDescription;
|
|
30
|
+
>;
|
|
33
31
|
|
|
34
32
|
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
35
33
|
|
|
@@ -37,8 +35,7 @@ export interface DepositEventObject {
|
|
|
37
35
|
dst: string;
|
|
38
36
|
wad: bigint;
|
|
39
37
|
}
|
|
40
|
-
export type DepositEvent = TypedEvent<[string, bigint], DepositEventObject
|
|
41
|
-
LogDescription;
|
|
38
|
+
export type DepositEvent = TypedEvent<[string, bigint], DepositEventObject>;
|
|
42
39
|
|
|
43
40
|
export type DepositEventFilter = TypedEventFilter<DepositEvent>;
|
|
44
41
|
|
|
@@ -49,8 +46,7 @@ export interface WithdrawalEventObject {
|
|
|
49
46
|
export type WithdrawalEvent = TypedEvent<
|
|
50
47
|
[string, bigint],
|
|
51
48
|
WithdrawalEventObject
|
|
52
|
-
|
|
53
|
-
LogDescription;
|
|
49
|
+
>;
|
|
54
50
|
|
|
55
51
|
export type WithdrawalEventFilter = TypedEventFilter<WithdrawalEvent>;
|
|
56
52
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
|
|
8
|
+
import type { DeferredTopicFilter } from "ethers";
|
|
9
|
+
import { LogParams } from "ethers/providers";
|
|
10
|
+
import { Result } from "ethers";
|
|
11
|
+
|
|
12
|
+
export interface TypedEvent<
|
|
13
|
+
TArgsArray extends Array<any> = any,
|
|
14
|
+
TArgsObject = any
|
|
15
|
+
> extends LogParams {
|
|
16
|
+
args: TArgsArray & TArgsObject & Result;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface TypedEventFilter<_TEvent extends TypedEvent>
|
|
20
|
+
extends DeferredTopicFilter {}
|
|
21
|
+
|
|
22
|
+
export type PromiseOrValue<T> = T | Promise<T>;
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
DummyProvider,
|
|
21
21
|
TypedCallTrace,
|
|
22
22
|
toBlockTag,
|
|
23
|
-
} from "@sentio/sdk";
|
|
23
|
+
} from "@sentio/sdk/eth";
|
|
24
24
|
import { EthFetchConfig } from "@sentio/protos";
|
|
25
25
|
|
|
26
|
-
import { EACAggregatorProxy, EACAggregatorProxy__factory } from "./index";
|
|
26
|
+
import { EACAggregatorProxy, EACAggregatorProxy__factory } from "./index.js";
|
|
27
27
|
import {
|
|
28
28
|
AnswerUpdatedEvent,
|
|
29
29
|
AnswerUpdatedEventFilter,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
OwnershipTransferRequestedEventFilter,
|
|
34
34
|
OwnershipTransferredEvent,
|
|
35
35
|
OwnershipTransferredEventFilter,
|
|
36
|
-
} from "./EACAggregatorProxy";
|
|
36
|
+
} from "./EACAggregatorProxy.js";
|
|
37
37
|
|
|
38
38
|
export interface AcceptOwnershipCallObject {}
|
|
39
39
|
|
|
@@ -440,71 +440,51 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
|
440
440
|
EACAggregatorProxyContractView
|
|
441
441
|
> {
|
|
442
442
|
async accessController(overrides?: Overrides): Promise<string> {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
};
|
|
448
|
-
}
|
|
449
|
-
return await this.view.accessController(overrides || {});
|
|
450
|
-
} catch (e) {
|
|
451
|
-
throw transformEtherError(e, this.context);
|
|
443
|
+
if (!overrides && this.context) {
|
|
444
|
+
overrides = {
|
|
445
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
446
|
+
};
|
|
452
447
|
}
|
|
448
|
+
return await this.view.accessController(overrides || {});
|
|
453
449
|
}
|
|
454
450
|
|
|
455
451
|
async aggregator(overrides?: Overrides): Promise<string> {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
};
|
|
461
|
-
}
|
|
462
|
-
return await this.view.aggregator(overrides || {});
|
|
463
|
-
} catch (e) {
|
|
464
|
-
throw transformEtherError(e, this.context);
|
|
452
|
+
if (!overrides && this.context) {
|
|
453
|
+
overrides = {
|
|
454
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
455
|
+
};
|
|
465
456
|
}
|
|
457
|
+
return await this.view.aggregator(overrides || {});
|
|
466
458
|
}
|
|
467
459
|
|
|
468
460
|
async decimals(overrides?: Overrides): Promise<bigint> {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
};
|
|
474
|
-
}
|
|
475
|
-
return await this.view.decimals(overrides || {});
|
|
476
|
-
} catch (e) {
|
|
477
|
-
throw transformEtherError(e, this.context);
|
|
461
|
+
if (!overrides && this.context) {
|
|
462
|
+
overrides = {
|
|
463
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
464
|
+
};
|
|
478
465
|
}
|
|
466
|
+
return await this.view.decimals(overrides || {});
|
|
479
467
|
}
|
|
480
468
|
|
|
481
469
|
async description(overrides?: Overrides): Promise<string> {
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
};
|
|
487
|
-
}
|
|
488
|
-
return await this.view.description(overrides || {});
|
|
489
|
-
} catch (e) {
|
|
490
|
-
throw transformEtherError(e, this.context);
|
|
470
|
+
if (!overrides && this.context) {
|
|
471
|
+
overrides = {
|
|
472
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
473
|
+
};
|
|
491
474
|
}
|
|
475
|
+
return await this.view.description(overrides || {});
|
|
492
476
|
}
|
|
493
477
|
|
|
494
478
|
async getAnswer(
|
|
495
479
|
_roundId: BigNumberish,
|
|
496
480
|
overrides?: Overrides
|
|
497
481
|
): Promise<bigint> {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
return await this.view.getAnswer(_roundId, overrides || {});
|
|
505
|
-
} catch (e) {
|
|
506
|
-
throw transformEtherError(e, this.context);
|
|
482
|
+
if (!overrides && this.context) {
|
|
483
|
+
overrides = {
|
|
484
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
485
|
+
};
|
|
507
486
|
}
|
|
487
|
+
return await this.view.getAnswer(_roundId, overrides || {});
|
|
508
488
|
}
|
|
509
489
|
|
|
510
490
|
async getRoundData(
|
|
@@ -519,58 +499,42 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
|
519
499
|
answeredInRound: bigint;
|
|
520
500
|
}
|
|
521
501
|
> {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
};
|
|
527
|
-
}
|
|
528
|
-
return await this.view.getRoundData(_roundId, overrides || {});
|
|
529
|
-
} catch (e) {
|
|
530
|
-
throw transformEtherError(e, this.context);
|
|
502
|
+
if (!overrides && this.context) {
|
|
503
|
+
overrides = {
|
|
504
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
505
|
+
};
|
|
531
506
|
}
|
|
507
|
+
return await this.view.getRoundData(_roundId, overrides || {});
|
|
532
508
|
}
|
|
533
509
|
|
|
534
510
|
async getTimestamp(
|
|
535
511
|
_roundId: BigNumberish,
|
|
536
512
|
overrides?: Overrides
|
|
537
513
|
): Promise<bigint> {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
};
|
|
543
|
-
}
|
|
544
|
-
return await this.view.getTimestamp(_roundId, overrides || {});
|
|
545
|
-
} catch (e) {
|
|
546
|
-
throw transformEtherError(e, this.context);
|
|
514
|
+
if (!overrides && this.context) {
|
|
515
|
+
overrides = {
|
|
516
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
517
|
+
};
|
|
547
518
|
}
|
|
519
|
+
return await this.view.getTimestamp(_roundId, overrides || {});
|
|
548
520
|
}
|
|
549
521
|
|
|
550
522
|
async latestAnswer(overrides?: Overrides): Promise<bigint> {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
};
|
|
556
|
-
}
|
|
557
|
-
return await this.view.latestAnswer(overrides || {});
|
|
558
|
-
} catch (e) {
|
|
559
|
-
throw transformEtherError(e, this.context);
|
|
523
|
+
if (!overrides && this.context) {
|
|
524
|
+
overrides = {
|
|
525
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
526
|
+
};
|
|
560
527
|
}
|
|
528
|
+
return await this.view.latestAnswer(overrides || {});
|
|
561
529
|
}
|
|
562
530
|
|
|
563
531
|
async latestRound(overrides?: Overrides): Promise<bigint> {
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
};
|
|
569
|
-
}
|
|
570
|
-
return await this.view.latestRound(overrides || {});
|
|
571
|
-
} catch (e) {
|
|
572
|
-
throw transformEtherError(e, this.context);
|
|
532
|
+
if (!overrides && this.context) {
|
|
533
|
+
overrides = {
|
|
534
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
535
|
+
};
|
|
573
536
|
}
|
|
537
|
+
return await this.view.latestRound(overrides || {});
|
|
574
538
|
}
|
|
575
539
|
|
|
576
540
|
async latestRoundData(
|
|
@@ -584,84 +548,60 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
|
584
548
|
answeredInRound: bigint;
|
|
585
549
|
}
|
|
586
550
|
> {
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
};
|
|
592
|
-
}
|
|
593
|
-
return await this.view.latestRoundData(overrides || {});
|
|
594
|
-
} catch (e) {
|
|
595
|
-
throw transformEtherError(e, this.context);
|
|
551
|
+
if (!overrides && this.context) {
|
|
552
|
+
overrides = {
|
|
553
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
554
|
+
};
|
|
596
555
|
}
|
|
556
|
+
return await this.view.latestRoundData(overrides || {});
|
|
597
557
|
}
|
|
598
558
|
|
|
599
559
|
async latestTimestamp(overrides?: Overrides): Promise<bigint> {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
};
|
|
605
|
-
}
|
|
606
|
-
return await this.view.latestTimestamp(overrides || {});
|
|
607
|
-
} catch (e) {
|
|
608
|
-
throw transformEtherError(e, this.context);
|
|
560
|
+
if (!overrides && this.context) {
|
|
561
|
+
overrides = {
|
|
562
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
563
|
+
};
|
|
609
564
|
}
|
|
565
|
+
return await this.view.latestTimestamp(overrides || {});
|
|
610
566
|
}
|
|
611
567
|
|
|
612
568
|
async owner(overrides?: Overrides): Promise<string> {
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
};
|
|
618
|
-
}
|
|
619
|
-
return await this.view.owner(overrides || {});
|
|
620
|
-
} catch (e) {
|
|
621
|
-
throw transformEtherError(e, this.context);
|
|
569
|
+
if (!overrides && this.context) {
|
|
570
|
+
overrides = {
|
|
571
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
572
|
+
};
|
|
622
573
|
}
|
|
574
|
+
return await this.view.owner(overrides || {});
|
|
623
575
|
}
|
|
624
576
|
|
|
625
577
|
async phaseAggregators(
|
|
626
578
|
arg0: BigNumberish,
|
|
627
579
|
overrides?: Overrides
|
|
628
580
|
): Promise<string> {
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
};
|
|
634
|
-
}
|
|
635
|
-
return await this.view.phaseAggregators(arg0, overrides || {});
|
|
636
|
-
} catch (e) {
|
|
637
|
-
throw transformEtherError(e, this.context);
|
|
581
|
+
if (!overrides && this.context) {
|
|
582
|
+
overrides = {
|
|
583
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
584
|
+
};
|
|
638
585
|
}
|
|
586
|
+
return await this.view.phaseAggregators(arg0, overrides || {});
|
|
639
587
|
}
|
|
640
588
|
|
|
641
589
|
async phaseId(overrides?: Overrides): Promise<bigint> {
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
};
|
|
647
|
-
}
|
|
648
|
-
return await this.view.phaseId(overrides || {});
|
|
649
|
-
} catch (e) {
|
|
650
|
-
throw transformEtherError(e, this.context);
|
|
590
|
+
if (!overrides && this.context) {
|
|
591
|
+
overrides = {
|
|
592
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
593
|
+
};
|
|
651
594
|
}
|
|
595
|
+
return await this.view.phaseId(overrides || {});
|
|
652
596
|
}
|
|
653
597
|
|
|
654
598
|
async proposedAggregator(overrides?: Overrides): Promise<string> {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
};
|
|
660
|
-
}
|
|
661
|
-
return await this.view.proposedAggregator(overrides || {});
|
|
662
|
-
} catch (e) {
|
|
663
|
-
throw transformEtherError(e, this.context);
|
|
599
|
+
if (!overrides && this.context) {
|
|
600
|
+
overrides = {
|
|
601
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
602
|
+
};
|
|
664
603
|
}
|
|
604
|
+
return await this.view.proposedAggregator(overrides || {});
|
|
665
605
|
}
|
|
666
606
|
|
|
667
607
|
async proposedGetRoundData(
|
|
@@ -676,16 +616,12 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
|
676
616
|
answeredInRound: bigint;
|
|
677
617
|
}
|
|
678
618
|
> {
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
};
|
|
684
|
-
}
|
|
685
|
-
return await this.view.proposedGetRoundData(_roundId, overrides || {});
|
|
686
|
-
} catch (e) {
|
|
687
|
-
throw transformEtherError(e, this.context);
|
|
619
|
+
if (!overrides && this.context) {
|
|
620
|
+
overrides = {
|
|
621
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
622
|
+
};
|
|
688
623
|
}
|
|
624
|
+
return await this.view.proposedGetRoundData(_roundId, overrides || {});
|
|
689
625
|
}
|
|
690
626
|
|
|
691
627
|
async proposedLatestRoundData(
|
|
@@ -699,29 +635,21 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
|
699
635
|
answeredInRound: bigint;
|
|
700
636
|
}
|
|
701
637
|
> {
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
};
|
|
707
|
-
}
|
|
708
|
-
return await this.view.proposedLatestRoundData(overrides || {});
|
|
709
|
-
} catch (e) {
|
|
710
|
-
throw transformEtherError(e, this.context);
|
|
638
|
+
if (!overrides && this.context) {
|
|
639
|
+
overrides = {
|
|
640
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
641
|
+
};
|
|
711
642
|
}
|
|
643
|
+
return await this.view.proposedLatestRoundData(overrides || {});
|
|
712
644
|
}
|
|
713
645
|
|
|
714
646
|
async version(overrides?: Overrides): Promise<bigint> {
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
};
|
|
720
|
-
}
|
|
721
|
-
return await this.view.version(overrides || {});
|
|
722
|
-
} catch (e) {
|
|
723
|
-
throw transformEtherError(e, this.context);
|
|
647
|
+
if (!overrides && this.context) {
|
|
648
|
+
overrides = {
|
|
649
|
+
blockTag: toBlockTag(this.context.blockNumber),
|
|
650
|
+
};
|
|
724
651
|
}
|
|
652
|
+
return await this.view.version(overrides || {});
|
|
725
653
|
}
|
|
726
654
|
}
|
|
727
655
|
|