@argonprotocol/mainchain 1.4.3-dev.fbc5662c → 1.4.4

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.
Files changed (49) hide show
  1. package/browser/artifacts/contracts/ArgonToken.sol/ArgonToken.json +671 -0
  2. package/browser/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +671 -0
  3. package/browser/artifacts/contracts/MintingGateway.sol/MintingGateway.json +1688 -0
  4. package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +135 -0
  5. package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +131 -0
  6. package/browser/index.d.ts +1884 -465
  7. package/browser/index.js +6670 -539
  8. package/browser/index.js.map +1 -1
  9. package/lib/artifacts/contracts/ArgonToken.sol/ArgonToken.json +671 -0
  10. package/lib/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +671 -0
  11. package/lib/artifacts/contracts/MintingGateway.sol/MintingGateway.json +1688 -0
  12. package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +135 -0
  13. package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +131 -0
  14. package/lib/index.cjs +6692 -551
  15. package/lib/index.cjs.map +1 -1
  16. package/lib/index.d.cts +1884 -465
  17. package/lib/index.d.ts +1884 -465
  18. package/lib/index.js +6683 -542
  19. package/lib/index.js.map +1 -1
  20. package/package.json +17 -19
  21. package/src/interfaces/augment-api-consts.ts +59 -6
  22. package/src/interfaces/augment-api-errors.ts +212 -11
  23. package/src/interfaces/augment-api-events.ts +295 -13
  24. package/src/interfaces/augment-api-query.ts +291 -27
  25. package/src/interfaces/augment-api-rpc.ts +1 -1
  26. package/src/interfaces/augment-api-runtime.ts +1 -27
  27. package/src/interfaces/augment-api-tx.ts +138 -24
  28. package/src/interfaces/augment-types.ts +7 -3
  29. package/src/interfaces/definitions.ts +11 -26
  30. package/src/interfaces/ethereum/types.ts +17 -5
  31. package/src/interfaces/lookup.ts +700 -301
  32. package/src/interfaces/registry.ts +56 -16
  33. package/src/interfaces/types-lookup.ts +845 -322
  34. package/lib/chunk-3KFMHNNJ.cjs +0 -706
  35. package/lib/chunk-3KFMHNNJ.cjs.map +0 -1
  36. package/lib/chunk-D3FCDADJ.cjs +0 -175
  37. package/lib/chunk-D3FCDADJ.cjs.map +0 -1
  38. package/lib/chunk-RF6NOJOR.js +0 -706
  39. package/lib/chunk-RF6NOJOR.js.map +0 -1
  40. package/lib/chunk-YPXWOFUS.js +0 -175
  41. package/lib/chunk-YPXWOFUS.js.map +0 -1
  42. package/lib/lib-CU2JUZW6.cjs +0 -403
  43. package/lib/lib-CU2JUZW6.cjs.map +0 -1
  44. package/lib/lib-P3PEMYOB.js +0 -403
  45. package/lib/lib-P3PEMYOB.js.map +0 -1
  46. package/lib/setPreset-NCTHSXWD.js +0 -15
  47. package/lib/setPreset-NCTHSXWD.js.map +0 -1
  48. package/lib/setPreset-XHOPATBO.cjs +0 -15
  49. package/lib/setPreset-XHOPATBO.cjs.map +0 -1
@@ -3,7 +3,7 @@
3
3
 
4
4
  // import type lookup before we augment - in some environments
5
5
  // this is required to allow for ambient/previous definitions
6
- import '@polkadot/api-base/types/events';
6
+ import type {} from '@polkadot/api-base/types/events';
7
7
 
8
8
  import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
9
9
  import type {
@@ -21,7 +21,7 @@ import type {
21
21
  u64,
22
22
  } from '@polkadot/types-codec';
23
23
  import type { ITuple } from '@polkadot/types-codec/types';
24
- import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
24
+ import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
25
25
  import type {
26
26
  ArgonNotaryAuditErrorVerifyError,
27
27
  ArgonPrimitivesBitcoinBitcoinRejectedReason,
@@ -38,8 +38,12 @@ import type {
38
38
  FrameSupportTokensMiscBalanceStatus,
39
39
  FrameSystemDispatchEventInfo,
40
40
  PalletBalancesUnexpectedKind,
41
- PalletCrosschainTransferBurnNotice,
41
+ PalletCrosschainTransferAssetKind,
42
+ PalletCrosschainTransferCouncilApprovalTargetId,
43
+ PalletCrosschainTransferGatewayState,
44
+ PalletCrosschainTransferGatewaySyncPause,
42
45
  PalletCrosschainTransferSourceChain,
46
+ PalletCrosschainTransferTransferToArgonActivity,
43
47
  PalletDomainsDomainRegistration,
44
48
  PalletEthereumVerifierBasicOperatingMode,
45
49
  PalletMintMintType,
@@ -322,7 +326,7 @@ declare module '@polkadot/api-base/types/events' {
322
326
  vaultId: u32,
323
327
  liquidityPromised: u128,
324
328
  securitization: u128,
325
- lockedMarketRate: u128,
329
+ lockedTargetPrice: u128,
326
330
  accountId: AccountId32,
327
331
  securityFee: u128,
328
332
  ],
@@ -331,7 +335,7 @@ declare module '@polkadot/api-base/types/events' {
331
335
  vaultId: u32;
332
336
  liquidityPromised: u128;
333
337
  securitization: u128;
334
- lockedMarketRate: u128;
338
+ lockedTargetPrice: u128;
335
339
  accountId: AccountId32;
336
340
  securityFee: u128;
337
341
  }
@@ -342,9 +346,9 @@ declare module '@polkadot/api-base/types/events' {
342
346
  utxoId: u64,
343
347
  vaultId: u32,
344
348
  liquidityPromised: u128,
345
- originalMarketRate: u128,
349
+ oldTargetPrice: u128,
346
350
  securityFee: u128,
347
- newLockedMarketRate: u128,
351
+ newTargetPrice: u128,
348
352
  amountBurned: u128,
349
353
  accountId: AccountId32,
350
354
  ],
@@ -352,9 +356,9 @@ declare module '@polkadot/api-base/types/events' {
352
356
  utxoId: u64;
353
357
  vaultId: u32;
354
358
  liquidityPromised: u128;
355
- originalMarketRate: u128;
359
+ oldTargetPrice: u128;
356
360
  securityFee: u128;
357
- newLockedMarketRate: u128;
361
+ newTargetPrice: u128;
358
362
  amountBurned: u128;
359
363
  accountId: AccountId32;
360
364
  }
@@ -527,17 +531,281 @@ declare module '@polkadot/api-base/types/events' {
527
531
  };
528
532
  crosschainTransfer: {
529
533
  /**
530
- * An inbound burn notice was accepted and settled locally.
534
+ * An account registered its council signer for one destination chain.
531
535
  **/
532
- BurnNoticeAccepted: AugmentedEvent<
536
+ CouncilSignerRegistered: AugmentedEvent<
537
+ ApiType,
538
+ [
539
+ destinationChain: PalletCrosschainTransferSourceChain,
540
+ accountId: AccountId32,
541
+ signer: H160,
542
+ ],
543
+ {
544
+ destinationChain: PalletCrosschainTransferSourceChain;
545
+ accountId: AccountId32;
546
+ signer: H160;
547
+ }
548
+ >;
549
+ /**
550
+ * An account queued a replacement council signer for the next council update.
551
+ **/
552
+ CouncilSignerRotationQueued: AugmentedEvent<
553
+ ApiType,
554
+ [
555
+ destinationChain: PalletCrosschainTransferSourceChain,
556
+ accountId: AccountId32,
557
+ signer: H160,
558
+ ],
559
+ {
560
+ destinationChain: PalletCrosschainTransferSourceChain;
561
+ accountId: AccountId32;
562
+ signer: H160;
563
+ }
564
+ >;
565
+ /**
566
+ * The stored gateway-state snapshot advanced after a proven contiguous batch.
567
+ **/
568
+ GatewayStateAdvanced: AugmentedEvent<
569
+ ApiType,
570
+ [
571
+ sourceChain: PalletCrosschainTransferSourceChain,
572
+ gatewayState: PalletCrosschainTransferGatewayState,
573
+ ],
574
+ {
575
+ sourceChain: PalletCrosschainTransferSourceChain;
576
+ gatewayState: PalletCrosschainTransferGatewayState;
577
+ }
578
+ >;
579
+ /**
580
+ * Gateway proof application paused one source chain at a specific canonical activity.
581
+ **/
582
+ GatewaySyncPaused: AugmentedEvent<
583
+ ApiType,
584
+ [
585
+ sourceChain: PalletCrosschainTransferSourceChain,
586
+ pause: PalletCrosschainTransferGatewaySyncPause,
587
+ ],
588
+ {
589
+ sourceChain: PalletCrosschainTransferSourceChain;
590
+ pause: PalletCrosschainTransferGatewaySyncPause;
591
+ }
592
+ >;
593
+ /**
594
+ * Root manually unpaused one source chain.
595
+ **/
596
+ GatewayUnpaused: AugmentedEvent<
597
+ ApiType,
598
+ [sourceChain: PalletCrosschainTransferSourceChain],
599
+ { sourceChain: PalletCrosschainTransferSourceChain }
600
+ >;
601
+ /**
602
+ * Root force-set the active Global Issuance Council for a destination chain.
603
+ **/
604
+ GlobalIssuanceCouncilForced: AugmentedEvent<
605
+ ApiType,
606
+ [destinationChain: PalletCrosschainTransferSourceChain, councilHash: H256],
607
+ { destinationChain: PalletCrosschainTransferSourceChain; councilHash: H256 }
608
+ >;
609
+ /**
610
+ * Root updated the minimum normalized microgon value required to register a Minting
611
+ * Authority on one destination chain.
612
+ **/
613
+ MinimumMintingAuthorityValueSet: AugmentedEvent<
614
+ ApiType,
615
+ [destinationChain: PalletCrosschainTransferSourceChain, minimumValue: u128],
616
+ { destinationChain: PalletCrosschainTransferSourceChain; minimumValue: u128 }
617
+ >;
618
+ /**
619
+ * A proven activation paid or released the held relayer reimbursement and made the
620
+ * authority usable.
621
+ **/
622
+ MintingAuthorityActivationCompleted: AugmentedEvent<
623
+ ApiType,
624
+ [
625
+ destinationChain: PalletCrosschainTransferSourceChain,
626
+ destinationSigningKey: H160,
627
+ relayerArgonAccountId: AccountId32,
628
+ repaymentAmount: u128,
629
+ ],
630
+ {
631
+ destinationChain: PalletCrosschainTransferSourceChain;
632
+ destinationSigningKey: H160;
633
+ relayerArgonAccountId: AccountId32;
634
+ repaymentAmount: u128;
635
+ }
636
+ >;
637
+ /**
638
+ * A proven Ethereum activation filled the pending local activation fields.
639
+ **/
640
+ MintingAuthorityActivationFinalized: AugmentedEvent<
641
+ ApiType,
642
+ [sourceChain: PalletCrosschainTransferSourceChain, destinationSigningKey: H160],
643
+ { sourceChain: PalletCrosschainTransferSourceChain; destinationSigningKey: H160 }
644
+ >;
645
+ /**
646
+ * Root updated the pricing inputs used to repay relayers for activation batches on one
647
+ * destination chain.
648
+ **/
649
+ MintingAuthorityActivationRepaymentPricingSet: AugmentedEvent<
650
+ ApiType,
651
+ [destinationChain: PalletCrosschainTransferSourceChain],
652
+ { destinationChain: PalletCrosschainTransferSourceChain }
653
+ >;
654
+ /**
655
+ * A proven Ethereum deactivation released collateral and removed the local authority
656
+ * record.
657
+ **/
658
+ MintingAuthorityDeactivationFinalized: AugmentedEvent<
659
+ ApiType,
660
+ [sourceChain: PalletCrosschainTransferSourceChain, destinationSigningKey: H160],
661
+ { sourceChain: PalletCrosschainTransferSourceChain; destinationSigningKey: H160 }
662
+ >;
663
+ /**
664
+ * An operator queued the signer-authorized Ethereum deactivation for a Minting Authority.
665
+ **/
666
+ MintingAuthorityDeactivationQueued: AugmentedEvent<
667
+ ApiType,
668
+ [
669
+ destinationChain: PalletCrosschainTransferSourceChain,
670
+ destinationSigningKey: H160,
671
+ approvalQueueNonce: u64,
672
+ ],
673
+ {
674
+ destinationChain: PalletCrosschainTransferSourceChain;
675
+ destinationSigningKey: H160;
676
+ approvalQueueNonce: u64;
677
+ }
678
+ >;
679
+ /**
680
+ * An operator account registered a Minting Authority and queued it for council approval.
681
+ **/
682
+ MintingAuthorityRegistered: AugmentedEvent<
683
+ ApiType,
684
+ [
685
+ destinationChain: PalletCrosschainTransferSourceChain,
686
+ destinationSigningKey: H160,
687
+ accountId: AccountId32,
688
+ approvalQueueNonce: u64,
689
+ ],
690
+ {
691
+ destinationChain: PalletCrosschainTransferSourceChain;
692
+ destinationSigningKey: H160;
693
+ accountId: AccountId32;
694
+ approvalQueueNonce: u64;
695
+ }
696
+ >;
697
+ /**
698
+ * The queued council update entry reached local quorum.
699
+ **/
700
+ QueueEntryApprovalReady: AugmentedEvent<
701
+ ApiType,
702
+ [
703
+ destinationChain: PalletCrosschainTransferSourceChain,
704
+ target: PalletCrosschainTransferCouncilApprovalTargetId,
705
+ approvalQueueNonce: u64,
706
+ ],
707
+ {
708
+ destinationChain: PalletCrosschainTransferSourceChain;
709
+ target: PalletCrosschainTransferCouncilApprovalTargetId;
710
+ approvalQueueNonce: u64;
711
+ }
712
+ >;
713
+ /**
714
+ * A council member recorded approval for a queued council update entry.
715
+ **/
716
+ QueueEntryApprovalRecorded: AugmentedEvent<
717
+ ApiType,
718
+ [
719
+ destinationChain: PalletCrosschainTransferSourceChain,
720
+ target: PalletCrosschainTransferCouncilApprovalTargetId,
721
+ approvalQueueNonce: u64,
722
+ ],
723
+ {
724
+ destinationChain: PalletCrosschainTransferSourceChain;
725
+ target: PalletCrosschainTransferCouncilApprovalTargetId;
726
+ approvalQueueNonce: u64;
727
+ }
728
+ >;
729
+ /**
730
+ * A pending collateral reservation was invalidated.
731
+ **/
732
+ TransferCollateralInvalidated: AugmentedEvent<
733
+ ApiType,
734
+ [transferId: H256, destinationSigningKey: H160],
735
+ { transferId: H256; destinationSigningKey: H160 }
736
+ >;
737
+ /**
738
+ * A minting authority updated transfer collateral.
739
+ **/
740
+ TransferCollateralized: AugmentedEvent<
741
+ ApiType,
742
+ [
743
+ transferId: H256,
744
+ destinationSigningKey: H160,
745
+ microgonCollateral: u128,
746
+ micronotCollateral: u128,
747
+ ],
748
+ {
749
+ transferId: H256;
750
+ destinationSigningKey: H160;
751
+ microgonCollateral: u128;
752
+ micronotCollateral: u128;
753
+ }
754
+ >;
755
+ /**
756
+ * A transfer was canceled on the source chain.
757
+ **/
758
+ TransferOutCanceled: AugmentedEvent<
759
+ ApiType,
760
+ [sourceChain: PalletCrosschainTransferSourceChain, transferId: H256],
761
+ { sourceChain: PalletCrosschainTransferSourceChain; transferId: H256 }
762
+ >;
763
+ /**
764
+ * A transfer was finalized on the source chain.
765
+ **/
766
+ TransferOutFinalized: AugmentedEvent<
767
+ ApiType,
768
+ [sourceChain: PalletCrosschainTransferSourceChain, transferId: H256],
769
+ { sourceChain: PalletCrosschainTransferSourceChain; transferId: H256 }
770
+ >;
771
+ /**
772
+ * A transfer is ready for finalization.
773
+ **/
774
+ TransferOutReady: AugmentedEvent<ApiType, [transferId: H256], { transferId: H256 }>;
775
+ /**
776
+ * A transfer out was opened.
777
+ **/
778
+ TransferOutStarted: AugmentedEvent<
779
+ ApiType,
780
+ [
781
+ destinationChain: PalletCrosschainTransferSourceChain,
782
+ transferId: H256,
783
+ accountId: AccountId32,
784
+ asset: PalletCrosschainTransferAssetKind,
785
+ amount: u128,
786
+ mintingAuthorityTip: u128,
787
+ ],
788
+ {
789
+ destinationChain: PalletCrosschainTransferSourceChain;
790
+ transferId: H256;
791
+ accountId: AccountId32;
792
+ asset: PalletCrosschainTransferAssetKind;
793
+ amount: u128;
794
+ mintingAuthorityTip: u128;
795
+ }
796
+ >;
797
+ /**
798
+ * A `TransferToArgonStarted` activity was proven and settled locally.
799
+ **/
800
+ TransferToArgonSettled: AugmentedEvent<
533
801
  ApiType,
534
802
  [
535
803
  sourceChain: PalletCrosschainTransferSourceChain,
536
- notice: PalletCrosschainTransferBurnNotice,
804
+ transfer: PalletCrosschainTransferTransferToArgonActivity,
537
805
  ],
538
806
  {
539
807
  sourceChain: PalletCrosschainTransferSourceChain;
540
- notice: PalletCrosschainTransferBurnNotice;
808
+ transfer: PalletCrosschainTransferTransferToArgonActivity;
541
809
  }
542
810
  >;
543
811
  };
@@ -1620,6 +1888,15 @@ declare module '@polkadot/api-base/types/events' {
1620
1888
  [frameId: u64, amount: u128, dispatchError: SpRuntimeDispatchError],
1621
1889
  { frameId: u64; amount: u128; dispatchError: SpRuntimeDispatchError }
1622
1890
  >;
1891
+ /**
1892
+ * Encumbered treasury backing was burned and any no-longer-needed fractional hold was
1893
+ * returned.
1894
+ **/
1895
+ EncumberedBondMicrogonsBurned: AugmentedEvent<
1896
+ ApiType,
1897
+ [accountId: AccountId32, burnedAmount: u128, releasedAmount: u128],
1898
+ { accountId: AccountId32; burnedAmount: u128; releasedAmount: u128 }
1899
+ >;
1623
1900
  /**
1624
1901
  * Frame earnings were distributed.
1625
1902
  **/
@@ -1707,6 +1984,11 @@ declare module '@polkadot/api-base/types/events' {
1707
1984
  >;
1708
1985
  };
1709
1986
  vaults: {
1987
+ CommittedArgonotsSet: AugmentedEvent<
1988
+ ApiType,
1989
+ [vaultId: u32, operatorAccountId: AccountId32, amount: u128],
1990
+ { vaultId: u32; operatorAccountId: AccountId32; amount: u128 }
1991
+ >;
1710
1992
  FundLockCanceled: AugmentedEvent<
1711
1993
  ApiType,
1712
1994
  [vaultId: u32, amount: u128],