@instadapp/interop-x 0.0.0-dev.92afe89 → 0.0.0-dev.f78418c
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/interop-x +1 -1
- package/dist/abi/erc20.json +350 -0
- package/dist/abi/gnosisSafe.json +747 -0
- package/dist/abi/index.js +15 -0
- package/dist/abi/interopBridgeToken.json +286 -0
- package/dist/abi/interopXGateway.json +184 -0
- package/dist/config/index.js +1 -1
- package/dist/constants/addresses.js +18 -3
- package/dist/constants/index.js +1 -0
- package/dist/constants/tokens.js +107 -0
- package/dist/db/models/index.js +1 -1
- package/dist/db/models/transaction.js +52 -0
- package/dist/index.js +14 -5
- package/dist/net/peer/index.js +5 -5
- package/dist/net/pool/index.js +2 -2
- package/dist/net/protocol/dial/BaseDialProtocol.js +1 -1
- package/dist/net/protocol/dial/SignatureDialProtocol.js +11 -13
- package/dist/net/protocol/index.js +3 -3
- package/dist/tasks/BaseTask.js +2 -2
- package/dist/tasks/InteropXGateway/SyncDepositEvents.js +79 -0
- package/dist/tasks/index.js +9 -1
- package/dist/typechain/Erc20.js +2 -0
- package/dist/typechain/GnosisSafe.js +2 -0
- package/dist/typechain/InteropBridgeToken.js +2 -0
- package/dist/typechain/InteropXGateway.js +2 -0
- package/dist/typechain/common.js +2 -0
- package/dist/typechain/factories/Erc20__factory.js +367 -0
- package/dist/typechain/factories/GnosisSafe__factory.js +1174 -0
- package/dist/typechain/factories/InteropBridgeToken__factory.js +459 -0
- package/dist/typechain/factories/InteropXGateway__factory.js +265 -0
- package/dist/typechain/factories/index.js +14 -0
- package/dist/typechain/index.js +35 -0
- package/dist/utils/index.js +14 -2
- package/package.json +23 -3
- package/src/abi/erc20.json +350 -0
- package/src/abi/gnosisSafe.json +747 -0
- package/src/abi/index.ts +11 -0
- package/src/abi/interopBridgeToken.json +286 -0
- package/src/abi/interopXGateway.json +184 -0
- package/src/config/index.ts +1 -1
- package/src/constants/addresses.ts +18 -3
- package/src/constants/index.ts +1 -0
- package/src/constants/tokens.ts +104 -0
- package/src/db/index.ts +1 -1
- package/src/db/models/index.ts +1 -1
- package/src/db/models/transaction.ts +92 -0
- package/src/index.ts +16 -5
- package/src/net/peer/index.ts +3 -3
- package/src/net/pool/index.ts +2 -2
- package/src/net/protocol/dial/BaseDialProtocol.ts +1 -1
- package/src/net/protocol/dial/SignatureDialProtocol.ts +13 -16
- package/src/net/protocol/index.ts +3 -3
- package/src/tasks/BaseTask.ts +2 -3
- package/src/tasks/InteropXGateway/SyncDepositEvents.ts +114 -0
- package/src/tasks/index.ts +4 -1
- package/src/typechain/Erc20.ts +491 -0
- package/src/typechain/GnosisSafe.ts +1728 -0
- package/src/typechain/InteropBridgeToken.ts +686 -0
- package/src/typechain/InteropXGateway.ts +407 -0
- package/src/typechain/common.ts +44 -0
- package/src/typechain/factories/Erc20__factory.ts +368 -0
- package/src/typechain/factories/GnosisSafe__factory.ts +1178 -0
- package/src/typechain/factories/InteropBridgeToken__factory.ts +466 -0
- package/src/typechain/factories/InteropXGateway__factory.ts +272 -0
- package/src/typechain/factories/index.ts +7 -0
- package/src/typechain/index.ts +12 -0
- package/src/types.ts +2 -2
- package/src/utils/index.ts +15 -2
- package/tsconfig.json +3 -0
- package/dist/db/models/execution.js +0 -38
- package/src/db/models/execution.ts +0 -57
@@ -0,0 +1,367 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
3
|
+
/* tslint:disable */
|
4
|
+
/* eslint-disable */
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.Erc20__factory = void 0;
|
7
|
+
const ethers_1 = require("ethers");
|
8
|
+
const _abi = [
|
9
|
+
{
|
10
|
+
inputs: [
|
11
|
+
{
|
12
|
+
internalType: "uint256",
|
13
|
+
name: "_totalSupply",
|
14
|
+
type: "uint256",
|
15
|
+
},
|
16
|
+
],
|
17
|
+
payable: false,
|
18
|
+
stateMutability: "nonpayable",
|
19
|
+
type: "constructor",
|
20
|
+
},
|
21
|
+
{
|
22
|
+
anonymous: false,
|
23
|
+
inputs: [
|
24
|
+
{
|
25
|
+
indexed: true,
|
26
|
+
internalType: "address",
|
27
|
+
name: "owner",
|
28
|
+
type: "address",
|
29
|
+
},
|
30
|
+
{
|
31
|
+
indexed: true,
|
32
|
+
internalType: "address",
|
33
|
+
name: "spender",
|
34
|
+
type: "address",
|
35
|
+
},
|
36
|
+
{
|
37
|
+
indexed: false,
|
38
|
+
internalType: "uint256",
|
39
|
+
name: "value",
|
40
|
+
type: "uint256",
|
41
|
+
},
|
42
|
+
],
|
43
|
+
name: "Approval",
|
44
|
+
type: "event",
|
45
|
+
},
|
46
|
+
{
|
47
|
+
anonymous: false,
|
48
|
+
inputs: [
|
49
|
+
{
|
50
|
+
indexed: true,
|
51
|
+
internalType: "address",
|
52
|
+
name: "from",
|
53
|
+
type: "address",
|
54
|
+
},
|
55
|
+
{
|
56
|
+
indexed: true,
|
57
|
+
internalType: "address",
|
58
|
+
name: "to",
|
59
|
+
type: "address",
|
60
|
+
},
|
61
|
+
{
|
62
|
+
indexed: false,
|
63
|
+
internalType: "uint256",
|
64
|
+
name: "value",
|
65
|
+
type: "uint256",
|
66
|
+
},
|
67
|
+
],
|
68
|
+
name: "Transfer",
|
69
|
+
type: "event",
|
70
|
+
},
|
71
|
+
{
|
72
|
+
constant: true,
|
73
|
+
inputs: [],
|
74
|
+
name: "DOMAIN_SEPARATOR",
|
75
|
+
outputs: [
|
76
|
+
{
|
77
|
+
internalType: "bytes32",
|
78
|
+
name: "",
|
79
|
+
type: "bytes32",
|
80
|
+
},
|
81
|
+
],
|
82
|
+
payable: false,
|
83
|
+
stateMutability: "view",
|
84
|
+
type: "function",
|
85
|
+
},
|
86
|
+
{
|
87
|
+
constant: true,
|
88
|
+
inputs: [],
|
89
|
+
name: "PERMIT_TYPEHASH",
|
90
|
+
outputs: [
|
91
|
+
{
|
92
|
+
internalType: "bytes32",
|
93
|
+
name: "",
|
94
|
+
type: "bytes32",
|
95
|
+
},
|
96
|
+
],
|
97
|
+
payable: false,
|
98
|
+
stateMutability: "view",
|
99
|
+
type: "function",
|
100
|
+
},
|
101
|
+
{
|
102
|
+
constant: true,
|
103
|
+
inputs: [
|
104
|
+
{
|
105
|
+
internalType: "address",
|
106
|
+
name: "",
|
107
|
+
type: "address",
|
108
|
+
},
|
109
|
+
{
|
110
|
+
internalType: "address",
|
111
|
+
name: "",
|
112
|
+
type: "address",
|
113
|
+
},
|
114
|
+
],
|
115
|
+
name: "allowance",
|
116
|
+
outputs: [
|
117
|
+
{
|
118
|
+
internalType: "uint256",
|
119
|
+
name: "",
|
120
|
+
type: "uint256",
|
121
|
+
},
|
122
|
+
],
|
123
|
+
payable: false,
|
124
|
+
stateMutability: "view",
|
125
|
+
type: "function",
|
126
|
+
},
|
127
|
+
{
|
128
|
+
constant: false,
|
129
|
+
inputs: [
|
130
|
+
{
|
131
|
+
internalType: "address",
|
132
|
+
name: "spender",
|
133
|
+
type: "address",
|
134
|
+
},
|
135
|
+
{
|
136
|
+
internalType: "uint256",
|
137
|
+
name: "value",
|
138
|
+
type: "uint256",
|
139
|
+
},
|
140
|
+
],
|
141
|
+
name: "approve",
|
142
|
+
outputs: [
|
143
|
+
{
|
144
|
+
internalType: "bool",
|
145
|
+
name: "",
|
146
|
+
type: "bool",
|
147
|
+
},
|
148
|
+
],
|
149
|
+
payable: false,
|
150
|
+
stateMutability: "nonpayable",
|
151
|
+
type: "function",
|
152
|
+
},
|
153
|
+
{
|
154
|
+
constant: true,
|
155
|
+
inputs: [
|
156
|
+
{
|
157
|
+
internalType: "address",
|
158
|
+
name: "",
|
159
|
+
type: "address",
|
160
|
+
},
|
161
|
+
],
|
162
|
+
name: "balanceOf",
|
163
|
+
outputs: [
|
164
|
+
{
|
165
|
+
internalType: "uint256",
|
166
|
+
name: "",
|
167
|
+
type: "uint256",
|
168
|
+
},
|
169
|
+
],
|
170
|
+
payable: false,
|
171
|
+
stateMutability: "view",
|
172
|
+
type: "function",
|
173
|
+
},
|
174
|
+
{
|
175
|
+
constant: true,
|
176
|
+
inputs: [],
|
177
|
+
name: "decimals",
|
178
|
+
outputs: [
|
179
|
+
{
|
180
|
+
internalType: "uint8",
|
181
|
+
name: "",
|
182
|
+
type: "uint8",
|
183
|
+
},
|
184
|
+
],
|
185
|
+
payable: false,
|
186
|
+
stateMutability: "view",
|
187
|
+
type: "function",
|
188
|
+
},
|
189
|
+
{
|
190
|
+
constant: true,
|
191
|
+
inputs: [],
|
192
|
+
name: "name",
|
193
|
+
outputs: [
|
194
|
+
{
|
195
|
+
internalType: "string",
|
196
|
+
name: "",
|
197
|
+
type: "string",
|
198
|
+
},
|
199
|
+
],
|
200
|
+
payable: false,
|
201
|
+
stateMutability: "view",
|
202
|
+
type: "function",
|
203
|
+
},
|
204
|
+
{
|
205
|
+
constant: true,
|
206
|
+
inputs: [
|
207
|
+
{
|
208
|
+
internalType: "address",
|
209
|
+
name: "",
|
210
|
+
type: "address",
|
211
|
+
},
|
212
|
+
],
|
213
|
+
name: "nonces",
|
214
|
+
outputs: [
|
215
|
+
{
|
216
|
+
internalType: "uint256",
|
217
|
+
name: "",
|
218
|
+
type: "uint256",
|
219
|
+
},
|
220
|
+
],
|
221
|
+
payable: false,
|
222
|
+
stateMutability: "view",
|
223
|
+
type: "function",
|
224
|
+
},
|
225
|
+
{
|
226
|
+
constant: false,
|
227
|
+
inputs: [
|
228
|
+
{
|
229
|
+
internalType: "address",
|
230
|
+
name: "owner",
|
231
|
+
type: "address",
|
232
|
+
},
|
233
|
+
{
|
234
|
+
internalType: "address",
|
235
|
+
name: "spender",
|
236
|
+
type: "address",
|
237
|
+
},
|
238
|
+
{
|
239
|
+
internalType: "uint256",
|
240
|
+
name: "value",
|
241
|
+
type: "uint256",
|
242
|
+
},
|
243
|
+
{
|
244
|
+
internalType: "uint256",
|
245
|
+
name: "deadline",
|
246
|
+
type: "uint256",
|
247
|
+
},
|
248
|
+
{
|
249
|
+
internalType: "uint8",
|
250
|
+
name: "v",
|
251
|
+
type: "uint8",
|
252
|
+
},
|
253
|
+
{
|
254
|
+
internalType: "bytes32",
|
255
|
+
name: "r",
|
256
|
+
type: "bytes32",
|
257
|
+
},
|
258
|
+
{
|
259
|
+
internalType: "bytes32",
|
260
|
+
name: "s",
|
261
|
+
type: "bytes32",
|
262
|
+
},
|
263
|
+
],
|
264
|
+
name: "permit",
|
265
|
+
outputs: [],
|
266
|
+
payable: false,
|
267
|
+
stateMutability: "nonpayable",
|
268
|
+
type: "function",
|
269
|
+
},
|
270
|
+
{
|
271
|
+
constant: true,
|
272
|
+
inputs: [],
|
273
|
+
name: "symbol",
|
274
|
+
outputs: [
|
275
|
+
{
|
276
|
+
internalType: "string",
|
277
|
+
name: "",
|
278
|
+
type: "string",
|
279
|
+
},
|
280
|
+
],
|
281
|
+
payable: false,
|
282
|
+
stateMutability: "view",
|
283
|
+
type: "function",
|
284
|
+
},
|
285
|
+
{
|
286
|
+
constant: true,
|
287
|
+
inputs: [],
|
288
|
+
name: "totalSupply",
|
289
|
+
outputs: [
|
290
|
+
{
|
291
|
+
internalType: "uint256",
|
292
|
+
name: "",
|
293
|
+
type: "uint256",
|
294
|
+
},
|
295
|
+
],
|
296
|
+
payable: false,
|
297
|
+
stateMutability: "view",
|
298
|
+
type: "function",
|
299
|
+
},
|
300
|
+
{
|
301
|
+
constant: false,
|
302
|
+
inputs: [
|
303
|
+
{
|
304
|
+
internalType: "address",
|
305
|
+
name: "to",
|
306
|
+
type: "address",
|
307
|
+
},
|
308
|
+
{
|
309
|
+
internalType: "uint256",
|
310
|
+
name: "value",
|
311
|
+
type: "uint256",
|
312
|
+
},
|
313
|
+
],
|
314
|
+
name: "transfer",
|
315
|
+
outputs: [
|
316
|
+
{
|
317
|
+
internalType: "bool",
|
318
|
+
name: "",
|
319
|
+
type: "bool",
|
320
|
+
},
|
321
|
+
],
|
322
|
+
payable: false,
|
323
|
+
stateMutability: "nonpayable",
|
324
|
+
type: "function",
|
325
|
+
},
|
326
|
+
{
|
327
|
+
constant: false,
|
328
|
+
inputs: [
|
329
|
+
{
|
330
|
+
internalType: "address",
|
331
|
+
name: "from",
|
332
|
+
type: "address",
|
333
|
+
},
|
334
|
+
{
|
335
|
+
internalType: "address",
|
336
|
+
name: "to",
|
337
|
+
type: "address",
|
338
|
+
},
|
339
|
+
{
|
340
|
+
internalType: "uint256",
|
341
|
+
name: "value",
|
342
|
+
type: "uint256",
|
343
|
+
},
|
344
|
+
],
|
345
|
+
name: "transferFrom",
|
346
|
+
outputs: [
|
347
|
+
{
|
348
|
+
internalType: "bool",
|
349
|
+
name: "",
|
350
|
+
type: "bool",
|
351
|
+
},
|
352
|
+
],
|
353
|
+
payable: false,
|
354
|
+
stateMutability: "nonpayable",
|
355
|
+
type: "function",
|
356
|
+
},
|
357
|
+
];
|
358
|
+
class Erc20__factory {
|
359
|
+
static createInterface() {
|
360
|
+
return new ethers_1.utils.Interface(_abi);
|
361
|
+
}
|
362
|
+
static connect(address, signerOrProvider) {
|
363
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
364
|
+
}
|
365
|
+
}
|
366
|
+
exports.Erc20__factory = Erc20__factory;
|
367
|
+
Erc20__factory.abi = _abi;
|