tempo.ts 0.0.2 → 0.0.4
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/dist/ox/TokenRole.d.ts +1 -1
- package/dist/ox/TokenRole.d.ts.map +1 -1
- package/dist/viem/abis.d.ts +763 -1454
- package/dist/viem/abis.d.ts.map +1 -1
- package/dist/viem/abis.js +486 -1224
- package/dist/viem/abis.js.map +1 -1
- package/dist/viem/actions/amm.d.ts +630 -715
- package/dist/viem/actions/amm.d.ts.map +1 -1
- package/dist/viem/actions/amm.js +15 -3
- package/dist/viem/actions/amm.js.map +1 -1
- package/dist/viem/actions/fee.d.ts +65 -418
- package/dist/viem/actions/fee.d.ts.map +1 -1
- package/dist/viem/actions/fee.js +5 -1
- package/dist/viem/actions/fee.js.map +1 -1
- package/dist/viem/actions/policy.d.ts +365 -593
- package/dist/viem/actions/policy.d.ts.map +1 -1
- package/dist/viem/actions/policy.js +29 -8
- package/dist/viem/actions/policy.js.map +1 -1
- package/dist/viem/actions/token.d.ts +4768 -7384
- package/dist/viem/actions/token.d.ts.map +1 -1
- package/dist/viem/actions/token.js +129 -20
- package/dist/viem/actions/token.js.map +1 -1
- package/dist/viem/decorator.d.ts +23 -0
- package/dist/viem/decorator.d.ts.map +1 -1
- package/dist/viem/decorator.js +1 -0
- package/dist/viem/decorator.js.map +1 -1
- package/dist/viem/types.d.ts +2 -2
- package/dist/viem/types.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/ox/TokenRole.test.ts +0 -4
- package/src/ox/TokenRole.ts +1 -1
- package/src/viem/abis.ts +495 -1234
- package/src/viem/actions/amm.ts +15 -7
- package/src/viem/actions/fee.ts +5 -5
- package/src/viem/actions/policy.ts +29 -16
- package/src/viem/actions/token.test.ts +190 -0
- package/src/viem/actions/token.ts +166 -47
- package/src/viem/client.test.ts +1 -0
- package/src/viem/decorator.bench-d.ts +1 -1
- package/src/viem/decorator.ts +26 -0
- package/src/viem/types.ts +3 -2
package/dist/viem/abis.d.ts
CHANGED
|
@@ -1,2058 +1,1367 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
readonly
|
|
3
|
-
readonly inputs: readonly [];
|
|
4
|
-
readonly stateMutability: "nonpayable";
|
|
5
|
-
}, {
|
|
1
|
+
export declare const tip20Abi: readonly [{
|
|
2
|
+
readonly name: "name";
|
|
6
3
|
readonly type: "function";
|
|
7
|
-
readonly
|
|
4
|
+
readonly stateMutability: "view";
|
|
8
5
|
readonly inputs: readonly [];
|
|
9
6
|
readonly outputs: readonly [{
|
|
10
|
-
readonly
|
|
11
|
-
readonly type: "uint256";
|
|
12
|
-
readonly internalType: "uint256";
|
|
7
|
+
readonly type: "string";
|
|
13
8
|
}];
|
|
14
|
-
readonly stateMutability: "view";
|
|
15
9
|
}, {
|
|
10
|
+
readonly name: "symbol";
|
|
16
11
|
readonly type: "function";
|
|
17
|
-
readonly
|
|
12
|
+
readonly stateMutability: "view";
|
|
18
13
|
readonly inputs: readonly [];
|
|
19
14
|
readonly outputs: readonly [{
|
|
20
|
-
readonly
|
|
21
|
-
readonly type: "uint256";
|
|
22
|
-
readonly internalType: "uint256";
|
|
15
|
+
readonly type: "string";
|
|
23
16
|
}];
|
|
24
|
-
readonly stateMutability: "view";
|
|
25
17
|
}, {
|
|
18
|
+
readonly name: "decimals";
|
|
26
19
|
readonly type: "function";
|
|
27
|
-
readonly
|
|
20
|
+
readonly stateMutability: "view";
|
|
28
21
|
readonly inputs: readonly [];
|
|
29
22
|
readonly outputs: readonly [{
|
|
30
|
-
readonly
|
|
31
|
-
readonly type: "uint256";
|
|
32
|
-
readonly internalType: "uint256";
|
|
23
|
+
readonly type: "uint8";
|
|
33
24
|
}];
|
|
34
|
-
readonly stateMutability: "view";
|
|
35
25
|
}, {
|
|
26
|
+
readonly name: "totalSupply";
|
|
36
27
|
readonly type: "function";
|
|
37
|
-
readonly
|
|
28
|
+
readonly stateMutability: "view";
|
|
38
29
|
readonly inputs: readonly [];
|
|
39
30
|
readonly outputs: readonly [{
|
|
40
|
-
readonly name: "";
|
|
41
31
|
readonly type: "uint256";
|
|
42
|
-
readonly internalType: "uint256";
|
|
43
32
|
}];
|
|
44
|
-
readonly stateMutability: "view";
|
|
45
33
|
}, {
|
|
34
|
+
readonly name: "balanceOf";
|
|
46
35
|
readonly type: "function";
|
|
47
|
-
readonly
|
|
36
|
+
readonly stateMutability: "view";
|
|
48
37
|
readonly inputs: readonly [{
|
|
49
|
-
readonly name: "userToken";
|
|
50
|
-
readonly type: "address";
|
|
51
|
-
readonly internalType: "address";
|
|
52
|
-
}, {
|
|
53
|
-
readonly name: "validatorToken";
|
|
54
|
-
readonly type: "address";
|
|
55
|
-
readonly internalType: "address";
|
|
56
|
-
}, {
|
|
57
|
-
readonly name: "liquidity";
|
|
58
|
-
readonly type: "uint256";
|
|
59
|
-
readonly internalType: "uint256";
|
|
60
|
-
}, {
|
|
61
|
-
readonly name: "to";
|
|
62
38
|
readonly type: "address";
|
|
63
|
-
readonly
|
|
39
|
+
readonly name: "account";
|
|
64
40
|
}];
|
|
65
41
|
readonly outputs: readonly [{
|
|
66
|
-
readonly name: "amountUserToken";
|
|
67
|
-
readonly type: "uint256";
|
|
68
|
-
readonly internalType: "uint256";
|
|
69
|
-
}, {
|
|
70
|
-
readonly name: "amountValidatorToken";
|
|
71
42
|
readonly type: "uint256";
|
|
72
|
-
readonly internalType: "uint256";
|
|
73
43
|
}];
|
|
74
|
-
readonly stateMutability: "nonpayable";
|
|
75
44
|
}, {
|
|
45
|
+
readonly name: "transfer";
|
|
76
46
|
readonly type: "function";
|
|
77
|
-
readonly
|
|
47
|
+
readonly stateMutability: "nonpayable";
|
|
78
48
|
readonly inputs: readonly [{
|
|
79
|
-
readonly name: "userToken";
|
|
80
49
|
readonly type: "address";
|
|
81
|
-
readonly
|
|
50
|
+
readonly name: "to";
|
|
82
51
|
}, {
|
|
83
|
-
readonly
|
|
84
|
-
readonly
|
|
85
|
-
readonly internalType: "address";
|
|
52
|
+
readonly type: "uint256";
|
|
53
|
+
readonly name: "amount";
|
|
86
54
|
}];
|
|
87
55
|
readonly outputs: readonly [{
|
|
88
|
-
readonly
|
|
89
|
-
readonly type: "tuple";
|
|
90
|
-
readonly internalType: "struct FeeAMM.Pool";
|
|
91
|
-
readonly components: readonly [{
|
|
92
|
-
readonly name: "reserveUserToken";
|
|
93
|
-
readonly type: "uint128";
|
|
94
|
-
readonly internalType: "uint128";
|
|
95
|
-
}, {
|
|
96
|
-
readonly name: "reserveValidatorToken";
|
|
97
|
-
readonly type: "uint128";
|
|
98
|
-
readonly internalType: "uint128";
|
|
99
|
-
}];
|
|
56
|
+
readonly type: "bool";
|
|
100
57
|
}];
|
|
101
|
-
readonly stateMutability: "view";
|
|
102
58
|
}, {
|
|
59
|
+
readonly name: "approve";
|
|
103
60
|
readonly type: "function";
|
|
104
|
-
readonly
|
|
61
|
+
readonly stateMutability: "nonpayable";
|
|
105
62
|
readonly inputs: readonly [{
|
|
106
|
-
readonly name: "userToken";
|
|
107
63
|
readonly type: "address";
|
|
108
|
-
readonly
|
|
64
|
+
readonly name: "spender";
|
|
109
65
|
}, {
|
|
110
|
-
readonly
|
|
111
|
-
readonly
|
|
112
|
-
readonly internalType: "address";
|
|
66
|
+
readonly type: "uint256";
|
|
67
|
+
readonly name: "amount";
|
|
113
68
|
}];
|
|
114
69
|
readonly outputs: readonly [{
|
|
115
|
-
readonly
|
|
116
|
-
readonly type: "bytes32";
|
|
117
|
-
readonly internalType: "bytes32";
|
|
70
|
+
readonly type: "bool";
|
|
118
71
|
}];
|
|
119
|
-
readonly stateMutability: "pure";
|
|
120
72
|
}, {
|
|
73
|
+
readonly name: "allowance";
|
|
121
74
|
readonly type: "function";
|
|
122
|
-
readonly
|
|
75
|
+
readonly stateMutability: "view";
|
|
123
76
|
readonly inputs: readonly [{
|
|
124
|
-
readonly
|
|
125
|
-
readonly
|
|
126
|
-
readonly internalType: "bytes32";
|
|
77
|
+
readonly type: "address";
|
|
78
|
+
readonly name: "owner";
|
|
127
79
|
}, {
|
|
128
|
-
readonly name: "";
|
|
129
80
|
readonly type: "address";
|
|
130
|
-
readonly
|
|
81
|
+
readonly name: "spender";
|
|
131
82
|
}];
|
|
132
83
|
readonly outputs: readonly [{
|
|
133
|
-
readonly name: "";
|
|
134
84
|
readonly type: "uint256";
|
|
135
|
-
readonly internalType: "uint256";
|
|
136
85
|
}];
|
|
137
|
-
readonly stateMutability: "view";
|
|
138
86
|
}, {
|
|
87
|
+
readonly name: "transferFrom";
|
|
139
88
|
readonly type: "function";
|
|
140
|
-
readonly
|
|
89
|
+
readonly stateMutability: "nonpayable";
|
|
141
90
|
readonly inputs: readonly [{
|
|
142
|
-
readonly name: "userToken";
|
|
143
91
|
readonly type: "address";
|
|
144
|
-
readonly
|
|
92
|
+
readonly name: "from";
|
|
145
93
|
}, {
|
|
146
|
-
readonly name: "validatorToken";
|
|
147
94
|
readonly type: "address";
|
|
148
|
-
readonly
|
|
149
|
-
}, {
|
|
150
|
-
readonly name: "amountUserToken";
|
|
151
|
-
readonly type: "uint256";
|
|
152
|
-
readonly internalType: "uint256";
|
|
95
|
+
readonly name: "to";
|
|
153
96
|
}, {
|
|
154
|
-
readonly name: "amountValidatorToken";
|
|
155
97
|
readonly type: "uint256";
|
|
156
|
-
readonly
|
|
157
|
-
}, {
|
|
158
|
-
readonly name: "to";
|
|
159
|
-
readonly type: "address";
|
|
160
|
-
readonly internalType: "address";
|
|
98
|
+
readonly name: "amount";
|
|
161
99
|
}];
|
|
162
100
|
readonly outputs: readonly [{
|
|
163
|
-
readonly
|
|
164
|
-
readonly type: "uint256";
|
|
165
|
-
readonly internalType: "uint256";
|
|
101
|
+
readonly type: "bool";
|
|
166
102
|
}];
|
|
167
|
-
readonly stateMutability: "nonpayable";
|
|
168
103
|
}, {
|
|
104
|
+
readonly name: "mint";
|
|
169
105
|
readonly type: "function";
|
|
170
|
-
readonly
|
|
106
|
+
readonly stateMutability: "nonpayable";
|
|
171
107
|
readonly inputs: readonly [{
|
|
172
|
-
readonly
|
|
173
|
-
readonly
|
|
174
|
-
readonly internalType: "bytes32";
|
|
175
|
-
}];
|
|
176
|
-
readonly outputs: readonly [{
|
|
177
|
-
readonly name: "reserveUserToken";
|
|
178
|
-
readonly type: "uint128";
|
|
179
|
-
readonly internalType: "uint128";
|
|
108
|
+
readonly type: "address";
|
|
109
|
+
readonly name: "to";
|
|
180
110
|
}, {
|
|
181
|
-
readonly
|
|
182
|
-
readonly
|
|
183
|
-
readonly internalType: "uint128";
|
|
111
|
+
readonly type: "uint256";
|
|
112
|
+
readonly name: "amount";
|
|
184
113
|
}];
|
|
185
|
-
readonly
|
|
114
|
+
readonly outputs: readonly [];
|
|
186
115
|
}, {
|
|
116
|
+
readonly name: "burn";
|
|
187
117
|
readonly type: "function";
|
|
188
|
-
readonly
|
|
118
|
+
readonly stateMutability: "nonpayable";
|
|
189
119
|
readonly inputs: readonly [{
|
|
190
|
-
readonly name: "userToken";
|
|
191
|
-
readonly type: "address";
|
|
192
|
-
readonly internalType: "address";
|
|
193
|
-
}, {
|
|
194
|
-
readonly name: "validatorToken";
|
|
195
|
-
readonly type: "address";
|
|
196
|
-
readonly internalType: "address";
|
|
197
|
-
}, {
|
|
198
|
-
readonly name: "amountOut";
|
|
199
120
|
readonly type: "uint256";
|
|
200
|
-
readonly
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
121
|
+
readonly name: "amount";
|
|
122
|
+
}];
|
|
123
|
+
readonly outputs: readonly [];
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "currency";
|
|
126
|
+
readonly type: "function";
|
|
127
|
+
readonly stateMutability: "view";
|
|
128
|
+
readonly inputs: readonly [];
|
|
129
|
+
readonly outputs: readonly [{
|
|
130
|
+
readonly type: "string";
|
|
205
131
|
}];
|
|
132
|
+
}, {
|
|
133
|
+
readonly name: "supplyCap";
|
|
134
|
+
readonly type: "function";
|
|
135
|
+
readonly stateMutability: "view";
|
|
136
|
+
readonly inputs: readonly [];
|
|
206
137
|
readonly outputs: readonly [{
|
|
207
|
-
readonly name: "amountIn";
|
|
208
138
|
readonly type: "uint256";
|
|
209
|
-
readonly internalType: "uint256";
|
|
210
139
|
}];
|
|
211
|
-
readonly stateMutability: "nonpayable";
|
|
212
140
|
}, {
|
|
141
|
+
readonly name: "paused";
|
|
213
142
|
readonly type: "function";
|
|
214
|
-
readonly
|
|
143
|
+
readonly stateMutability: "view";
|
|
144
|
+
readonly inputs: readonly [];
|
|
145
|
+
readonly outputs: readonly [{
|
|
146
|
+
readonly type: "bool";
|
|
147
|
+
}];
|
|
148
|
+
}, {
|
|
149
|
+
readonly name: "transferPolicyId";
|
|
150
|
+
readonly type: "function";
|
|
151
|
+
readonly stateMutability: "view";
|
|
152
|
+
readonly inputs: readonly [];
|
|
153
|
+
readonly outputs: readonly [{
|
|
154
|
+
readonly type: "uint64";
|
|
155
|
+
}];
|
|
156
|
+
}, {
|
|
157
|
+
readonly name: "nonces";
|
|
158
|
+
readonly type: "function";
|
|
159
|
+
readonly stateMutability: "view";
|
|
215
160
|
readonly inputs: readonly [{
|
|
216
|
-
readonly
|
|
217
|
-
readonly
|
|
218
|
-
readonly internalType: "bytes32";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
readonly name: "owner";
|
|
219
163
|
}];
|
|
220
164
|
readonly outputs: readonly [{
|
|
221
|
-
readonly name: "";
|
|
222
165
|
readonly type: "uint256";
|
|
223
|
-
readonly internalType: "uint256";
|
|
224
166
|
}];
|
|
225
|
-
readonly stateMutability: "view";
|
|
226
167
|
}, {
|
|
227
|
-
readonly
|
|
228
|
-
readonly
|
|
168
|
+
readonly name: "salts";
|
|
169
|
+
readonly type: "function";
|
|
170
|
+
readonly stateMutability: "view";
|
|
229
171
|
readonly inputs: readonly [{
|
|
230
|
-
readonly name: "sender";
|
|
231
|
-
readonly type: "address";
|
|
232
|
-
readonly indexed: true;
|
|
233
|
-
readonly internalType: "address";
|
|
234
|
-
}, {
|
|
235
|
-
readonly name: "userToken";
|
|
236
172
|
readonly type: "address";
|
|
237
|
-
readonly
|
|
238
|
-
readonly internalType: "address";
|
|
173
|
+
readonly name: "owner";
|
|
239
174
|
}, {
|
|
240
|
-
readonly
|
|
175
|
+
readonly type: "bytes4";
|
|
176
|
+
readonly name: "salt";
|
|
177
|
+
}];
|
|
178
|
+
readonly outputs: readonly [{
|
|
179
|
+
readonly type: "bool";
|
|
180
|
+
}];
|
|
181
|
+
}, {
|
|
182
|
+
readonly name: "burnBlocked";
|
|
183
|
+
readonly type: "function";
|
|
184
|
+
readonly stateMutability: "nonpayable";
|
|
185
|
+
readonly inputs: readonly [{
|
|
241
186
|
readonly type: "address";
|
|
242
|
-
readonly
|
|
243
|
-
readonly internalType: "address";
|
|
187
|
+
readonly name: "from";
|
|
244
188
|
}, {
|
|
245
|
-
readonly name: "amountUserToken";
|
|
246
189
|
readonly type: "uint256";
|
|
247
|
-
readonly
|
|
248
|
-
|
|
190
|
+
readonly name: "amount";
|
|
191
|
+
}];
|
|
192
|
+
readonly outputs: readonly [];
|
|
193
|
+
}, {
|
|
194
|
+
readonly name: "mintWithMemo";
|
|
195
|
+
readonly type: "function";
|
|
196
|
+
readonly stateMutability: "nonpayable";
|
|
197
|
+
readonly inputs: readonly [{
|
|
198
|
+
readonly type: "address";
|
|
199
|
+
readonly name: "to";
|
|
249
200
|
}, {
|
|
250
|
-
readonly name: "amountValidatorToken";
|
|
251
201
|
readonly type: "uint256";
|
|
252
|
-
readonly
|
|
253
|
-
readonly internalType: "uint256";
|
|
202
|
+
readonly name: "amount";
|
|
254
203
|
}, {
|
|
255
|
-
readonly
|
|
204
|
+
readonly type: "bytes32";
|
|
205
|
+
readonly name: "memo";
|
|
206
|
+
}];
|
|
207
|
+
readonly outputs: readonly [];
|
|
208
|
+
}, {
|
|
209
|
+
readonly name: "burnWithMemo";
|
|
210
|
+
readonly type: "function";
|
|
211
|
+
readonly stateMutability: "nonpayable";
|
|
212
|
+
readonly inputs: readonly [{
|
|
256
213
|
readonly type: "uint256";
|
|
257
|
-
readonly
|
|
258
|
-
readonly internalType: "uint256";
|
|
214
|
+
readonly name: "amount";
|
|
259
215
|
}, {
|
|
260
|
-
readonly
|
|
261
|
-
readonly
|
|
262
|
-
readonly indexed: false;
|
|
263
|
-
readonly internalType: "address";
|
|
216
|
+
readonly type: "bytes32";
|
|
217
|
+
readonly name: "memo";
|
|
264
218
|
}];
|
|
265
|
-
readonly
|
|
219
|
+
readonly outputs: readonly [];
|
|
266
220
|
}, {
|
|
267
|
-
readonly
|
|
268
|
-
readonly
|
|
221
|
+
readonly name: "transferWithMemo";
|
|
222
|
+
readonly type: "function";
|
|
223
|
+
readonly stateMutability: "nonpayable";
|
|
269
224
|
readonly inputs: readonly [{
|
|
270
|
-
readonly name: "userToken";
|
|
271
|
-
readonly type: "address";
|
|
272
|
-
readonly indexed: true;
|
|
273
|
-
readonly internalType: "address";
|
|
274
|
-
}, {
|
|
275
|
-
readonly name: "validatorToken";
|
|
276
225
|
readonly type: "address";
|
|
277
|
-
readonly
|
|
278
|
-
readonly internalType: "address";
|
|
226
|
+
readonly name: "to";
|
|
279
227
|
}, {
|
|
280
|
-
readonly name: "amountIn";
|
|
281
228
|
readonly type: "uint256";
|
|
282
|
-
readonly
|
|
283
|
-
readonly internalType: "uint256";
|
|
229
|
+
readonly name: "amount";
|
|
284
230
|
}, {
|
|
285
|
-
readonly
|
|
286
|
-
readonly
|
|
287
|
-
readonly indexed: false;
|
|
288
|
-
readonly internalType: "uint256";
|
|
231
|
+
readonly type: "bytes32";
|
|
232
|
+
readonly name: "memo";
|
|
289
233
|
}];
|
|
290
|
-
readonly
|
|
234
|
+
readonly outputs: readonly [];
|
|
291
235
|
}, {
|
|
292
|
-
readonly
|
|
293
|
-
readonly
|
|
236
|
+
readonly name: "transferFromWithMemo";
|
|
237
|
+
readonly type: "function";
|
|
238
|
+
readonly stateMutability: "nonpayable";
|
|
294
239
|
readonly inputs: readonly [{
|
|
295
|
-
readonly name: "sender";
|
|
296
|
-
readonly type: "address";
|
|
297
|
-
readonly indexed: true;
|
|
298
|
-
readonly internalType: "address";
|
|
299
|
-
}, {
|
|
300
|
-
readonly name: "userToken";
|
|
301
240
|
readonly type: "address";
|
|
302
|
-
readonly
|
|
303
|
-
readonly internalType: "address";
|
|
241
|
+
readonly name: "from";
|
|
304
242
|
}, {
|
|
305
|
-
readonly name: "validatorToken";
|
|
306
243
|
readonly type: "address";
|
|
307
|
-
readonly
|
|
308
|
-
readonly internalType: "address";
|
|
309
|
-
}, {
|
|
310
|
-
readonly name: "amountUserToken";
|
|
311
|
-
readonly type: "uint256";
|
|
312
|
-
readonly indexed: false;
|
|
313
|
-
readonly internalType: "uint256";
|
|
244
|
+
readonly name: "to";
|
|
314
245
|
}, {
|
|
315
|
-
readonly name: "amountValidatorToken";
|
|
316
246
|
readonly type: "uint256";
|
|
317
|
-
readonly
|
|
318
|
-
readonly internalType: "uint256";
|
|
247
|
+
readonly name: "amount";
|
|
319
248
|
}, {
|
|
320
|
-
readonly
|
|
321
|
-
readonly
|
|
322
|
-
readonly indexed: false;
|
|
323
|
-
readonly internalType: "uint256";
|
|
249
|
+
readonly type: "bytes32";
|
|
250
|
+
readonly name: "memo";
|
|
324
251
|
}];
|
|
325
|
-
readonly
|
|
252
|
+
readonly outputs: readonly [];
|
|
326
253
|
}, {
|
|
327
|
-
readonly
|
|
328
|
-
readonly name: "RebalanceSwap";
|
|
329
|
-
readonly inputs: readonly [{
|
|
330
|
-
readonly name: "userToken";
|
|
331
|
-
readonly type: "address";
|
|
332
|
-
readonly indexed: true;
|
|
333
|
-
readonly internalType: "address";
|
|
334
|
-
}, {
|
|
335
|
-
readonly name: "validatorToken";
|
|
336
|
-
readonly type: "address";
|
|
337
|
-
readonly indexed: true;
|
|
338
|
-
readonly internalType: "address";
|
|
339
|
-
}, {
|
|
340
|
-
readonly name: "swapper";
|
|
341
|
-
readonly type: "address";
|
|
342
|
-
readonly indexed: true;
|
|
343
|
-
readonly internalType: "address";
|
|
344
|
-
}, {
|
|
345
|
-
readonly name: "amountIn";
|
|
346
|
-
readonly type: "uint256";
|
|
347
|
-
readonly indexed: false;
|
|
348
|
-
readonly internalType: "uint256";
|
|
349
|
-
}, {
|
|
350
|
-
readonly name: "amountOut";
|
|
351
|
-
readonly type: "uint256";
|
|
352
|
-
readonly indexed: false;
|
|
353
|
-
readonly internalType: "uint256";
|
|
354
|
-
}];
|
|
355
|
-
readonly anonymous: false;
|
|
356
|
-
}];
|
|
357
|
-
export declare const tip20RolesAuthAbi: readonly [{
|
|
254
|
+
readonly name: "changeTransferPolicyId";
|
|
358
255
|
readonly type: "function";
|
|
359
|
-
readonly
|
|
256
|
+
readonly stateMutability: "nonpayable";
|
|
360
257
|
readonly inputs: readonly [{
|
|
361
|
-
readonly
|
|
362
|
-
readonly
|
|
363
|
-
readonly internalType: "bytes32";
|
|
364
|
-
}, {
|
|
365
|
-
readonly name: "account";
|
|
366
|
-
readonly type: "address";
|
|
367
|
-
readonly internalType: "address";
|
|
258
|
+
readonly type: "uint64";
|
|
259
|
+
readonly name: "newPolicyId";
|
|
368
260
|
}];
|
|
369
261
|
readonly outputs: readonly [];
|
|
370
|
-
readonly stateMutability: "nonpayable";
|
|
371
262
|
}, {
|
|
263
|
+
readonly name: "setSupplyCap";
|
|
372
264
|
readonly type: "function";
|
|
373
|
-
readonly
|
|
265
|
+
readonly stateMutability: "nonpayable";
|
|
374
266
|
readonly inputs: readonly [{
|
|
375
|
-
readonly
|
|
376
|
-
readonly
|
|
377
|
-
readonly internalType: "bytes32";
|
|
267
|
+
readonly type: "uint256";
|
|
268
|
+
readonly name: "newSupplyCap";
|
|
378
269
|
}];
|
|
379
270
|
readonly outputs: readonly [];
|
|
380
|
-
readonly stateMutability: "nonpayable";
|
|
381
271
|
}, {
|
|
272
|
+
readonly name: "pause";
|
|
382
273
|
readonly type: "function";
|
|
383
|
-
readonly
|
|
384
|
-
readonly inputs: readonly [
|
|
385
|
-
readonly name: "role";
|
|
386
|
-
readonly type: "bytes32";
|
|
387
|
-
readonly internalType: "bytes32";
|
|
388
|
-
}, {
|
|
389
|
-
readonly name: "account";
|
|
390
|
-
readonly type: "address";
|
|
391
|
-
readonly internalType: "address";
|
|
392
|
-
}];
|
|
274
|
+
readonly stateMutability: "nonpayable";
|
|
275
|
+
readonly inputs: readonly [];
|
|
393
276
|
readonly outputs: readonly [];
|
|
277
|
+
}, {
|
|
278
|
+
readonly name: "unpause";
|
|
279
|
+
readonly type: "function";
|
|
394
280
|
readonly stateMutability: "nonpayable";
|
|
281
|
+
readonly inputs: readonly [];
|
|
282
|
+
readonly outputs: readonly [];
|
|
395
283
|
}, {
|
|
284
|
+
readonly name: "permit";
|
|
396
285
|
readonly type: "function";
|
|
397
|
-
readonly
|
|
286
|
+
readonly stateMutability: "nonpayable";
|
|
398
287
|
readonly inputs: readonly [{
|
|
399
|
-
readonly
|
|
288
|
+
readonly type: "address";
|
|
289
|
+
readonly name: "owner";
|
|
290
|
+
}, {
|
|
291
|
+
readonly type: "address";
|
|
292
|
+
readonly name: "spender";
|
|
293
|
+
}, {
|
|
294
|
+
readonly type: "uint256";
|
|
295
|
+
readonly name: "value";
|
|
296
|
+
}, {
|
|
297
|
+
readonly type: "uint256";
|
|
298
|
+
readonly name: "deadline";
|
|
299
|
+
}, {
|
|
300
|
+
readonly type: "uint8";
|
|
301
|
+
readonly name: "v";
|
|
302
|
+
}, {
|
|
400
303
|
readonly type: "bytes32";
|
|
401
|
-
readonly
|
|
304
|
+
readonly name: "r";
|
|
402
305
|
}, {
|
|
403
|
-
readonly name: "adminRole";
|
|
404
306
|
readonly type: "bytes32";
|
|
405
|
-
readonly
|
|
307
|
+
readonly name: "s";
|
|
406
308
|
}];
|
|
407
309
|
readonly outputs: readonly [];
|
|
408
|
-
readonly stateMutability: "nonpayable";
|
|
409
310
|
}, {
|
|
311
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
312
|
+
readonly type: "function";
|
|
313
|
+
readonly stateMutability: "view";
|
|
314
|
+
readonly inputs: readonly [];
|
|
315
|
+
readonly outputs: readonly [{
|
|
316
|
+
readonly type: "bytes32";
|
|
317
|
+
}];
|
|
318
|
+
}, {
|
|
319
|
+
readonly name: "Transfer";
|
|
410
320
|
readonly type: "event";
|
|
411
|
-
readonly name: "RoleAdminUpdated";
|
|
412
321
|
readonly inputs: readonly [{
|
|
413
|
-
readonly
|
|
414
|
-
readonly
|
|
415
|
-
readonly indexed: true;
|
|
416
|
-
readonly internalType: "bytes32";
|
|
417
|
-
}, {
|
|
418
|
-
readonly name: "newAdminRole";
|
|
419
|
-
readonly type: "bytes32";
|
|
322
|
+
readonly type: "address";
|
|
323
|
+
readonly name: "from";
|
|
420
324
|
readonly indexed: true;
|
|
421
|
-
readonly internalType: "bytes32";
|
|
422
325
|
}, {
|
|
423
|
-
readonly name: "sender";
|
|
424
326
|
readonly type: "address";
|
|
327
|
+
readonly name: "to";
|
|
425
328
|
readonly indexed: true;
|
|
426
|
-
|
|
329
|
+
}, {
|
|
330
|
+
readonly type: "uint256";
|
|
331
|
+
readonly name: "amount";
|
|
427
332
|
}];
|
|
428
|
-
readonly anonymous: false;
|
|
429
333
|
}, {
|
|
334
|
+
readonly name: "Approval";
|
|
430
335
|
readonly type: "event";
|
|
431
|
-
readonly name: "RoleMembershipUpdated";
|
|
432
336
|
readonly inputs: readonly [{
|
|
433
|
-
readonly name: "role";
|
|
434
|
-
readonly type: "bytes32";
|
|
435
|
-
readonly indexed: true;
|
|
436
|
-
readonly internalType: "bytes32";
|
|
437
|
-
}, {
|
|
438
|
-
readonly name: "account";
|
|
439
337
|
readonly type: "address";
|
|
338
|
+
readonly name: "owner";
|
|
440
339
|
readonly indexed: true;
|
|
441
|
-
readonly internalType: "address";
|
|
442
340
|
}, {
|
|
443
|
-
readonly name: "sender";
|
|
444
341
|
readonly type: "address";
|
|
342
|
+
readonly name: "spender";
|
|
445
343
|
readonly indexed: true;
|
|
446
|
-
readonly internalType: "address";
|
|
447
344
|
}, {
|
|
448
|
-
readonly name: "hasRole";
|
|
449
|
-
readonly type: "bool";
|
|
450
|
-
readonly indexed: false;
|
|
451
|
-
readonly internalType: "bool";
|
|
452
|
-
}];
|
|
453
|
-
readonly anonymous: false;
|
|
454
|
-
}, {
|
|
455
|
-
readonly type: "error";
|
|
456
|
-
readonly name: "Unauthorized";
|
|
457
|
-
readonly inputs: readonly [];
|
|
458
|
-
}];
|
|
459
|
-
export declare const feeManagerAbi: readonly [{
|
|
460
|
-
readonly type: "constructor";
|
|
461
|
-
readonly inputs: readonly [];
|
|
462
|
-
readonly stateMutability: "nonpayable";
|
|
463
|
-
}, {
|
|
464
|
-
readonly type: "function";
|
|
465
|
-
readonly name: "M";
|
|
466
|
-
readonly inputs: readonly [];
|
|
467
|
-
readonly outputs: readonly [{
|
|
468
|
-
readonly name: "";
|
|
469
345
|
readonly type: "uint256";
|
|
470
|
-
readonly
|
|
346
|
+
readonly name: "amount";
|
|
471
347
|
}];
|
|
472
|
-
readonly stateMutability: "view";
|
|
473
348
|
}, {
|
|
474
|
-
readonly
|
|
475
|
-
readonly
|
|
476
|
-
readonly inputs: readonly [
|
|
477
|
-
|
|
478
|
-
readonly name: "";
|
|
349
|
+
readonly name: "Mint";
|
|
350
|
+
readonly type: "event";
|
|
351
|
+
readonly inputs: readonly [{
|
|
352
|
+
readonly type: "address";
|
|
353
|
+
readonly name: "to";
|
|
354
|
+
readonly indexed: true;
|
|
355
|
+
}, {
|
|
479
356
|
readonly type: "uint256";
|
|
480
|
-
readonly
|
|
357
|
+
readonly name: "amount";
|
|
481
358
|
}];
|
|
482
|
-
readonly stateMutability: "view";
|
|
483
359
|
}, {
|
|
484
|
-
readonly
|
|
485
|
-
readonly
|
|
486
|
-
readonly inputs: readonly [
|
|
487
|
-
|
|
488
|
-
readonly name: "";
|
|
360
|
+
readonly name: "Burn";
|
|
361
|
+
readonly type: "event";
|
|
362
|
+
readonly inputs: readonly [{
|
|
363
|
+
readonly type: "address";
|
|
364
|
+
readonly name: "from";
|
|
365
|
+
readonly indexed: true;
|
|
366
|
+
}, {
|
|
489
367
|
readonly type: "uint256";
|
|
490
|
-
readonly
|
|
368
|
+
readonly name: "amount";
|
|
491
369
|
}];
|
|
492
|
-
readonly stateMutability: "view";
|
|
493
370
|
}, {
|
|
494
|
-
readonly
|
|
495
|
-
readonly
|
|
496
|
-
readonly inputs: readonly [
|
|
497
|
-
|
|
498
|
-
readonly name: "";
|
|
371
|
+
readonly name: "BurnBlocked";
|
|
372
|
+
readonly type: "event";
|
|
373
|
+
readonly inputs: readonly [{
|
|
374
|
+
readonly type: "address";
|
|
375
|
+
readonly name: "from";
|
|
376
|
+
readonly indexed: true;
|
|
377
|
+
}, {
|
|
499
378
|
readonly type: "uint256";
|
|
500
|
-
readonly
|
|
379
|
+
readonly name: "amount";
|
|
501
380
|
}];
|
|
502
|
-
readonly stateMutability: "view";
|
|
503
381
|
}, {
|
|
504
|
-
readonly
|
|
505
|
-
readonly
|
|
382
|
+
readonly name: "TransferWithMemo";
|
|
383
|
+
readonly type: "event";
|
|
506
384
|
readonly inputs: readonly [{
|
|
507
|
-
readonly name: "userToken";
|
|
508
385
|
readonly type: "address";
|
|
509
|
-
readonly
|
|
386
|
+
readonly name: "from";
|
|
387
|
+
readonly indexed: true;
|
|
510
388
|
}, {
|
|
511
|
-
readonly name: "validatorToken";
|
|
512
389
|
readonly type: "address";
|
|
513
|
-
readonly internalType: "address";
|
|
514
|
-
}, {
|
|
515
|
-
readonly name: "liquidity";
|
|
516
|
-
readonly type: "uint256";
|
|
517
|
-
readonly internalType: "uint256";
|
|
518
|
-
}, {
|
|
519
390
|
readonly name: "to";
|
|
520
|
-
readonly
|
|
521
|
-
readonly internalType: "address";
|
|
522
|
-
}];
|
|
523
|
-
readonly outputs: readonly [{
|
|
524
|
-
readonly name: "amountUserToken";
|
|
525
|
-
readonly type: "uint256";
|
|
526
|
-
readonly internalType: "uint256";
|
|
391
|
+
readonly indexed: true;
|
|
527
392
|
}, {
|
|
528
|
-
readonly name: "amountValidatorToken";
|
|
529
393
|
readonly type: "uint256";
|
|
530
|
-
readonly
|
|
394
|
+
readonly name: "amount";
|
|
395
|
+
}, {
|
|
396
|
+
readonly type: "bytes32";
|
|
397
|
+
readonly name: "memo";
|
|
531
398
|
}];
|
|
532
|
-
readonly stateMutability: "nonpayable";
|
|
533
399
|
}, {
|
|
534
|
-
readonly
|
|
535
|
-
readonly
|
|
400
|
+
readonly name: "TransferPolicyUpdate";
|
|
401
|
+
readonly type: "event";
|
|
536
402
|
readonly inputs: readonly [{
|
|
537
|
-
readonly name: "user";
|
|
538
|
-
readonly type: "address";
|
|
539
|
-
readonly internalType: "address";
|
|
540
|
-
}, {
|
|
541
|
-
readonly name: "maxAmount";
|
|
542
|
-
readonly type: "uint256";
|
|
543
|
-
readonly internalType: "uint256";
|
|
544
|
-
}, {
|
|
545
|
-
readonly name: "actualUsed";
|
|
546
|
-
readonly type: "uint256";
|
|
547
|
-
readonly internalType: "uint256";
|
|
548
|
-
}, {
|
|
549
|
-
readonly name: "userToken";
|
|
550
403
|
readonly type: "address";
|
|
551
|
-
readonly
|
|
404
|
+
readonly name: "updater";
|
|
405
|
+
readonly indexed: true;
|
|
552
406
|
}, {
|
|
553
|
-
readonly
|
|
554
|
-
readonly
|
|
555
|
-
readonly
|
|
407
|
+
readonly type: "uint64";
|
|
408
|
+
readonly name: "newPolicyId";
|
|
409
|
+
readonly indexed: true;
|
|
556
410
|
}];
|
|
557
|
-
readonly outputs: readonly [];
|
|
558
|
-
readonly stateMutability: "nonpayable";
|
|
559
411
|
}, {
|
|
560
|
-
readonly
|
|
561
|
-
readonly
|
|
412
|
+
readonly name: "SupplyCapUpdate";
|
|
413
|
+
readonly type: "event";
|
|
562
414
|
readonly inputs: readonly [{
|
|
563
|
-
readonly name: "user";
|
|
564
|
-
readonly type: "address";
|
|
565
|
-
readonly internalType: "address";
|
|
566
|
-
}, {
|
|
567
|
-
readonly name: "txToAddress";
|
|
568
415
|
readonly type: "address";
|
|
569
|
-
readonly
|
|
416
|
+
readonly name: "updater";
|
|
417
|
+
readonly indexed: true;
|
|
570
418
|
}, {
|
|
571
|
-
readonly name: "maxAmount";
|
|
572
419
|
readonly type: "uint256";
|
|
573
|
-
readonly
|
|
574
|
-
|
|
575
|
-
readonly outputs: readonly [{
|
|
576
|
-
readonly name: "userToken";
|
|
577
|
-
readonly type: "address";
|
|
578
|
-
readonly internalType: "address";
|
|
420
|
+
readonly name: "newSupplyCap";
|
|
421
|
+
readonly indexed: true;
|
|
579
422
|
}];
|
|
580
|
-
readonly stateMutability: "nonpayable";
|
|
581
|
-
}, {
|
|
582
|
-
readonly type: "function";
|
|
583
|
-
readonly name: "executeBlock";
|
|
584
|
-
readonly inputs: readonly [];
|
|
585
|
-
readonly outputs: readonly [];
|
|
586
|
-
readonly stateMutability: "nonpayable";
|
|
587
423
|
}, {
|
|
588
|
-
readonly
|
|
589
|
-
readonly
|
|
424
|
+
readonly name: "PauseStateUpdate";
|
|
425
|
+
readonly type: "event";
|
|
590
426
|
readonly inputs: readonly [{
|
|
591
|
-
readonly name: "userToken";
|
|
592
427
|
readonly type: "address";
|
|
593
|
-
readonly
|
|
428
|
+
readonly name: "updater";
|
|
429
|
+
readonly indexed: true;
|
|
594
430
|
}, {
|
|
595
|
-
readonly
|
|
596
|
-
readonly
|
|
597
|
-
readonly internalType: "address";
|
|
431
|
+
readonly type: "bool";
|
|
432
|
+
readonly name: "isPaused";
|
|
598
433
|
}];
|
|
599
|
-
readonly outputs: readonly [{
|
|
600
|
-
readonly name: "";
|
|
601
|
-
readonly type: "tuple";
|
|
602
|
-
readonly internalType: "struct FeeAMM.Pool";
|
|
603
|
-
readonly components: readonly [{
|
|
604
|
-
readonly name: "reserveUserToken";
|
|
605
|
-
readonly type: "uint128";
|
|
606
|
-
readonly internalType: "uint128";
|
|
607
|
-
}, {
|
|
608
|
-
readonly name: "reserveValidatorToken";
|
|
609
|
-
readonly type: "uint128";
|
|
610
|
-
readonly internalType: "uint128";
|
|
611
|
-
}];
|
|
612
|
-
}];
|
|
613
|
-
readonly stateMutability: "view";
|
|
614
434
|
}, {
|
|
615
|
-
readonly
|
|
616
|
-
readonly
|
|
617
|
-
readonly inputs: readonly [
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
readonly
|
|
435
|
+
readonly name: "InsufficientBalance";
|
|
436
|
+
readonly type: "error";
|
|
437
|
+
readonly inputs: readonly [];
|
|
438
|
+
}, {
|
|
439
|
+
readonly name: "InsufficientAllowance";
|
|
440
|
+
readonly type: "error";
|
|
441
|
+
readonly inputs: readonly [];
|
|
442
|
+
}, {
|
|
443
|
+
readonly name: "SupplyCapExceeded";
|
|
444
|
+
readonly type: "error";
|
|
445
|
+
readonly inputs: readonly [];
|
|
446
|
+
}, {
|
|
447
|
+
readonly name: "InvalidSignature";
|
|
448
|
+
readonly type: "error";
|
|
449
|
+
readonly inputs: readonly [];
|
|
450
|
+
}, {
|
|
451
|
+
readonly name: "InvalidPayload";
|
|
452
|
+
readonly type: "error";
|
|
453
|
+
readonly inputs: readonly [];
|
|
454
|
+
}, {
|
|
455
|
+
readonly name: "InvalidNonce";
|
|
456
|
+
readonly type: "error";
|
|
457
|
+
readonly inputs: readonly [];
|
|
458
|
+
}, {
|
|
459
|
+
readonly name: "StringTooLong";
|
|
460
|
+
readonly type: "error";
|
|
461
|
+
readonly inputs: readonly [];
|
|
462
|
+
}, {
|
|
463
|
+
readonly name: "PolicyForbids";
|
|
464
|
+
readonly type: "error";
|
|
465
|
+
readonly inputs: readonly [];
|
|
466
|
+
}, {
|
|
467
|
+
readonly name: "InvalidRecipient";
|
|
468
|
+
readonly type: "error";
|
|
469
|
+
readonly inputs: readonly [];
|
|
470
|
+
}, {
|
|
471
|
+
readonly name: "Expired";
|
|
472
|
+
readonly type: "error";
|
|
473
|
+
readonly inputs: readonly [];
|
|
474
|
+
}, {
|
|
475
|
+
readonly name: "SaltAlreadyUsed";
|
|
476
|
+
readonly type: "error";
|
|
477
|
+
readonly inputs: readonly [];
|
|
478
|
+
}, {
|
|
479
|
+
readonly name: "ContractPaused";
|
|
480
|
+
readonly type: "error";
|
|
481
|
+
readonly inputs: readonly [];
|
|
482
|
+
}, {
|
|
483
|
+
readonly name: "InvalidCurrency";
|
|
484
|
+
readonly type: "error";
|
|
485
|
+
readonly inputs: readonly [];
|
|
632
486
|
}, {
|
|
487
|
+
readonly name: "grantRole";
|
|
633
488
|
readonly type: "function";
|
|
634
|
-
readonly
|
|
489
|
+
readonly stateMutability: "nonpayable";
|
|
635
490
|
readonly inputs: readonly [{
|
|
636
|
-
readonly name: "";
|
|
637
491
|
readonly type: "bytes32";
|
|
638
|
-
readonly
|
|
492
|
+
readonly name: "role";
|
|
639
493
|
}, {
|
|
640
|
-
readonly name: "";
|
|
641
494
|
readonly type: "address";
|
|
642
|
-
readonly
|
|
643
|
-
}];
|
|
644
|
-
readonly outputs: readonly [{
|
|
645
|
-
readonly name: "";
|
|
646
|
-
readonly type: "uint256";
|
|
647
|
-
readonly internalType: "uint256";
|
|
495
|
+
readonly name: "account";
|
|
648
496
|
}];
|
|
649
|
-
readonly
|
|
497
|
+
readonly outputs: readonly [];
|
|
650
498
|
}, {
|
|
499
|
+
readonly name: "revokeRole";
|
|
651
500
|
readonly type: "function";
|
|
652
|
-
readonly name: "mint";
|
|
653
|
-
readonly inputs: readonly [{
|
|
654
|
-
readonly name: "userToken";
|
|
655
|
-
readonly type: "address";
|
|
656
|
-
readonly internalType: "address";
|
|
657
|
-
}, {
|
|
658
|
-
readonly name: "validatorToken";
|
|
659
|
-
readonly type: "address";
|
|
660
|
-
readonly internalType: "address";
|
|
661
|
-
}, {
|
|
662
|
-
readonly name: "amountUserToken";
|
|
663
|
-
readonly type: "uint256";
|
|
664
|
-
readonly internalType: "uint256";
|
|
665
|
-
}, {
|
|
666
|
-
readonly name: "amountValidatorToken";
|
|
667
|
-
readonly type: "uint256";
|
|
668
|
-
readonly internalType: "uint256";
|
|
669
|
-
}, {
|
|
670
|
-
readonly name: "to";
|
|
671
|
-
readonly type: "address";
|
|
672
|
-
readonly internalType: "address";
|
|
673
|
-
}];
|
|
674
|
-
readonly outputs: readonly [{
|
|
675
|
-
readonly name: "liquidity";
|
|
676
|
-
readonly type: "uint256";
|
|
677
|
-
readonly internalType: "uint256";
|
|
678
|
-
}];
|
|
679
501
|
readonly stateMutability: "nonpayable";
|
|
680
|
-
}, {
|
|
681
|
-
readonly type: "function";
|
|
682
|
-
readonly name: "pools";
|
|
683
502
|
readonly inputs: readonly [{
|
|
684
|
-
readonly name: "";
|
|
685
503
|
readonly type: "bytes32";
|
|
686
|
-
readonly
|
|
687
|
-
}];
|
|
688
|
-
readonly outputs: readonly [{
|
|
689
|
-
readonly name: "reserveUserToken";
|
|
690
|
-
readonly type: "uint128";
|
|
691
|
-
readonly internalType: "uint128";
|
|
692
|
-
}, {
|
|
693
|
-
readonly name: "reserveValidatorToken";
|
|
694
|
-
readonly type: "uint128";
|
|
695
|
-
readonly internalType: "uint128";
|
|
696
|
-
}];
|
|
697
|
-
readonly stateMutability: "view";
|
|
698
|
-
}, {
|
|
699
|
-
readonly type: "function";
|
|
700
|
-
readonly name: "rebalanceSwap";
|
|
701
|
-
readonly inputs: readonly [{
|
|
702
|
-
readonly name: "userToken";
|
|
703
|
-
readonly type: "address";
|
|
704
|
-
readonly internalType: "address";
|
|
705
|
-
}, {
|
|
706
|
-
readonly name: "validatorToken";
|
|
707
|
-
readonly type: "address";
|
|
708
|
-
readonly internalType: "address";
|
|
709
|
-
}, {
|
|
710
|
-
readonly name: "amountOut";
|
|
711
|
-
readonly type: "uint256";
|
|
712
|
-
readonly internalType: "uint256";
|
|
504
|
+
readonly name: "role";
|
|
713
505
|
}, {
|
|
714
|
-
readonly name: "to";
|
|
715
|
-
readonly type: "address";
|
|
716
|
-
readonly internalType: "address";
|
|
717
|
-
}];
|
|
718
|
-
readonly outputs: readonly [{
|
|
719
|
-
readonly name: "amountIn";
|
|
720
|
-
readonly type: "uint256";
|
|
721
|
-
readonly internalType: "uint256";
|
|
722
|
-
}];
|
|
723
|
-
readonly stateMutability: "nonpayable";
|
|
724
|
-
}, {
|
|
725
|
-
readonly type: "function";
|
|
726
|
-
readonly name: "setUserToken";
|
|
727
|
-
readonly inputs: readonly [{
|
|
728
|
-
readonly name: "token";
|
|
729
506
|
readonly type: "address";
|
|
730
|
-
readonly
|
|
507
|
+
readonly name: "account";
|
|
731
508
|
}];
|
|
732
509
|
readonly outputs: readonly [];
|
|
733
|
-
readonly stateMutability: "nonpayable";
|
|
734
510
|
}, {
|
|
511
|
+
readonly name: "renounceRole";
|
|
735
512
|
readonly type: "function";
|
|
736
|
-
readonly
|
|
513
|
+
readonly stateMutability: "nonpayable";
|
|
737
514
|
readonly inputs: readonly [{
|
|
738
|
-
readonly
|
|
739
|
-
readonly
|
|
740
|
-
readonly internalType: "address";
|
|
515
|
+
readonly type: "bytes32";
|
|
516
|
+
readonly name: "role";
|
|
741
517
|
}];
|
|
742
518
|
readonly outputs: readonly [];
|
|
743
|
-
readonly stateMutability: "nonpayable";
|
|
744
519
|
}, {
|
|
520
|
+
readonly name: "setRoleAdmin";
|
|
745
521
|
readonly type: "function";
|
|
746
|
-
readonly
|
|
522
|
+
readonly stateMutability: "nonpayable";
|
|
747
523
|
readonly inputs: readonly [{
|
|
748
|
-
readonly name: "";
|
|
749
524
|
readonly type: "bytes32";
|
|
750
|
-
readonly
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
readonly name: "";
|
|
754
|
-
readonly type: "uint256";
|
|
755
|
-
readonly internalType: "uint256";
|
|
525
|
+
readonly name: "role";
|
|
526
|
+
}, {
|
|
527
|
+
readonly type: "bytes32";
|
|
528
|
+
readonly name: "adminRole";
|
|
756
529
|
}];
|
|
757
|
-
readonly
|
|
530
|
+
readonly outputs: readonly [];
|
|
758
531
|
}, {
|
|
532
|
+
readonly name: "hasRole";
|
|
759
533
|
readonly type: "function";
|
|
760
|
-
readonly
|
|
534
|
+
readonly stateMutability: "view";
|
|
761
535
|
readonly inputs: readonly [{
|
|
762
|
-
readonly name: "";
|
|
763
536
|
readonly type: "address";
|
|
764
|
-
readonly
|
|
537
|
+
readonly name: "account";
|
|
538
|
+
}, {
|
|
539
|
+
readonly type: "bytes32";
|
|
540
|
+
readonly name: "role";
|
|
765
541
|
}];
|
|
766
542
|
readonly outputs: readonly [{
|
|
767
|
-
readonly
|
|
768
|
-
readonly type: "address";
|
|
769
|
-
readonly internalType: "address";
|
|
543
|
+
readonly type: "bool";
|
|
770
544
|
}];
|
|
771
|
-
readonly stateMutability: "view";
|
|
772
545
|
}, {
|
|
546
|
+
readonly name: "getRoleAdmin";
|
|
773
547
|
readonly type: "function";
|
|
774
|
-
readonly
|
|
548
|
+
readonly stateMutability: "view";
|
|
775
549
|
readonly inputs: readonly [{
|
|
776
|
-
readonly
|
|
777
|
-
readonly
|
|
778
|
-
readonly internalType: "address";
|
|
550
|
+
readonly type: "bytes32";
|
|
551
|
+
readonly name: "role";
|
|
779
552
|
}];
|
|
780
553
|
readonly outputs: readonly [{
|
|
781
|
-
readonly
|
|
782
|
-
readonly type: "address";
|
|
783
|
-
readonly internalType: "address";
|
|
554
|
+
readonly type: "bytes32";
|
|
784
555
|
}];
|
|
785
|
-
readonly stateMutability: "view";
|
|
786
556
|
}, {
|
|
557
|
+
readonly name: "RoleMembershipUpdated";
|
|
787
558
|
readonly type: "event";
|
|
788
|
-
readonly name: "Burn";
|
|
789
559
|
readonly inputs: readonly [{
|
|
790
|
-
readonly
|
|
791
|
-
readonly
|
|
560
|
+
readonly type: "bytes32";
|
|
561
|
+
readonly name: "role";
|
|
792
562
|
readonly indexed: true;
|
|
793
|
-
readonly internalType: "address";
|
|
794
563
|
}, {
|
|
795
|
-
readonly name: "userToken";
|
|
796
564
|
readonly type: "address";
|
|
565
|
+
readonly name: "account";
|
|
797
566
|
readonly indexed: true;
|
|
798
|
-
readonly internalType: "address";
|
|
799
567
|
}, {
|
|
800
|
-
readonly name: "validatorToken";
|
|
801
568
|
readonly type: "address";
|
|
569
|
+
readonly name: "sender";
|
|
802
570
|
readonly indexed: true;
|
|
803
|
-
readonly internalType: "address";
|
|
804
|
-
}, {
|
|
805
|
-
readonly name: "amountUserToken";
|
|
806
|
-
readonly type: "uint256";
|
|
807
|
-
readonly indexed: false;
|
|
808
|
-
readonly internalType: "uint256";
|
|
809
|
-
}, {
|
|
810
|
-
readonly name: "amountValidatorToken";
|
|
811
|
-
readonly type: "uint256";
|
|
812
|
-
readonly indexed: false;
|
|
813
|
-
readonly internalType: "uint256";
|
|
814
|
-
}, {
|
|
815
|
-
readonly name: "liquidity";
|
|
816
|
-
readonly type: "uint256";
|
|
817
|
-
readonly indexed: false;
|
|
818
|
-
readonly internalType: "uint256";
|
|
819
571
|
}, {
|
|
820
|
-
readonly
|
|
821
|
-
readonly
|
|
822
|
-
readonly indexed: false;
|
|
823
|
-
readonly internalType: "address";
|
|
572
|
+
readonly type: "bool";
|
|
573
|
+
readonly name: "hasRole";
|
|
824
574
|
}];
|
|
825
|
-
readonly anonymous: false;
|
|
826
575
|
}, {
|
|
576
|
+
readonly name: "RoleAdminUpdated";
|
|
827
577
|
readonly type: "event";
|
|
828
|
-
readonly name: "FeeSwap";
|
|
829
578
|
readonly inputs: readonly [{
|
|
830
|
-
readonly
|
|
831
|
-
readonly
|
|
579
|
+
readonly type: "bytes32";
|
|
580
|
+
readonly name: "role";
|
|
832
581
|
readonly indexed: true;
|
|
833
|
-
readonly internalType: "address";
|
|
834
582
|
}, {
|
|
835
|
-
readonly
|
|
836
|
-
readonly
|
|
583
|
+
readonly type: "bytes32";
|
|
584
|
+
readonly name: "newAdminRole";
|
|
837
585
|
readonly indexed: true;
|
|
838
|
-
readonly internalType: "address";
|
|
839
586
|
}, {
|
|
840
|
-
readonly
|
|
841
|
-
readonly
|
|
842
|
-
readonly indexed:
|
|
843
|
-
readonly internalType: "uint256";
|
|
844
|
-
}, {
|
|
845
|
-
readonly name: "amountOut";
|
|
846
|
-
readonly type: "uint256";
|
|
847
|
-
readonly indexed: false;
|
|
848
|
-
readonly internalType: "uint256";
|
|
587
|
+
readonly type: "address";
|
|
588
|
+
readonly name: "sender";
|
|
589
|
+
readonly indexed: true;
|
|
849
590
|
}];
|
|
850
|
-
readonly anonymous: false;
|
|
851
591
|
}, {
|
|
852
|
-
readonly
|
|
853
|
-
readonly
|
|
592
|
+
readonly name: "Unauthorized";
|
|
593
|
+
readonly type: "error";
|
|
594
|
+
readonly inputs: readonly [];
|
|
595
|
+
}];
|
|
596
|
+
export declare const tip20FactoryAbi: readonly [{
|
|
597
|
+
readonly name: "createToken";
|
|
598
|
+
readonly type: "function";
|
|
599
|
+
readonly stateMutability: "nonpayable";
|
|
854
600
|
readonly inputs: readonly [{
|
|
855
|
-
readonly
|
|
856
|
-
readonly
|
|
857
|
-
readonly indexed: true;
|
|
858
|
-
readonly internalType: "address";
|
|
859
|
-
}, {
|
|
860
|
-
readonly name: "userToken";
|
|
861
|
-
readonly type: "address";
|
|
862
|
-
readonly indexed: true;
|
|
863
|
-
readonly internalType: "address";
|
|
601
|
+
readonly type: "string";
|
|
602
|
+
readonly name: "name";
|
|
864
603
|
}, {
|
|
865
|
-
readonly
|
|
866
|
-
readonly
|
|
867
|
-
readonly indexed: true;
|
|
868
|
-
readonly internalType: "address";
|
|
604
|
+
readonly type: "string";
|
|
605
|
+
readonly name: "symbol";
|
|
869
606
|
}, {
|
|
870
|
-
readonly
|
|
871
|
-
readonly
|
|
872
|
-
readonly indexed: false;
|
|
873
|
-
readonly internalType: "uint256";
|
|
607
|
+
readonly type: "string";
|
|
608
|
+
readonly name: "currency";
|
|
874
609
|
}, {
|
|
875
|
-
readonly
|
|
610
|
+
readonly type: "address";
|
|
611
|
+
readonly name: "admin";
|
|
612
|
+
}];
|
|
613
|
+
readonly outputs: readonly [{
|
|
876
614
|
readonly type: "uint256";
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
615
|
+
}];
|
|
616
|
+
}, {
|
|
617
|
+
readonly name: "tokenIdCounter";
|
|
618
|
+
readonly type: "function";
|
|
619
|
+
readonly stateMutability: "view";
|
|
620
|
+
readonly inputs: readonly [];
|
|
621
|
+
readonly outputs: readonly [{
|
|
881
622
|
readonly type: "uint256";
|
|
882
|
-
readonly indexed: false;
|
|
883
|
-
readonly internalType: "uint256";
|
|
884
623
|
}];
|
|
885
|
-
readonly anonymous: false;
|
|
886
624
|
}, {
|
|
625
|
+
readonly name: "TokenCreated";
|
|
887
626
|
readonly type: "event";
|
|
888
|
-
readonly name: "RebalanceSwap";
|
|
889
627
|
readonly inputs: readonly [{
|
|
890
|
-
readonly name: "userToken";
|
|
891
628
|
readonly type: "address";
|
|
629
|
+
readonly name: "token";
|
|
892
630
|
readonly indexed: true;
|
|
893
|
-
readonly internalType: "address";
|
|
894
631
|
}, {
|
|
895
|
-
readonly name: "validatorToken";
|
|
896
|
-
readonly type: "address";
|
|
897
|
-
readonly indexed: true;
|
|
898
|
-
readonly internalType: "address";
|
|
899
|
-
}, {
|
|
900
|
-
readonly name: "swapper";
|
|
901
|
-
readonly type: "address";
|
|
902
|
-
readonly indexed: true;
|
|
903
|
-
readonly internalType: "address";
|
|
904
|
-
}, {
|
|
905
|
-
readonly name: "amountIn";
|
|
906
632
|
readonly type: "uint256";
|
|
907
|
-
readonly
|
|
908
|
-
readonly internalType: "uint256";
|
|
909
|
-
}, {
|
|
910
|
-
readonly name: "amountOut";
|
|
911
|
-
readonly type: "uint256";
|
|
912
|
-
readonly indexed: false;
|
|
913
|
-
readonly internalType: "uint256";
|
|
914
|
-
}];
|
|
915
|
-
readonly anonymous: false;
|
|
916
|
-
}, {
|
|
917
|
-
readonly type: "event";
|
|
918
|
-
readonly name: "UserTokenSet";
|
|
919
|
-
readonly inputs: readonly [{
|
|
920
|
-
readonly name: "user";
|
|
921
|
-
readonly type: "address";
|
|
922
|
-
readonly indexed: true;
|
|
923
|
-
readonly internalType: "address";
|
|
924
|
-
}, {
|
|
925
|
-
readonly name: "token";
|
|
926
|
-
readonly type: "address";
|
|
927
|
-
readonly indexed: true;
|
|
928
|
-
readonly internalType: "address";
|
|
929
|
-
}];
|
|
930
|
-
readonly anonymous: false;
|
|
931
|
-
}, {
|
|
932
|
-
readonly type: "event";
|
|
933
|
-
readonly name: "ValidatorTokenSet";
|
|
934
|
-
readonly inputs: readonly [{
|
|
935
|
-
readonly name: "validator";
|
|
936
|
-
readonly type: "address";
|
|
633
|
+
readonly name: "tokenId";
|
|
937
634
|
readonly indexed: true;
|
|
938
|
-
readonly internalType: "address";
|
|
939
635
|
}, {
|
|
940
|
-
readonly name: "token";
|
|
941
|
-
readonly type: "address";
|
|
942
|
-
readonly indexed: true;
|
|
943
|
-
readonly internalType: "address";
|
|
944
|
-
}];
|
|
945
|
-
readonly anonymous: false;
|
|
946
|
-
}];
|
|
947
|
-
export declare const tip20Abi: readonly [{
|
|
948
|
-
readonly type: "constructor";
|
|
949
|
-
readonly inputs: readonly [{
|
|
950
|
-
readonly name: "_name";
|
|
951
636
|
readonly type: "string";
|
|
952
|
-
readonly
|
|
637
|
+
readonly name: "name";
|
|
953
638
|
}, {
|
|
954
|
-
readonly name: "_symbol";
|
|
955
639
|
readonly type: "string";
|
|
956
|
-
readonly
|
|
640
|
+
readonly name: "symbol";
|
|
957
641
|
}, {
|
|
958
|
-
readonly name: "_currency";
|
|
959
642
|
readonly type: "string";
|
|
960
|
-
readonly
|
|
643
|
+
readonly name: "currency";
|
|
961
644
|
}, {
|
|
962
|
-
readonly name: "admin";
|
|
963
645
|
readonly type: "address";
|
|
964
|
-
readonly
|
|
646
|
+
readonly name: "admin";
|
|
965
647
|
}];
|
|
966
|
-
|
|
967
|
-
|
|
648
|
+
}];
|
|
649
|
+
export declare const tip403RegistryAbi: readonly [{
|
|
650
|
+
readonly name: "policyIdCounter";
|
|
968
651
|
readonly type: "function";
|
|
969
|
-
readonly name: "BURN_BLOCKED_ROLE";
|
|
970
|
-
readonly inputs: readonly [];
|
|
971
|
-
readonly outputs: readonly [{
|
|
972
|
-
readonly name: "";
|
|
973
|
-
readonly type: "bytes32";
|
|
974
|
-
readonly internalType: "bytes32";
|
|
975
|
-
}];
|
|
976
652
|
readonly stateMutability: "view";
|
|
977
|
-
}, {
|
|
978
|
-
readonly type: "function";
|
|
979
|
-
readonly name: "DOMAIN_SEPARATOR";
|
|
980
653
|
readonly inputs: readonly [];
|
|
981
654
|
readonly outputs: readonly [{
|
|
982
|
-
readonly
|
|
983
|
-
readonly type: "bytes32";
|
|
984
|
-
readonly internalType: "bytes32";
|
|
655
|
+
readonly type: "uint64";
|
|
985
656
|
}];
|
|
986
|
-
readonly stateMutability: "view";
|
|
987
657
|
}, {
|
|
658
|
+
readonly name: "policyData";
|
|
988
659
|
readonly type: "function";
|
|
989
|
-
readonly name: "ISSUER_ROLE";
|
|
990
|
-
readonly inputs: readonly [];
|
|
991
|
-
readonly outputs: readonly [{
|
|
992
|
-
readonly name: "";
|
|
993
|
-
readonly type: "bytes32";
|
|
994
|
-
readonly internalType: "bytes32";
|
|
995
|
-
}];
|
|
996
660
|
readonly stateMutability: "view";
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
readonly inputs: readonly [];
|
|
1001
|
-
readonly outputs: readonly [{
|
|
1002
|
-
readonly name: "";
|
|
1003
|
-
readonly type: "bytes32";
|
|
1004
|
-
readonly internalType: "bytes32";
|
|
661
|
+
readonly inputs: readonly [{
|
|
662
|
+
readonly type: "uint64";
|
|
663
|
+
readonly name: "policyId";
|
|
1005
664
|
}];
|
|
1006
|
-
readonly stateMutability: "view";
|
|
1007
|
-
}, {
|
|
1008
|
-
readonly type: "function";
|
|
1009
|
-
readonly name: "UNPAUSE_ROLE";
|
|
1010
|
-
readonly inputs: readonly [];
|
|
1011
665
|
readonly outputs: readonly [{
|
|
1012
|
-
readonly
|
|
1013
|
-
readonly
|
|
1014
|
-
|
|
666
|
+
readonly type: "uint8";
|
|
667
|
+
readonly name: "policyType";
|
|
668
|
+
}, {
|
|
669
|
+
readonly type: "address";
|
|
670
|
+
readonly name: "admin";
|
|
1015
671
|
}];
|
|
1016
|
-
readonly stateMutability: "view";
|
|
1017
672
|
}, {
|
|
673
|
+
readonly name: "isAuthorized";
|
|
1018
674
|
readonly type: "function";
|
|
1019
|
-
readonly
|
|
675
|
+
readonly stateMutability: "view";
|
|
1020
676
|
readonly inputs: readonly [{
|
|
1021
|
-
readonly
|
|
1022
|
-
readonly
|
|
1023
|
-
readonly internalType: "address";
|
|
677
|
+
readonly type: "uint64";
|
|
678
|
+
readonly name: "policyId";
|
|
1024
679
|
}, {
|
|
1025
|
-
readonly name: "";
|
|
1026
680
|
readonly type: "address";
|
|
1027
|
-
readonly
|
|
681
|
+
readonly name: "user";
|
|
1028
682
|
}];
|
|
1029
683
|
readonly outputs: readonly [{
|
|
1030
|
-
readonly
|
|
1031
|
-
readonly type: "uint256";
|
|
1032
|
-
readonly internalType: "uint256";
|
|
684
|
+
readonly type: "bool";
|
|
1033
685
|
}];
|
|
1034
|
-
readonly stateMutability: "view";
|
|
1035
686
|
}, {
|
|
687
|
+
readonly name: "createPolicy";
|
|
1036
688
|
readonly type: "function";
|
|
1037
|
-
readonly
|
|
689
|
+
readonly stateMutability: "nonpayable";
|
|
1038
690
|
readonly inputs: readonly [{
|
|
1039
|
-
readonly name: "spender";
|
|
1040
691
|
readonly type: "address";
|
|
1041
|
-
readonly
|
|
692
|
+
readonly name: "admin";
|
|
1042
693
|
}, {
|
|
1043
|
-
readonly
|
|
1044
|
-
readonly
|
|
1045
|
-
readonly internalType: "uint256";
|
|
694
|
+
readonly type: "uint8";
|
|
695
|
+
readonly name: "policyType";
|
|
1046
696
|
}];
|
|
1047
697
|
readonly outputs: readonly [{
|
|
1048
|
-
readonly
|
|
1049
|
-
readonly type: "bool";
|
|
1050
|
-
readonly internalType: "bool";
|
|
698
|
+
readonly type: "uint64";
|
|
1051
699
|
}];
|
|
1052
|
-
readonly stateMutability: "nonpayable";
|
|
1053
700
|
}, {
|
|
701
|
+
readonly name: "createPolicyWithAccounts";
|
|
1054
702
|
readonly type: "function";
|
|
1055
|
-
readonly
|
|
703
|
+
readonly stateMutability: "nonpayable";
|
|
1056
704
|
readonly inputs: readonly [{
|
|
1057
|
-
readonly name: "";
|
|
1058
705
|
readonly type: "address";
|
|
1059
|
-
readonly
|
|
706
|
+
readonly name: "admin";
|
|
707
|
+
}, {
|
|
708
|
+
readonly type: "uint8";
|
|
709
|
+
readonly name: "policyType";
|
|
710
|
+
}, {
|
|
711
|
+
readonly type: "address[]";
|
|
712
|
+
readonly name: "accounts";
|
|
1060
713
|
}];
|
|
1061
714
|
readonly outputs: readonly [{
|
|
1062
|
-
readonly
|
|
1063
|
-
readonly type: "uint256";
|
|
1064
|
-
readonly internalType: "uint256";
|
|
715
|
+
readonly type: "uint64";
|
|
1065
716
|
}];
|
|
1066
|
-
readonly stateMutability: "view";
|
|
1067
717
|
}, {
|
|
718
|
+
readonly name: "setPolicyAdmin";
|
|
1068
719
|
readonly type: "function";
|
|
1069
|
-
readonly name: "burn";
|
|
1070
|
-
readonly inputs: readonly [{
|
|
1071
|
-
readonly name: "amount";
|
|
1072
|
-
readonly type: "uint256";
|
|
1073
|
-
readonly internalType: "uint256";
|
|
1074
|
-
}];
|
|
1075
|
-
readonly outputs: readonly [];
|
|
1076
720
|
readonly stateMutability: "nonpayable";
|
|
1077
|
-
}, {
|
|
1078
|
-
readonly type: "function";
|
|
1079
|
-
readonly name: "burnBlocked";
|
|
1080
721
|
readonly inputs: readonly [{
|
|
1081
|
-
readonly
|
|
1082
|
-
readonly
|
|
1083
|
-
readonly internalType: "address";
|
|
722
|
+
readonly type: "uint64";
|
|
723
|
+
readonly name: "policyId";
|
|
1084
724
|
}, {
|
|
1085
|
-
readonly
|
|
1086
|
-
readonly
|
|
1087
|
-
readonly internalType: "uint256";
|
|
725
|
+
readonly type: "address";
|
|
726
|
+
readonly name: "admin";
|
|
1088
727
|
}];
|
|
1089
728
|
readonly outputs: readonly [];
|
|
1090
|
-
readonly stateMutability: "nonpayable";
|
|
1091
729
|
}, {
|
|
730
|
+
readonly name: "modifyPolicyWhitelist";
|
|
1092
731
|
readonly type: "function";
|
|
1093
|
-
readonly
|
|
732
|
+
readonly stateMutability: "nonpayable";
|
|
1094
733
|
readonly inputs: readonly [{
|
|
1095
|
-
readonly
|
|
1096
|
-
readonly
|
|
1097
|
-
readonly internalType: "uint256";
|
|
734
|
+
readonly type: "uint64";
|
|
735
|
+
readonly name: "policyId";
|
|
1098
736
|
}, {
|
|
1099
|
-
readonly
|
|
1100
|
-
readonly
|
|
1101
|
-
|
|
737
|
+
readonly type: "address";
|
|
738
|
+
readonly name: "account";
|
|
739
|
+
}, {
|
|
740
|
+
readonly type: "bool";
|
|
741
|
+
readonly name: "allowed";
|
|
1102
742
|
}];
|
|
1103
743
|
readonly outputs: readonly [];
|
|
1104
|
-
readonly stateMutability: "nonpayable";
|
|
1105
744
|
}, {
|
|
745
|
+
readonly name: "modifyPolicyBlacklist";
|
|
1106
746
|
readonly type: "function";
|
|
1107
|
-
readonly
|
|
747
|
+
readonly stateMutability: "nonpayable";
|
|
1108
748
|
readonly inputs: readonly [{
|
|
1109
|
-
readonly name: "newPolicyId";
|
|
1110
749
|
readonly type: "uint64";
|
|
1111
|
-
readonly
|
|
750
|
+
readonly name: "policyId";
|
|
751
|
+
}, {
|
|
752
|
+
readonly type: "address";
|
|
753
|
+
readonly name: "account";
|
|
754
|
+
}, {
|
|
755
|
+
readonly type: "bool";
|
|
756
|
+
readonly name: "restricted";
|
|
1112
757
|
}];
|
|
1113
758
|
readonly outputs: readonly [];
|
|
1114
|
-
readonly stateMutability: "nonpayable";
|
|
1115
759
|
}, {
|
|
1116
|
-
readonly
|
|
1117
|
-
readonly
|
|
1118
|
-
readonly inputs: readonly [];
|
|
1119
|
-
readonly outputs: readonly [{
|
|
1120
|
-
readonly name: "";
|
|
1121
|
-
readonly type: "string";
|
|
1122
|
-
readonly internalType: "string";
|
|
1123
|
-
}];
|
|
1124
|
-
readonly stateMutability: "view";
|
|
1125
|
-
}, {
|
|
1126
|
-
readonly type: "function";
|
|
1127
|
-
readonly name: "decimals";
|
|
1128
|
-
readonly inputs: readonly [];
|
|
1129
|
-
readonly outputs: readonly [{
|
|
1130
|
-
readonly name: "";
|
|
1131
|
-
readonly type: "uint8";
|
|
1132
|
-
readonly internalType: "uint8";
|
|
1133
|
-
}];
|
|
1134
|
-
readonly stateMutability: "view";
|
|
1135
|
-
}, {
|
|
1136
|
-
readonly type: "function";
|
|
1137
|
-
readonly name: "grantRole";
|
|
760
|
+
readonly name: "PolicyAdminUpdated";
|
|
761
|
+
readonly type: "event";
|
|
1138
762
|
readonly inputs: readonly [{
|
|
1139
|
-
readonly
|
|
1140
|
-
readonly
|
|
1141
|
-
readonly
|
|
763
|
+
readonly type: "uint64";
|
|
764
|
+
readonly name: "policyId";
|
|
765
|
+
readonly indexed: true;
|
|
766
|
+
}, {
|
|
767
|
+
readonly type: "address";
|
|
768
|
+
readonly name: "updater";
|
|
769
|
+
readonly indexed: true;
|
|
1142
770
|
}, {
|
|
1143
|
-
readonly name: "account";
|
|
1144
771
|
readonly type: "address";
|
|
1145
|
-
readonly
|
|
772
|
+
readonly name: "admin";
|
|
773
|
+
readonly indexed: true;
|
|
1146
774
|
}];
|
|
1147
|
-
readonly outputs: readonly [];
|
|
1148
|
-
readonly stateMutability: "nonpayable";
|
|
1149
775
|
}, {
|
|
1150
|
-
readonly
|
|
1151
|
-
readonly
|
|
776
|
+
readonly name: "PolicyCreated";
|
|
777
|
+
readonly type: "event";
|
|
1152
778
|
readonly inputs: readonly [{
|
|
1153
|
-
readonly
|
|
779
|
+
readonly type: "uint64";
|
|
780
|
+
readonly name: "policyId";
|
|
781
|
+
readonly indexed: true;
|
|
782
|
+
}, {
|
|
1154
783
|
readonly type: "address";
|
|
1155
|
-
readonly
|
|
784
|
+
readonly name: "updater";
|
|
785
|
+
readonly indexed: true;
|
|
1156
786
|
}, {
|
|
1157
|
-
readonly
|
|
1158
|
-
readonly
|
|
1159
|
-
readonly internalType: "uint256";
|
|
787
|
+
readonly type: "uint8";
|
|
788
|
+
readonly name: "policyType";
|
|
1160
789
|
}];
|
|
1161
|
-
readonly outputs: readonly [];
|
|
1162
|
-
readonly stateMutability: "nonpayable";
|
|
1163
790
|
}, {
|
|
1164
|
-
readonly
|
|
1165
|
-
readonly
|
|
791
|
+
readonly name: "WhitelistUpdated";
|
|
792
|
+
readonly type: "event";
|
|
1166
793
|
readonly inputs: readonly [{
|
|
1167
|
-
readonly
|
|
794
|
+
readonly type: "uint64";
|
|
795
|
+
readonly name: "policyId";
|
|
796
|
+
readonly indexed: true;
|
|
797
|
+
}, {
|
|
1168
798
|
readonly type: "address";
|
|
1169
|
-
readonly
|
|
799
|
+
readonly name: "updater";
|
|
800
|
+
readonly indexed: true;
|
|
1170
801
|
}, {
|
|
1171
|
-
readonly
|
|
1172
|
-
readonly
|
|
1173
|
-
readonly
|
|
802
|
+
readonly type: "address";
|
|
803
|
+
readonly name: "account";
|
|
804
|
+
readonly indexed: true;
|
|
1174
805
|
}, {
|
|
1175
|
-
readonly
|
|
1176
|
-
readonly
|
|
1177
|
-
readonly internalType: "bytes32";
|
|
1178
|
-
}];
|
|
1179
|
-
readonly outputs: readonly [];
|
|
1180
|
-
readonly stateMutability: "nonpayable";
|
|
1181
|
-
}, {
|
|
1182
|
-
readonly type: "function";
|
|
1183
|
-
readonly name: "name";
|
|
1184
|
-
readonly inputs: readonly [];
|
|
1185
|
-
readonly outputs: readonly [{
|
|
1186
|
-
readonly name: "";
|
|
1187
|
-
readonly type: "string";
|
|
1188
|
-
readonly internalType: "string";
|
|
806
|
+
readonly type: "bool";
|
|
807
|
+
readonly name: "allowed";
|
|
1189
808
|
}];
|
|
1190
|
-
readonly stateMutability: "view";
|
|
1191
809
|
}, {
|
|
1192
|
-
readonly
|
|
1193
|
-
readonly
|
|
810
|
+
readonly name: "BlacklistUpdated";
|
|
811
|
+
readonly type: "event";
|
|
1194
812
|
readonly inputs: readonly [{
|
|
1195
|
-
readonly
|
|
813
|
+
readonly type: "uint64";
|
|
814
|
+
readonly name: "policyId";
|
|
815
|
+
readonly indexed: true;
|
|
816
|
+
}, {
|
|
1196
817
|
readonly type: "address";
|
|
1197
|
-
readonly
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
readonly
|
|
1201
|
-
readonly
|
|
1202
|
-
readonly
|
|
818
|
+
readonly name: "updater";
|
|
819
|
+
readonly indexed: true;
|
|
820
|
+
}, {
|
|
821
|
+
readonly type: "address";
|
|
822
|
+
readonly name: "account";
|
|
823
|
+
readonly indexed: true;
|
|
824
|
+
}, {
|
|
825
|
+
readonly type: "bool";
|
|
826
|
+
readonly name: "restricted";
|
|
1203
827
|
}];
|
|
1204
|
-
readonly stateMutability: "view";
|
|
1205
828
|
}, {
|
|
1206
|
-
readonly
|
|
1207
|
-
readonly
|
|
829
|
+
readonly name: "Unauthorized";
|
|
830
|
+
readonly type: "error";
|
|
1208
831
|
readonly inputs: readonly [];
|
|
1209
|
-
readonly outputs: readonly [];
|
|
1210
|
-
readonly stateMutability: "nonpayable";
|
|
1211
832
|
}, {
|
|
1212
|
-
readonly
|
|
1213
|
-
readonly
|
|
833
|
+
readonly name: "IncompatiblePolicyType";
|
|
834
|
+
readonly type: "error";
|
|
1214
835
|
readonly inputs: readonly [];
|
|
1215
|
-
readonly outputs: readonly [{
|
|
1216
|
-
readonly name: "";
|
|
1217
|
-
readonly type: "bool";
|
|
1218
|
-
readonly internalType: "bool";
|
|
1219
|
-
}];
|
|
1220
|
-
readonly stateMutability: "view";
|
|
1221
836
|
}, {
|
|
837
|
+
readonly name: "SelfOwnedPolicyMustBeWhitelist";
|
|
838
|
+
readonly type: "error";
|
|
839
|
+
readonly inputs: readonly [];
|
|
840
|
+
}];
|
|
841
|
+
export declare const tip4217RegistryAbi: readonly [{
|
|
842
|
+
readonly name: "getCurrencyDecimals";
|
|
1222
843
|
readonly type: "function";
|
|
1223
|
-
readonly
|
|
844
|
+
readonly stateMutability: "view";
|
|
1224
845
|
readonly inputs: readonly [{
|
|
1225
|
-
readonly
|
|
1226
|
-
readonly
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
readonly name: "spender";
|
|
1230
|
-
readonly type: "address";
|
|
1231
|
-
readonly internalType: "address";
|
|
1232
|
-
}, {
|
|
1233
|
-
readonly name: "value";
|
|
1234
|
-
readonly type: "uint256";
|
|
1235
|
-
readonly internalType: "uint256";
|
|
1236
|
-
}, {
|
|
1237
|
-
readonly name: "deadline";
|
|
1238
|
-
readonly type: "uint256";
|
|
1239
|
-
readonly internalType: "uint256";
|
|
1240
|
-
}, {
|
|
1241
|
-
readonly name: "v";
|
|
846
|
+
readonly type: "string";
|
|
847
|
+
readonly name: "currency";
|
|
848
|
+
}];
|
|
849
|
+
readonly outputs: readonly [{
|
|
1242
850
|
readonly type: "uint8";
|
|
1243
|
-
readonly internalType: "uint8";
|
|
1244
|
-
}, {
|
|
1245
|
-
readonly name: "r";
|
|
1246
|
-
readonly type: "bytes32";
|
|
1247
|
-
readonly internalType: "bytes32";
|
|
1248
|
-
}, {
|
|
1249
|
-
readonly name: "s";
|
|
1250
|
-
readonly type: "bytes32";
|
|
1251
|
-
readonly internalType: "bytes32";
|
|
1252
851
|
}];
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
852
|
+
}];
|
|
853
|
+
export declare const tipAccountRegistrarAbi: readonly [{
|
|
854
|
+
readonly name: "delegateToDefault";
|
|
1256
855
|
readonly type: "function";
|
|
1257
|
-
readonly name: "renounceRole";
|
|
1258
|
-
readonly inputs: readonly [{
|
|
1259
|
-
readonly name: "role";
|
|
1260
|
-
readonly type: "bytes32";
|
|
1261
|
-
readonly internalType: "bytes32";
|
|
1262
|
-
}];
|
|
1263
|
-
readonly outputs: readonly [];
|
|
1264
856
|
readonly stateMutability: "nonpayable";
|
|
1265
|
-
}, {
|
|
1266
|
-
readonly type: "function";
|
|
1267
|
-
readonly name: "revokeRole";
|
|
1268
857
|
readonly inputs: readonly [{
|
|
1269
|
-
readonly name: "role";
|
|
1270
858
|
readonly type: "bytes32";
|
|
1271
|
-
readonly
|
|
859
|
+
readonly name: "hash";
|
|
1272
860
|
}, {
|
|
1273
|
-
readonly
|
|
861
|
+
readonly type: "bytes";
|
|
862
|
+
readonly name: "signature";
|
|
863
|
+
}];
|
|
864
|
+
readonly outputs: readonly [{
|
|
1274
865
|
readonly type: "address";
|
|
1275
|
-
readonly
|
|
866
|
+
readonly name: "authority";
|
|
1276
867
|
}];
|
|
1277
|
-
readonly outputs: readonly [];
|
|
1278
|
-
readonly stateMutability: "nonpayable";
|
|
1279
868
|
}, {
|
|
869
|
+
readonly name: "getDelegationMessage";
|
|
1280
870
|
readonly type: "function";
|
|
1281
|
-
readonly
|
|
1282
|
-
readonly inputs: readonly [
|
|
1283
|
-
|
|
1284
|
-
readonly type: "
|
|
1285
|
-
readonly internalType: "bytes32";
|
|
1286
|
-
}, {
|
|
1287
|
-
readonly name: "adminRole";
|
|
1288
|
-
readonly type: "bytes32";
|
|
1289
|
-
readonly internalType: "bytes32";
|
|
871
|
+
readonly stateMutability: "pure";
|
|
872
|
+
readonly inputs: readonly [];
|
|
873
|
+
readonly outputs: readonly [{
|
|
874
|
+
readonly type: "string";
|
|
1290
875
|
}];
|
|
1291
|
-
readonly outputs: readonly [];
|
|
1292
|
-
readonly stateMutability: "nonpayable";
|
|
1293
876
|
}, {
|
|
1294
|
-
readonly
|
|
1295
|
-
readonly
|
|
1296
|
-
readonly inputs: readonly [
|
|
1297
|
-
readonly name: "newSupplyCap";
|
|
1298
|
-
readonly type: "uint256";
|
|
1299
|
-
readonly internalType: "uint256";
|
|
1300
|
-
}];
|
|
1301
|
-
readonly outputs: readonly [];
|
|
1302
|
-
readonly stateMutability: "nonpayable";
|
|
877
|
+
readonly name: "InvalidSignature";
|
|
878
|
+
readonly type: "error";
|
|
879
|
+
readonly inputs: readonly [];
|
|
1303
880
|
}, {
|
|
1304
|
-
readonly
|
|
1305
|
-
readonly
|
|
881
|
+
readonly name: "CodeNotEmpty";
|
|
882
|
+
readonly type: "error";
|
|
1306
883
|
readonly inputs: readonly [];
|
|
1307
|
-
readonly outputs: readonly [{
|
|
1308
|
-
readonly name: "";
|
|
1309
|
-
readonly type: "uint256";
|
|
1310
|
-
readonly internalType: "uint256";
|
|
1311
|
-
}];
|
|
1312
|
-
readonly stateMutability: "view";
|
|
1313
884
|
}, {
|
|
1314
|
-
readonly
|
|
1315
|
-
readonly
|
|
885
|
+
readonly name: "NonceNotZero";
|
|
886
|
+
readonly type: "error";
|
|
1316
887
|
readonly inputs: readonly [];
|
|
888
|
+
}];
|
|
889
|
+
export declare const feeAmmAbi: readonly [{
|
|
890
|
+
readonly name: "getPoolId";
|
|
891
|
+
readonly type: "function";
|
|
892
|
+
readonly stateMutability: "pure";
|
|
893
|
+
readonly inputs: readonly [{
|
|
894
|
+
readonly type: "address";
|
|
895
|
+
readonly name: "userToken";
|
|
896
|
+
}, {
|
|
897
|
+
readonly type: "address";
|
|
898
|
+
readonly name: "validatorToken";
|
|
899
|
+
}];
|
|
1317
900
|
readonly outputs: readonly [{
|
|
1318
|
-
readonly
|
|
1319
|
-
readonly type: "string";
|
|
1320
|
-
readonly internalType: "string";
|
|
901
|
+
readonly type: "bytes32";
|
|
1321
902
|
}];
|
|
1322
|
-
readonly stateMutability: "view";
|
|
1323
903
|
}, {
|
|
904
|
+
readonly name: "getPool";
|
|
1324
905
|
readonly type: "function";
|
|
1325
|
-
readonly
|
|
906
|
+
readonly stateMutability: "view";
|
|
1326
907
|
readonly inputs: readonly [{
|
|
1327
|
-
readonly name: "from";
|
|
1328
908
|
readonly type: "address";
|
|
1329
|
-
readonly
|
|
909
|
+
readonly name: "userToken";
|
|
1330
910
|
}, {
|
|
1331
|
-
readonly name: "to";
|
|
1332
911
|
readonly type: "address";
|
|
1333
|
-
readonly
|
|
1334
|
-
}, {
|
|
1335
|
-
readonly name: "amount";
|
|
1336
|
-
readonly type: "uint256";
|
|
1337
|
-
readonly internalType: "uint256";
|
|
912
|
+
readonly name: "validatorToken";
|
|
1338
913
|
}];
|
|
1339
914
|
readonly outputs: readonly [{
|
|
1340
|
-
readonly
|
|
1341
|
-
readonly
|
|
1342
|
-
|
|
915
|
+
readonly type: "tuple";
|
|
916
|
+
readonly components: readonly [{
|
|
917
|
+
readonly type: "uint128";
|
|
918
|
+
readonly name: "reserveUserToken";
|
|
919
|
+
}, {
|
|
920
|
+
readonly type: "uint128";
|
|
921
|
+
readonly name: "reserveValidatorToken";
|
|
922
|
+
}];
|
|
1343
923
|
}];
|
|
1344
|
-
readonly stateMutability: "nonpayable";
|
|
1345
924
|
}, {
|
|
925
|
+
readonly name: "pools";
|
|
1346
926
|
readonly type: "function";
|
|
1347
|
-
readonly
|
|
1348
|
-
readonly inputs: readonly [
|
|
927
|
+
readonly stateMutability: "view";
|
|
928
|
+
readonly inputs: readonly [{
|
|
929
|
+
readonly type: "bytes32";
|
|
930
|
+
readonly name: "poolId";
|
|
931
|
+
}];
|
|
1349
932
|
readonly outputs: readonly [{
|
|
1350
|
-
readonly
|
|
1351
|
-
readonly
|
|
1352
|
-
|
|
933
|
+
readonly type: "tuple";
|
|
934
|
+
readonly components: readonly [{
|
|
935
|
+
readonly type: "uint128";
|
|
936
|
+
readonly name: "reserveUserToken";
|
|
937
|
+
}, {
|
|
938
|
+
readonly type: "uint128";
|
|
939
|
+
readonly name: "reserveValidatorToken";
|
|
940
|
+
}];
|
|
1353
941
|
}];
|
|
1354
|
-
readonly stateMutability: "view";
|
|
1355
942
|
}, {
|
|
943
|
+
readonly name: "mint";
|
|
1356
944
|
readonly type: "function";
|
|
1357
|
-
readonly
|
|
945
|
+
readonly stateMutability: "nonpayable";
|
|
1358
946
|
readonly inputs: readonly [{
|
|
1359
|
-
readonly name: "to";
|
|
1360
947
|
readonly type: "address";
|
|
1361
|
-
readonly
|
|
948
|
+
readonly name: "userToken";
|
|
949
|
+
}, {
|
|
950
|
+
readonly type: "address";
|
|
951
|
+
readonly name: "validatorToken";
|
|
952
|
+
}, {
|
|
953
|
+
readonly type: "uint256";
|
|
954
|
+
readonly name: "amountUserToken";
|
|
1362
955
|
}, {
|
|
1363
|
-
readonly name: "amount";
|
|
1364
956
|
readonly type: "uint256";
|
|
1365
|
-
readonly
|
|
957
|
+
readonly name: "amountValidatorToken";
|
|
958
|
+
}, {
|
|
959
|
+
readonly type: "address";
|
|
960
|
+
readonly name: "to";
|
|
1366
961
|
}];
|
|
1367
962
|
readonly outputs: readonly [{
|
|
1368
|
-
readonly
|
|
1369
|
-
readonly
|
|
1370
|
-
readonly internalType: "bool";
|
|
963
|
+
readonly type: "uint256";
|
|
964
|
+
readonly name: "liquidity";
|
|
1371
965
|
}];
|
|
1372
|
-
readonly stateMutability: "nonpayable";
|
|
1373
966
|
}, {
|
|
967
|
+
readonly name: "burn";
|
|
1374
968
|
readonly type: "function";
|
|
1375
|
-
readonly
|
|
969
|
+
readonly stateMutability: "nonpayable";
|
|
1376
970
|
readonly inputs: readonly [{
|
|
1377
|
-
readonly name: "to";
|
|
1378
971
|
readonly type: "address";
|
|
1379
|
-
readonly
|
|
972
|
+
readonly name: "userToken";
|
|
973
|
+
}, {
|
|
974
|
+
readonly type: "address";
|
|
975
|
+
readonly name: "validatorToken";
|
|
1380
976
|
}, {
|
|
1381
|
-
readonly name: "refund";
|
|
1382
977
|
readonly type: "uint256";
|
|
1383
|
-
readonly
|
|
978
|
+
readonly name: "liquidity";
|
|
979
|
+
}, {
|
|
980
|
+
readonly type: "address";
|
|
981
|
+
readonly name: "to";
|
|
982
|
+
}];
|
|
983
|
+
readonly outputs: readonly [{
|
|
984
|
+
readonly type: "uint256";
|
|
985
|
+
readonly name: "amountUserToken";
|
|
1384
986
|
}, {
|
|
1385
|
-
readonly name: "actualUsed";
|
|
1386
987
|
readonly type: "uint256";
|
|
1387
|
-
readonly
|
|
988
|
+
readonly name: "amountValidatorToken";
|
|
1388
989
|
}];
|
|
1389
|
-
readonly outputs: readonly [];
|
|
1390
|
-
readonly stateMutability: "nonpayable";
|
|
1391
990
|
}, {
|
|
991
|
+
readonly name: "totalSupply";
|
|
1392
992
|
readonly type: "function";
|
|
1393
|
-
readonly
|
|
993
|
+
readonly stateMutability: "view";
|
|
1394
994
|
readonly inputs: readonly [{
|
|
1395
|
-
readonly
|
|
1396
|
-
readonly
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
readonly name: "amount";
|
|
995
|
+
readonly type: "bytes32";
|
|
996
|
+
readonly name: "poolId";
|
|
997
|
+
}];
|
|
998
|
+
readonly outputs: readonly [{
|
|
1400
999
|
readonly type: "uint256";
|
|
1401
|
-
readonly internalType: "uint256";
|
|
1402
1000
|
}];
|
|
1403
|
-
readonly outputs: readonly [];
|
|
1404
|
-
readonly stateMutability: "nonpayable";
|
|
1405
1001
|
}, {
|
|
1002
|
+
readonly name: "liquidityBalances";
|
|
1406
1003
|
readonly type: "function";
|
|
1407
|
-
readonly
|
|
1004
|
+
readonly stateMutability: "view";
|
|
1408
1005
|
readonly inputs: readonly [{
|
|
1409
|
-
readonly
|
|
1410
|
-
readonly
|
|
1411
|
-
readonly internalType: "address";
|
|
1006
|
+
readonly type: "bytes32";
|
|
1007
|
+
readonly name: "poolId";
|
|
1412
1008
|
}, {
|
|
1413
|
-
readonly name: "to";
|
|
1414
1009
|
readonly type: "address";
|
|
1415
|
-
readonly
|
|
1416
|
-
}, {
|
|
1417
|
-
readonly name: "amount";
|
|
1418
|
-
readonly type: "uint256";
|
|
1419
|
-
readonly internalType: "uint256";
|
|
1010
|
+
readonly name: "user";
|
|
1420
1011
|
}];
|
|
1421
1012
|
readonly outputs: readonly [{
|
|
1422
|
-
readonly
|
|
1423
|
-
readonly type: "bool";
|
|
1424
|
-
readonly internalType: "bool";
|
|
1013
|
+
readonly type: "uint256";
|
|
1425
1014
|
}];
|
|
1426
|
-
readonly stateMutability: "nonpayable";
|
|
1427
1015
|
}, {
|
|
1016
|
+
readonly name: "rebalanceSwap";
|
|
1428
1017
|
readonly type: "function";
|
|
1429
|
-
readonly
|
|
1018
|
+
readonly stateMutability: "nonpayable";
|
|
1430
1019
|
readonly inputs: readonly [{
|
|
1431
|
-
readonly name: "from";
|
|
1432
1020
|
readonly type: "address";
|
|
1433
|
-
readonly
|
|
1021
|
+
readonly name: "userToken";
|
|
1434
1022
|
}, {
|
|
1435
|
-
readonly name: "to";
|
|
1436
1023
|
readonly type: "address";
|
|
1437
|
-
readonly
|
|
1024
|
+
readonly name: "validatorToken";
|
|
1438
1025
|
}, {
|
|
1439
|
-
readonly name: "amount";
|
|
1440
1026
|
readonly type: "uint256";
|
|
1441
|
-
readonly
|
|
1027
|
+
readonly name: "amountOut";
|
|
1442
1028
|
}, {
|
|
1443
|
-
readonly
|
|
1444
|
-
readonly
|
|
1445
|
-
readonly internalType: "bytes32";
|
|
1446
|
-
}];
|
|
1447
|
-
readonly outputs: readonly [{
|
|
1448
|
-
readonly name: "";
|
|
1449
|
-
readonly type: "bool";
|
|
1450
|
-
readonly internalType: "bool";
|
|
1029
|
+
readonly type: "address";
|
|
1030
|
+
readonly name: "to";
|
|
1451
1031
|
}];
|
|
1452
|
-
readonly stateMutability: "nonpayable";
|
|
1453
|
-
}, {
|
|
1454
|
-
readonly type: "function";
|
|
1455
|
-
readonly name: "transferPolicyId";
|
|
1456
|
-
readonly inputs: readonly [];
|
|
1457
1032
|
readonly outputs: readonly [{
|
|
1458
|
-
readonly
|
|
1459
|
-
readonly
|
|
1460
|
-
readonly internalType: "uint64";
|
|
1033
|
+
readonly type: "uint256";
|
|
1034
|
+
readonly name: "amountIn";
|
|
1461
1035
|
}];
|
|
1462
|
-
readonly stateMutability: "view";
|
|
1463
1036
|
}, {
|
|
1037
|
+
readonly name: "calculateLiquidity";
|
|
1464
1038
|
readonly type: "function";
|
|
1465
|
-
readonly
|
|
1039
|
+
readonly stateMutability: "pure";
|
|
1466
1040
|
readonly inputs: readonly [{
|
|
1467
|
-
readonly name: "to";
|
|
1468
|
-
readonly type: "address";
|
|
1469
|
-
readonly internalType: "address";
|
|
1470
|
-
}, {
|
|
1471
|
-
readonly name: "amount";
|
|
1472
1041
|
readonly type: "uint256";
|
|
1473
|
-
readonly
|
|
1042
|
+
readonly name: "x";
|
|
1474
1043
|
}, {
|
|
1475
|
-
readonly
|
|
1476
|
-
readonly
|
|
1477
|
-
|
|
1044
|
+
readonly type: "uint256";
|
|
1045
|
+
readonly name: "y";
|
|
1046
|
+
}];
|
|
1047
|
+
readonly outputs: readonly [{
|
|
1048
|
+
readonly type: "uint256";
|
|
1478
1049
|
}];
|
|
1479
|
-
readonly outputs: readonly [];
|
|
1480
|
-
readonly stateMutability: "nonpayable";
|
|
1481
|
-
}, {
|
|
1482
|
-
readonly type: "function";
|
|
1483
|
-
readonly name: "unpause";
|
|
1484
|
-
readonly inputs: readonly [];
|
|
1485
|
-
readonly outputs: readonly [];
|
|
1486
|
-
readonly stateMutability: "nonpayable";
|
|
1487
1050
|
}, {
|
|
1051
|
+
readonly name: "Mint";
|
|
1488
1052
|
readonly type: "event";
|
|
1489
|
-
readonly name: "Approval";
|
|
1490
1053
|
readonly inputs: readonly [{
|
|
1491
|
-
readonly name: "owner";
|
|
1492
1054
|
readonly type: "address";
|
|
1055
|
+
readonly name: "sender";
|
|
1493
1056
|
readonly indexed: true;
|
|
1494
|
-
readonly internalType: "address";
|
|
1495
1057
|
}, {
|
|
1496
|
-
readonly name: "spender";
|
|
1497
1058
|
readonly type: "address";
|
|
1059
|
+
readonly name: "userToken";
|
|
1498
1060
|
readonly indexed: true;
|
|
1499
|
-
readonly internalType: "address";
|
|
1500
1061
|
}, {
|
|
1501
|
-
readonly name: "amount";
|
|
1502
|
-
readonly type: "uint256";
|
|
1503
|
-
readonly indexed: false;
|
|
1504
|
-
readonly internalType: "uint256";
|
|
1505
|
-
}];
|
|
1506
|
-
readonly anonymous: false;
|
|
1507
|
-
}, {
|
|
1508
|
-
readonly type: "event";
|
|
1509
|
-
readonly name: "Burn";
|
|
1510
|
-
readonly inputs: readonly [{
|
|
1511
|
-
readonly name: "from";
|
|
1512
1062
|
readonly type: "address";
|
|
1063
|
+
readonly name: "validatorToken";
|
|
1513
1064
|
readonly indexed: true;
|
|
1514
|
-
readonly internalType: "address";
|
|
1515
1065
|
}, {
|
|
1516
|
-
readonly name: "amount";
|
|
1517
1066
|
readonly type: "uint256";
|
|
1518
|
-
readonly
|
|
1519
|
-
readonly internalType: "uint256";
|
|
1520
|
-
}];
|
|
1521
|
-
readonly anonymous: false;
|
|
1522
|
-
}, {
|
|
1523
|
-
readonly type: "event";
|
|
1524
|
-
readonly name: "BurnBlocked";
|
|
1525
|
-
readonly inputs: readonly [{
|
|
1526
|
-
readonly name: "from";
|
|
1527
|
-
readonly type: "address";
|
|
1528
|
-
readonly indexed: true;
|
|
1529
|
-
readonly internalType: "address";
|
|
1067
|
+
readonly name: "amountUserToken";
|
|
1530
1068
|
}, {
|
|
1531
|
-
readonly name: "amount";
|
|
1532
1069
|
readonly type: "uint256";
|
|
1533
|
-
readonly
|
|
1534
|
-
readonly internalType: "uint256";
|
|
1535
|
-
}];
|
|
1536
|
-
readonly anonymous: false;
|
|
1537
|
-
}, {
|
|
1538
|
-
readonly type: "event";
|
|
1539
|
-
readonly name: "Mint";
|
|
1540
|
-
readonly inputs: readonly [{
|
|
1541
|
-
readonly name: "to";
|
|
1542
|
-
readonly type: "address";
|
|
1543
|
-
readonly indexed: true;
|
|
1544
|
-
readonly internalType: "address";
|
|
1070
|
+
readonly name: "amountValidatorToken";
|
|
1545
1071
|
}, {
|
|
1546
|
-
readonly name: "amount";
|
|
1547
1072
|
readonly type: "uint256";
|
|
1548
|
-
readonly
|
|
1549
|
-
readonly internalType: "uint256";
|
|
1073
|
+
readonly name: "liquidity";
|
|
1550
1074
|
}];
|
|
1551
|
-
readonly anonymous: false;
|
|
1552
1075
|
}, {
|
|
1076
|
+
readonly name: "Burn";
|
|
1553
1077
|
readonly type: "event";
|
|
1554
|
-
readonly name: "PauseStateUpdate";
|
|
1555
1078
|
readonly inputs: readonly [{
|
|
1556
|
-
readonly name: "updater";
|
|
1557
1079
|
readonly type: "address";
|
|
1080
|
+
readonly name: "sender";
|
|
1558
1081
|
readonly indexed: true;
|
|
1559
|
-
readonly internalType: "address";
|
|
1560
1082
|
}, {
|
|
1561
|
-
readonly
|
|
1562
|
-
readonly
|
|
1563
|
-
readonly indexed: false;
|
|
1564
|
-
readonly internalType: "bool";
|
|
1565
|
-
}];
|
|
1566
|
-
readonly anonymous: false;
|
|
1567
|
-
}, {
|
|
1568
|
-
readonly type: "event";
|
|
1569
|
-
readonly name: "RoleAdminUpdated";
|
|
1570
|
-
readonly inputs: readonly [{
|
|
1571
|
-
readonly name: "role";
|
|
1572
|
-
readonly type: "bytes32";
|
|
1083
|
+
readonly type: "address";
|
|
1084
|
+
readonly name: "userToken";
|
|
1573
1085
|
readonly indexed: true;
|
|
1574
|
-
readonly internalType: "bytes32";
|
|
1575
1086
|
}, {
|
|
1576
|
-
readonly
|
|
1577
|
-
readonly
|
|
1087
|
+
readonly type: "address";
|
|
1088
|
+
readonly name: "validatorToken";
|
|
1578
1089
|
readonly indexed: true;
|
|
1579
|
-
readonly internalType: "bytes32";
|
|
1580
1090
|
}, {
|
|
1581
|
-
readonly
|
|
1091
|
+
readonly type: "uint256";
|
|
1092
|
+
readonly name: "amountUserToken";
|
|
1093
|
+
}, {
|
|
1094
|
+
readonly type: "uint256";
|
|
1095
|
+
readonly name: "amountValidatorToken";
|
|
1096
|
+
}, {
|
|
1097
|
+
readonly type: "uint256";
|
|
1098
|
+
readonly name: "liquidity";
|
|
1099
|
+
}, {
|
|
1582
1100
|
readonly type: "address";
|
|
1583
|
-
readonly
|
|
1584
|
-
readonly internalType: "address";
|
|
1101
|
+
readonly name: "to";
|
|
1585
1102
|
}];
|
|
1586
|
-
readonly anonymous: false;
|
|
1587
1103
|
}, {
|
|
1104
|
+
readonly name: "RebalanceSwap";
|
|
1588
1105
|
readonly type: "event";
|
|
1589
|
-
readonly name: "RoleMembershipUpdated";
|
|
1590
1106
|
readonly inputs: readonly [{
|
|
1591
|
-
readonly name: "role";
|
|
1592
|
-
readonly type: "bytes32";
|
|
1593
|
-
readonly indexed: true;
|
|
1594
|
-
readonly internalType: "bytes32";
|
|
1595
|
-
}, {
|
|
1596
|
-
readonly name: "account";
|
|
1597
1107
|
readonly type: "address";
|
|
1108
|
+
readonly name: "userToken";
|
|
1598
1109
|
readonly indexed: true;
|
|
1599
|
-
readonly internalType: "address";
|
|
1600
1110
|
}, {
|
|
1601
|
-
readonly name: "sender";
|
|
1602
1111
|
readonly type: "address";
|
|
1112
|
+
readonly name: "validatorToken";
|
|
1603
1113
|
readonly indexed: true;
|
|
1604
|
-
readonly internalType: "address";
|
|
1605
1114
|
}, {
|
|
1606
|
-
readonly name: "hasRole";
|
|
1607
|
-
readonly type: "bool";
|
|
1608
|
-
readonly indexed: false;
|
|
1609
|
-
readonly internalType: "bool";
|
|
1610
|
-
}];
|
|
1611
|
-
readonly anonymous: false;
|
|
1612
|
-
}, {
|
|
1613
|
-
readonly type: "event";
|
|
1614
|
-
readonly name: "SupplyCapUpdate";
|
|
1615
|
-
readonly inputs: readonly [{
|
|
1616
|
-
readonly name: "updater";
|
|
1617
1115
|
readonly type: "address";
|
|
1116
|
+
readonly name: "swapper";
|
|
1618
1117
|
readonly indexed: true;
|
|
1619
|
-
readonly internalType: "address";
|
|
1620
1118
|
}, {
|
|
1621
|
-
readonly name: "newSupplyCap";
|
|
1622
1119
|
readonly type: "uint256";
|
|
1623
|
-
readonly
|
|
1624
|
-
|
|
1120
|
+
readonly name: "amountIn";
|
|
1121
|
+
}, {
|
|
1122
|
+
readonly type: "uint256";
|
|
1123
|
+
readonly name: "amountOut";
|
|
1625
1124
|
}];
|
|
1626
|
-
readonly anonymous: false;
|
|
1627
1125
|
}, {
|
|
1126
|
+
readonly name: "FeeSwap";
|
|
1628
1127
|
readonly type: "event";
|
|
1629
|
-
readonly name: "Transfer";
|
|
1630
1128
|
readonly inputs: readonly [{
|
|
1631
|
-
readonly name: "from";
|
|
1632
1129
|
readonly type: "address";
|
|
1130
|
+
readonly name: "userToken";
|
|
1633
1131
|
readonly indexed: true;
|
|
1634
|
-
readonly internalType: "address";
|
|
1635
1132
|
}, {
|
|
1636
|
-
readonly name: "to";
|
|
1637
1133
|
readonly type: "address";
|
|
1134
|
+
readonly name: "validatorToken";
|
|
1638
1135
|
readonly indexed: true;
|
|
1639
|
-
readonly internalType: "address";
|
|
1640
1136
|
}, {
|
|
1641
|
-
readonly name: "amount";
|
|
1642
1137
|
readonly type: "uint256";
|
|
1643
|
-
readonly
|
|
1644
|
-
readonly internalType: "uint256";
|
|
1645
|
-
}];
|
|
1646
|
-
readonly anonymous: false;
|
|
1647
|
-
}, {
|
|
1648
|
-
readonly type: "event";
|
|
1649
|
-
readonly name: "TransferPolicyUpdate";
|
|
1650
|
-
readonly inputs: readonly [{
|
|
1651
|
-
readonly name: "updater";
|
|
1652
|
-
readonly type: "address";
|
|
1653
|
-
readonly indexed: true;
|
|
1654
|
-
readonly internalType: "address";
|
|
1138
|
+
readonly name: "amountIn";
|
|
1655
1139
|
}, {
|
|
1656
|
-
readonly
|
|
1657
|
-
readonly
|
|
1658
|
-
readonly indexed: true;
|
|
1659
|
-
readonly internalType: "uint64";
|
|
1140
|
+
readonly type: "uint256";
|
|
1141
|
+
readonly name: "amountOut";
|
|
1660
1142
|
}];
|
|
1661
|
-
readonly anonymous: false;
|
|
1662
1143
|
}, {
|
|
1663
|
-
readonly
|
|
1664
|
-
readonly
|
|
1665
|
-
readonly inputs: readonly [
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1144
|
+
readonly name: "IdenticalAddresses";
|
|
1145
|
+
readonly type: "error";
|
|
1146
|
+
readonly inputs: readonly [];
|
|
1147
|
+
}, {
|
|
1148
|
+
readonly name: "ZeroAddress";
|
|
1149
|
+
readonly type: "error";
|
|
1150
|
+
readonly inputs: readonly [];
|
|
1151
|
+
}, {
|
|
1152
|
+
readonly name: "PoolExists";
|
|
1153
|
+
readonly type: "error";
|
|
1154
|
+
readonly inputs: readonly [];
|
|
1155
|
+
}, {
|
|
1156
|
+
readonly name: "PoolDoesNotExist";
|
|
1157
|
+
readonly type: "error";
|
|
1158
|
+
readonly inputs: readonly [];
|
|
1159
|
+
}, {
|
|
1160
|
+
readonly name: "InvalidToken";
|
|
1161
|
+
readonly type: "error";
|
|
1162
|
+
readonly inputs: readonly [];
|
|
1163
|
+
}, {
|
|
1164
|
+
readonly name: "InsufficientLiquidity";
|
|
1165
|
+
readonly type: "error";
|
|
1166
|
+
readonly inputs: readonly [];
|
|
1167
|
+
}, {
|
|
1168
|
+
readonly name: "OnlyProtocol";
|
|
1169
|
+
readonly type: "error";
|
|
1170
|
+
readonly inputs: readonly [];
|
|
1171
|
+
}, {
|
|
1172
|
+
readonly name: "InsufficientPoolBalance";
|
|
1173
|
+
readonly type: "error";
|
|
1174
|
+
readonly inputs: readonly [];
|
|
1175
|
+
}, {
|
|
1176
|
+
readonly name: "InsufficientReserves";
|
|
1177
|
+
readonly type: "error";
|
|
1178
|
+
readonly inputs: readonly [];
|
|
1179
|
+
}, {
|
|
1180
|
+
readonly name: "InsufficientLiquidityBalance";
|
|
1181
|
+
readonly type: "error";
|
|
1182
|
+
readonly inputs: readonly [];
|
|
1183
|
+
}, {
|
|
1184
|
+
readonly name: "MustDepositLowerBalanceToken";
|
|
1185
|
+
readonly type: "error";
|
|
1186
|
+
readonly inputs: readonly [];
|
|
1687
1187
|
}, {
|
|
1188
|
+
readonly name: "InvalidAmount";
|
|
1688
1189
|
readonly type: "error";
|
|
1689
|
-
readonly name: "ContractPaused";
|
|
1690
1190
|
readonly inputs: readonly [];
|
|
1691
1191
|
}, {
|
|
1192
|
+
readonly name: "InvalidRebalanceState";
|
|
1692
1193
|
readonly type: "error";
|
|
1693
|
-
readonly name: "Expired";
|
|
1694
1194
|
readonly inputs: readonly [];
|
|
1695
1195
|
}, {
|
|
1196
|
+
readonly name: "InvalidRebalanceDirection";
|
|
1696
1197
|
readonly type: "error";
|
|
1697
|
-
readonly name: "InsufficientAllowance";
|
|
1698
1198
|
readonly inputs: readonly [];
|
|
1699
1199
|
}, {
|
|
1200
|
+
readonly name: "InvalidNewReserves";
|
|
1700
1201
|
readonly type: "error";
|
|
1701
|
-
readonly name: "InsufficientBalance";
|
|
1702
1202
|
readonly inputs: readonly [];
|
|
1703
1203
|
}, {
|
|
1204
|
+
readonly name: "CannotSupportPendingSwaps";
|
|
1704
1205
|
readonly type: "error";
|
|
1705
|
-
readonly name: "InvalidCurrency";
|
|
1706
1206
|
readonly inputs: readonly [];
|
|
1707
1207
|
}, {
|
|
1208
|
+
readonly name: "DivisionByZero";
|
|
1708
1209
|
readonly type: "error";
|
|
1709
|
-
readonly name: "InvalidRecipient";
|
|
1710
1210
|
readonly inputs: readonly [];
|
|
1711
1211
|
}, {
|
|
1212
|
+
readonly name: "InvalidSwapCalculation";
|
|
1712
1213
|
readonly type: "error";
|
|
1713
|
-
readonly name: "InvalidSignature";
|
|
1714
1214
|
readonly inputs: readonly [];
|
|
1715
1215
|
}, {
|
|
1216
|
+
readonly name: "InsufficientLiquidityForPending";
|
|
1716
1217
|
readonly type: "error";
|
|
1717
|
-
readonly name: "PolicyForbids";
|
|
1718
1218
|
readonly inputs: readonly [];
|
|
1719
1219
|
}, {
|
|
1220
|
+
readonly name: "TokenTransferFailed";
|
|
1720
1221
|
readonly type: "error";
|
|
1721
|
-
readonly name: "SupplyCapExceeded";
|
|
1722
1222
|
readonly inputs: readonly [];
|
|
1723
1223
|
}, {
|
|
1224
|
+
readonly name: "InternalError";
|
|
1724
1225
|
readonly type: "error";
|
|
1725
|
-
readonly name: "Unauthorized";
|
|
1726
1226
|
readonly inputs: readonly [];
|
|
1727
1227
|
}];
|
|
1728
|
-
export declare const
|
|
1228
|
+
export declare const feeManagerAbi: readonly [{
|
|
1229
|
+
readonly name: "BASIS_POINTS";
|
|
1729
1230
|
readonly type: "function";
|
|
1730
|
-
readonly
|
|
1731
|
-
readonly inputs: readonly [
|
|
1732
|
-
readonly name: "name";
|
|
1733
|
-
readonly type: "string";
|
|
1734
|
-
readonly internalType: "string";
|
|
1735
|
-
}, {
|
|
1736
|
-
readonly name: "symbol";
|
|
1737
|
-
readonly type: "string";
|
|
1738
|
-
readonly internalType: "string";
|
|
1739
|
-
}, {
|
|
1740
|
-
readonly name: "currency";
|
|
1741
|
-
readonly type: "string";
|
|
1742
|
-
readonly internalType: "string";
|
|
1743
|
-
}, {
|
|
1744
|
-
readonly name: "admin";
|
|
1745
|
-
readonly type: "address";
|
|
1746
|
-
readonly internalType: "address";
|
|
1747
|
-
}];
|
|
1231
|
+
readonly stateMutability: "pure";
|
|
1232
|
+
readonly inputs: readonly [];
|
|
1748
1233
|
readonly outputs: readonly [{
|
|
1749
|
-
readonly
|
|
1750
|
-
readonly type: "address";
|
|
1751
|
-
readonly internalType: "address";
|
|
1234
|
+
readonly type: "uint256";
|
|
1752
1235
|
}];
|
|
1753
|
-
readonly stateMutability: "nonpayable";
|
|
1754
1236
|
}, {
|
|
1237
|
+
readonly name: "FEE_BPS";
|
|
1755
1238
|
readonly type: "function";
|
|
1756
|
-
readonly
|
|
1239
|
+
readonly stateMutability: "pure";
|
|
1757
1240
|
readonly inputs: readonly [];
|
|
1758
1241
|
readonly outputs: readonly [{
|
|
1759
|
-
readonly name: "";
|
|
1760
1242
|
readonly type: "uint256";
|
|
1761
|
-
readonly internalType: "uint256";
|
|
1762
1243
|
}];
|
|
1763
|
-
readonly stateMutability: "view";
|
|
1764
1244
|
}, {
|
|
1765
|
-
readonly
|
|
1766
|
-
readonly name: "TokenCreated";
|
|
1767
|
-
readonly inputs: readonly [{
|
|
1768
|
-
readonly name: "token";
|
|
1769
|
-
readonly type: "address";
|
|
1770
|
-
readonly indexed: true;
|
|
1771
|
-
readonly internalType: "address";
|
|
1772
|
-
}, {
|
|
1773
|
-
readonly name: "tokenId";
|
|
1774
|
-
readonly type: "uint256";
|
|
1775
|
-
readonly indexed: true;
|
|
1776
|
-
readonly internalType: "uint256";
|
|
1777
|
-
}, {
|
|
1778
|
-
readonly name: "name";
|
|
1779
|
-
readonly type: "string";
|
|
1780
|
-
readonly indexed: false;
|
|
1781
|
-
readonly internalType: "string";
|
|
1782
|
-
}, {
|
|
1783
|
-
readonly name: "symbol";
|
|
1784
|
-
readonly type: "string";
|
|
1785
|
-
readonly indexed: false;
|
|
1786
|
-
readonly internalType: "string";
|
|
1787
|
-
}, {
|
|
1788
|
-
readonly name: "currency";
|
|
1789
|
-
readonly type: "string";
|
|
1790
|
-
readonly indexed: false;
|
|
1791
|
-
readonly internalType: "string";
|
|
1792
|
-
}, {
|
|
1793
|
-
readonly name: "admin";
|
|
1794
|
-
readonly type: "address";
|
|
1795
|
-
readonly indexed: false;
|
|
1796
|
-
readonly internalType: "address";
|
|
1797
|
-
}];
|
|
1798
|
-
readonly anonymous: false;
|
|
1799
|
-
}];
|
|
1800
|
-
export declare const tip4217RegistryAbi: readonly [{
|
|
1245
|
+
readonly name: "userTokens";
|
|
1801
1246
|
readonly type: "function";
|
|
1802
|
-
readonly name: "getCurrencyDecimals";
|
|
1803
|
-
readonly inputs: readonly [{
|
|
1804
|
-
readonly name: "currency";
|
|
1805
|
-
readonly type: "string";
|
|
1806
|
-
readonly internalType: "string";
|
|
1807
|
-
}];
|
|
1808
|
-
readonly outputs: readonly [{
|
|
1809
|
-
readonly name: "";
|
|
1810
|
-
readonly type: "uint8";
|
|
1811
|
-
readonly internalType: "uint8";
|
|
1812
|
-
}];
|
|
1813
1247
|
readonly stateMutability: "view";
|
|
1814
|
-
}];
|
|
1815
|
-
export declare const tip403RegistryAbi: readonly [{
|
|
1816
|
-
readonly type: "function";
|
|
1817
|
-
readonly name: "createPolicy";
|
|
1818
1248
|
readonly inputs: readonly [{
|
|
1819
|
-
readonly name: "admin";
|
|
1820
1249
|
readonly type: "address";
|
|
1821
|
-
readonly
|
|
1822
|
-
}, {
|
|
1823
|
-
readonly name: "policyType";
|
|
1824
|
-
readonly type: "uint8";
|
|
1825
|
-
readonly internalType: "enum TIP403Registry.PolicyType";
|
|
1826
|
-
}, {
|
|
1827
|
-
readonly name: "accounts";
|
|
1828
|
-
readonly type: "address[]";
|
|
1829
|
-
readonly internalType: "address[]";
|
|
1250
|
+
readonly name: "user";
|
|
1830
1251
|
}];
|
|
1831
1252
|
readonly outputs: readonly [{
|
|
1832
|
-
readonly name: "newPolicyId";
|
|
1833
|
-
readonly type: "uint64";
|
|
1834
|
-
readonly internalType: "uint64";
|
|
1835
|
-
}];
|
|
1836
|
-
readonly stateMutability: "nonpayable";
|
|
1837
|
-
}, {
|
|
1838
|
-
readonly type: "function";
|
|
1839
|
-
readonly name: "createPolicy";
|
|
1840
|
-
readonly inputs: readonly [{
|
|
1841
|
-
readonly name: "admin";
|
|
1842
1253
|
readonly type: "address";
|
|
1843
|
-
readonly internalType: "address";
|
|
1844
|
-
}, {
|
|
1845
|
-
readonly name: "policyType";
|
|
1846
|
-
readonly type: "uint8";
|
|
1847
|
-
readonly internalType: "enum TIP403Registry.PolicyType";
|
|
1848
|
-
}];
|
|
1849
|
-
readonly outputs: readonly [{
|
|
1850
|
-
readonly name: "newPolicyId";
|
|
1851
|
-
readonly type: "uint64";
|
|
1852
|
-
readonly internalType: "uint64";
|
|
1853
1254
|
}];
|
|
1854
|
-
readonly stateMutability: "nonpayable";
|
|
1855
1255
|
}, {
|
|
1256
|
+
readonly name: "validatorTokens";
|
|
1856
1257
|
readonly type: "function";
|
|
1857
|
-
readonly
|
|
1258
|
+
readonly stateMutability: "view";
|
|
1858
1259
|
readonly inputs: readonly [{
|
|
1859
|
-
readonly name: "policyId";
|
|
1860
|
-
readonly type: "uint64";
|
|
1861
|
-
readonly internalType: "uint64";
|
|
1862
|
-
}, {
|
|
1863
|
-
readonly name: "user";
|
|
1864
1260
|
readonly type: "address";
|
|
1865
|
-
readonly
|
|
1261
|
+
readonly name: "validator";
|
|
1866
1262
|
}];
|
|
1867
1263
|
readonly outputs: readonly [{
|
|
1868
|
-
readonly
|
|
1869
|
-
readonly type: "bool";
|
|
1870
|
-
readonly internalType: "bool";
|
|
1264
|
+
readonly type: "address";
|
|
1871
1265
|
}];
|
|
1872
|
-
readonly stateMutability: "view";
|
|
1873
1266
|
}, {
|
|
1267
|
+
readonly name: "setUserToken";
|
|
1874
1268
|
readonly type: "function";
|
|
1875
|
-
readonly
|
|
1269
|
+
readonly stateMutability: "nonpayable";
|
|
1876
1270
|
readonly inputs: readonly [{
|
|
1877
|
-
readonly name: "policyId";
|
|
1878
|
-
readonly type: "uint64";
|
|
1879
|
-
readonly internalType: "uint64";
|
|
1880
|
-
}, {
|
|
1881
|
-
readonly name: "account";
|
|
1882
1271
|
readonly type: "address";
|
|
1883
|
-
readonly
|
|
1884
|
-
}, {
|
|
1885
|
-
readonly name: "restricted";
|
|
1886
|
-
readonly type: "bool";
|
|
1887
|
-
readonly internalType: "bool";
|
|
1272
|
+
readonly name: "token";
|
|
1888
1273
|
}];
|
|
1889
1274
|
readonly outputs: readonly [];
|
|
1890
|
-
readonly stateMutability: "nonpayable";
|
|
1891
1275
|
}, {
|
|
1276
|
+
readonly name: "setValidatorToken";
|
|
1892
1277
|
readonly type: "function";
|
|
1893
|
-
readonly
|
|
1278
|
+
readonly stateMutability: "nonpayable";
|
|
1894
1279
|
readonly inputs: readonly [{
|
|
1895
|
-
readonly name: "policyId";
|
|
1896
|
-
readonly type: "uint64";
|
|
1897
|
-
readonly internalType: "uint64";
|
|
1898
|
-
}, {
|
|
1899
|
-
readonly name: "account";
|
|
1900
1280
|
readonly type: "address";
|
|
1901
|
-
readonly
|
|
1902
|
-
}, {
|
|
1903
|
-
readonly name: "allowed";
|
|
1904
|
-
readonly type: "bool";
|
|
1905
|
-
readonly internalType: "bool";
|
|
1281
|
+
readonly name: "token";
|
|
1906
1282
|
}];
|
|
1907
1283
|
readonly outputs: readonly [];
|
|
1908
|
-
readonly stateMutability: "nonpayable";
|
|
1909
1284
|
}, {
|
|
1285
|
+
readonly name: "getFeeTokenBalance";
|
|
1910
1286
|
readonly type: "function";
|
|
1911
|
-
readonly
|
|
1287
|
+
readonly stateMutability: "view";
|
|
1912
1288
|
readonly inputs: readonly [{
|
|
1913
|
-
readonly
|
|
1914
|
-
readonly
|
|
1915
|
-
readonly internalType: "uint64";
|
|
1916
|
-
}];
|
|
1917
|
-
readonly outputs: readonly [{
|
|
1918
|
-
readonly name: "policyType";
|
|
1919
|
-
readonly type: "uint8";
|
|
1920
|
-
readonly internalType: "enum TIP403Registry.PolicyType";
|
|
1289
|
+
readonly type: "address";
|
|
1290
|
+
readonly name: "sender";
|
|
1921
1291
|
}, {
|
|
1922
|
-
readonly name: "admin";
|
|
1923
1292
|
readonly type: "address";
|
|
1924
|
-
readonly
|
|
1293
|
+
readonly name: "validator";
|
|
1925
1294
|
}];
|
|
1926
|
-
readonly stateMutability: "view";
|
|
1927
|
-
}, {
|
|
1928
|
-
readonly type: "function";
|
|
1929
|
-
readonly name: "policyIdCounter";
|
|
1930
|
-
readonly inputs: readonly [];
|
|
1931
1295
|
readonly outputs: readonly [{
|
|
1932
|
-
readonly
|
|
1933
|
-
|
|
1934
|
-
readonly
|
|
1296
|
+
readonly type: "address";
|
|
1297
|
+
}, {
|
|
1298
|
+
readonly type: "uint256";
|
|
1935
1299
|
}];
|
|
1936
|
-
readonly stateMutability: "view";
|
|
1937
1300
|
}, {
|
|
1301
|
+
readonly name: "executeBlock";
|
|
1938
1302
|
readonly type: "function";
|
|
1939
|
-
readonly name: "setPolicyAdmin";
|
|
1940
|
-
readonly inputs: readonly [{
|
|
1941
|
-
readonly name: "policyId";
|
|
1942
|
-
readonly type: "uint64";
|
|
1943
|
-
readonly internalType: "uint64";
|
|
1944
|
-
}, {
|
|
1945
|
-
readonly name: "admin";
|
|
1946
|
-
readonly type: "address";
|
|
1947
|
-
readonly internalType: "address";
|
|
1948
|
-
}];
|
|
1949
|
-
readonly outputs: readonly [];
|
|
1950
1303
|
readonly stateMutability: "nonpayable";
|
|
1304
|
+
readonly inputs: readonly [];
|
|
1305
|
+
readonly outputs: readonly [];
|
|
1951
1306
|
}, {
|
|
1307
|
+
readonly name: "UserTokenSet";
|
|
1952
1308
|
readonly type: "event";
|
|
1953
|
-
readonly name: "BlacklistUpdated";
|
|
1954
1309
|
readonly inputs: readonly [{
|
|
1955
|
-
readonly name: "policyId";
|
|
1956
|
-
readonly type: "uint64";
|
|
1957
|
-
readonly indexed: true;
|
|
1958
|
-
readonly internalType: "uint64";
|
|
1959
|
-
}, {
|
|
1960
|
-
readonly name: "updater";
|
|
1961
1310
|
readonly type: "address";
|
|
1311
|
+
readonly name: "user";
|
|
1962
1312
|
readonly indexed: true;
|
|
1963
|
-
readonly internalType: "address";
|
|
1964
1313
|
}, {
|
|
1965
|
-
readonly name: "account";
|
|
1966
1314
|
readonly type: "address";
|
|
1315
|
+
readonly name: "token";
|
|
1967
1316
|
readonly indexed: true;
|
|
1968
|
-
readonly internalType: "address";
|
|
1969
|
-
}, {
|
|
1970
|
-
readonly name: "restricted";
|
|
1971
|
-
readonly type: "bool";
|
|
1972
|
-
readonly indexed: false;
|
|
1973
|
-
readonly internalType: "bool";
|
|
1974
1317
|
}];
|
|
1975
|
-
readonly anonymous: false;
|
|
1976
1318
|
}, {
|
|
1319
|
+
readonly name: "ValidatorTokenSet";
|
|
1977
1320
|
readonly type: "event";
|
|
1978
|
-
readonly name: "PolicyAdminUpdated";
|
|
1979
1321
|
readonly inputs: readonly [{
|
|
1980
|
-
readonly name: "policyId";
|
|
1981
|
-
readonly type: "uint64";
|
|
1982
|
-
readonly indexed: true;
|
|
1983
|
-
readonly internalType: "uint64";
|
|
1984
|
-
}, {
|
|
1985
|
-
readonly name: "updater";
|
|
1986
1322
|
readonly type: "address";
|
|
1323
|
+
readonly name: "validator";
|
|
1987
1324
|
readonly indexed: true;
|
|
1988
|
-
readonly internalType: "address";
|
|
1989
1325
|
}, {
|
|
1990
|
-
readonly name: "admin";
|
|
1991
1326
|
readonly type: "address";
|
|
1327
|
+
readonly name: "token";
|
|
1992
1328
|
readonly indexed: true;
|
|
1993
|
-
readonly internalType: "address";
|
|
1994
1329
|
}];
|
|
1995
|
-
readonly anonymous: false;
|
|
1996
1330
|
}, {
|
|
1997
|
-
readonly
|
|
1998
|
-
readonly
|
|
1999
|
-
readonly inputs: readonly [
|
|
2000
|
-
readonly name: "policyId";
|
|
2001
|
-
readonly type: "uint64";
|
|
2002
|
-
readonly indexed: true;
|
|
2003
|
-
readonly internalType: "uint64";
|
|
2004
|
-
}, {
|
|
2005
|
-
readonly name: "updater";
|
|
2006
|
-
readonly type: "address";
|
|
2007
|
-
readonly indexed: true;
|
|
2008
|
-
readonly internalType: "address";
|
|
2009
|
-
}, {
|
|
2010
|
-
readonly name: "policyType";
|
|
2011
|
-
readonly type: "uint8";
|
|
2012
|
-
readonly indexed: false;
|
|
2013
|
-
readonly internalType: "enum TIP403Registry.PolicyType";
|
|
2014
|
-
}];
|
|
2015
|
-
readonly anonymous: false;
|
|
1331
|
+
readonly name: "OnlyValidator";
|
|
1332
|
+
readonly type: "error";
|
|
1333
|
+
readonly inputs: readonly [];
|
|
2016
1334
|
}, {
|
|
2017
|
-
readonly
|
|
2018
|
-
readonly
|
|
2019
|
-
readonly inputs: readonly [
|
|
2020
|
-
readonly name: "policyId";
|
|
2021
|
-
readonly type: "uint64";
|
|
2022
|
-
readonly indexed: true;
|
|
2023
|
-
readonly internalType: "uint64";
|
|
2024
|
-
}, {
|
|
2025
|
-
readonly name: "updater";
|
|
2026
|
-
readonly type: "address";
|
|
2027
|
-
readonly indexed: true;
|
|
2028
|
-
readonly internalType: "address";
|
|
2029
|
-
}, {
|
|
2030
|
-
readonly name: "account";
|
|
2031
|
-
readonly type: "address";
|
|
2032
|
-
readonly indexed: true;
|
|
2033
|
-
readonly internalType: "address";
|
|
2034
|
-
}, {
|
|
2035
|
-
readonly name: "allowed";
|
|
2036
|
-
readonly type: "bool";
|
|
2037
|
-
readonly indexed: false;
|
|
2038
|
-
readonly internalType: "bool";
|
|
2039
|
-
}];
|
|
2040
|
-
readonly anonymous: false;
|
|
1335
|
+
readonly name: "OnlySystemContract";
|
|
1336
|
+
readonly type: "error";
|
|
1337
|
+
readonly inputs: readonly [];
|
|
2041
1338
|
}, {
|
|
1339
|
+
readonly name: "InvalidToken";
|
|
2042
1340
|
readonly type: "error";
|
|
2043
|
-
readonly name: "ArrayLengthMismatch";
|
|
2044
1341
|
readonly inputs: readonly [];
|
|
2045
1342
|
}, {
|
|
1343
|
+
readonly name: "PoolDoesNotExist";
|
|
2046
1344
|
readonly type: "error";
|
|
2047
|
-
readonly name: "IncompatiblePolicyType";
|
|
2048
1345
|
readonly inputs: readonly [];
|
|
2049
1346
|
}, {
|
|
1347
|
+
readonly name: "InsufficientLiquidity";
|
|
2050
1348
|
readonly type: "error";
|
|
2051
|
-
readonly name: "PolicyDoesNotExist";
|
|
2052
1349
|
readonly inputs: readonly [];
|
|
2053
1350
|
}, {
|
|
1351
|
+
readonly name: "InsufficientFeeTokenBalance";
|
|
1352
|
+
readonly type: "error";
|
|
1353
|
+
readonly inputs: readonly [];
|
|
1354
|
+
}, {
|
|
1355
|
+
readonly name: "InternalError";
|
|
1356
|
+
readonly type: "error";
|
|
1357
|
+
readonly inputs: readonly [];
|
|
1358
|
+
}, {
|
|
1359
|
+
readonly name: "CannotChangeWithinBlock";
|
|
1360
|
+
readonly type: "error";
|
|
1361
|
+
readonly inputs: readonly [];
|
|
1362
|
+
}, {
|
|
1363
|
+
readonly name: "TokenPolicyForbids";
|
|
2054
1364
|
readonly type: "error";
|
|
2055
|
-
readonly name: "Unauthorized";
|
|
2056
1365
|
readonly inputs: readonly [];
|
|
2057
1366
|
}];
|
|
2058
1367
|
//# sourceMappingURL=abis.d.ts.map
|