@sentio/sdk 2.0.0-rc.8 → 2.0.0
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 +384 -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/run.d.ts +1 -0
- package/lib/aptos/codegen/run.js +12 -0
- package/lib/aptos/codegen/run.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/aptos/codegen/typegen.test.d.ts +1 -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 +29 -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/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/big-decimal.d.ts +2 -0
- package/lib/core/big-decimal.js +8 -0
- package/lib/core/big-decimal.js.map +1 -1
- package/lib/{utils → core}/chain.d.ts +0 -0
- package/lib/{utils → core}/chain.js +0 -0
- package/lib/core/chain.js.map +1 -0
- package/lib/core/index.d.ts +2 -4
- package/lib/core/index.js +2 -4
- package/lib/core/index.js.map +1 -1
- package/lib/core/numberish.d.ts +0 -2
- package/lib/core/numberish.js +0 -9
- package/lib/core/numberish.js.map +1 -1
- package/lib/core/sui-plugin.js +1 -1
- package/lib/core/sui-plugin.js.map +1 -1
- package/lib/core/sui-processor.d.ts +1 -1
- package/lib/core/sui-processor.js +1 -1
- package/lib/core/sui-processor.js.map +1 -1
- package/lib/eth/account-processor.d.ts +4 -4
- package/lib/eth/account-processor.js +4 -4
- package/lib/eth/account-processor.js.map +1 -1
- package/lib/eth/base-processor-template.d.ts +6 -5
- package/lib/eth/base-processor-template.js +1 -1
- package/lib/eth/base-processor-template.js.map +1 -1
- package/lib/eth/base-processor.d.ts +6 -5
- package/lib/eth/base-processor.js +3 -2
- package/lib/eth/base-processor.js.map +1 -1
- package/lib/{core → eth}/bind-options.d.ts +0 -0
- package/lib/{core → eth}/bind-options.js +0 -0
- package/lib/eth/bind-options.js.map +1 -0
- package/lib/eth/binds.d.ts +2 -2
- package/lib/eth/binds.js +1 -1
- package/lib/eth/binds.js.map +1 -1
- package/lib/{builtin → eth/builtin}/eacaggregatorproxy/index.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/eacaggregatorproxy/index.js +0 -0
- package/lib/eth/builtin/eacaggregatorproxy/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/eacaggregatorproxy/test-utils.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/eacaggregatorproxy/test-utils.js +0 -0
- package/lib/eth/builtin/eacaggregatorproxy/test-utils.js.map +1 -0
- package/lib/{builtin → eth/builtin}/erc1155/index.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/erc1155/index.js +0 -0
- package/lib/eth/builtin/erc1155/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/erc1155/test-utils.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/erc1155/test-utils.js +0 -0
- package/lib/eth/builtin/erc1155/test-utils.js.map +1 -0
- package/lib/{builtin → eth/builtin}/erc20/index.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/erc20/index.js +0 -0
- package/lib/eth/builtin/erc20/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/erc20/test-utils.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/erc20/test-utils.js +0 -0
- package/lib/eth/builtin/erc20/test-utils.js.map +1 -0
- package/lib/{builtin → eth/builtin}/erc20bytes/index.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/erc20bytes/index.js +0 -0
- package/lib/eth/builtin/erc20bytes/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/erc20bytes/test-utils.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/erc20bytes/test-utils.js +0 -0
- package/lib/eth/builtin/erc20bytes/test-utils.js.map +1 -0
- package/lib/{builtin → eth/builtin}/erc721/index.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/erc721/index.js +0 -0
- package/lib/eth/builtin/erc721/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/erc721/test-utils.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/erc721/test-utils.js +0 -0
- package/lib/eth/builtin/erc721/test-utils.js.map +1 -0
- package/lib/{builtin → eth/builtin}/index.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/index.js +0 -0
- package/lib/eth/builtin/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/EACAggregatorProxy.d.ts +5 -5
- package/lib/{builtin → eth/builtin}/internal/EACAggregatorProxy.js +0 -0
- package/lib/eth/builtin/internal/EACAggregatorProxy.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/ERC1155.d.ts +5 -5
- package/lib/{builtin → eth/builtin}/internal/ERC1155.js +0 -0
- package/lib/eth/builtin/internal/ERC1155.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/ERC20.d.ts +4 -4
- package/lib/{builtin → eth/builtin}/internal/ERC20.js +0 -0
- package/lib/eth/builtin/internal/ERC20.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/ERC20Bytes.d.ts +3 -3
- package/lib/{builtin → eth/builtin}/internal/ERC20Bytes.js +0 -0
- package/lib/eth/builtin/internal/ERC20Bytes.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/ERC721.d.ts +4 -4
- package/lib/{builtin → eth/builtin}/internal/ERC721.js +0 -0
- package/lib/eth/builtin/internal/ERC721.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/WETH9.d.ts +5 -5
- package/lib/{builtin → eth/builtin}/internal/WETH9.js +0 -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 +0 -0
- package/lib/eth/builtin/internal/common.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/eacaggregatorproxy_processor.d.ts +5 -5
- package/lib/{builtin → eth/builtin}/internal/eacaggregatorproxy_processor.js +92 -182
- package/lib/eth/builtin/internal/eacaggregatorproxy_processor.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/erc1155_processor.d.ts +5 -5
- package/lib/{builtin → eth/builtin}/internal/erc1155_processor.js +27 -52
- package/lib/eth/builtin/internal/erc1155_processor.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/erc20_processor.d.ts +4 -4
- package/lib/{builtin → eth/builtin}/internal/erc20_processor.js +42 -82
- 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 +32 -62
- package/lib/eth/builtin/internal/erc20bytes_processor.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/erc721_processor.d.ts +4 -4
- package/lib/{builtin → eth/builtin}/internal/erc721_processor.js +47 -92
- 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 +0 -0
- 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 +0 -0
- 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 +0 -0
- 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 +0 -0
- 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 +0 -0
- 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 +0 -0
- package/lib/eth/builtin/internal/factories/WETH9__factory.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/factories/index.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/internal/factories/index.js +0 -0
- package/lib/eth/builtin/internal/factories/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/index.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/internal/index.js +0 -0
- package/lib/eth/builtin/internal/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/internal/weth9_processor.d.ts +5 -5
- package/lib/{builtin → eth/builtin}/internal/weth9_processor.js +32 -62
- package/lib/eth/builtin/internal/weth9_processor.js.map +1 -0
- package/lib/{builtin → eth/builtin}/weth9/index.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/weth9/index.js +0 -0
- package/lib/eth/builtin/weth9/index.js.map +1 -0
- package/lib/{builtin → eth/builtin}/weth9/test-utils.d.ts +0 -0
- package/lib/{builtin → eth/builtin}/weth9/test-utils.js +0 -0
- 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.cts → 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/event-handler.d.cts → 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/file.d.cts → eth/codegen/file.d.ts} +0 -0
- package/lib/{target-ethers-sentio/file.cjs → eth/codegen/file.js} +28 -35
- package/lib/eth/codegen/file.js.map +1 -0
- package/lib/{target-ethers-sentio/functions-handler.d.cts → eth/codegen/functions-handler.d.ts} +0 -0
- package/lib/{target-ethers-sentio/functions-handler.cjs → eth/codegen/functions-handler.js} +13 -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/eth/codegen/run.d.ts +2 -0
- package/lib/eth/codegen/run.js +12 -0
- package/lib/eth/codegen/run.js.map +1 -0
- package/lib/{target-ethers-sentio/types.d.cts → eth/codegen/types.d.ts} +0 -0
- package/lib/{target-ethers-sentio/types.cjs → eth/codegen/types.js} +4 -10
- package/lib/eth/codegen/types.js.map +1 -0
- package/lib/{target-ethers-sentio/view-function.d.cts → 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 -4
- package/lib/{core → eth}/context.js +7 -8
- 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.d.ts +13 -0
- package/lib/{error.js → eth/eth.js} +20 -14
- package/lib/eth/eth.js.map +1 -0
- package/lib/eth/generic-processor.d.ts +2 -2
- package/lib/eth/generic-processor.js +2 -2
- package/lib/eth/generic-processor.js.map +1 -1
- package/lib/eth/generic-processor.test.js.map +1 -1
- package/lib/eth/index.d.ts +5 -1
- package/lib/eth/index.js +5 -1
- package/lib/eth/index.js.map +1 -1
- package/lib/eth/provider.js +3 -2
- package/lib/eth/provider.js.map +1 -1
- package/lib/index.d.ts +1 -3
- package/lib/index.js +1 -5
- 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/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/codegen/run.d.ts +2 -0
- package/lib/solana/codegen/run.js +12 -0
- package/lib/solana/codegen/run.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/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/test-processor-server.js +1 -1
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/testing/test-provider.js +1 -1
- package/lib/testing/test-provider.js.map +1 -1
- package/lib/tsup.config.ts +3 -0
- package/lib/utils/conversion.d.ts +0 -5
- package/lib/utils/conversion.js +21 -20
- package/lib/utils/conversion.js.map +1 -1
- package/lib/utils/dex-price.js +2 -2
- package/lib/utils/dex-price.js.map +1 -1
- package/lib/utils/index.d.ts +4 -4
- package/lib/utils/index.js +4 -4
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/token.d.ts +0 -1
- package/lib/utils/token.js +17 -28
- package/lib/utils/token.js.map +1 -1
- package/package.json +42 -20
- 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/aptos/builtin/index.ts +5 -0
- package/src/aptos/codegen/codegen.ts +461 -0
- package/src/aptos/codegen/index.ts +1 -0
- package/src/aptos/codegen/run.ts +13 -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 +37 -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/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/big-decimal.ts +11 -0
- package/src/{utils → core}/chain.ts +0 -0
- package/src/core/index.ts +2 -5
- package/src/core/numberish.ts +0 -11
- package/src/core/sui-plugin.ts +1 -1
- 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.ts +7 -7
- package/src/eth/base-processor-template.ts +5 -4
- package/src/eth/base-processor.ts +10 -20
- package/src/{core → eth}/bind-options.ts +0 -0
- package/src/eth/binds.ts +2 -2
- package/src/{builtin → eth/builtin}/eacaggregatorproxy/index.ts +0 -0
- package/src/{builtin → eth/builtin}/eacaggregatorproxy/test-utils.ts +0 -0
- package/src/{builtin → eth/builtin}/erc1155/index.ts +0 -0
- package/src/{builtin → eth/builtin}/erc1155/test-utils.ts +0 -0
- package/src/{builtin → eth/builtin}/erc20/index.ts +0 -0
- package/src/{builtin → eth/builtin}/erc20/test-utils.ts +0 -0
- package/src/{builtin → eth/builtin}/erc20bytes/index.ts +0 -0
- package/src/{builtin → eth/builtin}/erc20bytes/test-utils.ts +0 -0
- package/src/{builtin → eth/builtin}/erc721/index.ts +0 -0
- package/src/{builtin → eth/builtin}/erc721/test-utils.ts +0 -0
- package/src/{builtin → eth/builtin}/index.ts +0 -0
- package/src/{builtin → eth/builtin}/internal/EACAggregatorProxy.ts +5 -9
- package/src/{builtin → eth/builtin}/internal/ERC1155.ts +5 -9
- package/src/{builtin → eth/builtin}/internal/ERC20.ts +4 -7
- package/src/{builtin → eth/builtin}/internal/ERC20Bytes.ts +3 -5
- package/src/{builtin → eth/builtin}/internal/ERC721.ts +4 -7
- package/src/{builtin → eth/builtin}/internal/WETH9.ts +5 -9
- package/src/eth/builtin/internal/common.ts +22 -0
- package/src/{builtin → eth/builtin}/internal/eacaggregatorproxy_processor.ts +92 -164
- package/src/{builtin → eth/builtin}/internal/erc1155_processor.ts +27 -51
- package/src/{builtin → eth/builtin}/internal/erc20_processor.ts +42 -74
- package/src/{builtin → eth/builtin}/internal/erc20bytes_processor.ts +32 -56
- package/src/{builtin → eth/builtin}/internal/erc721_processor.ts +47 -83
- 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/{builtin → eth/builtin}/internal/factories/index.ts +0 -0
- package/src/{builtin → eth/builtin}/internal/index.ts +0 -0
- package/src/{builtin → eth/builtin}/internal/weth9_processor.ts +32 -56
- package/src/{builtin → eth/builtin}/weth9/index.ts +0 -0
- package/src/{builtin → eth/builtin}/weth9/test-utils.ts +0 -0
- package/src/eth/codegen/codegen.ts +62 -0
- package/src/{target-ethers-sentio/index.cts → eth/codegen/ethers-sentio.ts} +2 -2
- package/src/{target-ethers-sentio/event-handler.cts → eth/codegen/event-handler.ts} +2 -2
- package/src/{target-ethers-sentio/file.cts → eth/codegen/file.ts} +7 -7
- package/src/{target-ethers-sentio/functions-handler.cts → eth/codegen/functions-handler.ts} +4 -4
- package/src/eth/codegen/index.ts +1 -0
- package/src/eth/codegen/run.ts +12 -0
- package/src/eth/codegen/tsconfig.json +8 -0
- package/src/{target-ethers-sentio/types.cts → eth/codegen/types.ts} +1 -1
- package/src/{target-ethers-sentio/view-function.cts → eth/codegen/view-function.ts} +7 -12
- package/src/{core → eth}/context.ts +8 -9
- package/src/eth/error.ts +4 -0
- package/src/eth/eth.ts +56 -0
- package/src/eth/generic-processor.ts +3 -3
- package/src/eth/index.ts +6 -2
- package/src/eth/provider.ts +4 -3
- package/src/index.ts +1 -6
- 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/run.ts +12 -0
- package/src/solana/codegen/tsconfig.json +8 -0
- package/src/solana/index.ts +4 -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/test-processor-server.ts +1 -1
- package/src/testing/test-provider.ts +1 -1
- package/src/tsup.config.ts +3 -0
- package/src/utils/conversion.ts +21 -25
- package/src/utils/dex-price.ts +2 -3
- package/src/utils/index.ts +4 -4
- package/src/utils/token.ts +19 -30
- package/lib/builtin/eacaggregatorproxy/index.js.map +0 -1
- package/lib/builtin/eacaggregatorproxy/test-utils.js.map +0 -1
- package/lib/builtin/erc1155/index.js.map +0 -1
- package/lib/builtin/erc1155/test-utils.js.map +0 -1
- package/lib/builtin/erc20/index.js.map +0 -1
- package/lib/builtin/erc20/test-utils.js.map +0 -1
- package/lib/builtin/erc20bytes/index.js.map +0 -1
- package/lib/builtin/erc20bytes/test-utils.js.map +0 -1
- package/lib/builtin/erc721/index.js.map +0 -1
- package/lib/builtin/erc721/test-utils.js.map +0 -1
- package/lib/builtin/index.js.map +0 -1
- package/lib/builtin/internal/EACAggregatorProxy.js.map +0 -1
- package/lib/builtin/internal/ERC1155.js.map +0 -1
- package/lib/builtin/internal/ERC20.js.map +0 -1
- package/lib/builtin/internal/ERC20Bytes.js.map +0 -1
- package/lib/builtin/internal/ERC721.js.map +0 -1
- 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.js.map +0 -1
- package/lib/builtin/internal/index.js.map +0 -1
- package/lib/builtin/internal/weth9_processor.js.map +0 -1
- 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.map +0 -1
- package/lib/core/context.js.map +0 -1
- package/lib/error.d.ts +0 -7
- package/lib/error.js.map +0 -1
- package/lib/target-ethers-sentio/event-handler.cjs +0 -52
- package/lib/target-ethers-sentio/event-handler.cjs.map +0 -1
- package/lib/target-ethers-sentio/file.cjs.map +0 -1
- package/lib/target-ethers-sentio/functions-handler.cjs.map +0 -1
- package/lib/target-ethers-sentio/index.cjs +0 -61
- package/lib/target-ethers-sentio/index.cjs.map +0 -1
- package/lib/target-ethers-sentio/types.cjs.map +0 -1
- package/lib/target-ethers-sentio/view-function.cjs +0 -74
- package/lib/target-ethers-sentio/view-function.cjs.map +0 -1
- package/lib/utils/chain.js.map +0 -1
- package/src/builtin/internal/common.ts +0 -46
- package/src/error.ts +0 -45
- package/src/target-ethers-sentio/.eslintrc.json +0 -14
- package/src/target-ethers-sentio/tsconfig.json +0 -9
|
@@ -0,0 +1,491 @@
|
|
|
1
|
+
import { MoveCoder, AptosBindOptions, AptosBaseProcessor, TypedEventInstance, TypedEntryFunctionPayload, AptosContext, CallFilter } from "@sentio/sdk/aptos";
|
|
2
|
+
import { AptosFetchConfig } from "@sentio/protos";
|
|
3
|
+
import { Address, MoveModule } from "@sentio/sdk/aptos";
|
|
4
|
+
import * as _0x1 from "./0x1.js";
|
|
5
|
+
export declare class token extends AptosBaseProcessor {
|
|
6
|
+
constructor(options: AptosBindOptions);
|
|
7
|
+
static DEFAULT_OPTIONS: AptosBindOptions;
|
|
8
|
+
static bind(options?: Partial<AptosBindOptions>): token;
|
|
9
|
+
onEntryBurn(func: (call: token.BurnPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
10
|
+
onEntryBurnByCreator(func: (call: token.BurnByCreatorPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
11
|
+
onEntryCreateCollectionScript(func: (call: token.CreateCollectionScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
12
|
+
onEntryCreateTokenScript(func: (call: token.CreateTokenScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
13
|
+
onEntryDirectTransferScript(func: (call: token.DirectTransferScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
14
|
+
onEntryInitializeTokenScript(func: (call: token.InitializeTokenScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
15
|
+
onEntryMintScript(func: (call: token.MintScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
16
|
+
onEntryMutateTokenProperties(func: (call: token.MutateTokenPropertiesPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
17
|
+
onEntryOptInDirectTransfer(func: (call: token.OptInDirectTransferPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
18
|
+
onEventCreateCollectionEvent(func: (event: token.CreateCollectionEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token;
|
|
19
|
+
onEventCreateTokenDataEvent(func: (event: token.CreateTokenDataEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token;
|
|
20
|
+
onEventMintTokenEvent(func: (event: token.MintTokenEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token;
|
|
21
|
+
onEventDepositEvent(func: (event: token.DepositEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token;
|
|
22
|
+
onEventWithdrawEvent(func: (event: token.WithdrawEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token;
|
|
23
|
+
onEventBurnTokenEvent(func: (event: token.BurnTokenEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token;
|
|
24
|
+
onEventMutateTokenPropertyMapEvent(func: (event: token.MutateTokenPropertyMapEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token;
|
|
25
|
+
loadTypesInternal(registry: MoveCoder): void;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace token {
|
|
28
|
+
class BurnTokenEvent {
|
|
29
|
+
static TYPE_QNAME: string;
|
|
30
|
+
id: token.TokenId;
|
|
31
|
+
amount: bigint;
|
|
32
|
+
}
|
|
33
|
+
interface BurnTokenEventInstance extends TypedEventInstance<BurnTokenEvent> {
|
|
34
|
+
data_decoded: BurnTokenEvent;
|
|
35
|
+
type_arguments: [];
|
|
36
|
+
}
|
|
37
|
+
class CollectionData {
|
|
38
|
+
static TYPE_QNAME: string;
|
|
39
|
+
description: string;
|
|
40
|
+
name: string;
|
|
41
|
+
uri: string;
|
|
42
|
+
supply: bigint;
|
|
43
|
+
maximum: bigint;
|
|
44
|
+
mutability_config: token.CollectionMutabilityConfig;
|
|
45
|
+
}
|
|
46
|
+
class CollectionMutabilityConfig {
|
|
47
|
+
static TYPE_QNAME: string;
|
|
48
|
+
description: Boolean;
|
|
49
|
+
uri: Boolean;
|
|
50
|
+
maximum: Boolean;
|
|
51
|
+
}
|
|
52
|
+
class Collections {
|
|
53
|
+
static TYPE_QNAME: string;
|
|
54
|
+
collection_data: _0x1.table.Table<string, token.CollectionData>;
|
|
55
|
+
token_data: _0x1.table.Table<token.TokenDataId, token.TokenData>;
|
|
56
|
+
create_collection_events: _0x1.event.EventHandle<token.CreateCollectionEvent>;
|
|
57
|
+
create_token_data_events: _0x1.event.EventHandle<token.CreateTokenDataEvent>;
|
|
58
|
+
mint_token_events: _0x1.event.EventHandle<token.MintTokenEvent>;
|
|
59
|
+
}
|
|
60
|
+
class CreateCollectionEvent {
|
|
61
|
+
static TYPE_QNAME: string;
|
|
62
|
+
creator: Address;
|
|
63
|
+
collection_name: string;
|
|
64
|
+
uri: string;
|
|
65
|
+
description: string;
|
|
66
|
+
maximum: bigint;
|
|
67
|
+
}
|
|
68
|
+
interface CreateCollectionEventInstance extends TypedEventInstance<CreateCollectionEvent> {
|
|
69
|
+
data_decoded: CreateCollectionEvent;
|
|
70
|
+
type_arguments: [];
|
|
71
|
+
}
|
|
72
|
+
class CreateTokenDataEvent {
|
|
73
|
+
static TYPE_QNAME: string;
|
|
74
|
+
id: token.TokenDataId;
|
|
75
|
+
description: string;
|
|
76
|
+
maximum: bigint;
|
|
77
|
+
uri: string;
|
|
78
|
+
royalty_payee_address: Address;
|
|
79
|
+
royalty_points_denominator: bigint;
|
|
80
|
+
royalty_points_numerator: bigint;
|
|
81
|
+
name: string;
|
|
82
|
+
mutability_config: token.TokenMutabilityConfig;
|
|
83
|
+
property_keys: string[];
|
|
84
|
+
property_values: string[];
|
|
85
|
+
property_types: string[];
|
|
86
|
+
}
|
|
87
|
+
interface CreateTokenDataEventInstance extends TypedEventInstance<CreateTokenDataEvent> {
|
|
88
|
+
data_decoded: CreateTokenDataEvent;
|
|
89
|
+
type_arguments: [];
|
|
90
|
+
}
|
|
91
|
+
class DepositEvent {
|
|
92
|
+
static TYPE_QNAME: string;
|
|
93
|
+
id: token.TokenId;
|
|
94
|
+
amount: bigint;
|
|
95
|
+
}
|
|
96
|
+
interface DepositEventInstance extends TypedEventInstance<DepositEvent> {
|
|
97
|
+
data_decoded: DepositEvent;
|
|
98
|
+
type_arguments: [];
|
|
99
|
+
}
|
|
100
|
+
class MintTokenEvent {
|
|
101
|
+
static TYPE_QNAME: string;
|
|
102
|
+
id: token.TokenDataId;
|
|
103
|
+
amount: bigint;
|
|
104
|
+
}
|
|
105
|
+
interface MintTokenEventInstance extends TypedEventInstance<MintTokenEvent> {
|
|
106
|
+
data_decoded: MintTokenEvent;
|
|
107
|
+
type_arguments: [];
|
|
108
|
+
}
|
|
109
|
+
class MutateTokenPropertyMapEvent {
|
|
110
|
+
static TYPE_QNAME: string;
|
|
111
|
+
old_id: token.TokenId;
|
|
112
|
+
new_id: token.TokenId;
|
|
113
|
+
keys: string[];
|
|
114
|
+
values: string[];
|
|
115
|
+
types: string[];
|
|
116
|
+
}
|
|
117
|
+
interface MutateTokenPropertyMapEventInstance extends TypedEventInstance<MutateTokenPropertyMapEvent> {
|
|
118
|
+
data_decoded: MutateTokenPropertyMapEvent;
|
|
119
|
+
type_arguments: [];
|
|
120
|
+
}
|
|
121
|
+
class Royalty {
|
|
122
|
+
static TYPE_QNAME: string;
|
|
123
|
+
royalty_points_numerator: bigint;
|
|
124
|
+
royalty_points_denominator: bigint;
|
|
125
|
+
payee_address: Address;
|
|
126
|
+
}
|
|
127
|
+
class Token {
|
|
128
|
+
static TYPE_QNAME: string;
|
|
129
|
+
id: token.TokenId;
|
|
130
|
+
amount: bigint;
|
|
131
|
+
token_properties: property_map.PropertyMap;
|
|
132
|
+
}
|
|
133
|
+
class TokenData {
|
|
134
|
+
static TYPE_QNAME: string;
|
|
135
|
+
maximum: bigint;
|
|
136
|
+
largest_property_version: bigint;
|
|
137
|
+
supply: bigint;
|
|
138
|
+
uri: string;
|
|
139
|
+
royalty: token.Royalty;
|
|
140
|
+
name: string;
|
|
141
|
+
description: string;
|
|
142
|
+
default_properties: property_map.PropertyMap;
|
|
143
|
+
mutability_config: token.TokenMutabilityConfig;
|
|
144
|
+
}
|
|
145
|
+
class TokenDataId {
|
|
146
|
+
static TYPE_QNAME: string;
|
|
147
|
+
creator: Address;
|
|
148
|
+
collection: string;
|
|
149
|
+
name: string;
|
|
150
|
+
}
|
|
151
|
+
class TokenId {
|
|
152
|
+
static TYPE_QNAME: string;
|
|
153
|
+
token_data_id: token.TokenDataId;
|
|
154
|
+
property_version: bigint;
|
|
155
|
+
}
|
|
156
|
+
class TokenMutabilityConfig {
|
|
157
|
+
static TYPE_QNAME: string;
|
|
158
|
+
maximum: Boolean;
|
|
159
|
+
uri: Boolean;
|
|
160
|
+
royalty: Boolean;
|
|
161
|
+
description: Boolean;
|
|
162
|
+
properties: Boolean;
|
|
163
|
+
}
|
|
164
|
+
class TokenStore {
|
|
165
|
+
static TYPE_QNAME: string;
|
|
166
|
+
tokens: _0x1.table.Table<token.TokenId, token.Token>;
|
|
167
|
+
direct_transfer: Boolean;
|
|
168
|
+
deposit_events: _0x1.event.EventHandle<token.DepositEvent>;
|
|
169
|
+
withdraw_events: _0x1.event.EventHandle<token.WithdrawEvent>;
|
|
170
|
+
burn_events: _0x1.event.EventHandle<token.BurnTokenEvent>;
|
|
171
|
+
mutate_token_property_events: _0x1.event.EventHandle<token.MutateTokenPropertyMapEvent>;
|
|
172
|
+
}
|
|
173
|
+
class WithdrawCapability {
|
|
174
|
+
static TYPE_QNAME: string;
|
|
175
|
+
token_owner: Address;
|
|
176
|
+
token_id: token.TokenId;
|
|
177
|
+
amount: bigint;
|
|
178
|
+
expiration_sec: bigint;
|
|
179
|
+
}
|
|
180
|
+
class WithdrawEvent {
|
|
181
|
+
static TYPE_QNAME: string;
|
|
182
|
+
id: token.TokenId;
|
|
183
|
+
amount: bigint;
|
|
184
|
+
}
|
|
185
|
+
interface WithdrawEventInstance extends TypedEventInstance<WithdrawEvent> {
|
|
186
|
+
data_decoded: WithdrawEvent;
|
|
187
|
+
type_arguments: [];
|
|
188
|
+
}
|
|
189
|
+
interface BurnPayload extends TypedEntryFunctionPayload<[
|
|
190
|
+
Address,
|
|
191
|
+
string,
|
|
192
|
+
string,
|
|
193
|
+
bigint,
|
|
194
|
+
bigint
|
|
195
|
+
]> {
|
|
196
|
+
arguments_decoded: [Address, string, string, bigint, bigint];
|
|
197
|
+
type_arguments: [];
|
|
198
|
+
}
|
|
199
|
+
interface BurnByCreatorPayload extends TypedEntryFunctionPayload<[
|
|
200
|
+
Address,
|
|
201
|
+
string,
|
|
202
|
+
string,
|
|
203
|
+
bigint,
|
|
204
|
+
bigint
|
|
205
|
+
]> {
|
|
206
|
+
arguments_decoded: [Address, string, string, bigint, bigint];
|
|
207
|
+
type_arguments: [];
|
|
208
|
+
}
|
|
209
|
+
interface CreateCollectionScriptPayload extends TypedEntryFunctionPayload<[
|
|
210
|
+
string,
|
|
211
|
+
string,
|
|
212
|
+
string,
|
|
213
|
+
bigint,
|
|
214
|
+
Boolean[]
|
|
215
|
+
]> {
|
|
216
|
+
arguments_decoded: [string, string, string, bigint, Boolean[]];
|
|
217
|
+
type_arguments: [];
|
|
218
|
+
}
|
|
219
|
+
interface CreateTokenScriptPayload extends TypedEntryFunctionPayload<[
|
|
220
|
+
string,
|
|
221
|
+
string,
|
|
222
|
+
string,
|
|
223
|
+
bigint,
|
|
224
|
+
bigint,
|
|
225
|
+
string,
|
|
226
|
+
Address,
|
|
227
|
+
bigint,
|
|
228
|
+
bigint,
|
|
229
|
+
Boolean[],
|
|
230
|
+
string[],
|
|
231
|
+
string[],
|
|
232
|
+
string[]
|
|
233
|
+
]> {
|
|
234
|
+
arguments_decoded: [
|
|
235
|
+
string,
|
|
236
|
+
string,
|
|
237
|
+
string,
|
|
238
|
+
bigint,
|
|
239
|
+
bigint,
|
|
240
|
+
string,
|
|
241
|
+
Address,
|
|
242
|
+
bigint,
|
|
243
|
+
bigint,
|
|
244
|
+
Boolean[],
|
|
245
|
+
string[],
|
|
246
|
+
string[],
|
|
247
|
+
string[]
|
|
248
|
+
];
|
|
249
|
+
type_arguments: [];
|
|
250
|
+
}
|
|
251
|
+
interface DirectTransferScriptPayload extends TypedEntryFunctionPayload<[
|
|
252
|
+
Address,
|
|
253
|
+
Address,
|
|
254
|
+
string,
|
|
255
|
+
string,
|
|
256
|
+
bigint,
|
|
257
|
+
bigint
|
|
258
|
+
]> {
|
|
259
|
+
arguments_decoded: [Address, Address, string, string, bigint, bigint];
|
|
260
|
+
type_arguments: [];
|
|
261
|
+
}
|
|
262
|
+
interface InitializeTokenScriptPayload extends TypedEntryFunctionPayload<[]> {
|
|
263
|
+
arguments_decoded: [];
|
|
264
|
+
type_arguments: [];
|
|
265
|
+
}
|
|
266
|
+
interface MintScriptPayload extends TypedEntryFunctionPayload<[Address, string, string, bigint]> {
|
|
267
|
+
arguments_decoded: [Address, string, string, bigint];
|
|
268
|
+
type_arguments: [];
|
|
269
|
+
}
|
|
270
|
+
interface MutateTokenPropertiesPayload extends TypedEntryFunctionPayload<[
|
|
271
|
+
Address,
|
|
272
|
+
Address,
|
|
273
|
+
string,
|
|
274
|
+
string,
|
|
275
|
+
bigint,
|
|
276
|
+
bigint,
|
|
277
|
+
string[],
|
|
278
|
+
string[],
|
|
279
|
+
string[]
|
|
280
|
+
]> {
|
|
281
|
+
arguments_decoded: [
|
|
282
|
+
Address,
|
|
283
|
+
Address,
|
|
284
|
+
string,
|
|
285
|
+
string,
|
|
286
|
+
bigint,
|
|
287
|
+
bigint,
|
|
288
|
+
string[],
|
|
289
|
+
string[],
|
|
290
|
+
string[]
|
|
291
|
+
];
|
|
292
|
+
type_arguments: [];
|
|
293
|
+
}
|
|
294
|
+
interface OptInDirectTransferPayload extends TypedEntryFunctionPayload<[Boolean]> {
|
|
295
|
+
arguments_decoded: [Boolean];
|
|
296
|
+
type_arguments: [];
|
|
297
|
+
}
|
|
298
|
+
function loadTypes(_r: MoveCoder): void;
|
|
299
|
+
const ABI: MoveModule;
|
|
300
|
+
}
|
|
301
|
+
export declare namespace property_map {
|
|
302
|
+
class PropertyMap {
|
|
303
|
+
static TYPE_QNAME: string;
|
|
304
|
+
map: _0x1.simple_map.SimpleMap<string, property_map.PropertyValue>;
|
|
305
|
+
}
|
|
306
|
+
class PropertyValue {
|
|
307
|
+
static TYPE_QNAME: string;
|
|
308
|
+
value: string;
|
|
309
|
+
type: string;
|
|
310
|
+
}
|
|
311
|
+
function loadTypes(_r: MoveCoder): void;
|
|
312
|
+
const ABI: MoveModule;
|
|
313
|
+
}
|
|
314
|
+
export declare class token_coin_swap extends AptosBaseProcessor {
|
|
315
|
+
constructor(options: AptosBindOptions);
|
|
316
|
+
static DEFAULT_OPTIONS: AptosBindOptions;
|
|
317
|
+
static bind(options?: Partial<AptosBindOptions>): token_coin_swap;
|
|
318
|
+
onEntryListTokenForSwap(func: (call: token_coin_swap.ListTokenForSwapPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token_coin_swap;
|
|
319
|
+
onEventTokenListingEvent(func: (event: token_coin_swap.TokenListingEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token_coin_swap;
|
|
320
|
+
onEventTokenSwapEvent(func: (event: token_coin_swap.TokenSwapEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token_coin_swap;
|
|
321
|
+
loadTypesInternal(registry: MoveCoder): void;
|
|
322
|
+
}
|
|
323
|
+
export declare namespace token_coin_swap {
|
|
324
|
+
class TokenCoinSwap<T0> {
|
|
325
|
+
static TYPE_QNAME: string;
|
|
326
|
+
token_amount: bigint;
|
|
327
|
+
min_price_per_token: bigint;
|
|
328
|
+
}
|
|
329
|
+
class TokenEscrow {
|
|
330
|
+
static TYPE_QNAME: string;
|
|
331
|
+
token: token.Token;
|
|
332
|
+
locked_until_secs: bigint;
|
|
333
|
+
}
|
|
334
|
+
class TokenListingEvent {
|
|
335
|
+
static TYPE_QNAME: string;
|
|
336
|
+
token_id: token.TokenId;
|
|
337
|
+
amount: bigint;
|
|
338
|
+
min_price: bigint;
|
|
339
|
+
locked_until_secs: bigint;
|
|
340
|
+
coin_type_info: _0x1.type_info.TypeInfo;
|
|
341
|
+
}
|
|
342
|
+
interface TokenListingEventInstance extends TypedEventInstance<TokenListingEvent> {
|
|
343
|
+
data_decoded: TokenListingEvent;
|
|
344
|
+
type_arguments: [];
|
|
345
|
+
}
|
|
346
|
+
class TokenListings<T0> {
|
|
347
|
+
static TYPE_QNAME: string;
|
|
348
|
+
listings: _0x1.table.Table<token.TokenId, token_coin_swap.TokenCoinSwap<T0>>;
|
|
349
|
+
listing_events: _0x1.event.EventHandle<token_coin_swap.TokenListingEvent>;
|
|
350
|
+
swap_events: _0x1.event.EventHandle<token_coin_swap.TokenSwapEvent>;
|
|
351
|
+
}
|
|
352
|
+
class TokenStoreEscrow {
|
|
353
|
+
static TYPE_QNAME: string;
|
|
354
|
+
token_escrows: _0x1.table.Table<token.TokenId, token_coin_swap.TokenEscrow>;
|
|
355
|
+
}
|
|
356
|
+
class TokenSwapEvent {
|
|
357
|
+
static TYPE_QNAME: string;
|
|
358
|
+
token_id: token.TokenId;
|
|
359
|
+
token_buyer: Address;
|
|
360
|
+
token_amount: bigint;
|
|
361
|
+
coin_amount: bigint;
|
|
362
|
+
coin_type_info: _0x1.type_info.TypeInfo;
|
|
363
|
+
}
|
|
364
|
+
interface TokenSwapEventInstance extends TypedEventInstance<TokenSwapEvent> {
|
|
365
|
+
data_decoded: TokenSwapEvent;
|
|
366
|
+
type_arguments: [];
|
|
367
|
+
}
|
|
368
|
+
interface ListTokenForSwapPayload<T0 = any> extends TypedEntryFunctionPayload<[
|
|
369
|
+
Address,
|
|
370
|
+
string,
|
|
371
|
+
string,
|
|
372
|
+
bigint,
|
|
373
|
+
bigint,
|
|
374
|
+
bigint,
|
|
375
|
+
bigint
|
|
376
|
+
]> {
|
|
377
|
+
arguments_decoded: [
|
|
378
|
+
Address,
|
|
379
|
+
string,
|
|
380
|
+
string,
|
|
381
|
+
bigint,
|
|
382
|
+
bigint,
|
|
383
|
+
bigint,
|
|
384
|
+
bigint
|
|
385
|
+
];
|
|
386
|
+
type_arguments: [string];
|
|
387
|
+
}
|
|
388
|
+
function loadTypes(_r: MoveCoder): void;
|
|
389
|
+
const ABI: MoveModule;
|
|
390
|
+
}
|
|
391
|
+
export declare class token_transfers extends AptosBaseProcessor {
|
|
392
|
+
constructor(options: AptosBindOptions);
|
|
393
|
+
static DEFAULT_OPTIONS: AptosBindOptions;
|
|
394
|
+
static bind(options?: Partial<AptosBindOptions>): token_transfers;
|
|
395
|
+
onEntryCancelOfferScript(func: (call: token_transfers.CancelOfferScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token_transfers;
|
|
396
|
+
onEntryClaimScript(func: (call: token_transfers.ClaimScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token_transfers;
|
|
397
|
+
onEntryOfferScript(func: (call: token_transfers.OfferScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token_transfers;
|
|
398
|
+
onEventTokenOfferEvent(func: (event: token_transfers.TokenOfferEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token_transfers;
|
|
399
|
+
onEventTokenCancelOfferEvent(func: (event: token_transfers.TokenCancelOfferEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token_transfers;
|
|
400
|
+
onEventTokenClaimEvent(func: (event: token_transfers.TokenClaimEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token_transfers;
|
|
401
|
+
loadTypesInternal(registry: MoveCoder): void;
|
|
402
|
+
}
|
|
403
|
+
export declare namespace token_transfers {
|
|
404
|
+
class PendingClaims {
|
|
405
|
+
static TYPE_QNAME: string;
|
|
406
|
+
pending_claims: _0x1.table.Table<token_transfers.TokenOfferId, token.Token>;
|
|
407
|
+
offer_events: _0x1.event.EventHandle<token_transfers.TokenOfferEvent>;
|
|
408
|
+
cancel_offer_events: _0x1.event.EventHandle<token_transfers.TokenCancelOfferEvent>;
|
|
409
|
+
claim_events: _0x1.event.EventHandle<token_transfers.TokenClaimEvent>;
|
|
410
|
+
}
|
|
411
|
+
class TokenCancelOfferEvent {
|
|
412
|
+
static TYPE_QNAME: string;
|
|
413
|
+
to_address: Address;
|
|
414
|
+
token_id: token.TokenId;
|
|
415
|
+
amount: bigint;
|
|
416
|
+
}
|
|
417
|
+
interface TokenCancelOfferEventInstance extends TypedEventInstance<TokenCancelOfferEvent> {
|
|
418
|
+
data_decoded: TokenCancelOfferEvent;
|
|
419
|
+
type_arguments: [];
|
|
420
|
+
}
|
|
421
|
+
class TokenClaimEvent {
|
|
422
|
+
static TYPE_QNAME: string;
|
|
423
|
+
to_address: Address;
|
|
424
|
+
token_id: token.TokenId;
|
|
425
|
+
amount: bigint;
|
|
426
|
+
}
|
|
427
|
+
interface TokenClaimEventInstance extends TypedEventInstance<TokenClaimEvent> {
|
|
428
|
+
data_decoded: TokenClaimEvent;
|
|
429
|
+
type_arguments: [];
|
|
430
|
+
}
|
|
431
|
+
class TokenOfferEvent {
|
|
432
|
+
static TYPE_QNAME: string;
|
|
433
|
+
to_address: Address;
|
|
434
|
+
token_id: token.TokenId;
|
|
435
|
+
amount: bigint;
|
|
436
|
+
}
|
|
437
|
+
interface TokenOfferEventInstance extends TypedEventInstance<TokenOfferEvent> {
|
|
438
|
+
data_decoded: TokenOfferEvent;
|
|
439
|
+
type_arguments: [];
|
|
440
|
+
}
|
|
441
|
+
class TokenOfferId {
|
|
442
|
+
static TYPE_QNAME: string;
|
|
443
|
+
to_addr: Address;
|
|
444
|
+
token_id: token.TokenId;
|
|
445
|
+
}
|
|
446
|
+
interface CancelOfferScriptPayload extends TypedEntryFunctionPayload<[
|
|
447
|
+
Address,
|
|
448
|
+
Address,
|
|
449
|
+
Address,
|
|
450
|
+
string,
|
|
451
|
+
string,
|
|
452
|
+
bigint
|
|
453
|
+
]> {
|
|
454
|
+
arguments_decoded: [Address, Address, Address, string, string, bigint];
|
|
455
|
+
type_arguments: [];
|
|
456
|
+
}
|
|
457
|
+
interface ClaimScriptPayload extends TypedEntryFunctionPayload<[
|
|
458
|
+
Address,
|
|
459
|
+
Address,
|
|
460
|
+
Address,
|
|
461
|
+
string,
|
|
462
|
+
string,
|
|
463
|
+
bigint
|
|
464
|
+
]> {
|
|
465
|
+
arguments_decoded: [Address, Address, Address, string, string, bigint];
|
|
466
|
+
type_arguments: [];
|
|
467
|
+
}
|
|
468
|
+
interface OfferScriptPayload extends TypedEntryFunctionPayload<[
|
|
469
|
+
Address,
|
|
470
|
+
Address,
|
|
471
|
+
Address,
|
|
472
|
+
string,
|
|
473
|
+
string,
|
|
474
|
+
bigint,
|
|
475
|
+
bigint
|
|
476
|
+
]> {
|
|
477
|
+
arguments_decoded: [
|
|
478
|
+
Address,
|
|
479
|
+
Address,
|
|
480
|
+
Address,
|
|
481
|
+
string,
|
|
482
|
+
string,
|
|
483
|
+
bigint,
|
|
484
|
+
bigint
|
|
485
|
+
];
|
|
486
|
+
type_arguments: [];
|
|
487
|
+
}
|
|
488
|
+
function loadTypes(_r: MoveCoder): void;
|
|
489
|
+
const ABI: MoveModule;
|
|
490
|
+
}
|
|
491
|
+
export declare function loadAllTypes(_r: MoveCoder): void;
|