@usdu-finance/usdu-core 0.0.4 → 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.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,
@@ -120,6 +121,7 @@ var ADDRESS = {
120
121
  chainSelector: "5009297550715157269",
121
122
  // curator / DAO
122
123
  curator: "0x9fe66037c44236c87D9Ac8345F489b4413fDFf06",
124
+ aragonDao: "0x9fe66037c44236c87D9Ac8345F489b4413fDFf06",
123
125
  aragonMultiSig: "0x369C21c8cB56C0211772F003c917b2807204BB4D",
124
126
  aragonDelayedAction: "0x8E8Bec995809bF29712C89149603a8C48329aF51",
125
127
  aragonVetoMultiSig: "0xF786531776903BaE94A1A4f4F17a0233dca5f9d5",
@@ -242,6 +244,508 @@ var SupportedChainsMap = {
242
244
  };
243
245
  var SupportedChainIds = Object.values(SupportedChains).map((chain) => chain.id);
244
246
 
247
+ // exports/abis/aragon/AragonDao.ts
248
+ var AragonDao_ABI = [
249
+ { inputs: [], stateMutability: "nonpayable", type: "constructor" },
250
+ { inputs: [{ internalType: "uint256", name: "index", type: "uint256" }], name: "ActionFailed", type: "error" },
251
+ { inputs: [], name: "AlreadyInitialized", type: "error" },
252
+ { inputs: [], name: "AnyAddressDisallowedForWhoAndWhere", type: "error" },
253
+ {
254
+ inputs: [{ internalType: "contract IPermissionCondition", name: "condition", type: "address" }],
255
+ name: "ConditionInterfaceNotSupported",
256
+ type: "error"
257
+ },
258
+ {
259
+ inputs: [{ internalType: "contract IPermissionCondition", name: "condition", type: "address" }],
260
+ name: "ConditionNotAContract",
261
+ type: "error"
262
+ },
263
+ { inputs: [], name: "FunctionRemoved", type: "error" },
264
+ { inputs: [], name: "GrantWithConditionNotSupported", type: "error" },
265
+ { inputs: [], name: "InsufficientGas", type: "error" },
266
+ {
267
+ inputs: [
268
+ { internalType: "uint256", name: "expected", type: "uint256" },
269
+ { internalType: "uint256", name: "actual", type: "uint256" }
270
+ ],
271
+ name: "NativeTokenDepositAmountMismatch",
272
+ type: "error"
273
+ },
274
+ {
275
+ inputs: [
276
+ { internalType: "address", name: "where", type: "address" },
277
+ { internalType: "address", name: "who", type: "address" },
278
+ { internalType: "bytes32", name: "permissionId", type: "bytes32" },
279
+ { internalType: "address", name: "currentCondition", type: "address" },
280
+ { internalType: "address", name: "newCondition", type: "address" }
281
+ ],
282
+ name: "PermissionAlreadyGrantedForDifferentCondition",
283
+ type: "error"
284
+ },
285
+ { inputs: [], name: "PermissionsForAnyAddressDisallowed", type: "error" },
286
+ {
287
+ inputs: [{ internalType: "uint8[3]", name: "protocolVersion", type: "uint8[3]" }],
288
+ name: "ProtocolVersionUpgradeNotSupported",
289
+ type: "error"
290
+ },
291
+ { inputs: [], name: "ReentrantCall", type: "error" },
292
+ { inputs: [], name: "TooManyActions", type: "error" },
293
+ {
294
+ inputs: [
295
+ { internalType: "address", name: "where", type: "address" },
296
+ { internalType: "address", name: "who", type: "address" },
297
+ { internalType: "bytes32", name: "permissionId", type: "bytes32" }
298
+ ],
299
+ name: "Unauthorized",
300
+ type: "error"
301
+ },
302
+ {
303
+ inputs: [
304
+ { internalType: "bytes4", name: "callbackSelector", type: "bytes4" },
305
+ { internalType: "bytes4", name: "magicNumber", type: "bytes4" }
306
+ ],
307
+ name: "UnknownCallback",
308
+ type: "error"
309
+ },
310
+ { inputs: [], name: "ZeroAmount", type: "error" },
311
+ {
312
+ anonymous: false,
313
+ inputs: [
314
+ { indexed: false, internalType: "address", name: "previousAdmin", type: "address" },
315
+ { indexed: false, internalType: "address", name: "newAdmin", type: "address" }
316
+ ],
317
+ name: "AdminChanged",
318
+ type: "event"
319
+ },
320
+ {
321
+ anonymous: false,
322
+ inputs: [{ indexed: true, internalType: "address", name: "beacon", type: "address" }],
323
+ name: "BeaconUpgraded",
324
+ type: "event"
325
+ },
326
+ {
327
+ anonymous: false,
328
+ inputs: [
329
+ { indexed: false, internalType: "address", name: "sender", type: "address" },
330
+ { indexed: true, internalType: "bytes4", name: "sig", type: "bytes4" },
331
+ { indexed: false, internalType: "bytes", name: "data", type: "bytes" }
332
+ ],
333
+ name: "CallbackReceived",
334
+ type: "event"
335
+ },
336
+ {
337
+ anonymous: false,
338
+ inputs: [
339
+ { indexed: true, internalType: "address", name: "sender", type: "address" },
340
+ { indexed: true, internalType: "address", name: "token", type: "address" },
341
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
342
+ { indexed: false, internalType: "string", name: "_reference", type: "string" }
343
+ ],
344
+ name: "Deposited",
345
+ type: "event"
346
+ },
347
+ {
348
+ anonymous: false,
349
+ inputs: [
350
+ { indexed: true, internalType: "address", name: "actor", type: "address" },
351
+ { indexed: false, internalType: "bytes32", name: "callId", type: "bytes32" },
352
+ {
353
+ components: [
354
+ { internalType: "address", name: "to", type: "address" },
355
+ { internalType: "uint256", name: "value", type: "uint256" },
356
+ { internalType: "bytes", name: "data", type: "bytes" }
357
+ ],
358
+ indexed: false,
359
+ internalType: "struct Action[]",
360
+ name: "actions",
361
+ type: "tuple[]"
362
+ },
363
+ { indexed: false, internalType: "uint256", name: "allowFailureMap", type: "uint256" },
364
+ { indexed: false, internalType: "uint256", name: "failureMap", type: "uint256" },
365
+ { indexed: false, internalType: "bytes[]", name: "execResults", type: "bytes[]" }
366
+ ],
367
+ name: "Executed",
368
+ type: "event"
369
+ },
370
+ {
371
+ anonymous: false,
372
+ inputs: [
373
+ { indexed: true, internalType: "bytes32", name: "permissionId", type: "bytes32" },
374
+ { indexed: true, internalType: "address", name: "here", type: "address" },
375
+ { indexed: false, internalType: "address", name: "where", type: "address" },
376
+ { indexed: true, internalType: "address", name: "who", type: "address" },
377
+ { indexed: false, internalType: "address", name: "condition", type: "address" }
378
+ ],
379
+ name: "Granted",
380
+ type: "event"
381
+ },
382
+ {
383
+ anonymous: false,
384
+ inputs: [{ indexed: false, internalType: "uint8", name: "version", type: "uint8" }],
385
+ name: "Initialized",
386
+ type: "event"
387
+ },
388
+ {
389
+ anonymous: false,
390
+ inputs: [{ indexed: false, internalType: "bytes", name: "metadata", type: "bytes" }],
391
+ name: "MetadataSet",
392
+ type: "event"
393
+ },
394
+ {
395
+ anonymous: false,
396
+ inputs: [
397
+ { indexed: false, internalType: "address", name: "sender", type: "address" },
398
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
399
+ ],
400
+ name: "NativeTokenDeposited",
401
+ type: "event"
402
+ },
403
+ {
404
+ anonymous: false,
405
+ inputs: [{ indexed: false, internalType: "string", name: "daoURI", type: "string" }],
406
+ name: "NewURI",
407
+ type: "event"
408
+ },
409
+ {
410
+ anonymous: false,
411
+ inputs: [
412
+ { indexed: true, internalType: "bytes32", name: "permissionId", type: "bytes32" },
413
+ { indexed: true, internalType: "address", name: "here", type: "address" },
414
+ { indexed: false, internalType: "address", name: "where", type: "address" },
415
+ { indexed: true, internalType: "address", name: "who", type: "address" }
416
+ ],
417
+ name: "Revoked",
418
+ type: "event"
419
+ },
420
+ {
421
+ anonymous: false,
422
+ inputs: [
423
+ { indexed: false, internalType: "bytes4", name: "interfaceId", type: "bytes4" },
424
+ { indexed: false, internalType: "bytes4", name: "callbackSelector", type: "bytes4" },
425
+ { indexed: false, internalType: "bytes4", name: "magicNumber", type: "bytes4" }
426
+ ],
427
+ name: "StandardCallbackRegistered",
428
+ type: "event"
429
+ },
430
+ {
431
+ anonymous: false,
432
+ inputs: [{ indexed: false, internalType: "address", name: "forwarder", type: "address" }],
433
+ name: "TrustedForwarderSet",
434
+ type: "event"
435
+ },
436
+ {
437
+ anonymous: false,
438
+ inputs: [{ indexed: true, internalType: "address", name: "implementation", type: "address" }],
439
+ name: "Upgraded",
440
+ type: "event"
441
+ },
442
+ { stateMutability: "nonpayable", type: "fallback" },
443
+ {
444
+ inputs: [],
445
+ name: "EXECUTE_PERMISSION_ID",
446
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
447
+ stateMutability: "view",
448
+ type: "function"
449
+ },
450
+ {
451
+ inputs: [],
452
+ name: "REGISTER_STANDARD_CALLBACK_PERMISSION_ID",
453
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
454
+ stateMutability: "view",
455
+ type: "function"
456
+ },
457
+ {
458
+ inputs: [],
459
+ name: "ROOT_PERMISSION_ID",
460
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
461
+ stateMutability: "view",
462
+ type: "function"
463
+ },
464
+ {
465
+ inputs: [],
466
+ name: "SET_METADATA_PERMISSION_ID",
467
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
468
+ stateMutability: "view",
469
+ type: "function"
470
+ },
471
+ {
472
+ inputs: [],
473
+ name: "SET_TRUSTED_FORWARDER_PERMISSION_ID",
474
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
475
+ stateMutability: "view",
476
+ type: "function"
477
+ },
478
+ {
479
+ inputs: [],
480
+ name: "UPGRADE_DAO_PERMISSION_ID",
481
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
482
+ stateMutability: "view",
483
+ type: "function"
484
+ },
485
+ {
486
+ inputs: [],
487
+ name: "VALIDATE_SIGNATURE_PERMISSION_ID",
488
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
489
+ stateMutability: "view",
490
+ type: "function"
491
+ },
492
+ {
493
+ inputs: [
494
+ {
495
+ components: [
496
+ { internalType: "enum PermissionLib.Operation", name: "operation", type: "uint8" },
497
+ { internalType: "address", name: "where", type: "address" },
498
+ { internalType: "address", name: "who", type: "address" },
499
+ { internalType: "address", name: "condition", type: "address" },
500
+ { internalType: "bytes32", name: "permissionId", type: "bytes32" }
501
+ ],
502
+ internalType: "struct PermissionLib.MultiTargetPermission[]",
503
+ name: "_items",
504
+ type: "tuple[]"
505
+ }
506
+ ],
507
+ name: "applyMultiTargetPermissions",
508
+ outputs: [],
509
+ stateMutability: "nonpayable",
510
+ type: "function"
511
+ },
512
+ {
513
+ inputs: [
514
+ { internalType: "address", name: "_where", type: "address" },
515
+ {
516
+ components: [
517
+ { internalType: "enum PermissionLib.Operation", name: "operation", type: "uint8" },
518
+ { internalType: "address", name: "who", type: "address" },
519
+ { internalType: "bytes32", name: "permissionId", type: "bytes32" }
520
+ ],
521
+ internalType: "struct PermissionLib.SingleTargetPermission[]",
522
+ name: "items",
523
+ type: "tuple[]"
524
+ }
525
+ ],
526
+ name: "applySingleTargetPermissions",
527
+ outputs: [],
528
+ stateMutability: "nonpayable",
529
+ type: "function"
530
+ },
531
+ {
532
+ inputs: [],
533
+ name: "daoURI",
534
+ outputs: [{ internalType: "string", name: "", type: "string" }],
535
+ stateMutability: "view",
536
+ type: "function"
537
+ },
538
+ {
539
+ inputs: [
540
+ { internalType: "address", name: "_token", type: "address" },
541
+ { internalType: "uint256", name: "_amount", type: "uint256" },
542
+ { internalType: "string", name: "_reference", type: "string" }
543
+ ],
544
+ name: "deposit",
545
+ outputs: [],
546
+ stateMutability: "payable",
547
+ type: "function"
548
+ },
549
+ {
550
+ inputs: [
551
+ { internalType: "bytes32", name: "_callId", type: "bytes32" },
552
+ {
553
+ components: [
554
+ { internalType: "address", name: "to", type: "address" },
555
+ { internalType: "uint256", name: "value", type: "uint256" },
556
+ { internalType: "bytes", name: "data", type: "bytes" }
557
+ ],
558
+ internalType: "struct Action[]",
559
+ name: "_actions",
560
+ type: "tuple[]"
561
+ },
562
+ { internalType: "uint256", name: "_allowFailureMap", type: "uint256" }
563
+ ],
564
+ name: "execute",
565
+ outputs: [
566
+ { internalType: "bytes[]", name: "execResults", type: "bytes[]" },
567
+ { internalType: "uint256", name: "failureMap", type: "uint256" }
568
+ ],
569
+ stateMutability: "nonpayable",
570
+ type: "function"
571
+ },
572
+ {
573
+ inputs: [],
574
+ name: "getTrustedForwarder",
575
+ outputs: [{ internalType: "address", name: "", type: "address" }],
576
+ stateMutability: "view",
577
+ type: "function"
578
+ },
579
+ {
580
+ inputs: [
581
+ { internalType: "address", name: "_where", type: "address" },
582
+ { internalType: "address", name: "_who", type: "address" },
583
+ { internalType: "bytes32", name: "_permissionId", type: "bytes32" }
584
+ ],
585
+ name: "grant",
586
+ outputs: [],
587
+ stateMutability: "nonpayable",
588
+ type: "function"
589
+ },
590
+ {
591
+ inputs: [
592
+ { internalType: "address", name: "_where", type: "address" },
593
+ { internalType: "address", name: "_who", type: "address" },
594
+ { internalType: "bytes32", name: "_permissionId", type: "bytes32" },
595
+ { internalType: "contract IPermissionCondition", name: "_condition", type: "address" }
596
+ ],
597
+ name: "grantWithCondition",
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
+ { internalType: "bytes", name: "_data", type: "bytes" }
608
+ ],
609
+ name: "hasPermission",
610
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
611
+ stateMutability: "view",
612
+ type: "function"
613
+ },
614
+ {
615
+ inputs: [
616
+ { internalType: "bytes", name: "_metadata", type: "bytes" },
617
+ { internalType: "address", name: "_initialOwner", type: "address" },
618
+ { internalType: "address", name: "_trustedForwarder", type: "address" },
619
+ { internalType: "string", name: "daoURI_", type: "string" }
620
+ ],
621
+ name: "initialize",
622
+ outputs: [],
623
+ stateMutability: "nonpayable",
624
+ type: "function"
625
+ },
626
+ {
627
+ inputs: [
628
+ { internalType: "uint8[3]", name: "_previousProtocolVersion", type: "uint8[3]" },
629
+ { internalType: "bytes", name: "_initData", type: "bytes" }
630
+ ],
631
+ name: "initializeFrom",
632
+ outputs: [],
633
+ stateMutability: "nonpayable",
634
+ type: "function"
635
+ },
636
+ {
637
+ inputs: [
638
+ { internalType: "address", name: "_where", type: "address" },
639
+ { internalType: "address", name: "_who", type: "address" },
640
+ { internalType: "bytes32", name: "_permissionId", type: "bytes32" },
641
+ { internalType: "bytes", name: "_data", type: "bytes" }
642
+ ],
643
+ name: "isGranted",
644
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
645
+ stateMutability: "view",
646
+ type: "function"
647
+ },
648
+ {
649
+ inputs: [
650
+ { internalType: "bytes32", name: "_hash", type: "bytes32" },
651
+ { internalType: "bytes", name: "_signature", type: "bytes" }
652
+ ],
653
+ name: "isValidSignature",
654
+ outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
655
+ stateMutability: "view",
656
+ type: "function"
657
+ },
658
+ {
659
+ inputs: [],
660
+ name: "protocolVersion",
661
+ outputs: [{ internalType: "uint8[3]", name: "", type: "uint8[3]" }],
662
+ stateMutability: "pure",
663
+ type: "function"
664
+ },
665
+ {
666
+ inputs: [],
667
+ name: "proxiableUUID",
668
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
669
+ stateMutability: "view",
670
+ type: "function"
671
+ },
672
+ {
673
+ inputs: [
674
+ { internalType: "bytes4", name: "_interfaceId", type: "bytes4" },
675
+ { internalType: "bytes4", name: "_callbackSelector", type: "bytes4" },
676
+ { internalType: "bytes4", name: "_magicNumber", type: "bytes4" }
677
+ ],
678
+ name: "registerStandardCallback",
679
+ outputs: [],
680
+ stateMutability: "nonpayable",
681
+ type: "function"
682
+ },
683
+ {
684
+ inputs: [
685
+ { internalType: "address", name: "_where", type: "address" },
686
+ { internalType: "address", name: "_who", type: "address" },
687
+ { internalType: "bytes32", name: "_permissionId", type: "bytes32" }
688
+ ],
689
+ name: "revoke",
690
+ outputs: [],
691
+ stateMutability: "nonpayable",
692
+ type: "function"
693
+ },
694
+ {
695
+ inputs: [{ internalType: "string", name: "newDaoURI", type: "string" }],
696
+ name: "setDaoURI",
697
+ outputs: [],
698
+ stateMutability: "nonpayable",
699
+ type: "function"
700
+ },
701
+ {
702
+ inputs: [{ internalType: "bytes", name: "_metadata", type: "bytes" }],
703
+ name: "setMetadata",
704
+ outputs: [],
705
+ stateMutability: "nonpayable",
706
+ type: "function"
707
+ },
708
+ {
709
+ inputs: [{ internalType: "address", name: "", type: "address" }],
710
+ name: "setSignatureValidator",
711
+ outputs: [],
712
+ stateMutability: "pure",
713
+ type: "function"
714
+ },
715
+ {
716
+ inputs: [{ internalType: "address", name: "_newTrustedForwarder", type: "address" }],
717
+ name: "setTrustedForwarder",
718
+ outputs: [],
719
+ stateMutability: "nonpayable",
720
+ type: "function"
721
+ },
722
+ {
723
+ inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
724
+ name: "supportsInterface",
725
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
726
+ stateMutability: "view",
727
+ type: "function"
728
+ },
729
+ {
730
+ inputs: [{ internalType: "address", name: "newImplementation", type: "address" }],
731
+ name: "upgradeTo",
732
+ outputs: [],
733
+ stateMutability: "nonpayable",
734
+ type: "function"
735
+ },
736
+ {
737
+ inputs: [
738
+ { internalType: "address", name: "newImplementation", type: "address" },
739
+ { internalType: "bytes", name: "data", type: "bytes" }
740
+ ],
741
+ name: "upgradeToAndCall",
742
+ outputs: [],
743
+ stateMutability: "payable",
744
+ type: "function"
745
+ },
746
+ { stateMutability: "payable", type: "receive" }
747
+ ];
748
+
245
749
  // exports/abis/aragon/AragonMultiSig.ts
246
750
  var AragonMultiSig_ABI = [
247
751
  {
@@ -23180,6 +23684,7 @@ var VaultAdapterV1_ABI = [
23180
23684
  0 && (module.exports = {
23181
23685
  ADDRESS,
23182
23686
  AggregatorV3Interface_ABI,
23687
+ AragonDao_ABI,
23183
23688
  AragonDelayedAction_ABI,
23184
23689
  AragonMultiSig_ABI,
23185
23690
  AragonVetoMultiSig_ABI,