@sentio/sdk 1.7.14 → 1.7.17
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/{base-processor-template.d.ts → lib/base-processor-template.d.ts} +0 -0
- package/{base-processor-template.js → lib/base-processor-template.js} +0 -0
- package/{base-processor-template.js.map → lib/base-processor-template.js.map} +0 -0
- package/{base-processor.d.ts → lib/base-processor.d.ts} +0 -0
- package/{base-processor.js → lib/base-processor.js} +0 -0
- package/{base-processor.js.map → lib/base-processor.js.map} +0 -0
- package/{bind-options.d.ts → lib/bind-options.d.ts} +0 -0
- package/{bind-options.js → lib/bind-options.js} +0 -0
- package/{bind-options.js.map → lib/bind-options.js.map} +0 -0
- package/{binds.d.ts → lib/binds.d.ts} +0 -0
- package/{binds.js → lib/binds.js} +0 -0
- package/{binds.js.map → lib/binds.js.map} +0 -0
- package/{builtin → lib/builtin}/erc20/index.d.ts +0 -0
- package/{builtin → lib/builtin}/erc20/index.js +0 -0
- package/{builtin → lib/builtin}/erc20/index.js.map +0 -0
- package/{builtin → lib/builtin}/erc20/test-utils.d.ts +0 -0
- package/{builtin → lib/builtin}/erc20/test-utils.js +0 -0
- package/{builtin → lib/builtin}/erc20/test-utils.js.map +0 -0
- package/{builtin → lib/builtin}/internal/Erc20.d.ts +0 -0
- package/{builtin → lib/builtin}/internal/Erc20.js +0 -0
- package/{builtin → lib/builtin}/internal/Erc20.js.map +0 -0
- package/lib/builtin/internal/Weth9.d.ts +221 -0
- package/lib/builtin/internal/Weth9.js +3 -0
- package/lib/builtin/internal/Weth9.js.map +1 -0
- package/{builtin → lib/builtin}/internal/common.d.ts +0 -0
- package/{builtin → lib/builtin}/internal/common.js +0 -0
- package/{builtin → lib/builtin}/internal/common.js.map +0 -0
- package/{builtin → lib/builtin}/internal/erc20_processor.d.ts +0 -0
- package/{builtin → lib/builtin}/internal/erc20_processor.js +0 -0
- package/{builtin → lib/builtin}/internal/erc20_processor.js.map +0 -0
- package/{builtin → lib/builtin}/internal/factories/Erc20__factory.d.ts +0 -0
- package/{builtin → lib/builtin}/internal/factories/Erc20__factory.js +0 -0
- package/{builtin → lib/builtin}/internal/factories/Erc20__factory.js.map +0 -0
- package/lib/builtin/internal/factories/Weth9__factory.d.ts +45 -0
- package/lib/builtin/internal/factories/Weth9__factory.js +297 -0
- package/lib/builtin/internal/factories/Weth9__factory.js.map +1 -0
- package/{builtin → lib/builtin}/internal/factories/index.d.ts +1 -0
- package/{builtin → lib/builtin}/internal/factories/index.js +3 -1
- package/lib/builtin/internal/factories/index.js.map +1 -0
- package/{builtin → lib/builtin}/internal/index.d.ts +2 -0
- package/{builtin → lib/builtin}/internal/index.js +3 -1
- package/lib/builtin/internal/index.js.map +1 -0
- package/lib/builtin/internal/weth9_processor.d.ts +50 -0
- package/lib/builtin/internal/weth9_processor.js +295 -0
- package/lib/builtin/internal/weth9_processor.js.map +1 -0
- package/lib/builtin/weth9/index.d.ts +2 -0
- package/lib/builtin/weth9/index.js +22 -0
- package/lib/builtin/weth9/index.js.map +1 -0
- package/lib/builtin/weth9/test-utils.d.ts +6 -0
- package/lib/builtin/weth9/test-utils.js +57 -0
- package/lib/builtin/weth9/test-utils.js.map +1 -0
- package/{chain-config.d.ts → lib/chain-config.d.ts} +0 -0
- package/{chain-config.js → lib/chain-config.js} +0 -0
- package/{chain-config.js.map → lib/chain-config.js.map} +0 -0
- package/{cli → lib/cli}/build.d.ts +0 -0
- package/{cli → lib/cli}/build.js +14 -0
- package/lib/cli/build.js.map +1 -0
- package/{cli → lib/cli}/cli.d.ts +0 -0
- package/{cli → lib/cli}/cli.js +0 -0
- package/{cli → lib/cli}/cli.js.map +0 -0
- package/{cli → lib/cli}/config.d.ts +0 -0
- package/{cli → lib/cli}/config.js +0 -0
- package/{cli → lib/cli}/config.js.map +0 -0
- package/{cli → lib/cli}/key.d.ts +0 -0
- package/{cli → lib/cli}/key.js +0 -0
- package/{cli → lib/cli}/key.js.map +0 -0
- package/{cli → lib/cli}/solana-code-gen.d.ts +0 -0
- package/{cli → lib/cli}/solana-code-gen.js +0 -0
- package/{cli → lib/cli}/solana-code-gen.js.map +0 -0
- package/{cli → lib/cli}/upload.d.ts +0 -0
- package/{cli → lib/cli}/upload.js +0 -0
- package/{cli → lib/cli}/upload.js.map +0 -0
- package/{cli → lib/cli}/webpack.config.js +0 -0
- package/{context.d.ts → lib/context.d.ts} +0 -0
- package/{context.js → lib/context.js} +0 -0
- package/{context.js.map → lib/context.js.map} +0 -0
- package/{contract-namer.d.ts → lib/contract-namer.d.ts} +0 -0
- package/{contract-namer.js → lib/contract-namer.js} +0 -0
- package/{contract-namer.js.map → lib/contract-namer.js.map} +0 -0
- package/{error.d.ts → lib/error.d.ts} +0 -0
- package/{error.js → lib/error.js} +0 -0
- package/{error.js.map → lib/error.js.map} +0 -0
- package/{gen → lib/gen}/builtin.d.ts +0 -0
- package/{gen → lib/gen}/builtin.js +0 -0
- package/{gen → lib/gen}/builtin.js.map +0 -0
- package/{gen → lib/gen}/google/protobuf/empty.d.ts +0 -0
- package/{gen → lib/gen}/google/protobuf/empty.js +0 -0
- package/{gen → lib/gen}/google/protobuf/empty.js.map +0 -0
- package/{gen → lib/gen}/processor/protos/processor.d.ts +0 -0
- package/{gen → lib/gen}/processor/protos/processor.js +0 -0
- package/{gen → lib/gen}/processor/protos/processor.js.map +0 -0
- package/{generic-processor.d.ts → lib/generic-processor.d.ts} +0 -0
- package/{generic-processor.js → lib/generic-processor.js} +0 -0
- package/{generic-processor.js.map → lib/generic-processor.js.map} +0 -0
- package/{index.d.ts → lib/index.d.ts} +0 -0
- package/{index.js → lib/index.js} +0 -0
- package/{index.js.map → lib/index.js.map} +0 -0
- package/lib/loader.d.ts +5 -0
- package/lib/loader.js +30 -0
- package/lib/loader.js.map +1 -0
- package/{meter.d.ts → lib/meter.d.ts} +0 -0
- package/{meter.js → lib/meter.js} +0 -0
- package/{meter.js.map → lib/meter.js.map} +0 -0
- package/{numberish.d.ts → lib/numberish.d.ts} +0 -0
- package/{numberish.js → lib/numberish.js} +0 -0
- package/{numberish.js.map → lib/numberish.js.map} +0 -0
- package/{numberish.test.d.ts → lib/numberish.test.d.ts} +0 -0
- package/{numberish.test.js → lib/numberish.test.js} +0 -0
- package/{numberish.test.js.map → lib/numberish.test.js.map} +0 -0
- package/{processor-runner.d.ts → lib/processor-runner.d.ts} +0 -0
- package/{processor-runner.js → lib/processor-runner.js} +2 -27
- package/lib/processor-runner.js.map +1 -0
- package/{processor-state.d.ts → lib/processor-state.d.ts} +0 -0
- package/{processor-state.js → lib/processor-state.js} +0 -0
- package/{processor-state.js.map → lib/processor-state.js.map} +0 -0
- package/{promise-or-void.d.ts → lib/promise-or-void.d.ts} +0 -0
- package/{promise-or-void.js → lib/promise-or-void.js} +0 -0
- package/{promise-or-void.js.map → lib/promise-or-void.js.map} +0 -0
- package/{provider.d.ts → lib/provider.d.ts} +0 -0
- package/{provider.js → lib/provider.js} +0 -0
- package/{provider.js.map → lib/provider.js.map} +0 -0
- package/{release.config.js → lib/release.config.js} +0 -0
- package/{service.d.ts → lib/service.d.ts} +2 -1
- package/{service.js → lib/service.js} +6 -3
- package/lib/service.js.map +1 -0
- package/{solana → lib/solana}/builtin/index.d.ts +0 -0
- package/{solana → lib/solana}/builtin/index.js +0 -0
- package/{solana → lib/solana}/builtin/index.js.map +0 -0
- package/{solana → lib/solana}/builtin/spl-token-processor.d.ts +0 -0
- package/{solana → lib/solana}/builtin/spl-token-processor.js +0 -0
- package/{solana → lib/solana}/builtin/spl-token-processor.js.map +0 -0
- package/{solana → lib/solana}/builtin/types.d.ts +0 -0
- package/{solana → lib/solana}/builtin/types.js +0 -0
- package/{solana → lib/solana}/builtin/types.js.map +0 -0
- package/{solana → lib/solana}/builtin/wormhole-processor.d.ts +0 -0
- package/{solana → lib/solana}/builtin/wormhole-processor.js +0 -0
- package/{solana → lib/solana}/builtin/wormhole-processor.js.map +0 -0
- package/{solana-processor.d.ts → lib/solana-processor.d.ts} +0 -0
- package/{solana-processor.js → lib/solana-processor.js} +0 -0
- package/{solana-processor.js.map → lib/solana-processor.js.map} +0 -0
- package/{target-ethers-sentio → lib/target-ethers-sentio}/codegen.d.ts +0 -0
- package/{target-ethers-sentio → lib/target-ethers-sentio}/codegen.js +0 -0
- package/lib/target-ethers-sentio/codegen.js.map +1 -0
- package/{target-ethers-sentio → lib/target-ethers-sentio}/index.d.ts +0 -0
- package/{target-ethers-sentio → lib/target-ethers-sentio}/index.js +0 -0
- package/lib/target-ethers-sentio/index.js.map +1 -0
- package/{test → lib/test}/codegen.test.d.ts +0 -0
- package/{test → lib/test}/codegen.test.js +1 -1
- package/{test → lib/test}/codegen.test.js.map +1 -1
- package/{test → lib/test}/erc20-template.d.ts +0 -0
- package/{test → lib/test}/erc20-template.js +0 -0
- package/{test → lib/test}/erc20-template.js.map +0 -0
- package/{test → lib/test}/erc20-template.test.d.ts +0 -0
- package/{test → lib/test}/erc20-template.test.js +1 -3
- package/lib/test/erc20-template.test.js.map +1 -0
- package/{test → lib/test}/erc20.d.ts +0 -0
- package/{test → lib/test}/erc20.js +0 -0
- package/{test → lib/test}/erc20.js.map +0 -0
- package/{test → lib/test}/erc20.test.d.ts +0 -0
- package/{test → lib/test}/erc20.test.js +1 -3
- package/lib/test/erc20.test.js.map +1 -0
- package/{test → lib/test}/generic-processor.test.d.ts +0 -0
- package/{test → lib/test}/generic-processor.test.js +3 -3
- package/lib/test/generic-processor.test.js.map +1 -0
- package/{test → lib/test}/index.d.ts +0 -0
- package/{test → lib/test}/index.js +0 -0
- package/{test → lib/test}/index.js.map +0 -0
- package/{test → lib/test}/metric-utils.d.ts +0 -0
- package/{test → lib/test}/metric-utils.js +0 -0
- package/{test → lib/test}/metric-utils.js.map +0 -0
- package/{test → lib/test}/mirrorworld.d.ts +0 -0
- package/{test → lib/test}/mirrorworld.js +0 -0
- package/{test → lib/test}/mirrorworld.js.map +0 -0
- package/{test → lib/test}/solana.test.d.ts +0 -0
- package/{test → lib/test}/solana.test.js +3 -3
- package/lib/test/solana.test.js.map +1 -0
- package/{test → lib/test}/test-processor-server.d.ts +1 -1
- package/{test → lib/test}/test-processor-server.js +3 -8
- package/lib/test/test-processor-server.js.map +1 -0
- package/{test → lib/test}/types/game_wallet.d.ts +0 -0
- package/{test → lib/test}/types/game_wallet.js +0 -0
- package/{test → lib/test}/types/game_wallet.js.map +0 -0
- package/{test → lib/test}/types/game_wallet_processor.d.ts +0 -0
- package/{test → lib/test}/types/game_wallet_processor.js +0 -0
- package/{test → lib/test}/types/game_wallet_processor.js.map +0 -0
- package/{test → lib/test}/wormhole-token-bridge.d.ts +0 -0
- package/{test → lib/test}/wormhole-token-bridge.js +0 -0
- package/{test → lib/test}/wormhole-token-bridge.js.map +0 -0
- package/{utils → lib/utils}/chainmap.d.ts +0 -0
- package/{utils → lib/utils}/chainmap.js +0 -0
- package/{utils → lib/utils}/chainmap.js.map +0 -0
- package/{utils → lib/utils}/convert.d.ts +0 -0
- package/{utils → lib/utils}/convert.js +0 -0
- package/{utils → lib/utils}/convert.js.map +0 -0
- package/{utils → lib/utils}/index.d.ts +0 -0
- package/{utils → lib/utils}/index.js +0 -0
- package/{utils → lib/utils}/index.js.map +0 -0
- package/package.json +47 -6
- package/src/abis/erc20.json +198 -0
- package/src/abis/weth9.json +153 -0
- package/src/base-processor-template.ts +92 -0
- package/src/base-processor.ts +128 -0
- package/src/bind-options.ts +41 -0
- package/src/binds.ts +73 -0
- package/src/builtin/erc20/index.ts +6 -0
- package/src/builtin/erc20/test-utils.ts +49 -0
- package/src/builtin/internal/Erc20.ts +356 -0
- package/src/builtin/internal/Weth9.ts +480 -0
- package/src/builtin/internal/common.ts +46 -0
- package/src/builtin/internal/erc20_processor.ts +295 -0
- package/src/builtin/internal/factories/Erc20__factory.ts +216 -0
- package/src/builtin/internal/factories/Weth9__factory.ts +297 -0
- package/src/builtin/internal/factories/index.ts +5 -0
- package/src/builtin/internal/index.ts +8 -0
- package/src/builtin/internal/weth9_processor.ts +403 -0
- package/src/builtin/weth9/index.ts +6 -0
- package/src/builtin/weth9/test-utils.ts +89 -0
- package/src/chain-config.ts +6 -0
- package/src/cli/build.ts +196 -0
- package/src/cli/cli.ts +217 -0
- package/src/cli/config.ts +43 -0
- package/src/cli/key.ts +43 -0
- package/src/cli/solana-code-gen.ts +16 -0
- package/src/cli/upload.ts +86 -0
- package/src/cli/webpack.config.js +42 -0
- package/src/context.ts +93 -0
- package/src/contract-namer.ts +17 -0
- package/src/error.ts +43 -0
- package/src/gen/builtin.ts +22 -0
- package/src/gen/google/protobuf/empty.ts +70 -0
- package/src/gen/processor/protos/processor.ts +3071 -0
- package/src/generic-processor.ts +38 -0
- package/src/index.ts +19 -0
- package/src/loader.ts +24 -0
- package/src/meter.ts +122 -0
- package/src/numberish.test.ts +82 -0
- package/src/numberish.ts +99 -0
- package/src/processor-runner.ts +49 -0
- package/src/processor-state.ts +24 -0
- package/src/promise-or-void.ts +1 -0
- package/src/provider.ts +74 -0
- package/src/service.ts +439 -0
- package/src/solana/builtin/index.ts +2 -0
- package/src/solana/builtin/spl-token-processor.ts +164 -0
- package/src/solana/builtin/types.ts +268 -0
- package/src/solana/builtin/wormhole-processor.ts +178 -0
- package/src/solana-processor.ts +105 -0
- package/src/target-ethers-sentio/codegen.ts +289 -0
- package/src/target-ethers-sentio/index.ts +50 -0
- package/src/target-ethers-sentio/tsconfig.json +9 -0
- package/src/test/abis/evm/anyswapRouter.json +490 -0
- package/src/test/abis/solana/mirrorworld.json +1392 -0
- package/src/test/codegen.test.ts +26 -0
- package/src/test/erc20-template.test.ts +37 -0
- package/src/test/erc20-template.ts +25 -0
- package/src/test/erc20.test.ts +90 -0
- package/src/test/erc20.ts +48 -0
- package/src/test/generic-processor.test.ts +70 -0
- package/src/test/index.ts +1 -0
- package/src/test/metric-utils.ts +49 -0
- package/src/test/mirrorworld.ts +40 -0
- package/src/test/sentio.yaml +4 -0
- package/src/test/solana.test.ts +93 -0
- package/src/test/test-processor-server.ts +205 -0
- package/src/test/types/game_wallet.ts +1392 -0
- package/src/test/types/game_wallet_processor.ts +113 -0
- package/src/test/wormhole-token-bridge.ts +21 -0
- package/src/types/global.d.ts +17 -0
- package/src/utils/chainmap.ts +95 -0
- package/src/utils/convert.ts +6 -0
- package/src/utils/index.ts +2 -0
- package/builtin/internal/factories/index.js.map +0 -1
- package/builtin/internal/index.js.map +0 -1
- package/cli/build.js.map +0 -1
- package/processor-runner.js.map +0 -1
- package/service.js.map +0 -1
- package/target-ethers-sentio/codegen.js.map +0 -1
- package/target-ethers-sentio/index.js.map +0 -1
- package/test/erc20-template.test.js.map +0 -1
- package/test/erc20.test.js.map +0 -1
- package/test/generic-processor.test.js.map +0 -1
- package/test/solana.test.js.map +0 -1
- package/test/test-processor-server.js.map +0 -1
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Weth9__factory = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
constant: true,
|
|
11
|
+
inputs: [],
|
|
12
|
+
name: "name",
|
|
13
|
+
outputs: [
|
|
14
|
+
{
|
|
15
|
+
name: "",
|
|
16
|
+
type: "string",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
payable: false,
|
|
20
|
+
stateMutability: "view",
|
|
21
|
+
type: "function",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
constant: false,
|
|
25
|
+
inputs: [
|
|
26
|
+
{
|
|
27
|
+
name: "guy",
|
|
28
|
+
type: "address",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "wad",
|
|
32
|
+
type: "uint256",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
name: "approve",
|
|
36
|
+
outputs: [
|
|
37
|
+
{
|
|
38
|
+
name: "",
|
|
39
|
+
type: "bool",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
payable: false,
|
|
43
|
+
stateMutability: "nonpayable",
|
|
44
|
+
type: "function",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
constant: true,
|
|
48
|
+
inputs: [],
|
|
49
|
+
name: "totalSupply",
|
|
50
|
+
outputs: [
|
|
51
|
+
{
|
|
52
|
+
name: "",
|
|
53
|
+
type: "uint256",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
payable: false,
|
|
57
|
+
stateMutability: "view",
|
|
58
|
+
type: "function",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
constant: false,
|
|
62
|
+
inputs: [
|
|
63
|
+
{
|
|
64
|
+
name: "src",
|
|
65
|
+
type: "address",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "dst",
|
|
69
|
+
type: "address",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "wad",
|
|
73
|
+
type: "uint256",
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
name: "transferFrom",
|
|
77
|
+
outputs: [
|
|
78
|
+
{
|
|
79
|
+
name: "",
|
|
80
|
+
type: "bool",
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
payable: false,
|
|
84
|
+
stateMutability: "nonpayable",
|
|
85
|
+
type: "function",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
constant: false,
|
|
89
|
+
inputs: [
|
|
90
|
+
{
|
|
91
|
+
name: "wad",
|
|
92
|
+
type: "uint256",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
name: "withdraw",
|
|
96
|
+
outputs: [],
|
|
97
|
+
payable: false,
|
|
98
|
+
stateMutability: "nonpayable",
|
|
99
|
+
type: "function",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
constant: true,
|
|
103
|
+
inputs: [],
|
|
104
|
+
name: "decimals",
|
|
105
|
+
outputs: [
|
|
106
|
+
{
|
|
107
|
+
name: "",
|
|
108
|
+
type: "uint8",
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
payable: false,
|
|
112
|
+
stateMutability: "view",
|
|
113
|
+
type: "function",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
constant: true,
|
|
117
|
+
inputs: [
|
|
118
|
+
{
|
|
119
|
+
name: "",
|
|
120
|
+
type: "address",
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
name: "balanceOf",
|
|
124
|
+
outputs: [
|
|
125
|
+
{
|
|
126
|
+
name: "",
|
|
127
|
+
type: "uint256",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
payable: false,
|
|
131
|
+
stateMutability: "view",
|
|
132
|
+
type: "function",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
constant: true,
|
|
136
|
+
inputs: [],
|
|
137
|
+
name: "symbol",
|
|
138
|
+
outputs: [
|
|
139
|
+
{
|
|
140
|
+
name: "",
|
|
141
|
+
type: "string",
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
payable: false,
|
|
145
|
+
stateMutability: "view",
|
|
146
|
+
type: "function",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
constant: false,
|
|
150
|
+
inputs: [
|
|
151
|
+
{
|
|
152
|
+
name: "dst",
|
|
153
|
+
type: "address",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "wad",
|
|
157
|
+
type: "uint256",
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
name: "transfer",
|
|
161
|
+
outputs: [
|
|
162
|
+
{
|
|
163
|
+
name: "",
|
|
164
|
+
type: "bool",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
payable: false,
|
|
168
|
+
stateMutability: "nonpayable",
|
|
169
|
+
type: "function",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
constant: false,
|
|
173
|
+
inputs: [],
|
|
174
|
+
name: "deposit",
|
|
175
|
+
outputs: [],
|
|
176
|
+
payable: true,
|
|
177
|
+
stateMutability: "payable",
|
|
178
|
+
type: "function",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
constant: true,
|
|
182
|
+
inputs: [
|
|
183
|
+
{
|
|
184
|
+
name: "",
|
|
185
|
+
type: "address",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: "",
|
|
189
|
+
type: "address",
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
name: "allowance",
|
|
193
|
+
outputs: [
|
|
194
|
+
{
|
|
195
|
+
name: "",
|
|
196
|
+
type: "uint256",
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
payable: false,
|
|
200
|
+
stateMutability: "view",
|
|
201
|
+
type: "function",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
payable: true,
|
|
205
|
+
stateMutability: "payable",
|
|
206
|
+
type: "fallback",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
anonymous: false,
|
|
210
|
+
inputs: [
|
|
211
|
+
{
|
|
212
|
+
indexed: true,
|
|
213
|
+
name: "src",
|
|
214
|
+
type: "address",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
indexed: true,
|
|
218
|
+
name: "guy",
|
|
219
|
+
type: "address",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
indexed: false,
|
|
223
|
+
name: "wad",
|
|
224
|
+
type: "uint256",
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
name: "Approval",
|
|
228
|
+
type: "event",
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
anonymous: false,
|
|
232
|
+
inputs: [
|
|
233
|
+
{
|
|
234
|
+
indexed: true,
|
|
235
|
+
name: "src",
|
|
236
|
+
type: "address",
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
indexed: true,
|
|
240
|
+
name: "dst",
|
|
241
|
+
type: "address",
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
indexed: false,
|
|
245
|
+
name: "wad",
|
|
246
|
+
type: "uint256",
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
name: "Transfer",
|
|
250
|
+
type: "event",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
anonymous: false,
|
|
254
|
+
inputs: [
|
|
255
|
+
{
|
|
256
|
+
indexed: true,
|
|
257
|
+
name: "dst",
|
|
258
|
+
type: "address",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
indexed: false,
|
|
262
|
+
name: "wad",
|
|
263
|
+
type: "uint256",
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
name: "Deposit",
|
|
267
|
+
type: "event",
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
anonymous: false,
|
|
271
|
+
inputs: [
|
|
272
|
+
{
|
|
273
|
+
indexed: true,
|
|
274
|
+
name: "src",
|
|
275
|
+
type: "address",
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
indexed: false,
|
|
279
|
+
name: "wad",
|
|
280
|
+
type: "uint256",
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
name: "Withdrawal",
|
|
284
|
+
type: "event",
|
|
285
|
+
},
|
|
286
|
+
];
|
|
287
|
+
class Weth9__factory {
|
|
288
|
+
static abi = _abi;
|
|
289
|
+
static createInterface() {
|
|
290
|
+
return new ethers_1.utils.Interface(_abi);
|
|
291
|
+
}
|
|
292
|
+
static connect(address, signerOrProvider) {
|
|
293
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
exports.Weth9__factory = Weth9__factory;
|
|
297
|
+
//# sourceMappingURL=Weth9__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Weth9__factory.js","sourceRoot":"","sources":["../../../../src/builtin/internal/factories/Weth9__factory.ts"],"names":[],"mappings":";AA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gBACX,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,OAAO;KACd;CACF,CAAC;AAEF,MAAa,cAAc;IACzB,MAAM,CAAU,GAAG,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,cAAK,CAAC,SAAS,CAAC,IAAI,CAAmB,CAAC;IACrD,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,OAAe,EAAE,gBAAmC;QACjE,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,gBAAgB,CAAU,CAAC;IAChE,CAAC;;AAPH,wCAQC","sourcesContent":["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\n\nimport { Contract, Signer, utils } from \"ethers\";\nimport type { Provider } from \"@ethersproject/providers\";\nimport type { Weth9, Weth9Interface } from \"../Weth9\";\n\nconst _abi = [\n {\n constant: true,\n inputs: [],\n name: \"name\",\n outputs: [\n {\n name: \"\",\n type: \"string\",\n },\n ],\n payable: false,\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n constant: false,\n inputs: [\n {\n name: \"guy\",\n type: \"address\",\n },\n {\n name: \"wad\",\n type: \"uint256\",\n },\n ],\n name: \"approve\",\n outputs: [\n {\n name: \"\",\n type: \"bool\",\n },\n ],\n payable: false,\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n constant: true,\n inputs: [],\n name: \"totalSupply\",\n outputs: [\n {\n name: \"\",\n type: \"uint256\",\n },\n ],\n payable: false,\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n constant: false,\n inputs: [\n {\n name: \"src\",\n type: \"address\",\n },\n {\n name: \"dst\",\n type: \"address\",\n },\n {\n name: \"wad\",\n type: \"uint256\",\n },\n ],\n name: \"transferFrom\",\n outputs: [\n {\n name: \"\",\n type: \"bool\",\n },\n ],\n payable: false,\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n constant: false,\n inputs: [\n {\n name: \"wad\",\n type: \"uint256\",\n },\n ],\n name: \"withdraw\",\n outputs: [],\n payable: false,\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n constant: true,\n inputs: [],\n name: \"decimals\",\n outputs: [\n {\n name: \"\",\n type: \"uint8\",\n },\n ],\n payable: false,\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n constant: true,\n inputs: [\n {\n name: \"\",\n type: \"address\",\n },\n ],\n name: \"balanceOf\",\n outputs: [\n {\n name: \"\",\n type: \"uint256\",\n },\n ],\n payable: false,\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n constant: true,\n inputs: [],\n name: \"symbol\",\n outputs: [\n {\n name: \"\",\n type: \"string\",\n },\n ],\n payable: false,\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n constant: false,\n inputs: [\n {\n name: \"dst\",\n type: \"address\",\n },\n {\n name: \"wad\",\n type: \"uint256\",\n },\n ],\n name: \"transfer\",\n outputs: [\n {\n name: \"\",\n type: \"bool\",\n },\n ],\n payable: false,\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n constant: false,\n inputs: [],\n name: \"deposit\",\n outputs: [],\n payable: true,\n stateMutability: \"payable\",\n type: \"function\",\n },\n {\n constant: true,\n inputs: [\n {\n name: \"\",\n type: \"address\",\n },\n {\n name: \"\",\n type: \"address\",\n },\n ],\n name: \"allowance\",\n outputs: [\n {\n name: \"\",\n type: \"uint256\",\n },\n ],\n payable: false,\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n payable: true,\n stateMutability: \"payable\",\n type: \"fallback\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: \"src\",\n type: \"address\",\n },\n {\n indexed: true,\n name: \"guy\",\n type: \"address\",\n },\n {\n indexed: false,\n name: \"wad\",\n type: \"uint256\",\n },\n ],\n name: \"Approval\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: \"src\",\n type: \"address\",\n },\n {\n indexed: true,\n name: \"dst\",\n type: \"address\",\n },\n {\n indexed: false,\n name: \"wad\",\n type: \"uint256\",\n },\n ],\n name: \"Transfer\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: \"dst\",\n type: \"address\",\n },\n {\n indexed: false,\n name: \"wad\",\n type: \"uint256\",\n },\n ],\n name: \"Deposit\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: \"src\",\n type: \"address\",\n },\n {\n indexed: false,\n name: \"wad\",\n type: \"uint256\",\n },\n ],\n name: \"Withdrawal\",\n type: \"event\",\n },\n];\n\nexport class Weth9__factory {\n static readonly abi = _abi;\n static createInterface(): Weth9Interface {\n return new utils.Interface(_abi) as Weth9Interface;\n }\n static connect(address: string, signerOrProvider: Signer | Provider): Weth9 {\n return new Contract(address, _abi, signerOrProvider) as Weth9;\n }\n}\n"]}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Erc20__factory = void 0;
|
|
3
|
+
exports.Weth9__factory = exports.Erc20__factory = void 0;
|
|
4
4
|
/* Autogenerated file. Do not edit manually. */
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
var Erc20__factory_1 = require("./Erc20__factory");
|
|
8
8
|
Object.defineProperty(exports, "Erc20__factory", { enumerable: true, get: function () { return Erc20__factory_1.Erc20__factory; } });
|
|
9
|
+
var Weth9__factory_1 = require("./Weth9__factory");
|
|
10
|
+
Object.defineProperty(exports, "Weth9__factory", { enumerable: true, get: function () { return Weth9__factory_1.Weth9__factory; } });
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/builtin/internal/factories/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,mDAAkD;AAAzC,gHAAA,cAAc,OAAA","sourcesContent":["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\nexport { Erc20__factory } from \"./Erc20__factory\";\nexport { Weth9__factory } from \"./Weth9__factory\";\n"]}
|
|
@@ -23,8 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Erc20__factory = exports.factories = void 0;
|
|
26
|
+
exports.Weth9__factory = exports.Erc20__factory = exports.factories = void 0;
|
|
27
27
|
exports.factories = __importStar(require("./factories"));
|
|
28
28
|
var Erc20__factory_1 = require("./factories/Erc20__factory");
|
|
29
29
|
Object.defineProperty(exports, "Erc20__factory", { enumerable: true, get: function () { return Erc20__factory_1.Erc20__factory; } });
|
|
30
|
+
var Weth9__factory_1 = require("./factories/Weth9__factory");
|
|
31
|
+
Object.defineProperty(exports, "Weth9__factory", { enumerable: true, get: function () { return Weth9__factory_1.Weth9__factory; } });
|
|
30
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/builtin/internal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,yDAAyC;AACzC,6DAA4D;AAAnD,gHAAA,cAAc,OAAA;AACvB,6DAA4D;AAAnD,gHAAA,cAAc,OAAA","sourcesContent":["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\nexport type { Erc20 } from \"./Erc20\";\nexport type { Weth9 } from \"./Weth9\";\nexport * as factories from \"./factories\";\nexport { Erc20__factory } from \"./factories/Erc20__factory\";\nexport { Weth9__factory } from \"./factories/Weth9__factory\";\n"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CallOverrides } from "ethers";
|
|
2
|
+
import { Networkish } from "@ethersproject/providers";
|
|
3
|
+
import { BindOptions, BaseProcessor, BaseProcessorTemplate, BoundContractView, Context, ContractView } from "@sentio/sdk";
|
|
4
|
+
import { PromiseOrValue } from "./common";
|
|
5
|
+
import { Weth9 } from "./index";
|
|
6
|
+
import { ApprovalEvent, ApprovalEventFilter, TransferEvent, TransferEventFilter, DepositEvent, DepositEventFilter, WithdrawalEvent, WithdrawalEventFilter } from "./Weth9";
|
|
7
|
+
export declare class Weth9ContractView extends ContractView<Weth9> {
|
|
8
|
+
constructor(contract: Weth9);
|
|
9
|
+
name(overrides?: CallOverrides): Promise<string>;
|
|
10
|
+
totalSupply(overrides?: CallOverrides): Promise<import("ethers").BigNumber>;
|
|
11
|
+
decimals(overrides?: CallOverrides): Promise<number>;
|
|
12
|
+
balanceOf(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<import("ethers").BigNumber>;
|
|
13
|
+
symbol(overrides?: CallOverrides): Promise<string>;
|
|
14
|
+
allowance(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<import("ethers").BigNumber>;
|
|
15
|
+
}
|
|
16
|
+
export declare class Weth9BoundContractView extends BoundContractView<Weth9, Weth9ContractView> {
|
|
17
|
+
name(overrides?: CallOverrides): Promise<string>;
|
|
18
|
+
totalSupply(overrides?: CallOverrides): Promise<import("ethers").BigNumber>;
|
|
19
|
+
decimals(overrides?: CallOverrides): Promise<number>;
|
|
20
|
+
balanceOf(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<import("ethers").BigNumber>;
|
|
21
|
+
symbol(overrides?: CallOverrides): Promise<string>;
|
|
22
|
+
allowance(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<import("ethers").BigNumber>;
|
|
23
|
+
}
|
|
24
|
+
export declare type Weth9Context = Context<Weth9, Weth9BoundContractView>;
|
|
25
|
+
export declare class Weth9ProcessorTemplate extends BaseProcessorTemplate<Weth9, Weth9BoundContractView> {
|
|
26
|
+
bindInternal(options: BindOptions): Weth9Processor;
|
|
27
|
+
onApproval(handler: (event: ApprovalEvent, ctx: Weth9Context) => void, filter?: ApprovalEventFilter | ApprovalEventFilter[]): this;
|
|
28
|
+
onTransfer(handler: (event: TransferEvent, ctx: Weth9Context) => void, filter?: TransferEventFilter | TransferEventFilter[]): this;
|
|
29
|
+
onDeposit(handler: (event: DepositEvent, ctx: Weth9Context) => void, filter?: DepositEventFilter | DepositEventFilter[]): this;
|
|
30
|
+
onWithdrawal(handler: (event: WithdrawalEvent, ctx: Weth9Context) => void, filter?: WithdrawalEventFilter | WithdrawalEventFilter[]): this;
|
|
31
|
+
}
|
|
32
|
+
export declare class Weth9Processor extends BaseProcessor<Weth9, Weth9BoundContractView> {
|
|
33
|
+
onApproval(handler: (event: ApprovalEvent, ctx: Weth9Context) => void, filter?: ApprovalEventFilter | ApprovalEventFilter[]): this;
|
|
34
|
+
onTransfer(handler: (event: TransferEvent, ctx: Weth9Context) => void, filter?: TransferEventFilter | TransferEventFilter[]): this;
|
|
35
|
+
onDeposit(handler: (event: DepositEvent, ctx: Weth9Context) => void, filter?: DepositEventFilter | DepositEventFilter[]): this;
|
|
36
|
+
onWithdrawal(handler: (event: WithdrawalEvent, ctx: Weth9Context) => void, filter?: WithdrawalEventFilter | WithdrawalEventFilter[]): this;
|
|
37
|
+
static filters: {
|
|
38
|
+
"Approval(address,address,uint256)"(src?: PromiseOrValue<string> | null | undefined, guy?: PromiseOrValue<string> | null | undefined, wad?: null | undefined): ApprovalEventFilter;
|
|
39
|
+
Approval(src?: PromiseOrValue<string> | null | undefined, guy?: PromiseOrValue<string> | null | undefined, wad?: null | undefined): ApprovalEventFilter;
|
|
40
|
+
"Transfer(address,address,uint256)"(src?: PromiseOrValue<string> | null | undefined, dst?: PromiseOrValue<string> | null | undefined, wad?: null | undefined): TransferEventFilter;
|
|
41
|
+
Transfer(src?: PromiseOrValue<string> | null | undefined, dst?: PromiseOrValue<string> | null | undefined, wad?: null | undefined): TransferEventFilter;
|
|
42
|
+
"Deposit(address,uint256)"(dst?: PromiseOrValue<string> | null | undefined, wad?: null | undefined): DepositEventFilter;
|
|
43
|
+
Deposit(dst?: PromiseOrValue<string> | null | undefined, wad?: null | undefined): DepositEventFilter;
|
|
44
|
+
"Withdrawal(address,uint256)"(src?: PromiseOrValue<string> | null | undefined, wad?: null | undefined): WithdrawalEventFilter;
|
|
45
|
+
Withdrawal(src?: PromiseOrValue<string> | null | undefined, wad?: null | undefined): WithdrawalEventFilter;
|
|
46
|
+
};
|
|
47
|
+
protected CreateBoundContractView(): Weth9BoundContractView;
|
|
48
|
+
static bind(options: BindOptions): Weth9Processor;
|
|
49
|
+
}
|
|
50
|
+
export declare function getWeth9Contract(address: string, network?: Networkish): Weth9ContractView;
|