@usdu-finance/usdu-core 0.0.4 → 0.0.6
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/index.d.mts +889 -8
- package/dist/index.d.ts +889 -8
- package/dist/index.js +507 -44
- package/dist/index.mjs +505 -38
- package/exports/abis/aragon/AragonDao.ts +500 -0
- package/exports/address.config.ts +1 -0
- package/exports/address.types.ts +1 -0
- package/exports/index.ts +1 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22,6 +22,7 @@ var exports_exports = {};
|
|
|
22
22
|
__export(exports_exports, {
|
|
23
23
|
ADDRESS: () => ADDRESS,
|
|
24
24
|
AggregatorV3Interface_ABI: () => AggregatorV3Interface_ABI,
|
|
25
|
+
AragonDao_ABI: () => AragonDao_ABI,
|
|
25
26
|
AragonDelayedAction_ABI: () => AragonDelayedAction_ABI,
|
|
26
27
|
AragonMultiSig_ABI: () => AragonMultiSig_ABI,
|
|
27
28
|
AragonVetoMultiSig_ABI: () => AragonVetoMultiSig_ABI,
|
|
@@ -69,47 +70,10 @@ __export(exports_exports, {
|
|
|
69
70
|
SupportedChains: () => SupportedChains,
|
|
70
71
|
SupportedChainsMap: () => SupportedChainsMap,
|
|
71
72
|
VaultAdapterRecoverV1_ABI: () => VaultAdapterRecoverV1_ABI,
|
|
72
|
-
VaultAdapterV1_ABI: () => VaultAdapterV1_ABI
|
|
73
|
-
getAddressFromChildIndex: () => getAddressFromChildIndex,
|
|
74
|
-
getChildFromSeed: () => getChildFromSeed,
|
|
75
|
-
getPrivateKeyFromChildIndex: () => getPrivateKeyFromChildIndex,
|
|
76
|
-
getPublicKeyFromChildIndex: () => getPublicKeyFromChildIndex,
|
|
77
|
-
getWalletInto: () => getWalletInto
|
|
73
|
+
VaultAdapterV1_ABI: () => VaultAdapterV1_ABI
|
|
78
74
|
});
|
|
79
75
|
module.exports = __toCommonJS(exports_exports);
|
|
80
76
|
|
|
81
|
-
// helper/wallet.ts
|
|
82
|
-
var import_ethers = require("ethers");
|
|
83
|
-
function getChildFromSeed(seed, index) {
|
|
84
|
-
return import_ethers.ethers.HDNodeWallet.fromPhrase(seed, void 0, `m/44'/60'/0'/0/${index}`);
|
|
85
|
-
}
|
|
86
|
-
function getAddressFromChildIndex(seed, index) {
|
|
87
|
-
return getChildFromSeed(seed, index).address;
|
|
88
|
-
}
|
|
89
|
-
function getPublicKeyFromChildIndex(seed, index) {
|
|
90
|
-
return getChildFromSeed(seed, index).publicKey;
|
|
91
|
-
}
|
|
92
|
-
function getPrivateKeyFromChildIndex(seed, index) {
|
|
93
|
-
return getChildFromSeed(seed, index).privateKey;
|
|
94
|
-
}
|
|
95
|
-
function getWalletInto(seed = process.env.DEPLOYER_SEED, index = process.env.DEPLOYER_SEED_INDEX, amount = 3) {
|
|
96
|
-
if (!seed) throw new Error("Failed to import the seed string from .env");
|
|
97
|
-
if (!index) throw new Error("Failed to import the index string from .env");
|
|
98
|
-
console.log("seed:", seed);
|
|
99
|
-
const start = index && index?.length > 0 ? parseInt(index) : 0;
|
|
100
|
-
for (let i = start; i < start + amount; i++) {
|
|
101
|
-
const w = getChildFromSeed(seed, i);
|
|
102
|
-
console.log("Wallet", i);
|
|
103
|
-
console.log({
|
|
104
|
-
address: w.address,
|
|
105
|
-
pubKey: w.publicKey,
|
|
106
|
-
privKey: w.privateKey,
|
|
107
|
-
path: w.path,
|
|
108
|
-
index: w.index
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
77
|
// exports/address.config.ts
|
|
114
78
|
var import_chains = require("viem/chains");
|
|
115
79
|
var import_viem = require("viem");
|
|
@@ -120,6 +84,7 @@ var ADDRESS = {
|
|
|
120
84
|
chainSelector: "5009297550715157269",
|
|
121
85
|
// curator / DAO
|
|
122
86
|
curator: "0x9fe66037c44236c87D9Ac8345F489b4413fDFf06",
|
|
87
|
+
aragonDao: "0x9fe66037c44236c87D9Ac8345F489b4413fDFf06",
|
|
123
88
|
aragonMultiSig: "0x369C21c8cB56C0211772F003c917b2807204BB4D",
|
|
124
89
|
aragonDelayedAction: "0x8E8Bec995809bF29712C89149603a8C48329aF51",
|
|
125
90
|
aragonVetoMultiSig: "0xF786531776903BaE94A1A4f4F17a0233dca5f9d5",
|
|
@@ -242,6 +207,508 @@ var SupportedChainsMap = {
|
|
|
242
207
|
};
|
|
243
208
|
var SupportedChainIds = Object.values(SupportedChains).map((chain) => chain.id);
|
|
244
209
|
|
|
210
|
+
// exports/abis/aragon/AragonDao.ts
|
|
211
|
+
var AragonDao_ABI = [
|
|
212
|
+
{ inputs: [], stateMutability: "nonpayable", type: "constructor" },
|
|
213
|
+
{ inputs: [{ internalType: "uint256", name: "index", type: "uint256" }], name: "ActionFailed", type: "error" },
|
|
214
|
+
{ inputs: [], name: "AlreadyInitialized", type: "error" },
|
|
215
|
+
{ inputs: [], name: "AnyAddressDisallowedForWhoAndWhere", type: "error" },
|
|
216
|
+
{
|
|
217
|
+
inputs: [{ internalType: "contract IPermissionCondition", name: "condition", type: "address" }],
|
|
218
|
+
name: "ConditionInterfaceNotSupported",
|
|
219
|
+
type: "error"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
inputs: [{ internalType: "contract IPermissionCondition", name: "condition", type: "address" }],
|
|
223
|
+
name: "ConditionNotAContract",
|
|
224
|
+
type: "error"
|
|
225
|
+
},
|
|
226
|
+
{ inputs: [], name: "FunctionRemoved", type: "error" },
|
|
227
|
+
{ inputs: [], name: "GrantWithConditionNotSupported", type: "error" },
|
|
228
|
+
{ inputs: [], name: "InsufficientGas", type: "error" },
|
|
229
|
+
{
|
|
230
|
+
inputs: [
|
|
231
|
+
{ internalType: "uint256", name: "expected", type: "uint256" },
|
|
232
|
+
{ internalType: "uint256", name: "actual", type: "uint256" }
|
|
233
|
+
],
|
|
234
|
+
name: "NativeTokenDepositAmountMismatch",
|
|
235
|
+
type: "error"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
inputs: [
|
|
239
|
+
{ internalType: "address", name: "where", type: "address" },
|
|
240
|
+
{ internalType: "address", name: "who", type: "address" },
|
|
241
|
+
{ internalType: "bytes32", name: "permissionId", type: "bytes32" },
|
|
242
|
+
{ internalType: "address", name: "currentCondition", type: "address" },
|
|
243
|
+
{ internalType: "address", name: "newCondition", type: "address" }
|
|
244
|
+
],
|
|
245
|
+
name: "PermissionAlreadyGrantedForDifferentCondition",
|
|
246
|
+
type: "error"
|
|
247
|
+
},
|
|
248
|
+
{ inputs: [], name: "PermissionsForAnyAddressDisallowed", type: "error" },
|
|
249
|
+
{
|
|
250
|
+
inputs: [{ internalType: "uint8[3]", name: "protocolVersion", type: "uint8[3]" }],
|
|
251
|
+
name: "ProtocolVersionUpgradeNotSupported",
|
|
252
|
+
type: "error"
|
|
253
|
+
},
|
|
254
|
+
{ inputs: [], name: "ReentrantCall", type: "error" },
|
|
255
|
+
{ inputs: [], name: "TooManyActions", type: "error" },
|
|
256
|
+
{
|
|
257
|
+
inputs: [
|
|
258
|
+
{ internalType: "address", name: "where", type: "address" },
|
|
259
|
+
{ internalType: "address", name: "who", type: "address" },
|
|
260
|
+
{ internalType: "bytes32", name: "permissionId", type: "bytes32" }
|
|
261
|
+
],
|
|
262
|
+
name: "Unauthorized",
|
|
263
|
+
type: "error"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
inputs: [
|
|
267
|
+
{ internalType: "bytes4", name: "callbackSelector", type: "bytes4" },
|
|
268
|
+
{ internalType: "bytes4", name: "magicNumber", type: "bytes4" }
|
|
269
|
+
],
|
|
270
|
+
name: "UnknownCallback",
|
|
271
|
+
type: "error"
|
|
272
|
+
},
|
|
273
|
+
{ inputs: [], name: "ZeroAmount", type: "error" },
|
|
274
|
+
{
|
|
275
|
+
anonymous: false,
|
|
276
|
+
inputs: [
|
|
277
|
+
{ indexed: false, internalType: "address", name: "previousAdmin", type: "address" },
|
|
278
|
+
{ indexed: false, internalType: "address", name: "newAdmin", type: "address" }
|
|
279
|
+
],
|
|
280
|
+
name: "AdminChanged",
|
|
281
|
+
type: "event"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
anonymous: false,
|
|
285
|
+
inputs: [{ indexed: true, internalType: "address", name: "beacon", type: "address" }],
|
|
286
|
+
name: "BeaconUpgraded",
|
|
287
|
+
type: "event"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
anonymous: false,
|
|
291
|
+
inputs: [
|
|
292
|
+
{ indexed: false, internalType: "address", name: "sender", type: "address" },
|
|
293
|
+
{ indexed: true, internalType: "bytes4", name: "sig", type: "bytes4" },
|
|
294
|
+
{ indexed: false, internalType: "bytes", name: "data", type: "bytes" }
|
|
295
|
+
],
|
|
296
|
+
name: "CallbackReceived",
|
|
297
|
+
type: "event"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
anonymous: false,
|
|
301
|
+
inputs: [
|
|
302
|
+
{ indexed: true, internalType: "address", name: "sender", type: "address" },
|
|
303
|
+
{ indexed: true, internalType: "address", name: "token", type: "address" },
|
|
304
|
+
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
|
|
305
|
+
{ indexed: false, internalType: "string", name: "_reference", type: "string" }
|
|
306
|
+
],
|
|
307
|
+
name: "Deposited",
|
|
308
|
+
type: "event"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
anonymous: false,
|
|
312
|
+
inputs: [
|
|
313
|
+
{ indexed: true, internalType: "address", name: "actor", type: "address" },
|
|
314
|
+
{ indexed: false, internalType: "bytes32", name: "callId", type: "bytes32" },
|
|
315
|
+
{
|
|
316
|
+
components: [
|
|
317
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
318
|
+
{ internalType: "uint256", name: "value", type: "uint256" },
|
|
319
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
320
|
+
],
|
|
321
|
+
indexed: false,
|
|
322
|
+
internalType: "struct Action[]",
|
|
323
|
+
name: "actions",
|
|
324
|
+
type: "tuple[]"
|
|
325
|
+
},
|
|
326
|
+
{ indexed: false, internalType: "uint256", name: "allowFailureMap", type: "uint256" },
|
|
327
|
+
{ indexed: false, internalType: "uint256", name: "failureMap", type: "uint256" },
|
|
328
|
+
{ indexed: false, internalType: "bytes[]", name: "execResults", type: "bytes[]" }
|
|
329
|
+
],
|
|
330
|
+
name: "Executed",
|
|
331
|
+
type: "event"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
anonymous: false,
|
|
335
|
+
inputs: [
|
|
336
|
+
{ indexed: true, internalType: "bytes32", name: "permissionId", type: "bytes32" },
|
|
337
|
+
{ indexed: true, internalType: "address", name: "here", type: "address" },
|
|
338
|
+
{ indexed: false, internalType: "address", name: "where", type: "address" },
|
|
339
|
+
{ indexed: true, internalType: "address", name: "who", type: "address" },
|
|
340
|
+
{ indexed: false, internalType: "address", name: "condition", type: "address" }
|
|
341
|
+
],
|
|
342
|
+
name: "Granted",
|
|
343
|
+
type: "event"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
anonymous: false,
|
|
347
|
+
inputs: [{ indexed: false, internalType: "uint8", name: "version", type: "uint8" }],
|
|
348
|
+
name: "Initialized",
|
|
349
|
+
type: "event"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
anonymous: false,
|
|
353
|
+
inputs: [{ indexed: false, internalType: "bytes", name: "metadata", type: "bytes" }],
|
|
354
|
+
name: "MetadataSet",
|
|
355
|
+
type: "event"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
anonymous: false,
|
|
359
|
+
inputs: [
|
|
360
|
+
{ indexed: false, internalType: "address", name: "sender", type: "address" },
|
|
361
|
+
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
|
|
362
|
+
],
|
|
363
|
+
name: "NativeTokenDeposited",
|
|
364
|
+
type: "event"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
anonymous: false,
|
|
368
|
+
inputs: [{ indexed: false, internalType: "string", name: "daoURI", type: "string" }],
|
|
369
|
+
name: "NewURI",
|
|
370
|
+
type: "event"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
anonymous: false,
|
|
374
|
+
inputs: [
|
|
375
|
+
{ indexed: true, internalType: "bytes32", name: "permissionId", type: "bytes32" },
|
|
376
|
+
{ indexed: true, internalType: "address", name: "here", type: "address" },
|
|
377
|
+
{ indexed: false, internalType: "address", name: "where", type: "address" },
|
|
378
|
+
{ indexed: true, internalType: "address", name: "who", type: "address" }
|
|
379
|
+
],
|
|
380
|
+
name: "Revoked",
|
|
381
|
+
type: "event"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
anonymous: false,
|
|
385
|
+
inputs: [
|
|
386
|
+
{ indexed: false, internalType: "bytes4", name: "interfaceId", type: "bytes4" },
|
|
387
|
+
{ indexed: false, internalType: "bytes4", name: "callbackSelector", type: "bytes4" },
|
|
388
|
+
{ indexed: false, internalType: "bytes4", name: "magicNumber", type: "bytes4" }
|
|
389
|
+
],
|
|
390
|
+
name: "StandardCallbackRegistered",
|
|
391
|
+
type: "event"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
anonymous: false,
|
|
395
|
+
inputs: [{ indexed: false, internalType: "address", name: "forwarder", type: "address" }],
|
|
396
|
+
name: "TrustedForwarderSet",
|
|
397
|
+
type: "event"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
anonymous: false,
|
|
401
|
+
inputs: [{ indexed: true, internalType: "address", name: "implementation", type: "address" }],
|
|
402
|
+
name: "Upgraded",
|
|
403
|
+
type: "event"
|
|
404
|
+
},
|
|
405
|
+
{ stateMutability: "nonpayable", type: "fallback" },
|
|
406
|
+
{
|
|
407
|
+
inputs: [],
|
|
408
|
+
name: "EXECUTE_PERMISSION_ID",
|
|
409
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
410
|
+
stateMutability: "view",
|
|
411
|
+
type: "function"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
inputs: [],
|
|
415
|
+
name: "REGISTER_STANDARD_CALLBACK_PERMISSION_ID",
|
|
416
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
417
|
+
stateMutability: "view",
|
|
418
|
+
type: "function"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
inputs: [],
|
|
422
|
+
name: "ROOT_PERMISSION_ID",
|
|
423
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
424
|
+
stateMutability: "view",
|
|
425
|
+
type: "function"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
inputs: [],
|
|
429
|
+
name: "SET_METADATA_PERMISSION_ID",
|
|
430
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
431
|
+
stateMutability: "view",
|
|
432
|
+
type: "function"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
inputs: [],
|
|
436
|
+
name: "SET_TRUSTED_FORWARDER_PERMISSION_ID",
|
|
437
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
438
|
+
stateMutability: "view",
|
|
439
|
+
type: "function"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
inputs: [],
|
|
443
|
+
name: "UPGRADE_DAO_PERMISSION_ID",
|
|
444
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
445
|
+
stateMutability: "view",
|
|
446
|
+
type: "function"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
inputs: [],
|
|
450
|
+
name: "VALIDATE_SIGNATURE_PERMISSION_ID",
|
|
451
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
452
|
+
stateMutability: "view",
|
|
453
|
+
type: "function"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
inputs: [
|
|
457
|
+
{
|
|
458
|
+
components: [
|
|
459
|
+
{ internalType: "enum PermissionLib.Operation", name: "operation", type: "uint8" },
|
|
460
|
+
{ internalType: "address", name: "where", type: "address" },
|
|
461
|
+
{ internalType: "address", name: "who", type: "address" },
|
|
462
|
+
{ internalType: "address", name: "condition", type: "address" },
|
|
463
|
+
{ internalType: "bytes32", name: "permissionId", type: "bytes32" }
|
|
464
|
+
],
|
|
465
|
+
internalType: "struct PermissionLib.MultiTargetPermission[]",
|
|
466
|
+
name: "_items",
|
|
467
|
+
type: "tuple[]"
|
|
468
|
+
}
|
|
469
|
+
],
|
|
470
|
+
name: "applyMultiTargetPermissions",
|
|
471
|
+
outputs: [],
|
|
472
|
+
stateMutability: "nonpayable",
|
|
473
|
+
type: "function"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
inputs: [
|
|
477
|
+
{ internalType: "address", name: "_where", type: "address" },
|
|
478
|
+
{
|
|
479
|
+
components: [
|
|
480
|
+
{ internalType: "enum PermissionLib.Operation", name: "operation", type: "uint8" },
|
|
481
|
+
{ internalType: "address", name: "who", type: "address" },
|
|
482
|
+
{ internalType: "bytes32", name: "permissionId", type: "bytes32" }
|
|
483
|
+
],
|
|
484
|
+
internalType: "struct PermissionLib.SingleTargetPermission[]",
|
|
485
|
+
name: "items",
|
|
486
|
+
type: "tuple[]"
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
name: "applySingleTargetPermissions",
|
|
490
|
+
outputs: [],
|
|
491
|
+
stateMutability: "nonpayable",
|
|
492
|
+
type: "function"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
inputs: [],
|
|
496
|
+
name: "daoURI",
|
|
497
|
+
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
498
|
+
stateMutability: "view",
|
|
499
|
+
type: "function"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
inputs: [
|
|
503
|
+
{ internalType: "address", name: "_token", type: "address" },
|
|
504
|
+
{ internalType: "uint256", name: "_amount", type: "uint256" },
|
|
505
|
+
{ internalType: "string", name: "_reference", type: "string" }
|
|
506
|
+
],
|
|
507
|
+
name: "deposit",
|
|
508
|
+
outputs: [],
|
|
509
|
+
stateMutability: "payable",
|
|
510
|
+
type: "function"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
inputs: [
|
|
514
|
+
{ internalType: "bytes32", name: "_callId", type: "bytes32" },
|
|
515
|
+
{
|
|
516
|
+
components: [
|
|
517
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
518
|
+
{ internalType: "uint256", name: "value", type: "uint256" },
|
|
519
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
520
|
+
],
|
|
521
|
+
internalType: "struct Action[]",
|
|
522
|
+
name: "_actions",
|
|
523
|
+
type: "tuple[]"
|
|
524
|
+
},
|
|
525
|
+
{ internalType: "uint256", name: "_allowFailureMap", type: "uint256" }
|
|
526
|
+
],
|
|
527
|
+
name: "execute",
|
|
528
|
+
outputs: [
|
|
529
|
+
{ internalType: "bytes[]", name: "execResults", type: "bytes[]" },
|
|
530
|
+
{ internalType: "uint256", name: "failureMap", type: "uint256" }
|
|
531
|
+
],
|
|
532
|
+
stateMutability: "nonpayable",
|
|
533
|
+
type: "function"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
inputs: [],
|
|
537
|
+
name: "getTrustedForwarder",
|
|
538
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
539
|
+
stateMutability: "view",
|
|
540
|
+
type: "function"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
inputs: [
|
|
544
|
+
{ internalType: "address", name: "_where", type: "address" },
|
|
545
|
+
{ internalType: "address", name: "_who", type: "address" },
|
|
546
|
+
{ internalType: "bytes32", name: "_permissionId", type: "bytes32" }
|
|
547
|
+
],
|
|
548
|
+
name: "grant",
|
|
549
|
+
outputs: [],
|
|
550
|
+
stateMutability: "nonpayable",
|
|
551
|
+
type: "function"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
inputs: [
|
|
555
|
+
{ internalType: "address", name: "_where", type: "address" },
|
|
556
|
+
{ internalType: "address", name: "_who", type: "address" },
|
|
557
|
+
{ internalType: "bytes32", name: "_permissionId", type: "bytes32" },
|
|
558
|
+
{ internalType: "contract IPermissionCondition", name: "_condition", type: "address" }
|
|
559
|
+
],
|
|
560
|
+
name: "grantWithCondition",
|
|
561
|
+
outputs: [],
|
|
562
|
+
stateMutability: "nonpayable",
|
|
563
|
+
type: "function"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
inputs: [
|
|
567
|
+
{ internalType: "address", name: "_where", type: "address" },
|
|
568
|
+
{ internalType: "address", name: "_who", type: "address" },
|
|
569
|
+
{ internalType: "bytes32", name: "_permissionId", type: "bytes32" },
|
|
570
|
+
{ internalType: "bytes", name: "_data", type: "bytes" }
|
|
571
|
+
],
|
|
572
|
+
name: "hasPermission",
|
|
573
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
574
|
+
stateMutability: "view",
|
|
575
|
+
type: "function"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
inputs: [
|
|
579
|
+
{ internalType: "bytes", name: "_metadata", type: "bytes" },
|
|
580
|
+
{ internalType: "address", name: "_initialOwner", type: "address" },
|
|
581
|
+
{ internalType: "address", name: "_trustedForwarder", type: "address" },
|
|
582
|
+
{ internalType: "string", name: "daoURI_", type: "string" }
|
|
583
|
+
],
|
|
584
|
+
name: "initialize",
|
|
585
|
+
outputs: [],
|
|
586
|
+
stateMutability: "nonpayable",
|
|
587
|
+
type: "function"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
inputs: [
|
|
591
|
+
{ internalType: "uint8[3]", name: "_previousProtocolVersion", type: "uint8[3]" },
|
|
592
|
+
{ internalType: "bytes", name: "_initData", type: "bytes" }
|
|
593
|
+
],
|
|
594
|
+
name: "initializeFrom",
|
|
595
|
+
outputs: [],
|
|
596
|
+
stateMutability: "nonpayable",
|
|
597
|
+
type: "function"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
inputs: [
|
|
601
|
+
{ internalType: "address", name: "_where", type: "address" },
|
|
602
|
+
{ internalType: "address", name: "_who", type: "address" },
|
|
603
|
+
{ internalType: "bytes32", name: "_permissionId", type: "bytes32" },
|
|
604
|
+
{ internalType: "bytes", name: "_data", type: "bytes" }
|
|
605
|
+
],
|
|
606
|
+
name: "isGranted",
|
|
607
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
608
|
+
stateMutability: "view",
|
|
609
|
+
type: "function"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
inputs: [
|
|
613
|
+
{ internalType: "bytes32", name: "_hash", type: "bytes32" },
|
|
614
|
+
{ internalType: "bytes", name: "_signature", type: "bytes" }
|
|
615
|
+
],
|
|
616
|
+
name: "isValidSignature",
|
|
617
|
+
outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
|
|
618
|
+
stateMutability: "view",
|
|
619
|
+
type: "function"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
inputs: [],
|
|
623
|
+
name: "protocolVersion",
|
|
624
|
+
outputs: [{ internalType: "uint8[3]", name: "", type: "uint8[3]" }],
|
|
625
|
+
stateMutability: "pure",
|
|
626
|
+
type: "function"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
inputs: [],
|
|
630
|
+
name: "proxiableUUID",
|
|
631
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
632
|
+
stateMutability: "view",
|
|
633
|
+
type: "function"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
inputs: [
|
|
637
|
+
{ internalType: "bytes4", name: "_interfaceId", type: "bytes4" },
|
|
638
|
+
{ internalType: "bytes4", name: "_callbackSelector", type: "bytes4" },
|
|
639
|
+
{ internalType: "bytes4", name: "_magicNumber", type: "bytes4" }
|
|
640
|
+
],
|
|
641
|
+
name: "registerStandardCallback",
|
|
642
|
+
outputs: [],
|
|
643
|
+
stateMutability: "nonpayable",
|
|
644
|
+
type: "function"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
inputs: [
|
|
648
|
+
{ internalType: "address", name: "_where", type: "address" },
|
|
649
|
+
{ internalType: "address", name: "_who", type: "address" },
|
|
650
|
+
{ internalType: "bytes32", name: "_permissionId", type: "bytes32" }
|
|
651
|
+
],
|
|
652
|
+
name: "revoke",
|
|
653
|
+
outputs: [],
|
|
654
|
+
stateMutability: "nonpayable",
|
|
655
|
+
type: "function"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
inputs: [{ internalType: "string", name: "newDaoURI", type: "string" }],
|
|
659
|
+
name: "setDaoURI",
|
|
660
|
+
outputs: [],
|
|
661
|
+
stateMutability: "nonpayable",
|
|
662
|
+
type: "function"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
inputs: [{ internalType: "bytes", name: "_metadata", type: "bytes" }],
|
|
666
|
+
name: "setMetadata",
|
|
667
|
+
outputs: [],
|
|
668
|
+
stateMutability: "nonpayable",
|
|
669
|
+
type: "function"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
673
|
+
name: "setSignatureValidator",
|
|
674
|
+
outputs: [],
|
|
675
|
+
stateMutability: "pure",
|
|
676
|
+
type: "function"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
inputs: [{ internalType: "address", name: "_newTrustedForwarder", type: "address" }],
|
|
680
|
+
name: "setTrustedForwarder",
|
|
681
|
+
outputs: [],
|
|
682
|
+
stateMutability: "nonpayable",
|
|
683
|
+
type: "function"
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
|
|
687
|
+
name: "supportsInterface",
|
|
688
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
689
|
+
stateMutability: "view",
|
|
690
|
+
type: "function"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
inputs: [{ internalType: "address", name: "newImplementation", type: "address" }],
|
|
694
|
+
name: "upgradeTo",
|
|
695
|
+
outputs: [],
|
|
696
|
+
stateMutability: "nonpayable",
|
|
697
|
+
type: "function"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
inputs: [
|
|
701
|
+
{ internalType: "address", name: "newImplementation", type: "address" },
|
|
702
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
703
|
+
],
|
|
704
|
+
name: "upgradeToAndCall",
|
|
705
|
+
outputs: [],
|
|
706
|
+
stateMutability: "payable",
|
|
707
|
+
type: "function"
|
|
708
|
+
},
|
|
709
|
+
{ stateMutability: "payable", type: "receive" }
|
|
710
|
+
];
|
|
711
|
+
|
|
245
712
|
// exports/abis/aragon/AragonMultiSig.ts
|
|
246
713
|
var AragonMultiSig_ABI = [
|
|
247
714
|
{
|
|
@@ -23180,6 +23647,7 @@ var VaultAdapterV1_ABI = [
|
|
|
23180
23647
|
0 && (module.exports = {
|
|
23181
23648
|
ADDRESS,
|
|
23182
23649
|
AggregatorV3Interface_ABI,
|
|
23650
|
+
AragonDao_ABI,
|
|
23183
23651
|
AragonDelayedAction_ABI,
|
|
23184
23652
|
AragonMultiSig_ABI,
|
|
23185
23653
|
AragonVetoMultiSig_ABI,
|
|
@@ -23227,10 +23695,5 @@ var VaultAdapterV1_ABI = [
|
|
|
23227
23695
|
SupportedChains,
|
|
23228
23696
|
SupportedChainsMap,
|
|
23229
23697
|
VaultAdapterRecoverV1_ABI,
|
|
23230
|
-
VaultAdapterV1_ABI
|
|
23231
|
-
getAddressFromChildIndex,
|
|
23232
|
-
getChildFromSeed,
|
|
23233
|
-
getPrivateKeyFromChildIndex,
|
|
23234
|
-
getPublicKeyFromChildIndex,
|
|
23235
|
-
getWalletInto
|
|
23698
|
+
VaultAdapterV1_ABI
|
|
23236
23699
|
});
|