@sentio/sdk 1.13.1 → 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/package.json +1 -1
- package/src/cli/commands/run-create.ts +3 -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,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// copy from https://github.com/DefiLlama/chainlist/blob/main/constants/chainIds.js
|
|
3
|
-
// and https://besu.hyperledger.org/en/stable/Concepts/NetworkID-And-ChainID/
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.getChainName = exports.CHAIN_MAP = void 0;
|
|
6
|
-
exports.CHAIN_MAP = {
|
|
7
|
-
SOL_mainnet: 'solana',
|
|
8
|
-
SOL_devnet: 'solana-dev',
|
|
9
|
-
SOL_testnet: 'solana-test',
|
|
10
|
-
0: 'kardia',
|
|
11
|
-
1: 'ethereum',
|
|
12
|
-
2: 'expanse',
|
|
13
|
-
3: 'ropsten',
|
|
14
|
-
4: 'rinkeby',
|
|
15
|
-
5: 'goerli',
|
|
16
|
-
6: 'kotti',
|
|
17
|
-
8: 'ubiq',
|
|
18
|
-
10: 'optimism',
|
|
19
|
-
19: 'songbird',
|
|
20
|
-
20: 'elastos',
|
|
21
|
-
25: 'cronos',
|
|
22
|
-
30: 'rsk',
|
|
23
|
-
40: 'telos',
|
|
24
|
-
50: 'xdc',
|
|
25
|
-
52: 'csc',
|
|
26
|
-
55: 'zyx',
|
|
27
|
-
56: 'binance',
|
|
28
|
-
57: 'syscoin',
|
|
29
|
-
60: 'gochain',
|
|
30
|
-
61: 'ethclassic',
|
|
31
|
-
63: 'mordor',
|
|
32
|
-
66: 'okexchain',
|
|
33
|
-
70: 'hoo',
|
|
34
|
-
82: 'meter',
|
|
35
|
-
88: 'tomochain',
|
|
36
|
-
100: 'xdai',
|
|
37
|
-
106: 'velas',
|
|
38
|
-
108: 'thundercore',
|
|
39
|
-
122: 'fuse',
|
|
40
|
-
128: 'heco',
|
|
41
|
-
137: 'polygon',
|
|
42
|
-
200: 'xdaiarb',
|
|
43
|
-
212: 'astor',
|
|
44
|
-
246: 'energyweb',
|
|
45
|
-
250: 'fantom',
|
|
46
|
-
269: 'hpb',
|
|
47
|
-
288: 'boba',
|
|
48
|
-
321: 'kucoin',
|
|
49
|
-
336: 'shiden',
|
|
50
|
-
361: 'theta',
|
|
51
|
-
416: 'sx',
|
|
52
|
-
534: 'candle',
|
|
53
|
-
592: 'astar',
|
|
54
|
-
820: 'callisto',
|
|
55
|
-
888: 'wanchain',
|
|
56
|
-
1088: 'metis',
|
|
57
|
-
1246: 'omchain',
|
|
58
|
-
1284: 'moonbeam',
|
|
59
|
-
1285: 'moonriver',
|
|
60
|
-
2018: 'dev',
|
|
61
|
-
2020: 'ronin',
|
|
62
|
-
2222: 'kava',
|
|
63
|
-
2612: 'ezchain',
|
|
64
|
-
4181: 'phi',
|
|
65
|
-
4689: 'iotex',
|
|
66
|
-
5050: 'xlc',
|
|
67
|
-
5551: 'nahmii',
|
|
68
|
-
7777: 'nmactest',
|
|
69
|
-
8217: 'klaytn',
|
|
70
|
-
9001: 'evmos',
|
|
71
|
-
10000: 'smartbch',
|
|
72
|
-
103090: 'crystaleum',
|
|
73
|
-
32659: 'fusion',
|
|
74
|
-
42161: 'arbitrum',
|
|
75
|
-
42220: 'celo',
|
|
76
|
-
42262: 'oasis',
|
|
77
|
-
43114: 'avalanche',
|
|
78
|
-
71402: 'godwoken',
|
|
79
|
-
200625: 'akroma',
|
|
80
|
-
333999: 'polis',
|
|
81
|
-
11155111: 'sepolia',
|
|
82
|
-
1313161554: 'aurora',
|
|
83
|
-
1666600000: 'harmony',
|
|
84
|
-
11297108109: 'palm',
|
|
85
|
-
836542336838601: 'curio',
|
|
86
|
-
};
|
|
87
|
-
function getChainName(chainId) {
|
|
88
|
-
if (typeof chainId === 'number') {
|
|
89
|
-
chainId = chainId.toString();
|
|
90
|
-
}
|
|
91
|
-
const name = exports.CHAIN_MAP[chainId];
|
|
92
|
-
if (name) {
|
|
93
|
-
return name;
|
|
94
|
-
}
|
|
95
|
-
return chainId;
|
|
96
|
-
}
|
|
97
|
-
exports.getChainName = getChainName;
|
|
98
|
-
//# sourceMappingURL=chainmap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chainmap.js","sourceRoot":"","sources":["../../src/utils/chainmap.ts"],"names":[],"mappings":";AAAA,mFAAmF;AACnF,6EAA6E;;;AAEhE,QAAA,SAAS,GAA2B;IAC/C,WAAW,EAAE,QAAQ;IACrB,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,SAAS;IACZ,CAAC,EAAE,SAAS;IACZ,CAAC,EAAE,SAAS;IACZ,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,MAAM;IACT,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,WAAW;IACf,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,OAAO;IACZ,GAAG,EAAE,aAAa;IAClB,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,OAAO;IACZ,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,OAAO;IACZ,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,OAAO;IACZ,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,UAAU;IACf,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,UAAU;IACjB,MAAM,EAAE,YAAY;IACpB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,UAAU;IACjB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,MAAM;IACnB,eAAe,EAAE,OAAO;CACzB,CAAA;AAED,SAAgB,YAAY,CAAC,OAAwB;IACnD,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,OAAO,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAA;KAC7B;IACD,MAAM,IAAI,GAAG,iBAAS,CAAC,OAAO,CAAC,CAAA;IAC/B,IAAI,IAAI,EAAE;QACR,OAAO,IAAI,CAAA;KACZ;IACD,OAAO,OAAO,CAAA;AAChB,CAAC;AATD,oCASC","sourcesContent":["// copy from https://github.com/DefiLlama/chainlist/blob/main/constants/chainIds.js\n// and https://besu.hyperledger.org/en/stable/Concepts/NetworkID-And-ChainID/\n\nexport const CHAIN_MAP: Record<string, string> = {\n SOL_mainnet: 'solana',\n SOL_devnet: 'solana-dev',\n SOL_testnet: 'solana-test',\n 0: 'kardia',\n 1: 'ethereum',\n 2: 'expanse',\n 3: 'ropsten',\n 4: 'rinkeby',\n 5: 'goerli',\n 6: 'kotti',\n 8: 'ubiq',\n 10: 'optimism',\n 19: 'songbird',\n 20: 'elastos',\n 25: 'cronos',\n 30: 'rsk',\n 40: 'telos',\n 50: 'xdc',\n 52: 'csc',\n 55: 'zyx',\n 56: 'binance',\n 57: 'syscoin',\n 60: 'gochain',\n 61: 'ethclassic',\n 63: 'mordor',\n 66: 'okexchain',\n 70: 'hoo',\n 82: 'meter',\n 88: 'tomochain',\n 100: 'xdai',\n 106: 'velas',\n 108: 'thundercore',\n 122: 'fuse',\n 128: 'heco',\n 137: 'polygon',\n 200: 'xdaiarb',\n 212: 'astor',\n 246: 'energyweb',\n 250: 'fantom',\n 269: 'hpb',\n 288: 'boba',\n 321: 'kucoin',\n 336: 'shiden',\n 361: 'theta',\n 416: 'sx',\n 534: 'candle',\n 592: 'astar',\n 820: 'callisto',\n 888: 'wanchain',\n 1088: 'metis',\n 1246: 'omchain',\n 1284: 'moonbeam',\n 1285: 'moonriver',\n 2018: 'dev',\n 2020: 'ronin',\n 2222: 'kava',\n 2612: 'ezchain',\n 4181: 'phi',\n 4689: 'iotex',\n 5050: 'xlc',\n 5551: 'nahmii',\n 7777: 'nmactest',\n 8217: 'klaytn',\n 9001: 'evmos',\n 10000: 'smartbch',\n 103090: 'crystaleum',\n 32659: 'fusion',\n 42161: 'arbitrum',\n 42220: 'celo',\n 42262: 'oasis',\n 43114: 'avalanche',\n 71402: 'godwoken',\n 200625: 'akroma',\n 333999: 'polis',\n 11155111: 'sepolia',\n 1313161554: 'aurora',\n 1666600000: 'harmony',\n 11297108109: 'palm',\n 836542336838601: 'curio',\n}\n\nexport function getChainName(chainId: string | number): string {\n if (typeof chainId === 'number') {\n chainId = chainId.toString()\n }\n const name = CHAIN_MAP[chainId]\n if (name) {\n return name\n }\n return chainId\n}\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BigNumber } from 'ethers';
|
|
2
|
-
import { BigDecimal, MetricValue } from '@sentio/sdk';
|
|
3
|
-
import { Numberish } from '../numberish';
|
|
4
|
-
export declare function toBigDecimal(n: BigNumber): BigDecimal;
|
|
5
|
-
export declare function metricValueToNumberish(v: MetricValue): Numberish;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.metricValueToNumberish = exports.toBigDecimal = void 0;
|
|
4
|
-
const ethers_1 = require("ethers");
|
|
5
|
-
const sdk_1 = require("@sentio/sdk");
|
|
6
|
-
function toBigDecimal(n) {
|
|
7
|
-
return new sdk_1.BigDecimal(n.toString());
|
|
8
|
-
}
|
|
9
|
-
exports.toBigDecimal = toBigDecimal;
|
|
10
|
-
function metricValueToNumberish(v) {
|
|
11
|
-
if (v.doubleValue) {
|
|
12
|
-
return v.doubleValue;
|
|
13
|
-
}
|
|
14
|
-
if (v.bigInteger) {
|
|
15
|
-
const bn = ethers_1.BigNumber.from(v.bigInteger.data);
|
|
16
|
-
if (v.bigInteger.negative) {
|
|
17
|
-
return ethers_1.BigNumber.from(0).sub(bn);
|
|
18
|
-
}
|
|
19
|
-
return bn;
|
|
20
|
-
}
|
|
21
|
-
if (v.bigDecimal) {
|
|
22
|
-
return new sdk_1.BigDecimal(v.bigDecimal);
|
|
23
|
-
}
|
|
24
|
-
throw Error("MetricValue doesn't contain any of possible value");
|
|
25
|
-
}
|
|
26
|
-
exports.metricValueToNumberish = metricValueToNumberish;
|
|
27
|
-
//# sourceMappingURL=convert.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"convert.js","sourceRoot":"","sources":["../../src/utils/convert.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAClC,qCAAqD;AAGrD,SAAgB,YAAY,CAAC,CAAY;IACvC,OAAO,IAAI,gBAAU,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAA;AACrC,CAAC;AAFD,oCAEC;AAED,SAAgB,sBAAsB,CAAC,CAAc;IACnD,IAAI,CAAC,CAAC,WAAW,EAAE;QACjB,OAAO,CAAC,CAAC,WAAW,CAAA;KACrB;IACD,IAAI,CAAC,CAAC,UAAU,EAAE;QAChB,MAAM,EAAE,GAAG,kBAAS,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;QAC5C,IAAI,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE;YACzB,OAAO,kBAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;SACjC;QACD,OAAO,EAAE,CAAA;KACV;IAED,IAAI,CAAC,CAAC,UAAU,EAAE;QAChB,OAAO,IAAI,gBAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;KACpC;IAED,MAAM,KAAK,CAAC,mDAAmD,CAAC,CAAA;AAClE,CAAC;AAjBD,wDAiBC","sourcesContent":["import { BigNumber } from 'ethers'\nimport { BigDecimal, MetricValue } from '@sentio/sdk'\nimport { Numberish } from '../numberish'\n\nexport function toBigDecimal(n: BigNumber) {\n return new BigDecimal(n.toString())\n}\n\nexport function metricValueToNumberish(v: MetricValue): Numberish {\n if (v.doubleValue) {\n return v.doubleValue\n }\n if (v.bigInteger) {\n const bn = BigNumber.from(v.bigInteger.data)\n if (v.bigInteger.negative) {\n return BigNumber.from(0).sub(bn)\n }\n return bn\n }\n\n if (v.bigDecimal) {\n return new BigDecimal(v.bigDecimal)\n }\n\n throw Error(\"MetricValue doesn't contain any of possible value\")\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BigNumber } from '@ethersproject/bignumber';
|
|
2
|
-
import { BigDecimal } from '@sentio/sdk';
|
|
3
|
-
export declare class TokenInfo {
|
|
4
|
-
symbol: string;
|
|
5
|
-
name: string;
|
|
6
|
-
decimal: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const NATIVE_ETH: {
|
|
9
|
-
symbol: string;
|
|
10
|
-
decimal: number;
|
|
11
|
-
name: string;
|
|
12
|
-
};
|
|
13
|
-
export declare function getERC20TokenInfo(tokenAddress: string, chainId?: number): Promise<TokenInfo>;
|
|
14
|
-
export declare function getER20NormalizedAmount(tokenAddress: string, amount: BigNumber, chainId: number): Promise<BigDecimal>;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getER20NormalizedAmount = exports.getERC20TokenInfo = exports.NATIVE_ETH = exports.TokenInfo = void 0;
|
|
4
|
-
const error_1 = require("../error");
|
|
5
|
-
const erc20_1 = require("../builtin/erc20");
|
|
6
|
-
const erc20bytes_processor_1 = require("../builtin/internal/erc20bytes_processor");
|
|
7
|
-
const sdk_1 = require("@sentio/sdk");
|
|
8
|
-
const convert_1 = require("./convert");
|
|
9
|
-
const ethers_1 = require("ethers");
|
|
10
|
-
class TokenInfo {
|
|
11
|
-
symbol;
|
|
12
|
-
name;
|
|
13
|
-
decimal;
|
|
14
|
-
}
|
|
15
|
-
exports.TokenInfo = TokenInfo;
|
|
16
|
-
exports.NATIVE_ETH = {
|
|
17
|
-
symbol: 'ETH',
|
|
18
|
-
decimal: 18,
|
|
19
|
-
name: 'Native ETH',
|
|
20
|
-
};
|
|
21
|
-
const TOKEN_INFOS = new Map();
|
|
22
|
-
async function getERC20TokenInfo(tokenAddress, chainId = 1) {
|
|
23
|
-
const key = chainId + tokenAddress;
|
|
24
|
-
const res = TOKEN_INFOS.get(key);
|
|
25
|
-
if (res) {
|
|
26
|
-
return res;
|
|
27
|
-
}
|
|
28
|
-
const contract = (0, erc20_1.getERC20Contract)(tokenAddress, chainId);
|
|
29
|
-
const bytesContract = (0, erc20bytes_processor_1.getERC20BytesContract)(tokenAddress, chainId);
|
|
30
|
-
try {
|
|
31
|
-
// TODO maybe not do try catch, just do raw call the parse results
|
|
32
|
-
let name = '';
|
|
33
|
-
try {
|
|
34
|
-
name = await contract.name();
|
|
35
|
-
}
|
|
36
|
-
catch (e) {
|
|
37
|
-
name = ethers_1.utils.parseBytes32String(await bytesContract.name());
|
|
38
|
-
}
|
|
39
|
-
let symbol = '';
|
|
40
|
-
try {
|
|
41
|
-
symbol = await contract.symbol();
|
|
42
|
-
}
|
|
43
|
-
catch (e) {
|
|
44
|
-
symbol = ethers_1.utils.parseBytes32String(await bytesContract.symbol());
|
|
45
|
-
}
|
|
46
|
-
const decimal = await contract.decimals();
|
|
47
|
-
const info = { name, symbol, decimal };
|
|
48
|
-
TOKEN_INFOS.set(key, info);
|
|
49
|
-
return info;
|
|
50
|
-
}
|
|
51
|
-
catch (e) {
|
|
52
|
-
throw (0, error_1.transformEtherError)(e, undefined);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.getERC20TokenInfo = getERC20TokenInfo;
|
|
56
|
-
async function getER20NormalizedAmount(tokenAddress, amount, chainId) {
|
|
57
|
-
const tokenInfo = await getERC20TokenInfo(tokenAddress, chainId);
|
|
58
|
-
const divider = new sdk_1.BigDecimal(10).pow(tokenInfo.decimal);
|
|
59
|
-
return (0, convert_1.toBigDecimal)(amount).dividedBy(divider);
|
|
60
|
-
}
|
|
61
|
-
exports.getER20NormalizedAmount = getER20NormalizedAmount;
|
|
62
|
-
//# sourceMappingURL=erc20.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"erc20.js","sourceRoot":"","sources":["../../src/utils/erc20.ts"],"names":[],"mappings":";;;AAEA,oCAA8C;AAC9C,4CAAmD;AACnD,mFAAgF;AAChF,qCAAwC;AACxC,uCAAwC;AACxC,mCAA8B;AAE9B,MAAa,SAAS;IACpB,MAAM,CAAQ;IACd,IAAI,CAAQ;IACZ,OAAO,CAAQ;CAChB;AAJD,8BAIC;AAEY,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,YAAY;CACnB,CAAA;AAED,MAAM,WAAW,GAAG,IAAI,GAAG,EAAqB,CAAA;AAEzC,KAAK,UAAU,iBAAiB,CAAC,YAAoB,EAAE,OAAO,GAAG,CAAC;IACvE,MAAM,GAAG,GAAG,OAAO,GAAG,YAAY,CAAA;IAClC,MAAM,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAChC,IAAI,GAAG,EAAE;QACP,OAAO,GAAG,CAAA;KACX;IACD,MAAM,QAAQ,GAAG,IAAA,wBAAgB,EAAC,YAAY,EAAE,OAAO,CAAC,CAAA;IACxD,MAAM,aAAa,GAAG,IAAA,4CAAqB,EAAC,YAAY,EAAE,OAAO,CAAC,CAAA;IAElE,IAAI;QACF,kEAAkE;QAClE,IAAI,IAAI,GAAG,EAAE,CAAA;QACb,IAAI;YACF,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;SAC7B;QAAC,OAAO,CAAC,EAAE;YACV,IAAI,GAAG,cAAK,CAAC,kBAAkB,CAAC,MAAM,aAAa,CAAC,IAAI,EAAE,CAAC,CAAA;SAC5D;QAED,IAAI,MAAM,GAAG,EAAE,CAAA;QACf,IAAI;YACF,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,EAAE,CAAA;SACjC;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,GAAG,cAAK,CAAC,kBAAkB,CAAC,MAAM,aAAa,CAAC,MAAM,EAAE,CAAC,CAAA;SAChE;QAED,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,QAAQ,EAAE,CAAA;QACzC,MAAM,IAAI,GAAc,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAA;QACjD,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;QAC1B,OAAO,IAAI,CAAA;KACZ;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,IAAA,2BAAmB,EAAC,CAAC,EAAE,SAAS,CAAC,CAAA;KACxC;AACH,CAAC;AAhCD,8CAgCC;AAEM,KAAK,UAAU,uBAAuB,CAC3C,YAAoB,EACpB,MAAiB,EACjB,OAAe;IAEf,MAAM,SAAS,GAAG,MAAM,iBAAiB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;IAChE,MAAM,OAAO,GAAG,IAAI,gBAAU,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;IACzD,OAAO,IAAA,sBAAY,EAAC,MAAM,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;AAChD,CAAC;AARD,0DAQC","sourcesContent":["import { BigNumber } from '@ethersproject/bignumber'\n\nimport { transformEtherError } from '../error'\nimport { getERC20Contract } from '../builtin/erc20'\nimport { getERC20BytesContract } from '../builtin/internal/erc20bytes_processor'\nimport { BigDecimal } from '@sentio/sdk'\nimport { toBigDecimal } from './convert'\nimport { utils } from 'ethers'\n\nexport class TokenInfo {\n symbol: string\n name: string\n decimal: number\n}\n\nexport const NATIVE_ETH = {\n symbol: 'ETH',\n decimal: 18,\n name: 'Native ETH',\n}\n\nconst TOKEN_INFOS = new Map<string, TokenInfo>()\n\nexport async function getERC20TokenInfo(tokenAddress: string, chainId = 1): Promise<TokenInfo> {\n const key = chainId + tokenAddress\n const res = TOKEN_INFOS.get(key)\n if (res) {\n return res\n }\n const contract = getERC20Contract(tokenAddress, chainId)\n const bytesContract = getERC20BytesContract(tokenAddress, chainId)\n\n try {\n // TODO maybe not do try catch, just do raw call the parse results\n let name = ''\n try {\n name = await contract.name()\n } catch (e) {\n name = utils.parseBytes32String(await bytesContract.name())\n }\n\n let symbol = ''\n try {\n symbol = await contract.symbol()\n } catch (e) {\n symbol = utils.parseBytes32String(await bytesContract.symbol())\n }\n\n const decimal = await contract.decimals()\n const info: TokenInfo = { name, symbol, decimal }\n TOKEN_INFOS.set(key, info)\n return info\n } catch (e) {\n throw transformEtherError(e, undefined)\n }\n}\n\nexport async function getER20NormalizedAmount(\n tokenAddress: string,\n amount: BigNumber,\n chainId: number\n): Promise<BigDecimal> {\n const tokenInfo = await getERC20TokenInfo(tokenAddress, chainId)\n const divider = new BigDecimal(10).pow(tokenInfo.decimal)\n return toBigDecimal(amount).dividedBy(divider)\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const sdk_1 = require("@sentio/sdk");
|
|
4
|
-
const erc20_1 = require("./erc20");
|
|
5
|
-
const test_1 = require("../test");
|
|
6
|
-
describe('erc20 tests', () => {
|
|
7
|
-
global.PROCESSOR_STATE = new sdk_1.ProcessorState();
|
|
8
|
-
const haveProviders = (0, test_1.loadTestProvidersFromEnv)('1');
|
|
9
|
-
const testIf = haveProviders ? test : test.skip;
|
|
10
|
-
testIf('test bytes32', async () => {
|
|
11
|
-
const info = await (0, erc20_1.getERC20TokenInfo)('0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2');
|
|
12
|
-
expect(info.decimal).toEqual(18);
|
|
13
|
-
expect(info.symbol).toEqual('MKR');
|
|
14
|
-
expect(info.name).toEqual('Maker');
|
|
15
|
-
});
|
|
16
|
-
testIf('test normal', async () => {
|
|
17
|
-
const info = await (0, erc20_1.getERC20TokenInfo)('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48');
|
|
18
|
-
expect(info.decimal).toEqual(6);
|
|
19
|
-
expect(info.symbol).toEqual('USDC');
|
|
20
|
-
expect(info.name).toEqual('USD Coin');
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=erc20.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"erc20.test.js","sourceRoot":"","sources":["../../src/utils/erc20.test.ts"],"names":[],"mappings":";;AAAA,qCAA4C;AAC5C,mCAA2C;AAC3C,kCAAkD;AAElD,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,MAAM,CAAC,eAAe,GAAG,IAAI,oBAAc,EAAE,CAAA;IAC7C,MAAM,aAAa,GAAG,IAAA,+BAAwB,EAAC,GAAG,CAAC,CAAA;IAEnD,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAA;IAE/C,MAAM,CAAC,cAAc,EAAE,KAAK,IAAI,EAAE;QAChC,MAAM,IAAI,GAAG,MAAM,IAAA,yBAAiB,EAAC,4CAA4C,CAAC,CAAA;QAElF,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QAChC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAClC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;IACpC,CAAC,CAAC,CAAA;IAEF,MAAM,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE;QAC/B,MAAM,IAAI,GAAG,MAAM,IAAA,yBAAiB,EAAC,4CAA4C,CAAC,CAAA;QAElF,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;QAC/B,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QACnC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IACvC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA","sourcesContent":["import { ProcessorState } from '@sentio/sdk'\nimport { getERC20TokenInfo } from './erc20'\nimport { loadTestProvidersFromEnv } from '../test'\n\ndescribe('erc20 tests', () => {\n global.PROCESSOR_STATE = new ProcessorState()\n const haveProviders = loadTestProvidersFromEnv('1')\n\n const testIf = haveProviders ? test : test.skip\n\n testIf('test bytes32', async () => {\n const info = await getERC20TokenInfo('0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2')\n\n expect(info.decimal).toEqual(18)\n expect(info.symbol).toEqual('MKR')\n expect(info.name).toEqual('Maker')\n })\n\n testIf('test normal', async () => {\n const info = await getERC20TokenInfo('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48')\n\n expect(info.decimal).toEqual(6)\n expect(info.symbol).toEqual('USDC')\n expect(info.name).toEqual('USD Coin')\n })\n})\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NATIVE_ETH = exports.TokenInfo = exports.getER20NormalizedAmount = exports.getERC20TokenInfo = exports.metricValueToNumberish = exports.toBigDecimal = exports.getChainName = void 0;
|
|
4
|
-
var chainmap_1 = require("./chainmap");
|
|
5
|
-
Object.defineProperty(exports, "getChainName", { enumerable: true, get: function () { return chainmap_1.getChainName; } });
|
|
6
|
-
var convert_1 = require("./convert");
|
|
7
|
-
Object.defineProperty(exports, "toBigDecimal", { enumerable: true, get: function () { return convert_1.toBigDecimal; } });
|
|
8
|
-
Object.defineProperty(exports, "metricValueToNumberish", { enumerable: true, get: function () { return convert_1.metricValueToNumberish; } });
|
|
9
|
-
var erc20_1 = require("./erc20");
|
|
10
|
-
Object.defineProperty(exports, "getERC20TokenInfo", { enumerable: true, get: function () { return erc20_1.getERC20TokenInfo; } });
|
|
11
|
-
Object.defineProperty(exports, "getER20NormalizedAmount", { enumerable: true, get: function () { return erc20_1.getER20NormalizedAmount; } });
|
|
12
|
-
Object.defineProperty(exports, "TokenInfo", { enumerable: true, get: function () { return erc20_1.TokenInfo; } });
|
|
13
|
-
Object.defineProperty(exports, "NATIVE_ETH", { enumerable: true, get: function () { return erc20_1.NATIVE_ETH; } });
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAAhC,wGAAA,YAAY,OAAA;AACrB,qCAAgE;AAAvD,uGAAA,YAAY,OAAA;AAAE,iHAAA,sBAAsB,OAAA;AAC7C,iCAA2F;AAAlF,0GAAA,iBAAiB,OAAA;AAAE,gHAAA,uBAAuB,OAAA;AAAE,kGAAA,SAAS,OAAA;AAAE,mGAAA,UAAU,OAAA","sourcesContent":["export { getChainName } from './chainmap'\nexport { toBigDecimal, metricValueToNumberish } from './convert'\nexport { getERC20TokenInfo, getER20NormalizedAmount, TokenInfo, NATIVE_ETH } from './erc20'\n"]}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@sentio/sdk",
|
|
3
|
-
"license": "Apache-2.0",
|
|
4
|
-
"version": "1.10.2",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"compile_target": "yarn tsc -b src/target-ethers-sentio/tsconfig.json",
|
|
7
|
-
"compile": "tsc -p . && cp src/cli/webpack.config.js lib/cli",
|
|
8
|
-
"build": "yarn gen && yarn compile",
|
|
9
|
-
"start_ts": "ts-node --files src/processor-runner.ts ../examples/x2y2/src/processor.ts",
|
|
10
|
-
"start_ts_solana": "ts-node --files src/processor-runner.ts ../examples/mirrorworld/src/processor.ts",
|
|
11
|
-
"start": "ts-node --files src/processor-runner.ts ../examples/x2y2/dist/lib.js",
|
|
12
|
-
"start_js": "node lib/processor.js ../examples/x2y2/dist/lib.js",
|
|
13
|
-
"ts-start": "ts-node --files src/processor-runner.ts ./src/anyswap/src/processor.ts",
|
|
14
|
-
"cli": "yarn build && node lib/cli/cli.js",
|
|
15
|
-
"test": "jest",
|
|
16
|
-
"gen": "yarn compile_target && yarn gen_bultin_evm && yarn gen_test_abi",
|
|
17
|
-
"gen_test_abi": "yarn gen_solana_abi",
|
|
18
|
-
"gen_bultin_evm": "typechain --target lib/target-ethers-sentio --out-dir src/builtin/internal 'src/abis/*.json'",
|
|
19
|
-
"gen_solana_abi": "ts-node src/cli/solana-code-gen.ts src/test types",
|
|
20
|
-
"postbuild": "echo || clear-package-json package.json -o ./lib/package.json && cp release.config.js ./lib"
|
|
21
|
-
},
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"@ethersproject/providers": "~5.7.0",
|
|
24
|
-
"@project-serum/anchor": "^0.25.0",
|
|
25
|
-
"@solana/web3.js": "^1.47.3",
|
|
26
|
-
"@typechain/ethers-v5": "^10.0.0",
|
|
27
|
-
"@types/bn.js": "^5.1.0",
|
|
28
|
-
"@types/node-fetch": "^2.6.2",
|
|
29
|
-
"bignumber.js": "^9.1.0",
|
|
30
|
-
"bn.js": "^5.2.1",
|
|
31
|
-
"bs58": "^5.0.0",
|
|
32
|
-
"command-line-args": "^5.2.1",
|
|
33
|
-
"command-line-usage": "^6.1.3",
|
|
34
|
-
"ethers": "~5.7.0",
|
|
35
|
-
"form-data": "^4.0.0",
|
|
36
|
-
"fs-extra": "^10.1.0",
|
|
37
|
-
"google-protobuf": "^3.15.8",
|
|
38
|
-
"js-yaml": "^4.1.0",
|
|
39
|
-
"nice-grpc": "^2.0.0",
|
|
40
|
-
"node-fetch": "2",
|
|
41
|
-
"p-queue": "^6.6.2",
|
|
42
|
-
"ts-loader": "^9.3.0",
|
|
43
|
-
"typechain": "^8.0.0",
|
|
44
|
-
"webpack": "^5.72.1",
|
|
45
|
-
"webpack-cli": "^4.9.2"
|
|
46
|
-
},
|
|
47
|
-
"devDependencies": {
|
|
48
|
-
"@types/chai": "^4.3.1",
|
|
49
|
-
"@types/command-line-args": "^5.2.0",
|
|
50
|
-
"@types/command-line-usage": "^5.0.2",
|
|
51
|
-
"@types/expect": "^24.3.0",
|
|
52
|
-
"@types/fs-extra": "^9.0.13",
|
|
53
|
-
"@types/google-protobuf": "^3.15.6",
|
|
54
|
-
"@types/jest": "^29.0.0",
|
|
55
|
-
"@types/js-yaml": "^4.0.5",
|
|
56
|
-
"@types/mkdirp": "^1.0.2",
|
|
57
|
-
"@types/node": "^18.0.4",
|
|
58
|
-
"chai": "^4.3.6",
|
|
59
|
-
"clean-publish": "^4.0.1",
|
|
60
|
-
"jest": "^29.0.0",
|
|
61
|
-
"semantic-release": "^19.0.5",
|
|
62
|
-
"ts-jest": "^29.0.0",
|
|
63
|
-
"ts-node": "^10.8.0",
|
|
64
|
-
"tsconfig-paths": "^4.0.0",
|
|
65
|
-
"typescript": "^4.8.0"
|
|
66
|
-
},
|
|
67
|
-
"bin": {
|
|
68
|
-
"processor-runner": "./lib/processor-runner.js",
|
|
69
|
-
"sentio": "./lib/cli/cli.js"
|
|
70
|
-
},
|
|
71
|
-
"main": "./lib/index.js",
|
|
72
|
-
"types": "./lib/index.d.ts",
|
|
73
|
-
"module": "./lib/index.js",
|
|
74
|
-
"files": [
|
|
75
|
-
"lib/**/*",
|
|
76
|
-
"src/**/*"
|
|
77
|
-
]
|
|
78
|
-
}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
|
|
3
|
-
{
|
|
4
|
-
"anonymous": false,
|
|
5
|
-
"inputs": [
|
|
6
|
-
{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" },
|
|
7
|
-
{ "indexed": true, "internalType": "address", "name": "spender", "type": "address" },
|
|
8
|
-
{ "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }
|
|
9
|
-
],
|
|
10
|
-
"name": "Approval",
|
|
11
|
-
"type": "event"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"anonymous": false,
|
|
15
|
-
"inputs": [
|
|
16
|
-
{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
|
|
17
|
-
{ "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
|
|
18
|
-
],
|
|
19
|
-
"name": "OwnershipTransferred",
|
|
20
|
-
"type": "event"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"anonymous": false,
|
|
24
|
-
"inputs": [
|
|
25
|
-
{ "indexed": true, "internalType": "address", "name": "from", "type": "address" },
|
|
26
|
-
{ "indexed": true, "internalType": "address", "name": "to", "type": "address" },
|
|
27
|
-
{ "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }
|
|
28
|
-
],
|
|
29
|
-
"name": "Transfer",
|
|
30
|
-
"type": "event"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"inputs": [
|
|
34
|
-
{ "internalType": "address", "name": "owner", "type": "address" },
|
|
35
|
-
{ "internalType": "address", "name": "spender", "type": "address" }
|
|
36
|
-
],
|
|
37
|
-
"name": "allowance",
|
|
38
|
-
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
|
|
39
|
-
"stateMutability": "view",
|
|
40
|
-
"type": "function"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"inputs": [
|
|
44
|
-
{ "internalType": "address", "name": "spender", "type": "address" },
|
|
45
|
-
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
|
|
46
|
-
],
|
|
47
|
-
"name": "approve",
|
|
48
|
-
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
|
|
49
|
-
"stateMutability": "nonpayable",
|
|
50
|
-
"type": "function"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"inputs": [{ "internalType": "address", "name": "account", "type": "address" }],
|
|
54
|
-
"name": "balanceOf",
|
|
55
|
-
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
|
|
56
|
-
"stateMutability": "view",
|
|
57
|
-
"type": "function"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }],
|
|
61
|
-
"name": "burn",
|
|
62
|
-
"outputs": [],
|
|
63
|
-
"stateMutability": "nonpayable",
|
|
64
|
-
"type": "function"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"inputs": [
|
|
68
|
-
{ "internalType": "address", "name": "account", "type": "address" },
|
|
69
|
-
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
|
|
70
|
-
],
|
|
71
|
-
"name": "burnFrom",
|
|
72
|
-
"outputs": [],
|
|
73
|
-
"stateMutability": "nonpayable",
|
|
74
|
-
"type": "function"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"inputs": [],
|
|
78
|
-
"name": "decimals",
|
|
79
|
-
"outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
|
|
80
|
-
"stateMutability": "view",
|
|
81
|
-
"type": "function"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"inputs": [
|
|
85
|
-
{ "internalType": "address", "name": "spender", "type": "address" },
|
|
86
|
-
{ "internalType": "uint256", "name": "subtractedValue", "type": "uint256" }
|
|
87
|
-
],
|
|
88
|
-
"name": "decreaseAllowance",
|
|
89
|
-
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
|
|
90
|
-
"stateMutability": "nonpayable",
|
|
91
|
-
"type": "function"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"inputs": [
|
|
95
|
-
{ "internalType": "address", "name": "spender", "type": "address" },
|
|
96
|
-
{ "internalType": "uint256", "name": "addedValue", "type": "uint256" }
|
|
97
|
-
],
|
|
98
|
-
"name": "increaseAllowance",
|
|
99
|
-
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
|
|
100
|
-
"stateMutability": "nonpayable",
|
|
101
|
-
"type": "function"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"inputs": [],
|
|
105
|
-
"name": "locker",
|
|
106
|
-
"outputs": [{ "internalType": "contract ILocker", "name": "", "type": "address" }],
|
|
107
|
-
"stateMutability": "view",
|
|
108
|
-
"type": "function"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"inputs": [],
|
|
112
|
-
"name": "name",
|
|
113
|
-
"outputs": [{ "internalType": "string", "name": "", "type": "string" }],
|
|
114
|
-
"stateMutability": "view",
|
|
115
|
-
"type": "function"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"inputs": [],
|
|
119
|
-
"name": "owner",
|
|
120
|
-
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
|
|
121
|
-
"stateMutability": "view",
|
|
122
|
-
"type": "function"
|
|
123
|
-
},
|
|
124
|
-
{ "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
|
|
125
|
-
{
|
|
126
|
-
"inputs": [{ "internalType": "address", "name": "_locker", "type": "address" }],
|
|
127
|
-
"name": "setLocker",
|
|
128
|
-
"outputs": [],
|
|
129
|
-
"stateMutability": "nonpayable",
|
|
130
|
-
"type": "function"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"inputs": [],
|
|
134
|
-
"name": "symbol",
|
|
135
|
-
"outputs": [{ "internalType": "string", "name": "", "type": "string" }],
|
|
136
|
-
"stateMutability": "view",
|
|
137
|
-
"type": "function"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"inputs": [],
|
|
141
|
-
"name": "totalSupply",
|
|
142
|
-
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
|
|
143
|
-
"stateMutability": "view",
|
|
144
|
-
"type": "function"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"inputs": [
|
|
148
|
-
{ "internalType": "address", "name": "recipient", "type": "address" },
|
|
149
|
-
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
|
|
150
|
-
],
|
|
151
|
-
"name": "transfer",
|
|
152
|
-
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
|
|
153
|
-
"stateMutability": "nonpayable",
|
|
154
|
-
"type": "function"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"inputs": [
|
|
158
|
-
{ "internalType": "address", "name": "sender", "type": "address" },
|
|
159
|
-
{ "internalType": "address", "name": "recipient", "type": "address" },
|
|
160
|
-
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
|
|
161
|
-
],
|
|
162
|
-
"name": "transferFrom",
|
|
163
|
-
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
|
|
164
|
-
"stateMutability": "nonpayable",
|
|
165
|
-
"type": "function"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }],
|
|
169
|
-
"name": "transferOwnership",
|
|
170
|
-
"outputs": [],
|
|
171
|
-
"stateMutability": "nonpayable",
|
|
172
|
-
"type": "function"
|
|
173
|
-
}
|
|
174
|
-
]
|