@sentio/sdk 1.13.0 → 1.13.2
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/cli/commands/run-create.js +2 -0
- package/lib/cli/commands/run-create.js.map +1 -1
- package/lib/test/index.d.ts +1 -0
- package/lib/test/index.js +5 -1
- package/lib/test/index.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/commands/run-create.ts +3 -0
- package/src/test/index.ts +1 -0
- package/template/package.json +2 -3
- package/template/src/processor.test.ts +1 -1
- package/template/src/processor.ts +20 -16
- package/template/node_modules/@sentio/sdk/lib/base-processor-template.d.ts +0 -27
- package/template/node_modules/@sentio/sdk/lib/base-processor-template.js +0 -80
- package/template/node_modules/@sentio/sdk/lib/base-processor-template.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/base-processor.d.ts +0 -30
- package/template/node_modules/@sentio/sdk/lib/base-processor.js +0 -148
- package/template/node_modules/@sentio/sdk/lib/base-processor.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/bind-options.d.ts +0 -21
- package/template/node_modules/@sentio/sdk/lib/bind-options.js +0 -42
- package/template/node_modules/@sentio/sdk/lib/bind-options.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/binds.d.ts +0 -10
- package/template/node_modules/@sentio/sdk/lib/binds.js +0 -59
- package/template/node_modules/@sentio/sdk/lib/binds.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/erc20/index.d.ts +0 -2
- package/template/node_modules/@sentio/sdk/lib/builtin/erc20/index.js +0 -22
- package/template/node_modules/@sentio/sdk/lib/builtin/erc20/index.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/erc20/test-utils.d.ts +0 -5
- package/template/node_modules/@sentio/sdk/lib/builtin/erc20/test-utils.js +0 -46
- package/template/node_modules/@sentio/sdk/lib/builtin/erc20/test-utils.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/erc20bytes/index.d.ts +0 -2
- package/template/node_modules/@sentio/sdk/lib/builtin/erc20bytes/index.js +0 -22
- package/template/node_modules/@sentio/sdk/lib/builtin/erc20bytes/index.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/erc20bytes/test-utils.d.ts +0 -4
- package/template/node_modules/@sentio/sdk/lib/builtin/erc20bytes/test-utils.js +0 -35
- package/template/node_modules/@sentio/sdk/lib/builtin/erc20bytes/test-utils.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/ERC20.d.ts +0 -307
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/ERC20.js +0 -3
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/ERC20.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/ERC20Bytes.d.ts +0 -166
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/ERC20Bytes.js +0 -3
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/ERC20Bytes.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/WETH9.d.ts +0 -221
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/WETH9.js +0 -3
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/WETH9.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/common.d.ts +0 -22
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/common.js +0 -3
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/common.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/erc20_processor.d.ts +0 -184
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/erc20_processor.js +0 -453
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/erc20_processor.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/erc20bytes_processor.d.ts +0 -110
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/erc20bytes_processor.js +0 -325
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/erc20bytes_processor.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/factories/ERC20Bytes__factory.d.ts +0 -48
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/factories/ERC20Bytes__factory.js +0 -254
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/factories/ERC20Bytes__factory.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/factories/ERC20__factory.d.ts +0 -42
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/factories/ERC20__factory.js +0 -404
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/factories/ERC20__factory.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/factories/WETH9__factory.d.ts +0 -45
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/factories/WETH9__factory.js +0 -297
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/factories/WETH9__factory.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/factories/index.d.ts +0 -3
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/factories/index.js +0 -13
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/factories/index.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/index.d.ts +0 -7
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/index.js +0 -34
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/index.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/weth9_processor.d.ts +0 -126
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/weth9_processor.js +0 -361
- package/template/node_modules/@sentio/sdk/lib/builtin/internal/weth9_processor.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/weth9/index.d.ts +0 -2
- package/template/node_modules/@sentio/sdk/lib/builtin/weth9/index.js +0 -22
- package/template/node_modules/@sentio/sdk/lib/builtin/weth9/index.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/builtin/weth9/test-utils.d.ts +0 -6
- package/template/node_modules/@sentio/sdk/lib/builtin/weth9/test-utils.js +0 -57
- package/template/node_modules/@sentio/sdk/lib/builtin/weth9/test-utils.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/chain-config.d.ts +0 -6
- package/template/node_modules/@sentio/sdk/lib/chain-config.js +0 -3
- package/template/node_modules/@sentio/sdk/lib/chain-config.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/cli/build.d.ts +0 -4
- package/template/node_modules/@sentio/sdk/lib/cli/build.js +0 -178
- package/template/node_modules/@sentio/sdk/lib/cli/build.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/cli/cli.d.ts +0 -2
- package/template/node_modules/@sentio/sdk/lib/cli/cli.js +0 -163
- package/template/node_modules/@sentio/sdk/lib/cli/cli.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/cli/commands/run-create.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/cli/commands/run-create.js +0 -43
- package/template/node_modules/@sentio/sdk/lib/cli/commands/run-create.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/cli/commands/run-login.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/cli/commands/run-login.js +0 -77
- package/template/node_modules/@sentio/sdk/lib/cli/commands/run-login.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/cli/config.d.ts +0 -16
- package/template/node_modules/@sentio/sdk/lib/cli/config.js +0 -36
- package/template/node_modules/@sentio/sdk/lib/cli/config.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/cli/key.d.ts +0 -2
- package/template/node_modules/@sentio/sdk/lib/cli/key.js +0 -44
- package/template/node_modules/@sentio/sdk/lib/cli/key.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/cli/solana-code-gen.d.ts +0 -2
- package/template/node_modules/@sentio/sdk/lib/cli/solana-code-gen.js +0 -19
- package/template/node_modules/@sentio/sdk/lib/cli/solana-code-gen.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/cli/upload.d.ts +0 -2
- package/template/node_modules/@sentio/sdk/lib/cli/upload.js +0 -85
- package/template/node_modules/@sentio/sdk/lib/cli/upload.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/cli/webpack.config.js +0 -42
- package/template/node_modules/@sentio/sdk/lib/context.d.ts +0 -49
- package/template/node_modules/@sentio/sdk/lib/context.js +0 -93
- package/template/node_modules/@sentio/sdk/lib/context.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/contract-namer.d.ts +0 -6
- package/template/node_modules/@sentio/sdk/lib/contract-namer.js +0 -20
- package/template/node_modules/@sentio/sdk/lib/contract-namer.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/error.d.ts +0 -7
- package/template/node_modules/@sentio/sdk/lib/error.js +0 -43
- package/template/node_modules/@sentio/sdk/lib/error.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/gen/builtin.d.ts +0 -6
- package/template/node_modules/@sentio/sdk/lib/gen/builtin.js +0 -3
- package/template/node_modules/@sentio/sdk/lib/gen/builtin.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/gen/google/protobuf/empty.d.ts +0 -16
- package/template/node_modules/@sentio/sdk/lib/gen/google/protobuf/empty.js +0 -47
- package/template/node_modules/@sentio/sdk/lib/gen/google/protobuf/empty.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/gen/processor/protos/processor.d.ts +0 -666
- package/template/node_modules/@sentio/sdk/lib/gen/processor/protos/processor.js +0 -2837
- package/template/node_modules/@sentio/sdk/lib/gen/processor/protos/processor.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/generic-processor.d.ts +0 -10
- package/template/node_modules/@sentio/sdk/lib/generic-processor.js +0 -32
- package/template/node_modules/@sentio/sdk/lib/generic-processor.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/index.d.ts +0 -18
- package/template/node_modules/@sentio/sdk/lib/index.js +0 -63
- package/template/node_modules/@sentio/sdk/lib/index.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/loader.d.ts +0 -5
- package/template/node_modules/@sentio/sdk/lib/loader.js +0 -30
- package/template/node_modules/@sentio/sdk/lib/loader.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/meter.d.ts +0 -26
- package/template/node_modules/@sentio/sdk/lib/meter.js +0 -131
- package/template/node_modules/@sentio/sdk/lib/meter.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/meter.test.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/meter.test.js +0 -16
- package/template/node_modules/@sentio/sdk/lib/meter.test.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/numberish.d.ts +0 -6
- package/template/node_modules/@sentio/sdk/lib/numberish.js +0 -96
- package/template/node_modules/@sentio/sdk/lib/numberish.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/numberish.test.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/numberish.test.js +0 -70
- package/template/node_modules/@sentio/sdk/lib/numberish.test.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/processor-runner.d.ts +0 -2
- package/template/node_modules/@sentio/sdk/lib/processor-runner.js +0 -40
- package/template/node_modules/@sentio/sdk/lib/processor-runner.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/processor-state.d.ts +0 -16
- package/template/node_modules/@sentio/sdk/lib/processor-state.js +0 -20
- package/template/node_modules/@sentio/sdk/lib/processor-state.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/promise-or-void.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/promise-or-void.js +0 -3
- package/template/node_modules/@sentio/sdk/lib/promise-or-void.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/provider.d.ts +0 -6
- package/template/node_modules/@sentio/sdk/lib/provider.js +0 -66
- package/template/node_modules/@sentio/sdk/lib/provider.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/release.config.js +0 -31
- package/template/node_modules/@sentio/sdk/lib/service.d.ts +0 -25
- package/template/node_modules/@sentio/sdk/lib/service.js +0 -406
- package/template/node_modules/@sentio/sdk/lib/service.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/solana/builtin/index.d.ts +0 -2
- package/template/node_modules/@sentio/sdk/lib/solana/builtin/index.js +0 -19
- package/template/node_modules/@sentio/sdk/lib/solana/builtin/index.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/solana/builtin/spl-token-processor.d.ts +0 -26
- package/template/node_modules/@sentio/sdk/lib/solana/builtin/spl-token-processor.js +0 -138
- package/template/node_modules/@sentio/sdk/lib/solana/builtin/spl-token-processor.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/solana/builtin/types.d.ts +0 -330
- package/template/node_modules/@sentio/sdk/lib/solana/builtin/types.js +0 -203
- package/template/node_modules/@sentio/sdk/lib/solana/builtin/types.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/solana/builtin/wormhole-processor.d.ts +0 -18
- package/template/node_modules/@sentio/sdk/lib/solana/builtin/wormhole-processor.js +0 -192
- package/template/node_modules/@sentio/sdk/lib/solana/builtin/wormhole-processor.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/solana-processor.d.ts +0 -34
- package/template/node_modules/@sentio/sdk/lib/solana-processor.js +0 -95
- package/template/node_modules/@sentio/sdk/lib/solana-processor.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/target-ethers-sentio/codegen.d.ts +0 -4
- package/template/node_modules/@sentio/sdk/lib/target-ethers-sentio/codegen.js +0 -292
- package/template/node_modules/@sentio/sdk/lib/target-ethers-sentio/codegen.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/target-ethers-sentio/functions.d.ts +0 -3
- package/template/node_modules/@sentio/sdk/lib/target-ethers-sentio/functions.js +0 -61
- package/template/node_modules/@sentio/sdk/lib/target-ethers-sentio/functions.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/target-ethers-sentio/index.d.ts +0 -6
- package/template/node_modules/@sentio/sdk/lib/target-ethers-sentio/index.js +0 -51
- package/template/node_modules/@sentio/sdk/lib/target-ethers-sentio/index.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/codegen.test.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/codegen.test.js +0 -49
- package/template/node_modules/@sentio/sdk/lib/test/codegen.test.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/erc20-template.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/erc20-template.js +0 -23
- package/template/node_modules/@sentio/sdk/lib/test/erc20-template.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/erc20-template.test.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/erc20-template.test.js +0 -37
- package/template/node_modules/@sentio/sdk/lib/test/erc20-template.test.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/erc20.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/erc20.js +0 -44
- package/template/node_modules/@sentio/sdk/lib/test/erc20.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/erc20.test.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/erc20.test.js +0 -96
- package/template/node_modules/@sentio/sdk/lib/test/erc20.test.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/generic-processor.test.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/generic-processor.test.js +0 -59
- package/template/node_modules/@sentio/sdk/lib/test/generic-processor.test.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/index.d.ts +0 -2
- package/template/node_modules/@sentio/sdk/lib/test/index.js +0 -8
- package/template/node_modules/@sentio/sdk/lib/test/index.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/metric-utils.d.ts +0 -6
- package/template/node_modules/@sentio/sdk/lib/test/metric-utils.js +0 -50
- package/template/node_modules/@sentio/sdk/lib/test/metric-utils.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/mirrorworld.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/mirrorworld.js +0 -42
- package/template/node_modules/@sentio/sdk/lib/test/mirrorworld.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/solana.test.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/solana.test.js +0 -90
- package/template/node_modules/@sentio/sdk/lib/test/solana.test.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/test-processor-server.d.ts +0 -34
- package/template/node_modules/@sentio/sdk/lib/test/test-processor-server.js +0 -205
- package/template/node_modules/@sentio/sdk/lib/test/test-processor-server.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/test-provider.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/test-provider.js +0 -25
- package/template/node_modules/@sentio/sdk/lib/test/test-provider.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/types/game_wallet.d.ts +0 -45
- package/template/node_modules/@sentio/sdk/lib/test/types/game_wallet.js +0 -1396
- package/template/node_modules/@sentio/sdk/lib/test/types/game_wallet.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/types/game_wallet_processor.d.ts +0 -107
- package/template/node_modules/@sentio/sdk/lib/test/types/game_wallet_processor.js +0 -105
- package/template/node_modules/@sentio/sdk/lib/test/types/game_wallet_processor.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/wormhole-token-bridge.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/test/wormhole-token-bridge.js +0 -22
- package/template/node_modules/@sentio/sdk/lib/test/wormhole-token-bridge.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/trace.d.ts +0 -35
- package/template/node_modules/@sentio/sdk/lib/trace.js +0 -43
- package/template/node_modules/@sentio/sdk/lib/trace.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/utils/chainmap.d.ts +0 -2
- package/template/node_modules/@sentio/sdk/lib/utils/chainmap.js +0 -98
- package/template/node_modules/@sentio/sdk/lib/utils/chainmap.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/utils/convert.d.ts +0 -5
- package/template/node_modules/@sentio/sdk/lib/utils/convert.js +0 -27
- package/template/node_modules/@sentio/sdk/lib/utils/convert.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/utils/erc20.d.ts +0 -14
- package/template/node_modules/@sentio/sdk/lib/utils/erc20.js +0 -62
- package/template/node_modules/@sentio/sdk/lib/utils/erc20.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/utils/erc20.test.d.ts +0 -1
- package/template/node_modules/@sentio/sdk/lib/utils/erc20.test.js +0 -23
- package/template/node_modules/@sentio/sdk/lib/utils/erc20.test.js.map +0 -1
- package/template/node_modules/@sentio/sdk/lib/utils/index.d.ts +0 -3
- package/template/node_modules/@sentio/sdk/lib/utils/index.js +0 -14
- package/template/node_modules/@sentio/sdk/lib/utils/index.js.map +0 -1
- package/template/node_modules/@sentio/sdk/package.json +0 -78
- package/template/node_modules/@sentio/sdk/src/abis/ERC20.json +0 -174
- package/template/node_modules/@sentio/sdk/src/abis/ERC20Bytes.json +0 -236
- package/template/node_modules/@sentio/sdk/src/abis/WETH9.json +0 -153
- package/template/node_modules/@sentio/sdk/src/base-processor-template.ts +0 -105
- package/template/node_modules/@sentio/sdk/src/base-processor.ts +0 -172
- package/template/node_modules/@sentio/sdk/src/bind-options.ts +0 -41
- package/template/node_modules/@sentio/sdk/src/binds.ts +0 -73
- package/template/node_modules/@sentio/sdk/src/builtin/erc20/index.ts +0 -6
- package/template/node_modules/@sentio/sdk/src/builtin/erc20/test-utils.ts +0 -71
- package/template/node_modules/@sentio/sdk/src/builtin/erc20bytes/index.ts +0 -6
- package/template/node_modules/@sentio/sdk/src/builtin/erc20bytes/test-utils.ts +0 -53
- package/template/node_modules/@sentio/sdk/src/builtin/internal/ERC20.ts +0 -679
- package/template/node_modules/@sentio/sdk/src/builtin/internal/ERC20Bytes.ts +0 -384
- package/template/node_modules/@sentio/sdk/src/builtin/internal/WETH9.ts +0 -480
- package/template/node_modules/@sentio/sdk/src/builtin/internal/common.ts +0 -46
- package/template/node_modules/@sentio/sdk/src/builtin/internal/erc20_processor.ts +0 -762
- package/template/node_modules/@sentio/sdk/src/builtin/internal/erc20bytes_processor.ts +0 -531
- package/template/node_modules/@sentio/sdk/src/builtin/internal/factories/ERC20Bytes__factory.ts +0 -257
- package/template/node_modules/@sentio/sdk/src/builtin/internal/factories/ERC20__factory.ts +0 -404
- package/template/node_modules/@sentio/sdk/src/builtin/internal/factories/WETH9__factory.ts +0 -297
- package/template/node_modules/@sentio/sdk/src/builtin/internal/factories/index.ts +0 -6
- package/template/node_modules/@sentio/sdk/src/builtin/internal/index.ts +0 -10
- package/template/node_modules/@sentio/sdk/src/builtin/internal/weth9_processor.ts +0 -589
- package/template/node_modules/@sentio/sdk/src/builtin/weth9/index.ts +0 -6
- package/template/node_modules/@sentio/sdk/src/builtin/weth9/test-utils.ts +0 -89
- package/template/node_modules/@sentio/sdk/src/chain-config.ts +0 -6
- package/template/node_modules/@sentio/sdk/src/cli/build.ts +0 -196
- package/template/node_modules/@sentio/sdk/src/cli/cli.ts +0 -160
- package/template/node_modules/@sentio/sdk/src/cli/commands/run-create.ts +0 -36
- package/template/node_modules/@sentio/sdk/src/cli/commands/run-login.ts +0 -70
- package/template/node_modules/@sentio/sdk/src/cli/config.ts +0 -45
- package/template/node_modules/@sentio/sdk/src/cli/key.ts +0 -43
- package/template/node_modules/@sentio/sdk/src/cli/solana-code-gen.ts +0 -16
- package/template/node_modules/@sentio/sdk/src/cli/upload.ts +0 -88
- package/template/node_modules/@sentio/sdk/src/cli/webpack.config.js +0 -42
- package/template/node_modules/@sentio/sdk/src/context.ts +0 -103
- package/template/node_modules/@sentio/sdk/src/contract-namer.ts +0 -17
- package/template/node_modules/@sentio/sdk/src/error.ts +0 -45
- package/template/node_modules/@sentio/sdk/src/gen/builtin.ts +0 -22
- package/template/node_modules/@sentio/sdk/src/gen/google/protobuf/empty.ts +0 -70
- package/template/node_modules/@sentio/sdk/src/gen/processor/protos/processor.ts +0 -3626
- package/template/node_modules/@sentio/sdk/src/generic-processor.ts +0 -35
- package/template/node_modules/@sentio/sdk/src/index.ts +0 -21
- package/template/node_modules/@sentio/sdk/src/loader.ts +0 -24
- package/template/node_modules/@sentio/sdk/src/meter.test.ts +0 -16
- package/template/node_modules/@sentio/sdk/src/meter.ts +0 -140
- package/template/node_modules/@sentio/sdk/src/numberish.test.ts +0 -82
- package/template/node_modules/@sentio/sdk/src/numberish.ts +0 -100
- package/template/node_modules/@sentio/sdk/src/processor-runner.ts +0 -46
- package/template/node_modules/@sentio/sdk/src/processor-state.ts +0 -24
- package/template/node_modules/@sentio/sdk/src/promise-or-void.ts +0 -1
- package/template/node_modules/@sentio/sdk/src/provider.ts +0 -74
- package/template/node_modules/@sentio/sdk/src/service.ts +0 -491
- package/template/node_modules/@sentio/sdk/src/solana/builtin/index.ts +0 -2
- package/template/node_modules/@sentio/sdk/src/solana/builtin/spl-token-processor.ts +0 -164
- package/template/node_modules/@sentio/sdk/src/solana/builtin/types.ts +0 -268
- package/template/node_modules/@sentio/sdk/src/solana/builtin/wormhole-processor.ts +0 -178
- package/template/node_modules/@sentio/sdk/src/solana-processor.ts +0 -106
- package/template/node_modules/@sentio/sdk/src/target-ethers-sentio/codegen.ts +0 -315
- package/template/node_modules/@sentio/sdk/src/target-ethers-sentio/functions.ts +0 -68
- package/template/node_modules/@sentio/sdk/src/target-ethers-sentio/index.ts +0 -50
- package/template/node_modules/@sentio/sdk/src/target-ethers-sentio/tsconfig.json +0 -9
- package/template/node_modules/@sentio/sdk/src/test/abis/evm/CommitmentPool.json +0 -1034
- package/template/node_modules/@sentio/sdk/src/test/abis/evm/anyswapRouter.json +0 -490
- package/template/node_modules/@sentio/sdk/src/test/abis/solana/mirrorworld.json +0 -1392
- package/template/node_modules/@sentio/sdk/src/test/codegen.test.ts +0 -29
- package/template/node_modules/@sentio/sdk/src/test/erc20-template.test.ts +0 -37
- package/template/node_modules/@sentio/sdk/src/test/erc20-template.ts +0 -25
- package/template/node_modules/@sentio/sdk/src/test/erc20.test.ts +0 -117
- package/template/node_modules/@sentio/sdk/src/test/erc20.ts +0 -50
- package/template/node_modules/@sentio/sdk/src/test/generic-processor.test.ts +0 -70
- package/template/node_modules/@sentio/sdk/src/test/index.ts +0 -2
- package/template/node_modules/@sentio/sdk/src/test/metric-utils.ts +0 -49
- package/template/node_modules/@sentio/sdk/src/test/mirrorworld.ts +0 -40
- package/template/node_modules/@sentio/sdk/src/test/sentio.yaml +0 -4
- package/template/node_modules/@sentio/sdk/src/test/solana.test.ts +0 -93
- package/template/node_modules/@sentio/sdk/src/test/test-processor-server.ts +0 -258
- package/template/node_modules/@sentio/sdk/src/test/test-provider.ts +0 -25
- package/template/node_modules/@sentio/sdk/src/test/types/game_wallet.ts +0 -1392
- package/template/node_modules/@sentio/sdk/src/test/types/game_wallet_processor.ts +0 -113
- package/template/node_modules/@sentio/sdk/src/test/wormhole-token-bridge.ts +0 -21
- package/template/node_modules/@sentio/sdk/src/trace.ts +0 -86
- package/template/node_modules/@sentio/sdk/src/types/global.d.ts +0 -17
- package/template/node_modules/@sentio/sdk/src/utils/chainmap.ts +0 -95
- package/template/node_modules/@sentio/sdk/src/utils/convert.ts +0 -26
- package/template/node_modules/@sentio/sdk/src/utils/erc20.test.ts +0 -26
- package/template/node_modules/@sentio/sdk/src/utils/erc20.ts +0 -66
- package/template/node_modules/@sentio/sdk/src/utils/index.ts +0 -3
- package/template/node_modules/base-x/LICENSE.md +0 -22
- package/template/node_modules/base-x/README.md +0 -73
- package/template/node_modules/base-x/package.json +0 -46
- package/template/node_modules/base-x/src/index.d.ts +0 -9
- package/template/node_modules/base-x/src/index.js +0 -121
- package/template/node_modules/bs58/CHANGELOG.md +0 -65
- package/template/node_modules/bs58/LICENSE +0 -21
- package/template/node_modules/bs58/README.md +0 -91
- package/template/node_modules/bs58/index.d.ts +0 -5
- package/template/node_modules/bs58/index.js +0 -4
- package/template/node_modules/bs58/package.json +0 -39
- package/template/src/types/internal/X2y2.ts +0 -684
- package/template/src/types/internal/common.ts +0 -46
- package/template/src/types/internal/factories/X2y2__factory.ts +0 -436
- package/template/src/types/internal/factories/index.ts +0 -4
- package/template/src/types/internal/index.ts +0 -6
- package/template/src/types/internal/x2y2_processor.ts +0 -1004
- package/template/src/types/x2y2/index.ts +0 -6
- package/template/src/types/x2y2/test-utils.ts +0 -89
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { SolanaBaseProcessor } from '../../solana-processor';
|
|
2
|
-
import { SolanaContext } from '../../context';
|
|
3
|
-
import { Instruction } from '@project-serum/anchor';
|
|
4
|
-
import { Approve, Burn, CloseAccount, FreezeAccount, InitializeAccount, InitializeAccount2, InitializeAccount3, InitializeMint, InitializeMultisig, MintTo, Revoke, ThawAccount, Transfer } from './types';
|
|
5
|
-
import { SolanaBindOptions } from '../../bind-options';
|
|
6
|
-
export declare class SPLTokenProcessor extends SolanaBaseProcessor {
|
|
7
|
-
static bind(options: SolanaBindOptions): SPLTokenProcessor;
|
|
8
|
-
fromParsedInstruction: (instruction: {
|
|
9
|
-
type: string;
|
|
10
|
-
info: any;
|
|
11
|
-
}) => Instruction | null;
|
|
12
|
-
onInitializeMint(handler: (data: InitializeMint, ctx: SolanaContext) => void): SPLTokenProcessor;
|
|
13
|
-
onInitializeAccount(hanlder: (data: InitializeAccount, ctx: SolanaContext) => void): SPLTokenProcessor;
|
|
14
|
-
onInitializeAccount2(hanlder: (data: InitializeAccount2, ctx: SolanaContext) => void): SPLTokenProcessor;
|
|
15
|
-
onInitializeAccount3(hanlder: (data: InitializeAccount3, ctx: SolanaContext) => void): SPLTokenProcessor;
|
|
16
|
-
onInitializeMultisig(handler: (data: InitializeMultisig, ctx: SolanaContext) => void): SPLTokenProcessor;
|
|
17
|
-
onTransfer(handler: (data: Transfer, ctx: SolanaContext) => void): SPLTokenProcessor;
|
|
18
|
-
onApprovend(handler: (data: Approve, ctx: SolanaContext) => void): SPLTokenProcessor;
|
|
19
|
-
onRevoke(handler: (data: Revoke, ctx: SolanaContext) => void): SPLTokenProcessor;
|
|
20
|
-
onSetAuthority(handler: (data: any, ctx: SolanaContext) => void): SPLTokenProcessor;
|
|
21
|
-
onMintTo(handler: (data: MintTo, ctx: SolanaContext) => void): SPLTokenProcessor;
|
|
22
|
-
onBurn(handler: (data: Burn, ctx: SolanaContext) => void): SPLTokenProcessor;
|
|
23
|
-
onCloseAccount(handler: (data: CloseAccount, ctx: SolanaContext) => void): SPLTokenProcessor;
|
|
24
|
-
onFreezeAccount(handler: (data: FreezeAccount, ctx: SolanaContext) => void): SPLTokenProcessor;
|
|
25
|
-
onThawAccount(handler: (data: ThawAccount, ctx: SolanaContext) => void): SPLTokenProcessor;
|
|
26
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SPLTokenProcessor = void 0;
|
|
4
|
-
const solana_processor_1 = require("../../solana-processor");
|
|
5
|
-
class SPLTokenProcessor extends solana_processor_1.SolanaBaseProcessor {
|
|
6
|
-
static bind(options) {
|
|
7
|
-
if (options && !options.name) {
|
|
8
|
-
options.name = 'SPL Token Program';
|
|
9
|
-
}
|
|
10
|
-
return new SPLTokenProcessor(options);
|
|
11
|
-
}
|
|
12
|
-
fromParsedInstruction = (instruction) => {
|
|
13
|
-
const instructionType = instruction.type;
|
|
14
|
-
if (!instructionType) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
name: instruction.type,
|
|
19
|
-
data: {
|
|
20
|
-
...instruction.info,
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
onInitializeMint(handler) {
|
|
25
|
-
this.onInstruction('initializeMint', (ins, ctx) => {
|
|
26
|
-
if (ins) {
|
|
27
|
-
handler(ins.data, ctx);
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
return this;
|
|
31
|
-
}
|
|
32
|
-
onInitializeAccount(hanlder) {
|
|
33
|
-
this.onInstruction('initializeAccount', (ins, ctx) => {
|
|
34
|
-
if (ins) {
|
|
35
|
-
hanlder(ins.data, ctx);
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
return this;
|
|
39
|
-
}
|
|
40
|
-
onInitializeAccount2(hanlder) {
|
|
41
|
-
this.onInstruction('initializeAccount2', (ins, ctx) => {
|
|
42
|
-
if (ins) {
|
|
43
|
-
hanlder(ins.data, ctx);
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
return this;
|
|
47
|
-
}
|
|
48
|
-
onInitializeAccount3(hanlder) {
|
|
49
|
-
this.onInstruction('initializeAccount3', (ins, ctx) => {
|
|
50
|
-
if (ins) {
|
|
51
|
-
hanlder(ins.data, ctx);
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
return this;
|
|
55
|
-
}
|
|
56
|
-
onInitializeMultisig(handler) {
|
|
57
|
-
this.onInstruction('initializeMultisig', (ins, ctx) => {
|
|
58
|
-
if (ins) {
|
|
59
|
-
handler(ins.data, ctx);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
return this;
|
|
63
|
-
}
|
|
64
|
-
onTransfer(handler) {
|
|
65
|
-
this.onInstruction('transfer', (ins, ctx) => {
|
|
66
|
-
if (ins) {
|
|
67
|
-
handler(ins.data, ctx);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
return this;
|
|
71
|
-
}
|
|
72
|
-
onApprovend(handler) {
|
|
73
|
-
this.onInstruction('approve', (ins, ctx) => {
|
|
74
|
-
if (ins) {
|
|
75
|
-
handler(ins.data, ctx);
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
return this;
|
|
79
|
-
}
|
|
80
|
-
onRevoke(handler) {
|
|
81
|
-
this.onInstruction('revoke', (ins, ctx) => {
|
|
82
|
-
if (ins) {
|
|
83
|
-
handler(ins.data, ctx);
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
return this;
|
|
87
|
-
}
|
|
88
|
-
onSetAuthority(handler) {
|
|
89
|
-
this.onInstruction('setAuthority', (ins, ctx) => {
|
|
90
|
-
if (ins) {
|
|
91
|
-
handler(ins.data, ctx);
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
return this;
|
|
95
|
-
}
|
|
96
|
-
onMintTo(handler) {
|
|
97
|
-
this.onInstruction('mintTo', (ins, ctx) => {
|
|
98
|
-
if (ins) {
|
|
99
|
-
handler(ins.data, ctx);
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
return this;
|
|
103
|
-
}
|
|
104
|
-
onBurn(handler) {
|
|
105
|
-
this.onInstruction('burn', (ins, ctx) => {
|
|
106
|
-
if (ins) {
|
|
107
|
-
handler(ins.data, ctx);
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
return this;
|
|
111
|
-
}
|
|
112
|
-
onCloseAccount(handler) {
|
|
113
|
-
this.onInstruction('closeAccount', (ins, ctx) => {
|
|
114
|
-
if (ins) {
|
|
115
|
-
handler(ins.data, ctx);
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
return this;
|
|
119
|
-
}
|
|
120
|
-
onFreezeAccount(handler) {
|
|
121
|
-
this.onInstruction('freezeAccount', (ins, ctx) => {
|
|
122
|
-
if (ins) {
|
|
123
|
-
handler(ins.data, ctx);
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
return this;
|
|
127
|
-
}
|
|
128
|
-
onThawAccount(handler) {
|
|
129
|
-
this.onInstruction('thawAccount', (ins, ctx) => {
|
|
130
|
-
if (ins) {
|
|
131
|
-
handler(ins.data, ctx);
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
return this;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
exports.SPLTokenProcessor = SPLTokenProcessor;
|
|
138
|
-
//# sourceMappingURL=spl-token-processor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spl-token-processor.js","sourceRoot":"","sources":["../../../src/solana/builtin/spl-token-processor.ts"],"names":[],"mappings":"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","sourcesContent":["import { SolanaBaseProcessor } from '../../solana-processor'\nimport { SolanaContext } from '../../context'\nimport { Instruction } from '@project-serum/anchor'\nimport { Approve, Burn, CloseAccount, FreezeAccount, InitializeAccount, InitializeAccount2, InitializeAccount3, InitializeMint, InitializeMultisig, MintTo, Revoke, ThawAccount, Transfer } from './types';\nimport { SolanaBindOptions } from '../../bind-options';\n\nexport class SPLTokenProcessor extends SolanaBaseProcessor {\n static bind(options: SolanaBindOptions): SPLTokenProcessor {\n if (options && !options.name) {\n options.name = 'SPL Token Program'\n }\n return new SPLTokenProcessor(options)\n }\n \n fromParsedInstruction: (instruction: { type: string, info: any }) => Instruction | null = (instruction: { type: string, info: any }) => {\n const instructionType = instruction.type\n if (!instructionType) {\n return null\n }\n return {\n name: instruction.type,\n data: {\n ...instruction.info,\n },\n }\n }\n\n public onInitializeMint(\n handler: (data: InitializeMint, ctx: SolanaContext) => void\n ): SPLTokenProcessor {\n this.onInstruction('initializeMint', (ins: Instruction, ctx) => {\n if (ins) {\n handler(ins.data as InitializeMint, ctx)\n }\n })\n return this\n }\n\n public onInitializeAccount(\n hanlder: (data: InitializeAccount, ctx: SolanaContext) => void\n ): SPLTokenProcessor {\n this.onInstruction('initializeAccount', (ins: Instruction, ctx) => {\n if (ins) {\n hanlder(ins.data as InitializeAccount, ctx)\n }\n })\n return this\n }\n\n public onInitializeAccount2(\n hanlder: (data: InitializeAccount2, ctx: SolanaContext) => void\n ): SPLTokenProcessor {\n this.onInstruction('initializeAccount2', (ins: Instruction, ctx) => {\n if (ins) {\n hanlder(ins.data as InitializeAccount2, ctx)\n }\n })\n return this\n }\n\n public onInitializeAccount3(\n hanlder: (data: InitializeAccount3, ctx: SolanaContext) => void\n ): SPLTokenProcessor {\n this.onInstruction('initializeAccount3', (ins: Instruction, ctx) => {\n if (ins) {\n hanlder(ins.data as InitializeAccount3, ctx)\n }\n })\n return this\n }\n\n public onInitializeMultisig(\n handler: (data: InitializeMultisig, ctx: SolanaContext) => void\n ): SPLTokenProcessor {\n this.onInstruction('initializeMultisig', (ins: Instruction, ctx) => {\n if (ins) {\n handler(ins.data as InitializeMultisig, ctx)\n }\n })\n return this\n }\n\n public onTransfer(handler: (data: Transfer, ctx: SolanaContext) => void): SPLTokenProcessor {\n this.onInstruction('transfer', (ins: Instruction, ctx) => {\n if (ins) {\n handler(ins.data as Transfer, ctx)\n }\n })\n return this\n }\n\n public onApprovend(handler: (data: Approve, ctx: SolanaContext) => void): SPLTokenProcessor {\n this.onInstruction('approve', (ins: Instruction, ctx) => {\n if (ins) {\n handler(ins.data as Approve, ctx)\n }\n })\n return this\n }\n\n public onRevoke(handler: (data: Revoke, ctx: SolanaContext) => void): SPLTokenProcessor {\n this.onInstruction('revoke', (ins: Instruction, ctx) => {\n if (ins) {\n handler(ins.data as Revoke, ctx)\n }\n })\n return this\n }\n\n public onSetAuthority(handler: (data: any, ctx: SolanaContext) => void): SPLTokenProcessor {\n this.onInstruction('setAuthority', (ins: Instruction, ctx) => {\n if (ins) {\n handler(ins.data as any, ctx)\n }\n })\n return this\n }\n\n public onMintTo(handler: (data: MintTo, ctx: SolanaContext) => void): SPLTokenProcessor {\n this.onInstruction('mintTo', (ins: Instruction, ctx) => {\n if (ins) {\n handler(ins.data as MintTo, ctx)\n }\n })\n return this\n }\n\n public onBurn(handler: (data: Burn, ctx: SolanaContext) => void): SPLTokenProcessor {\n this.onInstruction('burn', (ins: Instruction, ctx) => {\n if (ins) {\n handler(ins.data as Burn, ctx)\n }\n })\n return this\n }\n\n public onCloseAccount(handler: (data: CloseAccount, ctx: SolanaContext) => void): SPLTokenProcessor {\n this.onInstruction('closeAccount', (ins: Instruction, ctx) => {\n if (ins) {\n handler(ins.data as CloseAccount, ctx)\n }\n })\n return this\n }\n\n public onFreezeAccount(handler: (data: FreezeAccount, ctx: SolanaContext) => void): SPLTokenProcessor {\n this.onInstruction('freezeAccount', (ins: Instruction, ctx) => {\n if (ins) {\n handler(ins.data as FreezeAccount, ctx)\n }\n })\n return this\n }\n\n public onThawAccount(handler: (data: ThawAccount, ctx: SolanaContext) => void): SPLTokenProcessor {\n this.onInstruction('thawAccount', (ins: Instruction, ctx) => {\n if (ins) {\n handler(ins.data as ThawAccount, ctx)\n }\n })\n return this\n }\n // Todo(pcxu): auto gen this file\n}\n"]}
|
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
import { Infer } from "superstruct";
|
|
2
|
-
export declare const PublicKeyFromString: import("superstruct").Struct<String, null>;
|
|
3
|
-
export declare type TokenAmountUi = Infer<typeof TokenAmountUi>;
|
|
4
|
-
export declare type MintTo = Infer<typeof MintTo>;
|
|
5
|
-
export declare type Burn = Infer<typeof Burn>;
|
|
6
|
-
export declare type InitializeMint = Infer<typeof InitializeMint>;
|
|
7
|
-
export declare type InitializeAccount = Infer<typeof InitializeAccount>;
|
|
8
|
-
export declare type InitializeAccount2 = Infer<typeof InitializeAccount2>;
|
|
9
|
-
export declare type InitializeAccount3 = Infer<typeof InitializeAccount3>;
|
|
10
|
-
export declare type InitializeMultisig = Infer<typeof InitializeMultisig>;
|
|
11
|
-
export declare const TokenAmountUi: import("superstruct").Struct<{
|
|
12
|
-
amount: string;
|
|
13
|
-
decimals: number;
|
|
14
|
-
uiAmountString: string;
|
|
15
|
-
}, {
|
|
16
|
-
amount: import("superstruct").Struct<string, null>;
|
|
17
|
-
decimals: import("superstruct").Struct<number, null>;
|
|
18
|
-
uiAmountString: import("superstruct").Struct<string, null>;
|
|
19
|
-
}>;
|
|
20
|
-
declare const InitializeMint: import("superstruct").Struct<{
|
|
21
|
-
decimals: number;
|
|
22
|
-
mint: String;
|
|
23
|
-
mintAuthority: String;
|
|
24
|
-
rentSysvar: String;
|
|
25
|
-
freezeAuthority?: String | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
mint: import("superstruct").Struct<String, null>;
|
|
28
|
-
decimals: import("superstruct").Struct<number, null>;
|
|
29
|
-
mintAuthority: import("superstruct").Struct<String, null>;
|
|
30
|
-
rentSysvar: import("superstruct").Struct<String, null>;
|
|
31
|
-
freezeAuthority: import("superstruct").Struct<String | undefined, null>;
|
|
32
|
-
}>;
|
|
33
|
-
declare const InitializeAccount: import("superstruct").Struct<{
|
|
34
|
-
mint: String;
|
|
35
|
-
account: String;
|
|
36
|
-
rentSysvar: String;
|
|
37
|
-
owner: String;
|
|
38
|
-
}, {
|
|
39
|
-
account: import("superstruct").Struct<String, null>;
|
|
40
|
-
mint: import("superstruct").Struct<String, null>;
|
|
41
|
-
owner: import("superstruct").Struct<String, null>;
|
|
42
|
-
rentSysvar: import("superstruct").Struct<String, null>;
|
|
43
|
-
}>;
|
|
44
|
-
declare const InitializeAccount2: import("superstruct").Struct<{
|
|
45
|
-
mint: String;
|
|
46
|
-
account: String;
|
|
47
|
-
rentSysvar: String;
|
|
48
|
-
owner: String;
|
|
49
|
-
}, {
|
|
50
|
-
account: import("superstruct").Struct<String, null>;
|
|
51
|
-
mint: import("superstruct").Struct<String, null>;
|
|
52
|
-
rentSysvar: import("superstruct").Struct<String, null>;
|
|
53
|
-
owner: import("superstruct").Struct<String, null>;
|
|
54
|
-
}>;
|
|
55
|
-
declare const InitializeAccount3: import("superstruct").Struct<{
|
|
56
|
-
mint: String;
|
|
57
|
-
account: String;
|
|
58
|
-
owner: String;
|
|
59
|
-
}, {
|
|
60
|
-
account: import("superstruct").Struct<String, null>;
|
|
61
|
-
mint: import("superstruct").Struct<String, null>;
|
|
62
|
-
owner: import("superstruct").Struct<String, null>;
|
|
63
|
-
}>;
|
|
64
|
-
declare const InitializeMultisig: import("superstruct").Struct<{
|
|
65
|
-
signers: String[];
|
|
66
|
-
rentSysvar: String;
|
|
67
|
-
multisig: String;
|
|
68
|
-
m: number;
|
|
69
|
-
}, {
|
|
70
|
-
multisig: import("superstruct").Struct<String, null>;
|
|
71
|
-
rentSysvar: import("superstruct").Struct<String, null>;
|
|
72
|
-
signers: import("superstruct").Struct<String[], import("superstruct").Struct<String, null>>;
|
|
73
|
-
m: import("superstruct").Struct<number, null>;
|
|
74
|
-
}>;
|
|
75
|
-
export declare type Transfer = Infer<typeof Transfer>;
|
|
76
|
-
export declare const Transfer: import("superstruct").Struct<{
|
|
77
|
-
amount: string | number;
|
|
78
|
-
source: String;
|
|
79
|
-
destination: String;
|
|
80
|
-
signers?: String[] | undefined;
|
|
81
|
-
authority?: String | undefined;
|
|
82
|
-
multisigAuthority?: String | undefined;
|
|
83
|
-
}, {
|
|
84
|
-
source: import("superstruct").Struct<String, null>;
|
|
85
|
-
destination: import("superstruct").Struct<String, null>;
|
|
86
|
-
amount: import("superstruct").Struct<string | number, null>;
|
|
87
|
-
authority: import("superstruct").Struct<String | undefined, null>;
|
|
88
|
-
multisigAuthority: import("superstruct").Struct<String | undefined, null>;
|
|
89
|
-
signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
|
|
90
|
-
}>;
|
|
91
|
-
export declare type Approve = Infer<typeof Approve>;
|
|
92
|
-
declare const Approve: import("superstruct").Struct<{
|
|
93
|
-
amount: string | number;
|
|
94
|
-
source: String;
|
|
95
|
-
delegate: String;
|
|
96
|
-
signers?: String[] | undefined;
|
|
97
|
-
owner?: String | undefined;
|
|
98
|
-
multisigOwner?: String | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
source: import("superstruct").Struct<String, null>;
|
|
101
|
-
delegate: import("superstruct").Struct<String, null>;
|
|
102
|
-
amount: import("superstruct").Struct<string | number, null>;
|
|
103
|
-
owner: import("superstruct").Struct<String | undefined, null>;
|
|
104
|
-
multisigOwner: import("superstruct").Struct<String | undefined, null>;
|
|
105
|
-
signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
|
|
106
|
-
}>;
|
|
107
|
-
export declare type Revoke = Infer<typeof Revoke>;
|
|
108
|
-
declare const Revoke: import("superstruct").Struct<{
|
|
109
|
-
source: String;
|
|
110
|
-
signers?: String[] | undefined;
|
|
111
|
-
owner?: String | undefined;
|
|
112
|
-
multisigOwner?: String | undefined;
|
|
113
|
-
}, {
|
|
114
|
-
source: import("superstruct").Struct<String, null>;
|
|
115
|
-
owner: import("superstruct").Struct<String | undefined, null>;
|
|
116
|
-
multisigOwner: import("superstruct").Struct<String | undefined, null>;
|
|
117
|
-
signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
|
|
118
|
-
}>;
|
|
119
|
-
export declare type SetAuthority = Infer<typeof SetAuthority>;
|
|
120
|
-
declare const SetAuthority: import("superstruct").Struct<{
|
|
121
|
-
authorityType: "mintTokens" | "freezeAccount" | "accountOwner" | "closeAccount";
|
|
122
|
-
newAuthority: String | null;
|
|
123
|
-
mint?: String | undefined;
|
|
124
|
-
account?: String | undefined;
|
|
125
|
-
signers?: String[] | undefined;
|
|
126
|
-
authority?: String | undefined;
|
|
127
|
-
multisigAuthority?: String | undefined;
|
|
128
|
-
}, {
|
|
129
|
-
mint: import("superstruct").Struct<String | undefined, null>;
|
|
130
|
-
account: import("superstruct").Struct<String | undefined, null>;
|
|
131
|
-
authorityType: import("superstruct").Struct<"mintTokens" | "freezeAccount" | "accountOwner" | "closeAccount", {
|
|
132
|
-
mintTokens: "mintTokens";
|
|
133
|
-
freezeAccount: "freezeAccount";
|
|
134
|
-
accountOwner: "accountOwner";
|
|
135
|
-
closeAccount: "closeAccount";
|
|
136
|
-
}>;
|
|
137
|
-
newAuthority: import("superstruct").Struct<String | null, null>;
|
|
138
|
-
authority: import("superstruct").Struct<String | undefined, null>;
|
|
139
|
-
multisigAuthority: import("superstruct").Struct<String | undefined, null>;
|
|
140
|
-
signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
|
|
141
|
-
}>;
|
|
142
|
-
declare const MintTo: import("superstruct").Struct<{
|
|
143
|
-
amount: string | number;
|
|
144
|
-
mint: String;
|
|
145
|
-
account: String;
|
|
146
|
-
mintAuthority?: String | undefined;
|
|
147
|
-
multisigMintAuthority?: String | undefined;
|
|
148
|
-
signers?: String[] | undefined;
|
|
149
|
-
}, {
|
|
150
|
-
mint: import("superstruct").Struct<String, null>;
|
|
151
|
-
account: import("superstruct").Struct<String, null>;
|
|
152
|
-
amount: import("superstruct").Struct<string | number, null>;
|
|
153
|
-
mintAuthority: import("superstruct").Struct<String | undefined, null>;
|
|
154
|
-
multisigMintAuthority: import("superstruct").Struct<String | undefined, null>;
|
|
155
|
-
signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
|
|
156
|
-
}>;
|
|
157
|
-
declare const Burn: import("superstruct").Struct<{
|
|
158
|
-
amount: string | number;
|
|
159
|
-
mint: String;
|
|
160
|
-
account: String;
|
|
161
|
-
signers?: String[] | undefined;
|
|
162
|
-
authority?: String | undefined;
|
|
163
|
-
multisigAuthority?: String | undefined;
|
|
164
|
-
}, {
|
|
165
|
-
account: import("superstruct").Struct<String, null>;
|
|
166
|
-
mint: import("superstruct").Struct<String, null>;
|
|
167
|
-
amount: import("superstruct").Struct<string | number, null>;
|
|
168
|
-
authority: import("superstruct").Struct<String | undefined, null>;
|
|
169
|
-
multisigAuthority: import("superstruct").Struct<String | undefined, null>;
|
|
170
|
-
signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
|
|
171
|
-
}>;
|
|
172
|
-
declare const CloseAccount: import("superstruct").Struct<{
|
|
173
|
-
account: String;
|
|
174
|
-
destination: String;
|
|
175
|
-
signers?: String[] | undefined;
|
|
176
|
-
owner?: String | undefined;
|
|
177
|
-
multisigOwner?: String | undefined;
|
|
178
|
-
}, {
|
|
179
|
-
account: import("superstruct").Struct<String, null>;
|
|
180
|
-
destination: import("superstruct").Struct<String, null>;
|
|
181
|
-
owner: import("superstruct").Struct<String | undefined, null>;
|
|
182
|
-
multisigOwner: import("superstruct").Struct<String | undefined, null>;
|
|
183
|
-
signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
|
|
184
|
-
}>;
|
|
185
|
-
export declare type CloseAccount = Infer<typeof CloseAccount>;
|
|
186
|
-
export declare type FreezeAccount = Infer<typeof FreezeAccount>;
|
|
187
|
-
declare const FreezeAccount: import("superstruct").Struct<{
|
|
188
|
-
mint: String;
|
|
189
|
-
account: String;
|
|
190
|
-
signers?: String[] | undefined;
|
|
191
|
-
freezeAuthority?: String | undefined;
|
|
192
|
-
multisigFreezeAuthority?: String | undefined;
|
|
193
|
-
}, {
|
|
194
|
-
account: import("superstruct").Struct<String, null>;
|
|
195
|
-
mint: import("superstruct").Struct<String, null>;
|
|
196
|
-
freezeAuthority: import("superstruct").Struct<String | undefined, null>;
|
|
197
|
-
multisigFreezeAuthority: import("superstruct").Struct<String | undefined, null>;
|
|
198
|
-
signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
|
|
199
|
-
}>;
|
|
200
|
-
export declare type ThawAccount = Infer<typeof ThawAccount>;
|
|
201
|
-
declare const ThawAccount: import("superstruct").Struct<{
|
|
202
|
-
mint: String;
|
|
203
|
-
account: String;
|
|
204
|
-
signers?: String[] | undefined;
|
|
205
|
-
freezeAuthority?: String | undefined;
|
|
206
|
-
multisigFreezeAuthority?: String | undefined;
|
|
207
|
-
}, {
|
|
208
|
-
account: import("superstruct").Struct<String, null>;
|
|
209
|
-
mint: import("superstruct").Struct<String, null>;
|
|
210
|
-
freezeAuthority: import("superstruct").Struct<String | undefined, null>;
|
|
211
|
-
multisigFreezeAuthority: import("superstruct").Struct<String | undefined, null>;
|
|
212
|
-
signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
|
|
213
|
-
}>;
|
|
214
|
-
export declare type TransferChecked = Infer<typeof TransferChecked>;
|
|
215
|
-
export declare const TransferChecked: import("superstruct").Struct<{
|
|
216
|
-
mint: String;
|
|
217
|
-
source: String;
|
|
218
|
-
destination: String;
|
|
219
|
-
tokenAmount: {
|
|
220
|
-
amount: string;
|
|
221
|
-
decimals: number;
|
|
222
|
-
uiAmountString: string;
|
|
223
|
-
};
|
|
224
|
-
signers?: String[] | undefined;
|
|
225
|
-
authority?: String | undefined;
|
|
226
|
-
multisigAuthority?: String | undefined;
|
|
227
|
-
}, {
|
|
228
|
-
source: import("superstruct").Struct<String, null>;
|
|
229
|
-
mint: import("superstruct").Struct<String, null>;
|
|
230
|
-
destination: import("superstruct").Struct<String, null>;
|
|
231
|
-
authority: import("superstruct").Struct<String | undefined, null>;
|
|
232
|
-
multisigAuthority: import("superstruct").Struct<String | undefined, null>;
|
|
233
|
-
signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
|
|
234
|
-
tokenAmount: import("superstruct").Struct<{
|
|
235
|
-
amount: string;
|
|
236
|
-
decimals: number;
|
|
237
|
-
uiAmountString: string;
|
|
238
|
-
}, {
|
|
239
|
-
amount: import("superstruct").Struct<string, null>;
|
|
240
|
-
decimals: import("superstruct").Struct<number, null>;
|
|
241
|
-
uiAmountString: import("superstruct").Struct<string, null>;
|
|
242
|
-
}>;
|
|
243
|
-
}>;
|
|
244
|
-
export declare type ApproveChecked = Infer<typeof ApproveChecked>;
|
|
245
|
-
declare const ApproveChecked: import("superstruct").Struct<{
|
|
246
|
-
mint: String;
|
|
247
|
-
source: String;
|
|
248
|
-
delegate: String;
|
|
249
|
-
tokenAmount: {
|
|
250
|
-
amount: string;
|
|
251
|
-
decimals: number;
|
|
252
|
-
uiAmountString: string;
|
|
253
|
-
};
|
|
254
|
-
signers?: String[] | undefined;
|
|
255
|
-
owner?: String | undefined;
|
|
256
|
-
multisigOwner?: String | undefined;
|
|
257
|
-
}, {
|
|
258
|
-
source: import("superstruct").Struct<String, null>;
|
|
259
|
-
mint: import("superstruct").Struct<String, null>;
|
|
260
|
-
delegate: import("superstruct").Struct<String, null>;
|
|
261
|
-
owner: import("superstruct").Struct<String | undefined, null>;
|
|
262
|
-
multisigOwner: import("superstruct").Struct<String | undefined, null>;
|
|
263
|
-
signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
|
|
264
|
-
tokenAmount: import("superstruct").Struct<{
|
|
265
|
-
amount: string;
|
|
266
|
-
decimals: number;
|
|
267
|
-
uiAmountString: string;
|
|
268
|
-
}, {
|
|
269
|
-
amount: import("superstruct").Struct<string, null>;
|
|
270
|
-
decimals: import("superstruct").Struct<number, null>;
|
|
271
|
-
uiAmountString: import("superstruct").Struct<string, null>;
|
|
272
|
-
}>;
|
|
273
|
-
}>;
|
|
274
|
-
export declare type MintToChecked = Infer<typeof MintToChecked>;
|
|
275
|
-
declare const MintToChecked: import("superstruct").Struct<{
|
|
276
|
-
mint: String;
|
|
277
|
-
account: String;
|
|
278
|
-
tokenAmount: {
|
|
279
|
-
amount: string;
|
|
280
|
-
decimals: number;
|
|
281
|
-
uiAmountString: string;
|
|
282
|
-
};
|
|
283
|
-
mintAuthority?: String | undefined;
|
|
284
|
-
multisigMintAuthority?: String | undefined;
|
|
285
|
-
signers?: String[] | undefined;
|
|
286
|
-
}, {
|
|
287
|
-
account: import("superstruct").Struct<String, null>;
|
|
288
|
-
mint: import("superstruct").Struct<String, null>;
|
|
289
|
-
mintAuthority: import("superstruct").Struct<String | undefined, null>;
|
|
290
|
-
multisigMintAuthority: import("superstruct").Struct<String | undefined, null>;
|
|
291
|
-
signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
|
|
292
|
-
tokenAmount: import("superstruct").Struct<{
|
|
293
|
-
amount: string;
|
|
294
|
-
decimals: number;
|
|
295
|
-
uiAmountString: string;
|
|
296
|
-
}, {
|
|
297
|
-
amount: import("superstruct").Struct<string, null>;
|
|
298
|
-
decimals: import("superstruct").Struct<number, null>;
|
|
299
|
-
uiAmountString: import("superstruct").Struct<string, null>;
|
|
300
|
-
}>;
|
|
301
|
-
}>;
|
|
302
|
-
export declare type BurnChecked = Infer<typeof BurnChecked>;
|
|
303
|
-
declare const BurnChecked: import("superstruct").Struct<{
|
|
304
|
-
mint: String;
|
|
305
|
-
account: String;
|
|
306
|
-
tokenAmount: {
|
|
307
|
-
amount: string;
|
|
308
|
-
decimals: number;
|
|
309
|
-
uiAmountString: string;
|
|
310
|
-
};
|
|
311
|
-
signers?: String[] | undefined;
|
|
312
|
-
authority?: String | undefined;
|
|
313
|
-
multisigAuthority?: String | undefined;
|
|
314
|
-
}, {
|
|
315
|
-
account: import("superstruct").Struct<String, null>;
|
|
316
|
-
mint: import("superstruct").Struct<String, null>;
|
|
317
|
-
authority: import("superstruct").Struct<String | undefined, null>;
|
|
318
|
-
multisigAuthority: import("superstruct").Struct<String | undefined, null>;
|
|
319
|
-
signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
|
|
320
|
-
tokenAmount: import("superstruct").Struct<{
|
|
321
|
-
amount: string;
|
|
322
|
-
decimals: number;
|
|
323
|
-
uiAmountString: string;
|
|
324
|
-
}, {
|
|
325
|
-
amount: import("superstruct").Struct<string, null>;
|
|
326
|
-
decimals: import("superstruct").Struct<number, null>;
|
|
327
|
-
uiAmountString: import("superstruct").Struct<string, null>;
|
|
328
|
-
}>;
|
|
329
|
-
}>;
|
|
330
|
-
export {};
|