@usdu-finance/usdu-core 0.0.3 → 0.0.5

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.mjs CHANGED
@@ -40,6 +40,10 @@ var ADDRESS = {
40
40
  chainSelector: "5009297550715157269",
41
41
  // curator / DAO
42
42
  curator: "0x9fe66037c44236c87D9Ac8345F489b4413fDFf06",
43
+ aragonDao: "0x9fe66037c44236c87D9Ac8345F489b4413fDFf06",
44
+ aragonMultiSig: "0x369C21c8cB56C0211772F003c917b2807204BB4D",
45
+ aragonDelayedAction: "0x8E8Bec995809bF29712C89149603a8C48329aF51",
46
+ aragonVetoMultiSig: "0xF786531776903BaE94A1A4f4F17a0233dca5f9d5",
43
47
  // deployer and stable
44
48
  usduDeployer: "0x745211a1e1a58b2b11b932855b30d411c31e25d5",
45
49
  usduStable: "0xdde3ec717f220fc6a29d6a4be73f91da5b718e55",
@@ -159,8 +163,510 @@ var SupportedChainsMap = {
159
163
  };
160
164
  var SupportedChainIds = Object.values(SupportedChains).map((chain) => chain.id);
161
165
 
162
- // exports/abis/aragon/MultiSig.ts
163
- var MultiSig_ABI = [
166
+ // exports/abis/aragon/AragonDao.ts
167
+ var AragonDao_ABI = [
168
+ { inputs: [], stateMutability: "nonpayable", type: "constructor" },
169
+ { inputs: [{ internalType: "uint256", name: "index", type: "uint256" }], name: "ActionFailed", type: "error" },
170
+ { inputs: [], name: "AlreadyInitialized", type: "error" },
171
+ { inputs: [], name: "AnyAddressDisallowedForWhoAndWhere", type: "error" },
172
+ {
173
+ inputs: [{ internalType: "contract IPermissionCondition", name: "condition", type: "address" }],
174
+ name: "ConditionInterfaceNotSupported",
175
+ type: "error"
176
+ },
177
+ {
178
+ inputs: [{ internalType: "contract IPermissionCondition", name: "condition", type: "address" }],
179
+ name: "ConditionNotAContract",
180
+ type: "error"
181
+ },
182
+ { inputs: [], name: "FunctionRemoved", type: "error" },
183
+ { inputs: [], name: "GrantWithConditionNotSupported", type: "error" },
184
+ { inputs: [], name: "InsufficientGas", type: "error" },
185
+ {
186
+ inputs: [
187
+ { internalType: "uint256", name: "expected", type: "uint256" },
188
+ { internalType: "uint256", name: "actual", type: "uint256" }
189
+ ],
190
+ name: "NativeTokenDepositAmountMismatch",
191
+ type: "error"
192
+ },
193
+ {
194
+ inputs: [
195
+ { internalType: "address", name: "where", type: "address" },
196
+ { internalType: "address", name: "who", type: "address" },
197
+ { internalType: "bytes32", name: "permissionId", type: "bytes32" },
198
+ { internalType: "address", name: "currentCondition", type: "address" },
199
+ { internalType: "address", name: "newCondition", type: "address" }
200
+ ],
201
+ name: "PermissionAlreadyGrantedForDifferentCondition",
202
+ type: "error"
203
+ },
204
+ { inputs: [], name: "PermissionsForAnyAddressDisallowed", type: "error" },
205
+ {
206
+ inputs: [{ internalType: "uint8[3]", name: "protocolVersion", type: "uint8[3]" }],
207
+ name: "ProtocolVersionUpgradeNotSupported",
208
+ type: "error"
209
+ },
210
+ { inputs: [], name: "ReentrantCall", type: "error" },
211
+ { inputs: [], name: "TooManyActions", type: "error" },
212
+ {
213
+ inputs: [
214
+ { internalType: "address", name: "where", type: "address" },
215
+ { internalType: "address", name: "who", type: "address" },
216
+ { internalType: "bytes32", name: "permissionId", type: "bytes32" }
217
+ ],
218
+ name: "Unauthorized",
219
+ type: "error"
220
+ },
221
+ {
222
+ inputs: [
223
+ { internalType: "bytes4", name: "callbackSelector", type: "bytes4" },
224
+ { internalType: "bytes4", name: "magicNumber", type: "bytes4" }
225
+ ],
226
+ name: "UnknownCallback",
227
+ type: "error"
228
+ },
229
+ { inputs: [], name: "ZeroAmount", type: "error" },
230
+ {
231
+ anonymous: false,
232
+ inputs: [
233
+ { indexed: false, internalType: "address", name: "previousAdmin", type: "address" },
234
+ { indexed: false, internalType: "address", name: "newAdmin", type: "address" }
235
+ ],
236
+ name: "AdminChanged",
237
+ type: "event"
238
+ },
239
+ {
240
+ anonymous: false,
241
+ inputs: [{ indexed: true, internalType: "address", name: "beacon", type: "address" }],
242
+ name: "BeaconUpgraded",
243
+ type: "event"
244
+ },
245
+ {
246
+ anonymous: false,
247
+ inputs: [
248
+ { indexed: false, internalType: "address", name: "sender", type: "address" },
249
+ { indexed: true, internalType: "bytes4", name: "sig", type: "bytes4" },
250
+ { indexed: false, internalType: "bytes", name: "data", type: "bytes" }
251
+ ],
252
+ name: "CallbackReceived",
253
+ type: "event"
254
+ },
255
+ {
256
+ anonymous: false,
257
+ inputs: [
258
+ { indexed: true, internalType: "address", name: "sender", type: "address" },
259
+ { indexed: true, internalType: "address", name: "token", type: "address" },
260
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
261
+ { indexed: false, internalType: "string", name: "_reference", type: "string" }
262
+ ],
263
+ name: "Deposited",
264
+ type: "event"
265
+ },
266
+ {
267
+ anonymous: false,
268
+ inputs: [
269
+ { indexed: true, internalType: "address", name: "actor", type: "address" },
270
+ { indexed: false, internalType: "bytes32", name: "callId", type: "bytes32" },
271
+ {
272
+ components: [
273
+ { internalType: "address", name: "to", type: "address" },
274
+ { internalType: "uint256", name: "value", type: "uint256" },
275
+ { internalType: "bytes", name: "data", type: "bytes" }
276
+ ],
277
+ indexed: false,
278
+ internalType: "struct Action[]",
279
+ name: "actions",
280
+ type: "tuple[]"
281
+ },
282
+ { indexed: false, internalType: "uint256", name: "allowFailureMap", type: "uint256" },
283
+ { indexed: false, internalType: "uint256", name: "failureMap", type: "uint256" },
284
+ { indexed: false, internalType: "bytes[]", name: "execResults", type: "bytes[]" }
285
+ ],
286
+ name: "Executed",
287
+ type: "event"
288
+ },
289
+ {
290
+ anonymous: false,
291
+ inputs: [
292
+ { indexed: true, internalType: "bytes32", name: "permissionId", type: "bytes32" },
293
+ { indexed: true, internalType: "address", name: "here", type: "address" },
294
+ { indexed: false, internalType: "address", name: "where", type: "address" },
295
+ { indexed: true, internalType: "address", name: "who", type: "address" },
296
+ { indexed: false, internalType: "address", name: "condition", type: "address" }
297
+ ],
298
+ name: "Granted",
299
+ type: "event"
300
+ },
301
+ {
302
+ anonymous: false,
303
+ inputs: [{ indexed: false, internalType: "uint8", name: "version", type: "uint8" }],
304
+ name: "Initialized",
305
+ type: "event"
306
+ },
307
+ {
308
+ anonymous: false,
309
+ inputs: [{ indexed: false, internalType: "bytes", name: "metadata", type: "bytes" }],
310
+ name: "MetadataSet",
311
+ type: "event"
312
+ },
313
+ {
314
+ anonymous: false,
315
+ inputs: [
316
+ { indexed: false, internalType: "address", name: "sender", type: "address" },
317
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
318
+ ],
319
+ name: "NativeTokenDeposited",
320
+ type: "event"
321
+ },
322
+ {
323
+ anonymous: false,
324
+ inputs: [{ indexed: false, internalType: "string", name: "daoURI", type: "string" }],
325
+ name: "NewURI",
326
+ type: "event"
327
+ },
328
+ {
329
+ anonymous: false,
330
+ inputs: [
331
+ { indexed: true, internalType: "bytes32", name: "permissionId", type: "bytes32" },
332
+ { indexed: true, internalType: "address", name: "here", type: "address" },
333
+ { indexed: false, internalType: "address", name: "where", type: "address" },
334
+ { indexed: true, internalType: "address", name: "who", type: "address" }
335
+ ],
336
+ name: "Revoked",
337
+ type: "event"
338
+ },
339
+ {
340
+ anonymous: false,
341
+ inputs: [
342
+ { indexed: false, internalType: "bytes4", name: "interfaceId", type: "bytes4" },
343
+ { indexed: false, internalType: "bytes4", name: "callbackSelector", type: "bytes4" },
344
+ { indexed: false, internalType: "bytes4", name: "magicNumber", type: "bytes4" }
345
+ ],
346
+ name: "StandardCallbackRegistered",
347
+ type: "event"
348
+ },
349
+ {
350
+ anonymous: false,
351
+ inputs: [{ indexed: false, internalType: "address", name: "forwarder", type: "address" }],
352
+ name: "TrustedForwarderSet",
353
+ type: "event"
354
+ },
355
+ {
356
+ anonymous: false,
357
+ inputs: [{ indexed: true, internalType: "address", name: "implementation", type: "address" }],
358
+ name: "Upgraded",
359
+ type: "event"
360
+ },
361
+ { stateMutability: "nonpayable", type: "fallback" },
362
+ {
363
+ inputs: [],
364
+ name: "EXECUTE_PERMISSION_ID",
365
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
366
+ stateMutability: "view",
367
+ type: "function"
368
+ },
369
+ {
370
+ inputs: [],
371
+ name: "REGISTER_STANDARD_CALLBACK_PERMISSION_ID",
372
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
373
+ stateMutability: "view",
374
+ type: "function"
375
+ },
376
+ {
377
+ inputs: [],
378
+ name: "ROOT_PERMISSION_ID",
379
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
380
+ stateMutability: "view",
381
+ type: "function"
382
+ },
383
+ {
384
+ inputs: [],
385
+ name: "SET_METADATA_PERMISSION_ID",
386
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
387
+ stateMutability: "view",
388
+ type: "function"
389
+ },
390
+ {
391
+ inputs: [],
392
+ name: "SET_TRUSTED_FORWARDER_PERMISSION_ID",
393
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
394
+ stateMutability: "view",
395
+ type: "function"
396
+ },
397
+ {
398
+ inputs: [],
399
+ name: "UPGRADE_DAO_PERMISSION_ID",
400
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
401
+ stateMutability: "view",
402
+ type: "function"
403
+ },
404
+ {
405
+ inputs: [],
406
+ name: "VALIDATE_SIGNATURE_PERMISSION_ID",
407
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
408
+ stateMutability: "view",
409
+ type: "function"
410
+ },
411
+ {
412
+ inputs: [
413
+ {
414
+ components: [
415
+ { internalType: "enum PermissionLib.Operation", name: "operation", type: "uint8" },
416
+ { internalType: "address", name: "where", type: "address" },
417
+ { internalType: "address", name: "who", type: "address" },
418
+ { internalType: "address", name: "condition", type: "address" },
419
+ { internalType: "bytes32", name: "permissionId", type: "bytes32" }
420
+ ],
421
+ internalType: "struct PermissionLib.MultiTargetPermission[]",
422
+ name: "_items",
423
+ type: "tuple[]"
424
+ }
425
+ ],
426
+ name: "applyMultiTargetPermissions",
427
+ outputs: [],
428
+ stateMutability: "nonpayable",
429
+ type: "function"
430
+ },
431
+ {
432
+ inputs: [
433
+ { internalType: "address", name: "_where", type: "address" },
434
+ {
435
+ components: [
436
+ { internalType: "enum PermissionLib.Operation", name: "operation", type: "uint8" },
437
+ { internalType: "address", name: "who", type: "address" },
438
+ { internalType: "bytes32", name: "permissionId", type: "bytes32" }
439
+ ],
440
+ internalType: "struct PermissionLib.SingleTargetPermission[]",
441
+ name: "items",
442
+ type: "tuple[]"
443
+ }
444
+ ],
445
+ name: "applySingleTargetPermissions",
446
+ outputs: [],
447
+ stateMutability: "nonpayable",
448
+ type: "function"
449
+ },
450
+ {
451
+ inputs: [],
452
+ name: "daoURI",
453
+ outputs: [{ internalType: "string", name: "", type: "string" }],
454
+ stateMutability: "view",
455
+ type: "function"
456
+ },
457
+ {
458
+ inputs: [
459
+ { internalType: "address", name: "_token", type: "address" },
460
+ { internalType: "uint256", name: "_amount", type: "uint256" },
461
+ { internalType: "string", name: "_reference", type: "string" }
462
+ ],
463
+ name: "deposit",
464
+ outputs: [],
465
+ stateMutability: "payable",
466
+ type: "function"
467
+ },
468
+ {
469
+ inputs: [
470
+ { internalType: "bytes32", name: "_callId", type: "bytes32" },
471
+ {
472
+ components: [
473
+ { internalType: "address", name: "to", type: "address" },
474
+ { internalType: "uint256", name: "value", type: "uint256" },
475
+ { internalType: "bytes", name: "data", type: "bytes" }
476
+ ],
477
+ internalType: "struct Action[]",
478
+ name: "_actions",
479
+ type: "tuple[]"
480
+ },
481
+ { internalType: "uint256", name: "_allowFailureMap", type: "uint256" }
482
+ ],
483
+ name: "execute",
484
+ outputs: [
485
+ { internalType: "bytes[]", name: "execResults", type: "bytes[]" },
486
+ { internalType: "uint256", name: "failureMap", type: "uint256" }
487
+ ],
488
+ stateMutability: "nonpayable",
489
+ type: "function"
490
+ },
491
+ {
492
+ inputs: [],
493
+ name: "getTrustedForwarder",
494
+ outputs: [{ internalType: "address", name: "", type: "address" }],
495
+ stateMutability: "view",
496
+ type: "function"
497
+ },
498
+ {
499
+ inputs: [
500
+ { internalType: "address", name: "_where", type: "address" },
501
+ { internalType: "address", name: "_who", type: "address" },
502
+ { internalType: "bytes32", name: "_permissionId", type: "bytes32" }
503
+ ],
504
+ name: "grant",
505
+ outputs: [],
506
+ stateMutability: "nonpayable",
507
+ type: "function"
508
+ },
509
+ {
510
+ inputs: [
511
+ { internalType: "address", name: "_where", type: "address" },
512
+ { internalType: "address", name: "_who", type: "address" },
513
+ { internalType: "bytes32", name: "_permissionId", type: "bytes32" },
514
+ { internalType: "contract IPermissionCondition", name: "_condition", type: "address" }
515
+ ],
516
+ name: "grantWithCondition",
517
+ outputs: [],
518
+ stateMutability: "nonpayable",
519
+ type: "function"
520
+ },
521
+ {
522
+ inputs: [
523
+ { internalType: "address", name: "_where", type: "address" },
524
+ { internalType: "address", name: "_who", type: "address" },
525
+ { internalType: "bytes32", name: "_permissionId", type: "bytes32" },
526
+ { internalType: "bytes", name: "_data", type: "bytes" }
527
+ ],
528
+ name: "hasPermission",
529
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
530
+ stateMutability: "view",
531
+ type: "function"
532
+ },
533
+ {
534
+ inputs: [
535
+ { internalType: "bytes", name: "_metadata", type: "bytes" },
536
+ { internalType: "address", name: "_initialOwner", type: "address" },
537
+ { internalType: "address", name: "_trustedForwarder", type: "address" },
538
+ { internalType: "string", name: "daoURI_", type: "string" }
539
+ ],
540
+ name: "initialize",
541
+ outputs: [],
542
+ stateMutability: "nonpayable",
543
+ type: "function"
544
+ },
545
+ {
546
+ inputs: [
547
+ { internalType: "uint8[3]", name: "_previousProtocolVersion", type: "uint8[3]" },
548
+ { internalType: "bytes", name: "_initData", type: "bytes" }
549
+ ],
550
+ name: "initializeFrom",
551
+ outputs: [],
552
+ stateMutability: "nonpayable",
553
+ type: "function"
554
+ },
555
+ {
556
+ inputs: [
557
+ { internalType: "address", name: "_where", type: "address" },
558
+ { internalType: "address", name: "_who", type: "address" },
559
+ { internalType: "bytes32", name: "_permissionId", type: "bytes32" },
560
+ { internalType: "bytes", name: "_data", type: "bytes" }
561
+ ],
562
+ name: "isGranted",
563
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
564
+ stateMutability: "view",
565
+ type: "function"
566
+ },
567
+ {
568
+ inputs: [
569
+ { internalType: "bytes32", name: "_hash", type: "bytes32" },
570
+ { internalType: "bytes", name: "_signature", type: "bytes" }
571
+ ],
572
+ name: "isValidSignature",
573
+ outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
574
+ stateMutability: "view",
575
+ type: "function"
576
+ },
577
+ {
578
+ inputs: [],
579
+ name: "protocolVersion",
580
+ outputs: [{ internalType: "uint8[3]", name: "", type: "uint8[3]" }],
581
+ stateMutability: "pure",
582
+ type: "function"
583
+ },
584
+ {
585
+ inputs: [],
586
+ name: "proxiableUUID",
587
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
588
+ stateMutability: "view",
589
+ type: "function"
590
+ },
591
+ {
592
+ inputs: [
593
+ { internalType: "bytes4", name: "_interfaceId", type: "bytes4" },
594
+ { internalType: "bytes4", name: "_callbackSelector", type: "bytes4" },
595
+ { internalType: "bytes4", name: "_magicNumber", type: "bytes4" }
596
+ ],
597
+ name: "registerStandardCallback",
598
+ outputs: [],
599
+ stateMutability: "nonpayable",
600
+ type: "function"
601
+ },
602
+ {
603
+ inputs: [
604
+ { internalType: "address", name: "_where", type: "address" },
605
+ { internalType: "address", name: "_who", type: "address" },
606
+ { internalType: "bytes32", name: "_permissionId", type: "bytes32" }
607
+ ],
608
+ name: "revoke",
609
+ outputs: [],
610
+ stateMutability: "nonpayable",
611
+ type: "function"
612
+ },
613
+ {
614
+ inputs: [{ internalType: "string", name: "newDaoURI", type: "string" }],
615
+ name: "setDaoURI",
616
+ outputs: [],
617
+ stateMutability: "nonpayable",
618
+ type: "function"
619
+ },
620
+ {
621
+ inputs: [{ internalType: "bytes", name: "_metadata", type: "bytes" }],
622
+ name: "setMetadata",
623
+ outputs: [],
624
+ stateMutability: "nonpayable",
625
+ type: "function"
626
+ },
627
+ {
628
+ inputs: [{ internalType: "address", name: "", type: "address" }],
629
+ name: "setSignatureValidator",
630
+ outputs: [],
631
+ stateMutability: "pure",
632
+ type: "function"
633
+ },
634
+ {
635
+ inputs: [{ internalType: "address", name: "_newTrustedForwarder", type: "address" }],
636
+ name: "setTrustedForwarder",
637
+ outputs: [],
638
+ stateMutability: "nonpayable",
639
+ type: "function"
640
+ },
641
+ {
642
+ inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
643
+ name: "supportsInterface",
644
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
645
+ stateMutability: "view",
646
+ type: "function"
647
+ },
648
+ {
649
+ inputs: [{ internalType: "address", name: "newImplementation", type: "address" }],
650
+ name: "upgradeTo",
651
+ outputs: [],
652
+ stateMutability: "nonpayable",
653
+ type: "function"
654
+ },
655
+ {
656
+ inputs: [
657
+ { internalType: "address", name: "newImplementation", type: "address" },
658
+ { internalType: "bytes", name: "data", type: "bytes" }
659
+ ],
660
+ name: "upgradeToAndCall",
661
+ outputs: [],
662
+ stateMutability: "payable",
663
+ type: "function"
664
+ },
665
+ { stateMutability: "payable", type: "receive" }
666
+ ];
667
+
668
+ // exports/abis/aragon/AragonMultiSig.ts
669
+ var AragonMultiSig_ABI = [
164
670
  {
165
671
  inputs: [
166
672
  { internalType: "uint16", name: "limit", type: "uint16" },
@@ -787,8 +1293,8 @@ var MultiSig_ABI = [
787
1293
  }
788
1294
  ];
789
1295
 
790
- // exports/abis/aragon/StagedProposalProcessor.ts
791
- var StagedProposalProcessor_ABI = [
1296
+ // exports/abis/aragon/AragonDelayedAction.ts
1297
+ var AragonDelayedAction_ABI = [
792
1298
  { inputs: [], name: "AlreadyInitialized", type: "error" },
793
1299
  { inputs: [{ internalType: "address", name: "body", type: "address" }], name: "BodyResultTypeNotSet", type: "error" },
794
1300
  {
@@ -1589,8 +2095,8 @@ var StagedProposalProcessor_ABI = [
1589
2095
  }
1590
2096
  ];
1591
2097
 
1592
- // exports/abis/aragon/VetoMultiSig.ts
1593
- var VetoMultiSig_ABI = [
2098
+ // exports/abis/aragon/AragonVetoMultiSig.ts
2099
+ var AragonVetoMultiSig_ABI = [
1594
2100
  {
1595
2101
  inputs: [
1596
2102
  { internalType: "uint16", name: "limit", type: "uint16" },
@@ -23096,6 +23602,10 @@ var VaultAdapterV1_ABI = [
23096
23602
  export {
23097
23603
  ADDRESS,
23098
23604
  AggregatorV3Interface_ABI,
23605
+ AragonDao_ABI,
23606
+ AragonDelayedAction_ABI,
23607
+ AragonMultiSig_ABI,
23608
+ AragonVetoMultiSig_ABI,
23099
23609
  ChainMain,
23100
23610
  ChainSide,
23101
23611
  CurveAdapterV1_1_ABI,
@@ -23134,16 +23644,13 @@ export {
23134
23644
  MorphoAdapterV1_2_ABI,
23135
23645
  MorphoAdapterV1_ABI,
23136
23646
  MorphoChainlinkOracleV2_ABI,
23137
- MultiSig_ABI,
23138
23647
  RewardDistributionV1_ABI,
23139
23648
  Stablecoin_ABI,
23140
- StagedProposalProcessor_ABI,
23141
23649
  SupportedChainIds,
23142
23650
  SupportedChains,
23143
23651
  SupportedChainsMap,
23144
23652
  VaultAdapterRecoverV1_ABI,
23145
23653
  VaultAdapterV1_ABI,
23146
- VetoMultiSig_ABI,
23147
23654
  getAddressFromChildIndex,
23148
23655
  getChildFromSeed,
23149
23656
  getPrivateKeyFromChildIndex,