@shapeshiftoss/unchained-client 6.11.0 → 6.11.1
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/README.md +3 -1
- package/dist/bitcoin/index.d.ts +0 -1
- package/dist/bitcoin/index.js +5 -2
- package/dist/bitcoin/parser/index.d.ts +0 -1
- package/dist/bitcoin/parser/index.js +43 -55
- package/dist/bitcoin/parser/utils.d.ts +0 -1
- package/dist/bitcoin/parser/utils.js +0 -1
- package/dist/bitcoin/types.d.ts +0 -1
- package/dist/bitcoin/types.js +0 -1
- package/dist/cosmos/index.d.ts +0 -1
- package/dist/cosmos/index.js +5 -2
- package/dist/cosmos/parser/index.d.ts +1 -2
- package/dist/cosmos/parser/index.js +56 -64
- package/dist/cosmos/parser/utils.d.ts +2 -3
- package/dist/cosmos/parser/utils.js +21 -22
- package/dist/cosmos/types.d.ts +0 -1
- package/dist/cosmos/types.js +0 -1
- package/dist/ethereum/index.d.ts +0 -1
- package/dist/ethereum/index.js +5 -2
- package/dist/ethereum/parser/abi/erc20.d.ts +0 -1
- package/dist/ethereum/parser/abi/erc20.js +69 -70
- package/dist/ethereum/parser/abi/foxyStaking.d.ts +0 -1
- package/dist/ethereum/parser/abi/foxyStaking.js +161 -162
- package/dist/ethereum/parser/abi/multiSig.d.ts +0 -1
- package/dist/ethereum/parser/abi/multiSig.js +79 -80
- package/dist/ethereum/parser/abi/shapeShiftRouter.d.ts +0 -1
- package/dist/ethereum/parser/abi/shapeShiftRouter.js +119 -120
- package/dist/ethereum/parser/abi/thor.d.ts +0 -1
- package/dist/ethereum/parser/abi/thor.js +28 -29
- package/dist/ethereum/parser/abi/uniV2.d.ts +0 -1
- package/dist/ethereum/parser/abi/uniV2.js +55 -56
- package/dist/ethereum/parser/abi/weth.d.ts +0 -1
- package/dist/ethereum/parser/abi/weth.js +66 -67
- package/dist/ethereum/parser/abi/yearnVault.d.ts +0 -1
- package/dist/ethereum/parser/abi/yearnVault.js +95 -96
- package/dist/ethereum/parser/constants.d.ts +0 -1
- package/dist/ethereum/parser/constants.js +0 -1
- package/dist/ethereum/parser/foxy.d.ts +1 -2
- package/dist/ethereum/parser/foxy.js +22 -34
- package/dist/ethereum/parser/index.d.ts +0 -1
- package/dist/ethereum/parser/index.js +46 -54
- package/dist/ethereum/parser/thor.d.ts +1 -2
- package/dist/ethereum/parser/thor.js +29 -41
- package/dist/ethereum/parser/uniV2.d.ts +0 -1
- package/dist/ethereum/parser/uniV2.js +87 -99
- package/dist/ethereum/parser/utils.d.ts +0 -1
- package/dist/ethereum/parser/utils.js +2 -3
- package/dist/ethereum/parser/weth.d.ts +0 -1
- package/dist/ethereum/parser/weth.js +72 -84
- package/dist/ethereum/parser/yearn.d.ts +1 -2
- package/dist/ethereum/parser/yearn.js +46 -58
- package/dist/ethereum/parser/zrx.d.ts +1 -2
- package/dist/ethereum/parser/zrx.js +18 -30
- package/dist/ethereum/types.d.ts +0 -1
- package/dist/ethereum/types.js +0 -1
- package/dist/generated/bitcoin/api.d.ts +116 -120
- package/dist/generated/bitcoin/api.js +81 -110
- package/dist/generated/bitcoin/base.d.ts +2 -3
- package/dist/generated/bitcoin/base.js +1 -2
- package/dist/generated/bitcoin/common.d.ts +2 -3
- package/dist/generated/bitcoin/common.js +22 -38
- package/dist/generated/bitcoin/configuration.d.ts +0 -1
- package/dist/generated/bitcoin/configuration.js +0 -1
- package/dist/generated/bitcoin/index.d.ts +0 -1
- package/dist/generated/bitcoin/index.js +5 -2
- package/dist/generated/cosmos/api.d.ts +143 -144
- package/dist/generated/cosmos/api.js +89 -115
- package/dist/generated/cosmos/base.d.ts +2 -3
- package/dist/generated/cosmos/base.js +0 -1
- package/dist/generated/cosmos/common.d.ts +2 -3
- package/dist/generated/cosmos/common.js +22 -38
- package/dist/generated/cosmos/configuration.d.ts +0 -1
- package/dist/generated/cosmos/configuration.js +0 -1
- package/dist/generated/cosmos/index.d.ts +0 -1
- package/dist/generated/cosmos/index.js +5 -2
- package/dist/generated/ethereum/api.d.ts +73 -77
- package/dist/generated/ethereum/api.js +73 -100
- package/dist/generated/ethereum/base.d.ts +2 -3
- package/dist/generated/ethereum/base.js +1 -2
- package/dist/generated/ethereum/common.d.ts +2 -3
- package/dist/generated/ethereum/common.js +22 -38
- package/dist/generated/ethereum/configuration.d.ts +0 -1
- package/dist/generated/ethereum/configuration.js +0 -1
- package/dist/generated/ethereum/index.d.ts +0 -1
- package/dist/generated/ethereum/index.js +5 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +5 -2
- package/dist/types.d.ts +0 -1
- package/dist/types.js +0 -1
- package/dist/utils.d.ts +1 -2
- package/dist/utils.js +18 -21
- package/dist/websocket.d.ts +1 -2
- package/dist/websocket.js +78 -84
- package/package.json +19 -11
- package/dist/bitcoin/index.d.ts.map +0 -1
- package/dist/bitcoin/index.js.map +0 -1
- package/dist/bitcoin/parser/index.d.ts.map +0 -1
- package/dist/bitcoin/parser/index.js.map +0 -1
- package/dist/bitcoin/parser/utils.d.ts.map +0 -1
- package/dist/bitcoin/parser/utils.js.map +0 -1
- package/dist/bitcoin/types.d.ts.map +0 -1
- package/dist/bitcoin/types.js.map +0 -1
- package/dist/cosmos/index.d.ts.map +0 -1
- package/dist/cosmos/index.js.map +0 -1
- package/dist/cosmos/parser/index.d.ts.map +0 -1
- package/dist/cosmos/parser/index.js.map +0 -1
- package/dist/cosmos/parser/utils.d.ts.map +0 -1
- package/dist/cosmos/parser/utils.js.map +0 -1
- package/dist/cosmos/types.d.ts.map +0 -1
- package/dist/cosmos/types.js.map +0 -1
- package/dist/ethereum/index.d.ts.map +0 -1
- package/dist/ethereum/index.js.map +0 -1
- package/dist/ethereum/parser/abi/erc20.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/erc20.js.map +0 -1
- package/dist/ethereum/parser/abi/foxyStaking.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/foxyStaking.js.map +0 -1
- package/dist/ethereum/parser/abi/multiSig.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/multiSig.js.map +0 -1
- package/dist/ethereum/parser/abi/shapeShiftRouter.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/shapeShiftRouter.js.map +0 -1
- package/dist/ethereum/parser/abi/thor.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/thor.js.map +0 -1
- package/dist/ethereum/parser/abi/uniV2.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/uniV2.js.map +0 -1
- package/dist/ethereum/parser/abi/weth.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/weth.js.map +0 -1
- package/dist/ethereum/parser/abi/yearnVault.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/yearnVault.js.map +0 -1
- package/dist/ethereum/parser/constants.d.ts.map +0 -1
- package/dist/ethereum/parser/constants.js.map +0 -1
- package/dist/ethereum/parser/foxy.d.ts.map +0 -1
- package/dist/ethereum/parser/foxy.js.map +0 -1
- package/dist/ethereum/parser/index.d.ts.map +0 -1
- package/dist/ethereum/parser/index.js.map +0 -1
- package/dist/ethereum/parser/thor.d.ts.map +0 -1
- package/dist/ethereum/parser/thor.js.map +0 -1
- package/dist/ethereum/parser/uniV2.d.ts.map +0 -1
- package/dist/ethereum/parser/uniV2.js.map +0 -1
- package/dist/ethereum/parser/utils.d.ts.map +0 -1
- package/dist/ethereum/parser/utils.js.map +0 -1
- package/dist/ethereum/parser/weth.d.ts.map +0 -1
- package/dist/ethereum/parser/weth.js.map +0 -1
- package/dist/ethereum/parser/yearn.d.ts.map +0 -1
- package/dist/ethereum/parser/yearn.js.map +0 -1
- package/dist/ethereum/parser/zrx.d.ts.map +0 -1
- package/dist/ethereum/parser/zrx.js.map +0 -1
- package/dist/ethereum/types.d.ts.map +0 -1
- package/dist/ethereum/types.js.map +0 -1
- package/dist/generated/bitcoin/api.d.ts.map +0 -1
- package/dist/generated/bitcoin/api.js.map +0 -1
- package/dist/generated/bitcoin/base.d.ts.map +0 -1
- package/dist/generated/bitcoin/base.js.map +0 -1
- package/dist/generated/bitcoin/common.d.ts.map +0 -1
- package/dist/generated/bitcoin/common.js.map +0 -1
- package/dist/generated/bitcoin/configuration.d.ts.map +0 -1
- package/dist/generated/bitcoin/configuration.js.map +0 -1
- package/dist/generated/bitcoin/index.d.ts.map +0 -1
- package/dist/generated/bitcoin/index.js.map +0 -1
- package/dist/generated/cosmos/api.d.ts.map +0 -1
- package/dist/generated/cosmos/api.js.map +0 -1
- package/dist/generated/cosmos/base.d.ts.map +0 -1
- package/dist/generated/cosmos/base.js.map +0 -1
- package/dist/generated/cosmos/common.d.ts.map +0 -1
- package/dist/generated/cosmos/common.js.map +0 -1
- package/dist/generated/cosmos/configuration.d.ts.map +0 -1
- package/dist/generated/cosmos/configuration.js.map +0 -1
- package/dist/generated/cosmos/index.d.ts.map +0 -1
- package/dist/generated/cosmos/index.js.map +0 -1
- package/dist/generated/ethereum/api.d.ts.map +0 -1
- package/dist/generated/ethereum/api.js.map +0 -1
- package/dist/generated/ethereum/base.d.ts.map +0 -1
- package/dist/generated/ethereum/base.js.map +0 -1
- package/dist/generated/ethereum/common.d.ts.map +0 -1
- package/dist/generated/ethereum/common.js.map +0 -1
- package/dist/generated/ethereum/configuration.d.ts.map +0 -1
- package/dist/generated/ethereum/configuration.js.map +0 -1
- package/dist/generated/ethereum/index.d.ts.map +0 -1
- package/dist/generated/ethereum/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -4986
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js.map +0 -1
- package/dist/websocket.d.ts.map +0 -1
- package/dist/websocket.js.map +0 -1
|
@@ -8,10 +8,10 @@ const thor = [
|
|
|
8
8
|
{ indexed: true, internalType: 'address', name: 'to', type: 'address' },
|
|
9
9
|
{ indexed: true, internalType: 'address', name: 'asset', type: 'address' },
|
|
10
10
|
{ indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
11
|
-
{ indexed: false, internalType: 'string', name: 'memo', type: 'string' }
|
|
11
|
+
{ indexed: false, internalType: 'string', name: 'memo', type: 'string' }
|
|
12
12
|
],
|
|
13
13
|
name: 'Deposit',
|
|
14
|
-
type: 'event'
|
|
14
|
+
type: 'event'
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
anonymous: false,
|
|
@@ -20,10 +20,10 @@ const thor = [
|
|
|
20
20
|
{ indexed: true, internalType: 'address', name: 'newVault', type: 'address' },
|
|
21
21
|
{ indexed: false, internalType: 'address', name: 'asset', type: 'address' },
|
|
22
22
|
{ indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
23
|
-
{ indexed: false, internalType: 'string', name: 'memo', type: 'string' }
|
|
23
|
+
{ indexed: false, internalType: 'string', name: 'memo', type: 'string' }
|
|
24
24
|
],
|
|
25
25
|
name: 'TransferAllowance',
|
|
26
|
-
type: 'event'
|
|
26
|
+
type: 'event'
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
anonymous: false,
|
|
@@ -32,10 +32,10 @@ const thor = [
|
|
|
32
32
|
{ indexed: true, internalType: 'address', name: 'to', type: 'address' },
|
|
33
33
|
{ indexed: false, internalType: 'address', name: 'asset', type: 'address' },
|
|
34
34
|
{ indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
35
|
-
{ indexed: false, internalType: 'string', name: 'memo', type: 'string' }
|
|
35
|
+
{ indexed: false, internalType: 'string', name: 'memo', type: 'string' }
|
|
36
36
|
],
|
|
37
37
|
name: 'TransferOut',
|
|
38
|
-
type: 'event'
|
|
38
|
+
type: 'event'
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
anonymous: false,
|
|
@@ -45,24 +45,24 @@ const thor = [
|
|
|
45
45
|
{
|
|
46
46
|
components: [
|
|
47
47
|
{ internalType: 'address', name: 'asset', type: 'address' },
|
|
48
|
-
{ internalType: 'uint256', name: 'amount', type: 'uint256' }
|
|
48
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' }
|
|
49
49
|
],
|
|
50
50
|
indexed: false,
|
|
51
51
|
internalType: 'struct THORChain_Router.Coin[]',
|
|
52
52
|
name: 'coins',
|
|
53
|
-
type: 'tuple[]'
|
|
53
|
+
type: 'tuple[]'
|
|
54
54
|
},
|
|
55
|
-
{ indexed: false, internalType: 'string', name: 'memo', type: 'string' }
|
|
55
|
+
{ indexed: false, internalType: 'string', name: 'memo', type: 'string' }
|
|
56
56
|
],
|
|
57
57
|
name: 'VaultTransfer',
|
|
58
|
-
type: 'event'
|
|
58
|
+
type: 'event'
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
inputs: [],
|
|
62
62
|
name: 'RUNE',
|
|
63
63
|
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
64
64
|
stateMutability: 'view',
|
|
65
|
-
type: 'function'
|
|
65
|
+
type: 'function'
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
inputs: [
|
|
@@ -70,30 +70,30 @@ const thor = [
|
|
|
70
70
|
{
|
|
71
71
|
components: [
|
|
72
72
|
{ internalType: 'address', name: 'asset', type: 'address' },
|
|
73
|
-
{ internalType: 'uint256', name: 'amount', type: 'uint256' }
|
|
73
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' }
|
|
74
74
|
],
|
|
75
75
|
internalType: 'struct THORChain_Router.Coin[]',
|
|
76
76
|
name: 'coins',
|
|
77
|
-
type: 'tuple[]'
|
|
77
|
+
type: 'tuple[]'
|
|
78
78
|
},
|
|
79
|
-
{ internalType: 'string[]', name: 'memos', type: 'string[]' }
|
|
79
|
+
{ internalType: 'string[]', name: 'memos', type: 'string[]' }
|
|
80
80
|
],
|
|
81
81
|
name: 'batchTransferOut',
|
|
82
82
|
outputs: [],
|
|
83
83
|
stateMutability: 'payable',
|
|
84
|
-
type: 'function'
|
|
84
|
+
type: 'function'
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
inputs: [
|
|
88
88
|
{ internalType: 'address payable', name: 'vault', type: 'address' },
|
|
89
89
|
{ internalType: 'address', name: 'asset', type: 'address' },
|
|
90
90
|
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
91
|
-
{ internalType: 'string', name: 'memo', type: 'string' }
|
|
91
|
+
{ internalType: 'string', name: 'memo', type: 'string' }
|
|
92
92
|
],
|
|
93
93
|
name: 'deposit',
|
|
94
94
|
outputs: [],
|
|
95
95
|
stateMutability: 'payable',
|
|
96
|
-
type: 'function'
|
|
96
|
+
type: 'function'
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
inputs: [
|
|
@@ -102,18 +102,18 @@ const thor = [
|
|
|
102
102
|
{
|
|
103
103
|
components: [
|
|
104
104
|
{ internalType: 'address', name: 'asset', type: 'address' },
|
|
105
|
-
{ internalType: 'uint256', name: 'amount', type: 'uint256' }
|
|
105
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' }
|
|
106
106
|
],
|
|
107
107
|
internalType: 'struct THORChain_Router.Coin[]',
|
|
108
108
|
name: 'coins',
|
|
109
|
-
type: 'tuple[]'
|
|
109
|
+
type: 'tuple[]'
|
|
110
110
|
},
|
|
111
|
-
{ internalType: 'string', name: 'memo', type: 'string' }
|
|
111
|
+
{ internalType: 'string', name: 'memo', type: 'string' }
|
|
112
112
|
],
|
|
113
113
|
name: 'returnVaultAssets',
|
|
114
114
|
outputs: [],
|
|
115
115
|
stateMutability: 'payable',
|
|
116
|
-
type: 'function'
|
|
116
|
+
type: 'function'
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
inputs: [
|
|
@@ -121,35 +121,34 @@ const thor = [
|
|
|
121
121
|
{ internalType: 'address', name: 'newVault', type: 'address' },
|
|
122
122
|
{ internalType: 'address', name: 'asset', type: 'address' },
|
|
123
123
|
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
124
|
-
{ internalType: 'string', name: 'memo', type: 'string' }
|
|
124
|
+
{ internalType: 'string', name: 'memo', type: 'string' }
|
|
125
125
|
],
|
|
126
126
|
name: 'transferAllowance',
|
|
127
127
|
outputs: [],
|
|
128
128
|
stateMutability: 'nonpayable',
|
|
129
|
-
type: 'function'
|
|
129
|
+
type: 'function'
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
inputs: [
|
|
133
133
|
{ internalType: 'address payable', name: 'to', type: 'address' },
|
|
134
134
|
{ internalType: 'address', name: 'asset', type: 'address' },
|
|
135
135
|
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
136
|
-
{ internalType: 'string', name: 'memo', type: 'string' }
|
|
136
|
+
{ internalType: 'string', name: 'memo', type: 'string' }
|
|
137
137
|
],
|
|
138
138
|
name: 'transferOut',
|
|
139
139
|
outputs: [],
|
|
140
140
|
stateMutability: 'payable',
|
|
141
|
-
type: 'function'
|
|
141
|
+
type: 'function'
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
inputs: [
|
|
145
145
|
{ internalType: 'address', name: '', type: 'address' },
|
|
146
|
-
{ internalType: 'address', name: '', type: 'address' }
|
|
146
|
+
{ internalType: 'address', name: '', type: 'address' }
|
|
147
147
|
],
|
|
148
148
|
name: 'vaultAllowance',
|
|
149
149
|
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
150
150
|
stateMutability: 'view',
|
|
151
|
-
type: 'function'
|
|
152
|
-
}
|
|
151
|
+
type: 'function'
|
|
152
|
+
}
|
|
153
153
|
];
|
|
154
154
|
exports.default = thor;
|
|
155
|
-
//# sourceMappingURL=thor.js.map
|
|
@@ -4,17 +4,17 @@ const uniV2 = [
|
|
|
4
4
|
{
|
|
5
5
|
inputs: [
|
|
6
6
|
{ internalType: 'address', name: '_factory', type: 'address' },
|
|
7
|
-
{ internalType: 'address', name: '_WETH', type: 'address' }
|
|
7
|
+
{ internalType: 'address', name: '_WETH', type: 'address' }
|
|
8
8
|
],
|
|
9
9
|
stateMutability: 'nonpayable',
|
|
10
|
-
type: 'constructor'
|
|
10
|
+
type: 'constructor'
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
inputs: [],
|
|
14
14
|
name: 'WETH',
|
|
15
15
|
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
16
16
|
stateMutability: 'view',
|
|
17
|
-
type: 'function'
|
|
17
|
+
type: 'function'
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
inputs: [
|
|
@@ -25,16 +25,16 @@ const uniV2 = [
|
|
|
25
25
|
{ internalType: 'uint256', name: 'amountAMin', type: 'uint256' },
|
|
26
26
|
{ internalType: 'uint256', name: 'amountBMin', type: 'uint256' },
|
|
27
27
|
{ internalType: 'address', name: 'to', type: 'address' },
|
|
28
|
-
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
28
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
29
29
|
],
|
|
30
30
|
name: 'addLiquidity',
|
|
31
31
|
outputs: [
|
|
32
32
|
{ internalType: 'uint256', name: 'amountA', type: 'uint256' },
|
|
33
33
|
{ internalType: 'uint256', name: 'amountB', type: 'uint256' },
|
|
34
|
-
{ internalType: 'uint256', name: 'liquidity', type: 'uint256' }
|
|
34
|
+
{ internalType: 'uint256', name: 'liquidity', type: 'uint256' }
|
|
35
35
|
],
|
|
36
36
|
stateMutability: 'nonpayable',
|
|
37
|
-
type: 'function'
|
|
37
|
+
type: 'function'
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
inputs: [
|
|
@@ -43,76 +43,76 @@ const uniV2 = [
|
|
|
43
43
|
{ internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
|
|
44
44
|
{ internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
|
|
45
45
|
{ internalType: 'address', name: 'to', type: 'address' },
|
|
46
|
-
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
46
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
47
47
|
],
|
|
48
48
|
name: 'addLiquidityETH',
|
|
49
49
|
outputs: [
|
|
50
50
|
{ internalType: 'uint256', name: 'amountToken', type: 'uint256' },
|
|
51
51
|
{ internalType: 'uint256', name: 'amountETH', type: 'uint256' },
|
|
52
|
-
{ internalType: 'uint256', name: 'liquidity', type: 'uint256' }
|
|
52
|
+
{ internalType: 'uint256', name: 'liquidity', type: 'uint256' }
|
|
53
53
|
],
|
|
54
54
|
stateMutability: 'payable',
|
|
55
|
-
type: 'function'
|
|
55
|
+
type: 'function'
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
inputs: [],
|
|
59
59
|
name: 'factory',
|
|
60
60
|
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
61
61
|
stateMutability: 'view',
|
|
62
|
-
type: 'function'
|
|
62
|
+
type: 'function'
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
inputs: [
|
|
66
66
|
{ internalType: 'uint256', name: 'amountOut', type: 'uint256' },
|
|
67
67
|
{ internalType: 'uint256', name: 'reserveIn', type: 'uint256' },
|
|
68
|
-
{ internalType: 'uint256', name: 'reserveOut', type: 'uint256' }
|
|
68
|
+
{ internalType: 'uint256', name: 'reserveOut', type: 'uint256' }
|
|
69
69
|
],
|
|
70
70
|
name: 'getAmountIn',
|
|
71
71
|
outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }],
|
|
72
72
|
stateMutability: 'pure',
|
|
73
|
-
type: 'function'
|
|
73
|
+
type: 'function'
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
inputs: [
|
|
77
77
|
{ internalType: 'uint256', name: 'amountIn', type: 'uint256' },
|
|
78
78
|
{ internalType: 'uint256', name: 'reserveIn', type: 'uint256' },
|
|
79
|
-
{ internalType: 'uint256', name: 'reserveOut', type: 'uint256' }
|
|
79
|
+
{ internalType: 'uint256', name: 'reserveOut', type: 'uint256' }
|
|
80
80
|
],
|
|
81
81
|
name: 'getAmountOut',
|
|
82
82
|
outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }],
|
|
83
83
|
stateMutability: 'pure',
|
|
84
|
-
type: 'function'
|
|
84
|
+
type: 'function'
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
inputs: [
|
|
88
88
|
{ internalType: 'uint256', name: 'amountOut', type: 'uint256' },
|
|
89
|
-
{ internalType: 'address[]', name: 'path', type: 'address[]' }
|
|
89
|
+
{ internalType: 'address[]', name: 'path', type: 'address[]' }
|
|
90
90
|
],
|
|
91
91
|
name: 'getAmountsIn',
|
|
92
92
|
outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
|
|
93
93
|
stateMutability: 'view',
|
|
94
|
-
type: 'function'
|
|
94
|
+
type: 'function'
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
inputs: [
|
|
98
98
|
{ internalType: 'uint256', name: 'amountIn', type: 'uint256' },
|
|
99
|
-
{ internalType: 'address[]', name: 'path', type: 'address[]' }
|
|
99
|
+
{ internalType: 'address[]', name: 'path', type: 'address[]' }
|
|
100
100
|
],
|
|
101
101
|
name: 'getAmountsOut',
|
|
102
102
|
outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
|
|
103
103
|
stateMutability: 'view',
|
|
104
|
-
type: 'function'
|
|
104
|
+
type: 'function'
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
inputs: [
|
|
108
108
|
{ internalType: 'uint256', name: 'amountA', type: 'uint256' },
|
|
109
109
|
{ internalType: 'uint256', name: 'reserveA', type: 'uint256' },
|
|
110
|
-
{ internalType: 'uint256', name: 'reserveB', type: 'uint256' }
|
|
110
|
+
{ internalType: 'uint256', name: 'reserveB', type: 'uint256' }
|
|
111
111
|
],
|
|
112
112
|
name: 'quote',
|
|
113
113
|
outputs: [{ internalType: 'uint256', name: 'amountB', type: 'uint256' }],
|
|
114
114
|
stateMutability: 'pure',
|
|
115
|
-
type: 'function'
|
|
115
|
+
type: 'function'
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
inputs: [
|
|
@@ -122,15 +122,15 @@ const uniV2 = [
|
|
|
122
122
|
{ internalType: 'uint256', name: 'amountAMin', type: 'uint256' },
|
|
123
123
|
{ internalType: 'uint256', name: 'amountBMin', type: 'uint256' },
|
|
124
124
|
{ internalType: 'address', name: 'to', type: 'address' },
|
|
125
|
-
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
125
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
126
126
|
],
|
|
127
127
|
name: 'removeLiquidity',
|
|
128
128
|
outputs: [
|
|
129
129
|
{ internalType: 'uint256', name: 'amountA', type: 'uint256' },
|
|
130
|
-
{ internalType: 'uint256', name: 'amountB', type: 'uint256' }
|
|
130
|
+
{ internalType: 'uint256', name: 'amountB', type: 'uint256' }
|
|
131
131
|
],
|
|
132
132
|
stateMutability: 'nonpayable',
|
|
133
|
-
type: 'function'
|
|
133
|
+
type: 'function'
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
inputs: [
|
|
@@ -139,15 +139,15 @@ const uniV2 = [
|
|
|
139
139
|
{ internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
|
|
140
140
|
{ internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
|
|
141
141
|
{ internalType: 'address', name: 'to', type: 'address' },
|
|
142
|
-
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
142
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
143
143
|
],
|
|
144
144
|
name: 'removeLiquidityETH',
|
|
145
145
|
outputs: [
|
|
146
146
|
{ internalType: 'uint256', name: 'amountToken', type: 'uint256' },
|
|
147
|
-
{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }
|
|
147
|
+
{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }
|
|
148
148
|
],
|
|
149
149
|
stateMutability: 'nonpayable',
|
|
150
|
-
type: 'function'
|
|
150
|
+
type: 'function'
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
inputs: [
|
|
@@ -156,12 +156,12 @@ const uniV2 = [
|
|
|
156
156
|
{ internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
|
|
157
157
|
{ internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
|
|
158
158
|
{ internalType: 'address', name: 'to', type: 'address' },
|
|
159
|
-
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
159
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
160
160
|
],
|
|
161
161
|
name: 'removeLiquidityETHSupportingFeeOnTransferTokens',
|
|
162
162
|
outputs: [{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }],
|
|
163
163
|
stateMutability: 'nonpayable',
|
|
164
|
-
type: 'function'
|
|
164
|
+
type: 'function'
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
inputs: [
|
|
@@ -174,15 +174,15 @@ const uniV2 = [
|
|
|
174
174
|
{ internalType: 'bool', name: 'approveMax', type: 'bool' },
|
|
175
175
|
{ internalType: 'uint8', name: 'v', type: 'uint8' },
|
|
176
176
|
{ internalType: 'bytes32', name: 'r', type: 'bytes32' },
|
|
177
|
-
{ internalType: 'bytes32', name: 's', type: 'bytes32' }
|
|
177
|
+
{ internalType: 'bytes32', name: 's', type: 'bytes32' }
|
|
178
178
|
],
|
|
179
179
|
name: 'removeLiquidityETHWithPermit',
|
|
180
180
|
outputs: [
|
|
181
181
|
{ internalType: 'uint256', name: 'amountToken', type: 'uint256' },
|
|
182
|
-
{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }
|
|
182
|
+
{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }
|
|
183
183
|
],
|
|
184
184
|
stateMutability: 'nonpayable',
|
|
185
|
-
type: 'function'
|
|
185
|
+
type: 'function'
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
inputs: [
|
|
@@ -195,12 +195,12 @@ const uniV2 = [
|
|
|
195
195
|
{ internalType: 'bool', name: 'approveMax', type: 'bool' },
|
|
196
196
|
{ internalType: 'uint8', name: 'v', type: 'uint8' },
|
|
197
197
|
{ internalType: 'bytes32', name: 'r', type: 'bytes32' },
|
|
198
|
-
{ internalType: 'bytes32', name: 's', type: 'bytes32' }
|
|
198
|
+
{ internalType: 'bytes32', name: 's', type: 'bytes32' }
|
|
199
199
|
],
|
|
200
200
|
name: 'removeLiquidityETHWithPermitSupportingFeeOnTransferTokens',
|
|
201
201
|
outputs: [{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }],
|
|
202
202
|
stateMutability: 'nonpayable',
|
|
203
|
-
type: 'function'
|
|
203
|
+
type: 'function'
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
inputs: [
|
|
@@ -214,51 +214,51 @@ const uniV2 = [
|
|
|
214
214
|
{ internalType: 'bool', name: 'approveMax', type: 'bool' },
|
|
215
215
|
{ internalType: 'uint8', name: 'v', type: 'uint8' },
|
|
216
216
|
{ internalType: 'bytes32', name: 'r', type: 'bytes32' },
|
|
217
|
-
{ internalType: 'bytes32', name: 's', type: 'bytes32' }
|
|
217
|
+
{ internalType: 'bytes32', name: 's', type: 'bytes32' }
|
|
218
218
|
],
|
|
219
219
|
name: 'removeLiquidityWithPermit',
|
|
220
220
|
outputs: [
|
|
221
221
|
{ internalType: 'uint256', name: 'amountA', type: 'uint256' },
|
|
222
|
-
{ internalType: 'uint256', name: 'amountB', type: 'uint256' }
|
|
222
|
+
{ internalType: 'uint256', name: 'amountB', type: 'uint256' }
|
|
223
223
|
],
|
|
224
224
|
stateMutability: 'nonpayable',
|
|
225
|
-
type: 'function'
|
|
225
|
+
type: 'function'
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
inputs: [
|
|
229
229
|
{ internalType: 'uint256', name: 'amountOut', type: 'uint256' },
|
|
230
230
|
{ internalType: 'address[]', name: 'path', type: 'address[]' },
|
|
231
231
|
{ internalType: 'address', name: 'to', type: 'address' },
|
|
232
|
-
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
232
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
233
233
|
],
|
|
234
234
|
name: 'swapETHForExactTokens',
|
|
235
235
|
outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
|
|
236
236
|
stateMutability: 'payable',
|
|
237
|
-
type: 'function'
|
|
237
|
+
type: 'function'
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
240
|
inputs: [
|
|
241
241
|
{ internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
|
|
242
242
|
{ internalType: 'address[]', name: 'path', type: 'address[]' },
|
|
243
243
|
{ internalType: 'address', name: 'to', type: 'address' },
|
|
244
|
-
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
244
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
245
245
|
],
|
|
246
246
|
name: 'swapExactETHForTokens',
|
|
247
247
|
outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
|
|
248
248
|
stateMutability: 'payable',
|
|
249
|
-
type: 'function'
|
|
249
|
+
type: 'function'
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
inputs: [
|
|
253
253
|
{ internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
|
|
254
254
|
{ internalType: 'address[]', name: 'path', type: 'address[]' },
|
|
255
255
|
{ internalType: 'address', name: 'to', type: 'address' },
|
|
256
|
-
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
256
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
257
257
|
],
|
|
258
258
|
name: 'swapExactETHForTokensSupportingFeeOnTransferTokens',
|
|
259
259
|
outputs: [],
|
|
260
260
|
stateMutability: 'payable',
|
|
261
|
-
type: 'function'
|
|
261
|
+
type: 'function'
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
264
|
inputs: [
|
|
@@ -266,12 +266,12 @@ const uniV2 = [
|
|
|
266
266
|
{ internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
|
|
267
267
|
{ internalType: 'address[]', name: 'path', type: 'address[]' },
|
|
268
268
|
{ internalType: 'address', name: 'to', type: 'address' },
|
|
269
|
-
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
269
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
270
270
|
],
|
|
271
271
|
name: 'swapExactTokensForETH',
|
|
272
272
|
outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
|
|
273
273
|
stateMutability: 'nonpayable',
|
|
274
|
-
type: 'function'
|
|
274
|
+
type: 'function'
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
277
|
inputs: [
|
|
@@ -279,12 +279,12 @@ const uniV2 = [
|
|
|
279
279
|
{ internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
|
|
280
280
|
{ internalType: 'address[]', name: 'path', type: 'address[]' },
|
|
281
281
|
{ internalType: 'address', name: 'to', type: 'address' },
|
|
282
|
-
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
282
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
283
283
|
],
|
|
284
284
|
name: 'swapExactTokensForETHSupportingFeeOnTransferTokens',
|
|
285
285
|
outputs: [],
|
|
286
286
|
stateMutability: 'nonpayable',
|
|
287
|
-
type: 'function'
|
|
287
|
+
type: 'function'
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
inputs: [
|
|
@@ -292,12 +292,12 @@ const uniV2 = [
|
|
|
292
292
|
{ internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
|
|
293
293
|
{ internalType: 'address[]', name: 'path', type: 'address[]' },
|
|
294
294
|
{ internalType: 'address', name: 'to', type: 'address' },
|
|
295
|
-
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
295
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
296
296
|
],
|
|
297
297
|
name: 'swapExactTokensForTokens',
|
|
298
298
|
outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
|
|
299
299
|
stateMutability: 'nonpayable',
|
|
300
|
-
type: 'function'
|
|
300
|
+
type: 'function'
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
303
|
inputs: [
|
|
@@ -305,12 +305,12 @@ const uniV2 = [
|
|
|
305
305
|
{ internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
|
|
306
306
|
{ internalType: 'address[]', name: 'path', type: 'address[]' },
|
|
307
307
|
{ internalType: 'address', name: 'to', type: 'address' },
|
|
308
|
-
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
308
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
309
309
|
],
|
|
310
310
|
name: 'swapExactTokensForTokensSupportingFeeOnTransferTokens',
|
|
311
311
|
outputs: [],
|
|
312
312
|
stateMutability: 'nonpayable',
|
|
313
|
-
type: 'function'
|
|
313
|
+
type: 'function'
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
inputs: [
|
|
@@ -318,12 +318,12 @@ const uniV2 = [
|
|
|
318
318
|
{ internalType: 'uint256', name: 'amountInMax', type: 'uint256' },
|
|
319
319
|
{ internalType: 'address[]', name: 'path', type: 'address[]' },
|
|
320
320
|
{ internalType: 'address', name: 'to', type: 'address' },
|
|
321
|
-
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
321
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
322
322
|
],
|
|
323
323
|
name: 'swapTokensForExactETH',
|
|
324
324
|
outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
|
|
325
325
|
stateMutability: 'nonpayable',
|
|
326
|
-
type: 'function'
|
|
326
|
+
type: 'function'
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
329
|
inputs: [
|
|
@@ -331,14 +331,13 @@ const uniV2 = [
|
|
|
331
331
|
{ internalType: 'uint256', name: 'amountInMax', type: 'uint256' },
|
|
332
332
|
{ internalType: 'address[]', name: 'path', type: 'address[]' },
|
|
333
333
|
{ internalType: 'address', name: 'to', type: 'address' },
|
|
334
|
-
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
334
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' }
|
|
335
335
|
],
|
|
336
336
|
name: 'swapTokensForExactTokens',
|
|
337
337
|
outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
|
|
338
338
|
stateMutability: 'nonpayable',
|
|
339
|
-
type: 'function'
|
|
339
|
+
type: 'function'
|
|
340
340
|
},
|
|
341
|
-
{ stateMutability: 'payable', type: 'receive' }
|
|
341
|
+
{ stateMutability: 'payable', type: 'receive' }
|
|
342
342
|
];
|
|
343
343
|
exports.default = uniV2;
|
|
344
|
-
//# sourceMappingURL=uniV2.js.map
|