@epoch-protocol/inventory-sdk 1.0.0
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/.github/workflows/main.yml +91 -0
- package/dist/chainlink-ops/chainlink-abi.d.ts +40 -0
- package/dist/chainlink-ops/chainlink-abi.d.ts.map +1 -0
- package/dist/chainlink-ops/chainlink-abi.js +287 -0
- package/dist/chainlink-ops/chainlink-abi.js.map +1 -0
- package/dist/chainlink-ops/index.d.ts +8 -0
- package/dist/chainlink-ops/index.d.ts.map +1 -0
- package/dist/chainlink-ops/index.js +35 -0
- package/dist/chainlink-ops/index.js.map +1 -0
- package/dist/chainlink-ops/models.d.ts +2 -0
- package/dist/chainlink-ops/models.d.ts.map +1 -0
- package/dist/chainlink-ops/models.js +3 -0
- package/dist/chainlink-ops/models.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/safe-ops/index.d.ts +20 -0
- package/dist/safe-ops/index.d.ts.map +1 -0
- package/dist/safe-ops/index.js +99 -0
- package/dist/safe-ops/index.js.map +1 -0
- package/dist/safe-ops/models.d.ts +22 -0
- package/dist/safe-ops/models.d.ts.map +1 -0
- package/dist/safe-ops/models.js +6 -0
- package/dist/safe-ops/models.js.map +1 -0
- package/dist/safe-ops/safe-abi.d.ts +43 -0
- package/dist/safe-ops/safe-abi.d.ts.map +1 -0
- package/dist/safe-ops/safe-abi.js +565 -0
- package/dist/safe-ops/safe-abi.js.map +1 -0
- package/dist/token/erc20-abi.d.ts +39 -0
- package/dist/token/erc20-abi.d.ts.map +1 -0
- package/dist/token/erc20-abi.js +226 -0
- package/dist/token/erc20-abi.js.map +1 -0
- package/dist/token/index.d.ts +9 -0
- package/dist/token/index.d.ts.map +1 -0
- package/dist/token/index.js +109 -0
- package/dist/token/index.js.map +1 -0
- package/dist/token/models.d.ts +27 -0
- package/dist/token/models.d.ts.map +1 -0
- package/dist/token/models.js +3 -0
- package/dist/token/models.js.map +1 -0
- package/package.json +22 -0
- package/src/chainlink-ops/chainlink-abi.ts +283 -0
- package/src/chainlink-ops/index.ts +53 -0
- package/src/chainlink-ops/models.ts +0 -0
- package/src/index.ts +7 -0
- package/src/safe-ops/index.ts +98 -0
- package/src/safe-ops/models.ts +23 -0
- package/src/safe-ops/safe-abi.ts +561 -0
- package/src/token/erc20-abi.ts +222 -0
- package/src/token/index.ts +126 -0
- package/src/token/models.ts +32 -0
- package/tsconfig.json +43 -0
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SAFE_ABI = void 0;
|
|
4
|
+
exports.SAFE_ABI = [
|
|
5
|
+
{ inputs: [], stateMutability: "nonpayable", type: "constructor" },
|
|
6
|
+
{
|
|
7
|
+
anonymous: false,
|
|
8
|
+
inputs: [
|
|
9
|
+
{
|
|
10
|
+
indexed: true,
|
|
11
|
+
internalType: "address",
|
|
12
|
+
name: "owner",
|
|
13
|
+
type: "address",
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
name: "AddedOwner",
|
|
17
|
+
type: "event",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
anonymous: false,
|
|
21
|
+
inputs: [
|
|
22
|
+
{
|
|
23
|
+
indexed: true,
|
|
24
|
+
internalType: "bytes32",
|
|
25
|
+
name: "approvedHash",
|
|
26
|
+
type: "bytes32",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
indexed: true,
|
|
30
|
+
internalType: "address",
|
|
31
|
+
name: "owner",
|
|
32
|
+
type: "address",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
name: "ApproveHash",
|
|
36
|
+
type: "event",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
anonymous: false,
|
|
40
|
+
inputs: [
|
|
41
|
+
{
|
|
42
|
+
indexed: true,
|
|
43
|
+
internalType: "address",
|
|
44
|
+
name: "handler",
|
|
45
|
+
type: "address",
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
name: "ChangedFallbackHandler",
|
|
49
|
+
type: "event",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
anonymous: false,
|
|
53
|
+
inputs: [
|
|
54
|
+
{
|
|
55
|
+
indexed: true,
|
|
56
|
+
internalType: "address",
|
|
57
|
+
name: "guard",
|
|
58
|
+
type: "address",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
name: "ChangedGuard",
|
|
62
|
+
type: "event",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
anonymous: false,
|
|
66
|
+
inputs: [
|
|
67
|
+
{
|
|
68
|
+
indexed: false,
|
|
69
|
+
internalType: "uint256",
|
|
70
|
+
name: "threshold",
|
|
71
|
+
type: "uint256",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
name: "ChangedThreshold",
|
|
75
|
+
type: "event",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
anonymous: false,
|
|
79
|
+
inputs: [
|
|
80
|
+
{
|
|
81
|
+
indexed: true,
|
|
82
|
+
internalType: "address",
|
|
83
|
+
name: "module",
|
|
84
|
+
type: "address",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
name: "DisabledModule",
|
|
88
|
+
type: "event",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
anonymous: false,
|
|
92
|
+
inputs: [
|
|
93
|
+
{
|
|
94
|
+
indexed: true,
|
|
95
|
+
internalType: "address",
|
|
96
|
+
name: "module",
|
|
97
|
+
type: "address",
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
name: "EnabledModule",
|
|
101
|
+
type: "event",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
anonymous: false,
|
|
105
|
+
inputs: [
|
|
106
|
+
{
|
|
107
|
+
indexed: true,
|
|
108
|
+
internalType: "bytes32",
|
|
109
|
+
name: "txHash",
|
|
110
|
+
type: "bytes32",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
indexed: false,
|
|
114
|
+
internalType: "uint256",
|
|
115
|
+
name: "payment",
|
|
116
|
+
type: "uint256",
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
name: "ExecutionFailure",
|
|
120
|
+
type: "event",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
anonymous: false,
|
|
124
|
+
inputs: [
|
|
125
|
+
{
|
|
126
|
+
indexed: true,
|
|
127
|
+
internalType: "address",
|
|
128
|
+
name: "module",
|
|
129
|
+
type: "address",
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
name: "ExecutionFromModuleFailure",
|
|
133
|
+
type: "event",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
anonymous: false,
|
|
137
|
+
inputs: [
|
|
138
|
+
{
|
|
139
|
+
indexed: true,
|
|
140
|
+
internalType: "address",
|
|
141
|
+
name: "module",
|
|
142
|
+
type: "address",
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
name: "ExecutionFromModuleSuccess",
|
|
146
|
+
type: "event",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
anonymous: false,
|
|
150
|
+
inputs: [
|
|
151
|
+
{
|
|
152
|
+
indexed: true,
|
|
153
|
+
internalType: "bytes32",
|
|
154
|
+
name: "txHash",
|
|
155
|
+
type: "bytes32",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
indexed: false,
|
|
159
|
+
internalType: "uint256",
|
|
160
|
+
name: "payment",
|
|
161
|
+
type: "uint256",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
name: "ExecutionSuccess",
|
|
165
|
+
type: "event",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
anonymous: false,
|
|
169
|
+
inputs: [
|
|
170
|
+
{
|
|
171
|
+
indexed: true,
|
|
172
|
+
internalType: "address",
|
|
173
|
+
name: "owner",
|
|
174
|
+
type: "address",
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
name: "RemovedOwner",
|
|
178
|
+
type: "event",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
anonymous: false,
|
|
182
|
+
inputs: [
|
|
183
|
+
{
|
|
184
|
+
indexed: true,
|
|
185
|
+
internalType: "address",
|
|
186
|
+
name: "sender",
|
|
187
|
+
type: "address",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
indexed: false,
|
|
191
|
+
internalType: "uint256",
|
|
192
|
+
name: "value",
|
|
193
|
+
type: "uint256",
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
name: "SafeReceived",
|
|
197
|
+
type: "event",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
anonymous: false,
|
|
201
|
+
inputs: [
|
|
202
|
+
{
|
|
203
|
+
indexed: true,
|
|
204
|
+
internalType: "address",
|
|
205
|
+
name: "initiator",
|
|
206
|
+
type: "address",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
indexed: false,
|
|
210
|
+
internalType: "address[]",
|
|
211
|
+
name: "owners",
|
|
212
|
+
type: "address[]",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
indexed: false,
|
|
216
|
+
internalType: "uint256",
|
|
217
|
+
name: "threshold",
|
|
218
|
+
type: "uint256",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
indexed: false,
|
|
222
|
+
internalType: "address",
|
|
223
|
+
name: "initializer",
|
|
224
|
+
type: "address",
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
indexed: false,
|
|
228
|
+
internalType: "address",
|
|
229
|
+
name: "fallbackHandler",
|
|
230
|
+
type: "address",
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
name: "SafeSetup",
|
|
234
|
+
type: "event",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
anonymous: false,
|
|
238
|
+
inputs: [
|
|
239
|
+
{
|
|
240
|
+
indexed: true,
|
|
241
|
+
internalType: "bytes32",
|
|
242
|
+
name: "msgHash",
|
|
243
|
+
type: "bytes32",
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
name: "SignMsg",
|
|
247
|
+
type: "event",
|
|
248
|
+
},
|
|
249
|
+
{ stateMutability: "nonpayable", type: "fallback" },
|
|
250
|
+
{
|
|
251
|
+
inputs: [],
|
|
252
|
+
name: "VERSION",
|
|
253
|
+
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
254
|
+
stateMutability: "view",
|
|
255
|
+
type: "function",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
inputs: [
|
|
259
|
+
{ internalType: "address", name: "owner", type: "address" },
|
|
260
|
+
{ internalType: "uint256", name: "_threshold", type: "uint256" },
|
|
261
|
+
],
|
|
262
|
+
name: "addOwnerWithThreshold",
|
|
263
|
+
outputs: [],
|
|
264
|
+
stateMutability: "nonpayable",
|
|
265
|
+
type: "function",
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
inputs: [
|
|
269
|
+
{ internalType: "bytes32", name: "hashToApprove", type: "bytes32" },
|
|
270
|
+
],
|
|
271
|
+
name: "approveHash",
|
|
272
|
+
outputs: [],
|
|
273
|
+
stateMutability: "nonpayable",
|
|
274
|
+
type: "function",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
inputs: [
|
|
278
|
+
{ internalType: "address", name: "", type: "address" },
|
|
279
|
+
{ internalType: "bytes32", name: "", type: "bytes32" },
|
|
280
|
+
],
|
|
281
|
+
name: "approvedHashes",
|
|
282
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
283
|
+
stateMutability: "view",
|
|
284
|
+
type: "function",
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
inputs: [{ internalType: "uint256", name: "_threshold", type: "uint256" }],
|
|
288
|
+
name: "changeThreshold",
|
|
289
|
+
outputs: [],
|
|
290
|
+
stateMutability: "nonpayable",
|
|
291
|
+
type: "function",
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
inputs: [
|
|
295
|
+
{ internalType: "bytes32", name: "dataHash", type: "bytes32" },
|
|
296
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
297
|
+
{ internalType: "bytes", name: "signatures", type: "bytes" },
|
|
298
|
+
{ internalType: "uint256", name: "requiredSignatures", type: "uint256" },
|
|
299
|
+
],
|
|
300
|
+
name: "checkNSignatures",
|
|
301
|
+
outputs: [],
|
|
302
|
+
stateMutability: "view",
|
|
303
|
+
type: "function",
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
inputs: [
|
|
307
|
+
{ internalType: "bytes32", name: "dataHash", type: "bytes32" },
|
|
308
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
309
|
+
{ internalType: "bytes", name: "signatures", type: "bytes" },
|
|
310
|
+
],
|
|
311
|
+
name: "checkSignatures",
|
|
312
|
+
outputs: [],
|
|
313
|
+
stateMutability: "view",
|
|
314
|
+
type: "function",
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
inputs: [
|
|
318
|
+
{ internalType: "address", name: "prevModule", type: "address" },
|
|
319
|
+
{ internalType: "address", name: "module", type: "address" },
|
|
320
|
+
],
|
|
321
|
+
name: "disableModule",
|
|
322
|
+
outputs: [],
|
|
323
|
+
stateMutability: "nonpayable",
|
|
324
|
+
type: "function",
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
inputs: [],
|
|
328
|
+
name: "domainSeparator",
|
|
329
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
330
|
+
stateMutability: "view",
|
|
331
|
+
type: "function",
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
inputs: [{ internalType: "address", name: "module", type: "address" }],
|
|
335
|
+
name: "enableModule",
|
|
336
|
+
outputs: [],
|
|
337
|
+
stateMutability: "nonpayable",
|
|
338
|
+
type: "function",
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
inputs: [
|
|
342
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
343
|
+
{ internalType: "uint256", name: "value", type: "uint256" },
|
|
344
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
345
|
+
{ internalType: "enum Enum.Operation", name: "operation", type: "uint8" },
|
|
346
|
+
{ internalType: "uint256", name: "safeTxGas", type: "uint256" },
|
|
347
|
+
{ internalType: "uint256", name: "baseGas", type: "uint256" },
|
|
348
|
+
{ internalType: "uint256", name: "gasPrice", type: "uint256" },
|
|
349
|
+
{ internalType: "address", name: "gasToken", type: "address" },
|
|
350
|
+
{ internalType: "address", name: "refundReceiver", type: "address" },
|
|
351
|
+
{ internalType: "uint256", name: "_nonce", type: "uint256" },
|
|
352
|
+
],
|
|
353
|
+
name: "encodeTransactionData",
|
|
354
|
+
outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
|
|
355
|
+
stateMutability: "view",
|
|
356
|
+
type: "function",
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
inputs: [
|
|
360
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
361
|
+
{ internalType: "uint256", name: "value", type: "uint256" },
|
|
362
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
363
|
+
{ internalType: "enum Enum.Operation", name: "operation", type: "uint8" },
|
|
364
|
+
{ internalType: "uint256", name: "safeTxGas", type: "uint256" },
|
|
365
|
+
{ internalType: "uint256", name: "baseGas", type: "uint256" },
|
|
366
|
+
{ internalType: "uint256", name: "gasPrice", type: "uint256" },
|
|
367
|
+
{ internalType: "address", name: "gasToken", type: "address" },
|
|
368
|
+
{
|
|
369
|
+
internalType: "address payable",
|
|
370
|
+
name: "refundReceiver",
|
|
371
|
+
type: "address",
|
|
372
|
+
},
|
|
373
|
+
{ internalType: "bytes", name: "signatures", type: "bytes" },
|
|
374
|
+
],
|
|
375
|
+
name: "execTransaction",
|
|
376
|
+
outputs: [{ internalType: "bool", name: "success", type: "bool" }],
|
|
377
|
+
stateMutability: "payable",
|
|
378
|
+
type: "function",
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
inputs: [
|
|
382
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
383
|
+
{ internalType: "uint256", name: "value", type: "uint256" },
|
|
384
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
385
|
+
{ internalType: "enum Enum.Operation", name: "operation", type: "uint8" },
|
|
386
|
+
],
|
|
387
|
+
name: "execTransactionFromModule",
|
|
388
|
+
outputs: [{ internalType: "bool", name: "success", type: "bool" }],
|
|
389
|
+
stateMutability: "nonpayable",
|
|
390
|
+
type: "function",
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
inputs: [
|
|
394
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
395
|
+
{ internalType: "uint256", name: "value", type: "uint256" },
|
|
396
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
397
|
+
{ internalType: "enum Enum.Operation", name: "operation", type: "uint8" },
|
|
398
|
+
],
|
|
399
|
+
name: "execTransactionFromModuleReturnData",
|
|
400
|
+
outputs: [
|
|
401
|
+
{ internalType: "bool", name: "success", type: "bool" },
|
|
402
|
+
{ internalType: "bytes", name: "returnData", type: "bytes" },
|
|
403
|
+
],
|
|
404
|
+
stateMutability: "nonpayable",
|
|
405
|
+
type: "function",
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
inputs: [],
|
|
409
|
+
name: "getChainId",
|
|
410
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
411
|
+
stateMutability: "view",
|
|
412
|
+
type: "function",
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
inputs: [
|
|
416
|
+
{ internalType: "address", name: "start", type: "address" },
|
|
417
|
+
{ internalType: "uint256", name: "pageSize", type: "uint256" },
|
|
418
|
+
],
|
|
419
|
+
name: "getModulesPaginated",
|
|
420
|
+
outputs: [
|
|
421
|
+
{ internalType: "address[]", name: "array", type: "address[]" },
|
|
422
|
+
{ internalType: "address", name: "next", type: "address" },
|
|
423
|
+
],
|
|
424
|
+
stateMutability: "view",
|
|
425
|
+
type: "function",
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
inputs: [],
|
|
429
|
+
name: "getOwners",
|
|
430
|
+
outputs: [{ internalType: "address[]", name: "", type: "address[]" }],
|
|
431
|
+
stateMutability: "view",
|
|
432
|
+
type: "function",
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
inputs: [
|
|
436
|
+
{ internalType: "uint256", name: "offset", type: "uint256" },
|
|
437
|
+
{ internalType: "uint256", name: "length", type: "uint256" },
|
|
438
|
+
],
|
|
439
|
+
name: "getStorageAt",
|
|
440
|
+
outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
|
|
441
|
+
stateMutability: "view",
|
|
442
|
+
type: "function",
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
inputs: [],
|
|
446
|
+
name: "getThreshold",
|
|
447
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
448
|
+
stateMutability: "view",
|
|
449
|
+
type: "function",
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
inputs: [
|
|
453
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
454
|
+
{ internalType: "uint256", name: "value", type: "uint256" },
|
|
455
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
456
|
+
{ internalType: "enum Enum.Operation", name: "operation", type: "uint8" },
|
|
457
|
+
{ internalType: "uint256", name: "safeTxGas", type: "uint256" },
|
|
458
|
+
{ internalType: "uint256", name: "baseGas", type: "uint256" },
|
|
459
|
+
{ internalType: "uint256", name: "gasPrice", type: "uint256" },
|
|
460
|
+
{ internalType: "address", name: "gasToken", type: "address" },
|
|
461
|
+
{ internalType: "address", name: "refundReceiver", type: "address" },
|
|
462
|
+
{ internalType: "uint256", name: "_nonce", type: "uint256" },
|
|
463
|
+
],
|
|
464
|
+
name: "getTransactionHash",
|
|
465
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
466
|
+
stateMutability: "view",
|
|
467
|
+
type: "function",
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
inputs: [{ internalType: "address", name: "module", type: "address" }],
|
|
471
|
+
name: "isModuleEnabled",
|
|
472
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
473
|
+
stateMutability: "view",
|
|
474
|
+
type: "function",
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
inputs: [{ internalType: "address", name: "owner", type: "address" }],
|
|
478
|
+
name: "isOwner",
|
|
479
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
480
|
+
stateMutability: "view",
|
|
481
|
+
type: "function",
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
inputs: [],
|
|
485
|
+
name: "nonce",
|
|
486
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
487
|
+
stateMutability: "view",
|
|
488
|
+
type: "function",
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
inputs: [
|
|
492
|
+
{ internalType: "address", name: "prevOwner", type: "address" },
|
|
493
|
+
{ internalType: "address", name: "owner", type: "address" },
|
|
494
|
+
{ internalType: "uint256", name: "_threshold", type: "uint256" },
|
|
495
|
+
],
|
|
496
|
+
name: "removeOwner",
|
|
497
|
+
outputs: [],
|
|
498
|
+
stateMutability: "nonpayable",
|
|
499
|
+
type: "function",
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
inputs: [{ internalType: "address", name: "handler", type: "address" }],
|
|
503
|
+
name: "setFallbackHandler",
|
|
504
|
+
outputs: [],
|
|
505
|
+
stateMutability: "nonpayable",
|
|
506
|
+
type: "function",
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
inputs: [{ internalType: "address", name: "guard", type: "address" }],
|
|
510
|
+
name: "setGuard",
|
|
511
|
+
outputs: [],
|
|
512
|
+
stateMutability: "nonpayable",
|
|
513
|
+
type: "function",
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
inputs: [
|
|
517
|
+
{ internalType: "address[]", name: "_owners", type: "address[]" },
|
|
518
|
+
{ internalType: "uint256", name: "_threshold", type: "uint256" },
|
|
519
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
520
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
521
|
+
{ internalType: "address", name: "fallbackHandler", type: "address" },
|
|
522
|
+
{ internalType: "address", name: "paymentToken", type: "address" },
|
|
523
|
+
{ internalType: "uint256", name: "payment", type: "uint256" },
|
|
524
|
+
{
|
|
525
|
+
internalType: "address payable",
|
|
526
|
+
name: "paymentReceiver",
|
|
527
|
+
type: "address",
|
|
528
|
+
},
|
|
529
|
+
],
|
|
530
|
+
name: "setup",
|
|
531
|
+
outputs: [],
|
|
532
|
+
stateMutability: "nonpayable",
|
|
533
|
+
type: "function",
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
inputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
537
|
+
name: "signedMessages",
|
|
538
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
539
|
+
stateMutability: "view",
|
|
540
|
+
type: "function",
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
inputs: [
|
|
544
|
+
{ internalType: "address", name: "targetContract", type: "address" },
|
|
545
|
+
{ internalType: "bytes", name: "calldataPayload", type: "bytes" },
|
|
546
|
+
],
|
|
547
|
+
name: "simulateAndRevert",
|
|
548
|
+
outputs: [],
|
|
549
|
+
stateMutability: "nonpayable",
|
|
550
|
+
type: "function",
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
inputs: [
|
|
554
|
+
{ internalType: "address", name: "prevOwner", type: "address" },
|
|
555
|
+
{ internalType: "address", name: "oldOwner", type: "address" },
|
|
556
|
+
{ internalType: "address", name: "newOwner", type: "address" },
|
|
557
|
+
],
|
|
558
|
+
name: "swapOwner",
|
|
559
|
+
outputs: [],
|
|
560
|
+
stateMutability: "nonpayable",
|
|
561
|
+
type: "function",
|
|
562
|
+
},
|
|
563
|
+
{ stateMutability: "payable", type: "receive" },
|
|
564
|
+
];
|
|
565
|
+
//# sourceMappingURL=safe-abi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe-abi.js","sourceRoot":"","sources":["../../src/safe-ops/safe-abi.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,EAAE,MAAM,EAAE,EAAE,EAAE,eAAe,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE;IAClE;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,wBAAwB;QAC9B,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,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eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE;YACpE,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,EAAE;SAClE;QACD,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;YAC/D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YAC9D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;SAC/D;QACD,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;CAChD,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const ERC20_ABI: ({
|
|
2
|
+
constant: boolean;
|
|
3
|
+
inputs: {
|
|
4
|
+
name: string;
|
|
5
|
+
type: string;
|
|
6
|
+
}[];
|
|
7
|
+
name: string;
|
|
8
|
+
outputs: {
|
|
9
|
+
name: string;
|
|
10
|
+
type: string;
|
|
11
|
+
}[];
|
|
12
|
+
payable: boolean;
|
|
13
|
+
stateMutability: string;
|
|
14
|
+
type: string;
|
|
15
|
+
anonymous?: never;
|
|
16
|
+
} | {
|
|
17
|
+
payable: boolean;
|
|
18
|
+
stateMutability: string;
|
|
19
|
+
type: string;
|
|
20
|
+
constant?: never;
|
|
21
|
+
inputs?: never;
|
|
22
|
+
name?: never;
|
|
23
|
+
outputs?: never;
|
|
24
|
+
anonymous?: never;
|
|
25
|
+
} | {
|
|
26
|
+
anonymous: boolean;
|
|
27
|
+
inputs: {
|
|
28
|
+
indexed: boolean;
|
|
29
|
+
name: string;
|
|
30
|
+
type: string;
|
|
31
|
+
}[];
|
|
32
|
+
name: string;
|
|
33
|
+
type: string;
|
|
34
|
+
constant?: never;
|
|
35
|
+
outputs?: never;
|
|
36
|
+
payable?: never;
|
|
37
|
+
stateMutability?: never;
|
|
38
|
+
})[];
|
|
39
|
+
//# sourceMappingURL=erc20-abi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"erc20-abi.d.ts","sourceRoot":"","sources":["../../src/token/erc20-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6NrB,CAAC"}
|