@argonprotocol/mainchain 1.5.2-dev.04b26899 → 1.5.2-dev.085c3add

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 (37) hide show
  1. package/README.md +20 -0
  2. package/browser/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +573 -0
  3. package/browser/artifacts/contracts/ArgonToken.sol/ArgonToken.json +11 -11
  4. package/browser/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +11 -11
  5. package/browser/artifacts/contracts/MintingGateway.sol/MintingGateway.json +328 -16
  6. package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
  7. package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +4 -4
  8. package/browser/artifacts/contracts/StabilizationPoolHook.sol/StabilizationPoolHook.json +699 -0
  9. package/browser/artifacts/contracts/StabilizationPoolSubscriber.sol/StabilizationPoolSubscriber.json +187 -0
  10. package/browser/artifacts/contracts/UniswapV4PriceQuoter.sol/UniswapV4PriceQuoter.json +391 -0
  11. package/browser/index.d.ts +5475 -614
  12. package/browser/index.js +3907 -972
  13. package/browser/index.js.map +1 -1
  14. package/lib/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +573 -0
  15. package/lib/artifacts/contracts/ArgonToken.sol/ArgonToken.json +11 -11
  16. package/lib/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +11 -11
  17. package/lib/artifacts/contracts/MintingGateway.sol/MintingGateway.json +328 -16
  18. package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
  19. package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +4 -4
  20. package/lib/artifacts/contracts/StabilizationPoolHook.sol/StabilizationPoolHook.json +699 -0
  21. package/lib/artifacts/contracts/StabilizationPoolSubscriber.sol/StabilizationPoolSubscriber.json +187 -0
  22. package/lib/artifacts/contracts/UniswapV4PriceQuoter.sol/UniswapV4PriceQuoter.json +391 -0
  23. package/lib/index.cjs +3905 -964
  24. package/lib/index.cjs.map +1 -1
  25. package/lib/index.d.cts +5475 -614
  26. package/lib/index.d.ts +5475 -614
  27. package/lib/index.js +3918 -977
  28. package/lib/index.js.map +1 -1
  29. package/package.json +8 -7
  30. package/src/interfaces/augment-api-consts.ts +86 -0
  31. package/src/interfaces/augment-api-errors.ts +132 -3
  32. package/src/interfaces/augment-api-events.ts +255 -53
  33. package/src/interfaces/augment-api-query.ts +336 -48
  34. package/src/interfaces/augment-api-tx.ts +123 -33
  35. package/src/interfaces/lookup.ts +763 -310
  36. package/src/interfaces/registry.ts +70 -10
  37. package/src/interfaces/types-lookup.ts +829 -321
@@ -14,6 +14,7 @@ import type {
14
14
  Bytes,
15
15
  Compact,
16
16
  Option,
17
+ U256,
17
18
  U8aFixed,
18
19
  Vec,
19
20
  bool,
@@ -30,6 +31,7 @@ import type {
30
31
  H256,
31
32
  MultiAddress,
32
33
  Percent,
34
+ Permill,
33
35
  } from '@polkadot/types/interfaces/runtime';
34
36
  import type {
35
37
  ArgonPrimitivesBitcoinCompressedBitcoinPubkey,
@@ -38,10 +40,12 @@ import type {
38
40
  ArgonPrimitivesBitcoinUtxoRef,
39
41
  ArgonPrimitivesDomainZoneRecord,
40
42
  ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
43
+ ArgonPrimitivesGatewaySourceChain,
41
44
  ArgonPrimitivesInherentsBitcoinUtxoSyncV2,
42
45
  ArgonPrimitivesInherentsBlockSealInherent,
43
46
  ArgonPrimitivesNotaryNotaryMeta,
44
47
  ArgonPrimitivesNotebookSignedNotebookHeader,
48
+ ArgonPrimitivesPriceIndex,
45
49
  ArgonPrimitivesVaultTreasuryBonusApprovalProof,
46
50
  ArgonPrimitivesVaultVaultTerms,
47
51
  ArgonRuntimeOriginCaller,
@@ -57,17 +61,19 @@ import type {
57
61
  PalletCrosschainTransferChainConfig,
58
62
  PalletCrosschainTransferGatewayActivityStorageProof,
59
63
  PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing,
60
- PalletCrosschainTransferSourceChain,
61
64
  PalletEthereumVerifierBasicOperatingMode,
62
65
  PalletEthereumVerifierCheckpointUpdate,
63
66
  PalletEthereumVerifierExecutionHeaderProof,
67
+ PalletEthereumVerifierFork,
64
68
  PalletEthereumVerifierForkVersions,
65
69
  PalletEthereumVerifierUpdate,
66
70
  PalletMultisigTimepoint,
67
71
  PalletOperationalAccountsOperationalProgressPatch,
68
72
  PalletOperationalAccountsRegistration,
69
73
  PalletPriceIndexEthereumPriceIndex,
70
- PalletPriceIndexPriceIndex,
74
+ PalletStabilizerBuysUniswapPurchasePurchasePool,
75
+ PalletStabilizerPoolsPoolConfig,
76
+ PalletStabilizerPoolsPositionProof,
71
77
  PalletTreasuryBondLotEarningsMetrics,
72
78
  PalletVaultsVaultConfig,
73
79
  SnowbridgeBeaconPrimitivesBeaconHeader,
@@ -572,10 +578,10 @@ declare module '@polkadot/api-base/types/submittable' {
572
578
  crosschainTransfer: {
573
579
  approveQueueEntries: AugmentedSubmittable<
574
580
  (
575
- destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
581
+ destinationChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
576
582
  signatures: Vec<U8aFixed>,
577
583
  ) => SubmittableExtrinsic<ApiType>,
578
- [PalletCrosschainTransferSourceChain, Vec<U8aFixed>]
584
+ [ArgonPrimitivesGatewaySourceChain, Vec<U8aFixed>]
579
585
  >;
580
586
  collateralizeTransfer: AugmentedSubmittable<
581
587
  (
@@ -592,21 +598,21 @@ declare module '@polkadot/api-base/types/submittable' {
592
598
  >;
593
599
  forceSetGlobalIssuanceCouncil: AugmentedSubmittable<
594
600
  (
595
- destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
601
+ destinationChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
596
602
  afterNonce: Compact<u64> | AnyNumber | Uint8Array,
597
603
  memberAccountIds: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[],
598
604
  ) => SubmittableExtrinsic<ApiType>,
599
- [PalletCrosschainTransferSourceChain, Compact<u64>, Vec<AccountId32>]
605
+ [ArgonPrimitivesGatewaySourceChain, Compact<u64>, Vec<AccountId32>]
600
606
  >;
601
607
  pauseGateway: AugmentedSubmittable<
602
608
  (
603
- sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
609
+ sourceChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
604
610
  ) => SubmittableExtrinsic<ApiType>,
605
- [PalletCrosschainTransferSourceChain]
611
+ [ArgonPrimitivesGatewaySourceChain]
606
612
  >;
607
613
  proveGatewayActivity: AugmentedSubmittable<
608
614
  (
609
- sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
615
+ sourceChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
610
616
  previousGatewayActivityNonce: Compact<u64> | AnyNumber | Uint8Array,
611
617
  proofBatch:
612
618
  | ArgonPrimitivesEthereumEthereumReceiptLogProofBatch
@@ -615,17 +621,19 @@ declare module '@polkadot/api-base/types/submittable' {
615
621
  | Uint8Array,
616
622
  ) => SubmittableExtrinsic<ApiType>,
617
623
  [
618
- PalletCrosschainTransferSourceChain,
624
+ ArgonPrimitivesGatewaySourceChain,
619
625
  Compact<u64>,
620
626
  ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
621
627
  ]
622
628
  >;
623
629
  /**
624
630
  * Authenticate a complete gateway locator and settle its unconsumed activities.
631
+ * Including the gateway's current nonce also records the proven block time once all
632
+ * activity through that nonce has been applied.
625
633
  **/
626
634
  proveGatewayActivityStorage: AugmentedSubmittable<
627
635
  (
628
- sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
636
+ sourceChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
629
637
  previousGatewayActivityNonce: Compact<u64> | AnyNumber | Uint8Array,
630
638
  proof:
631
639
  | PalletCrosschainTransferGatewayActivityStorageProof
@@ -634,46 +642,46 @@ declare module '@polkadot/api-base/types/submittable' {
634
642
  | Uint8Array,
635
643
  ) => SubmittableExtrinsic<ApiType>,
636
644
  [
637
- PalletCrosschainTransferSourceChain,
645
+ ArgonPrimitivesGatewaySourceChain,
638
646
  Compact<u64>,
639
647
  PalletCrosschainTransferGatewayActivityStorageProof,
640
648
  ]
641
649
  >;
642
650
  registerCouncilSigner: AugmentedSubmittable<
643
651
  (
644
- destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
652
+ destinationChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
645
653
  signingKey: H160 | string | Uint8Array,
646
654
  signature: U8aFixed | string | Uint8Array,
647
655
  ) => SubmittableExtrinsic<ApiType>,
648
- [PalletCrosschainTransferSourceChain, H160, U8aFixed]
656
+ [ArgonPrimitivesGatewaySourceChain, H160, U8aFixed]
649
657
  >;
650
658
  registerMintingAuthority: AugmentedSubmittable<
651
659
  (
652
- destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
660
+ destinationChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
653
661
  destinationSigningKey: H160 | string | Uint8Array,
654
662
  signature: U8aFixed | string | Uint8Array,
655
663
  microgonCollateral: Compact<u128> | AnyNumber | Uint8Array,
656
664
  micronotCollateral: Compact<u128> | AnyNumber | Uint8Array,
657
665
  ) => SubmittableExtrinsic<ApiType>,
658
- [PalletCrosschainTransferSourceChain, H160, U8aFixed, Compact<u128>, Compact<u128>]
666
+ [ArgonPrimitivesGatewaySourceChain, H160, U8aFixed, Compact<u128>, Compact<u128>]
659
667
  >;
660
668
  setChainConfig: AugmentedSubmittable<
661
669
  (
662
- sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
670
+ sourceChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
663
671
  config: PalletCrosschainTransferChainConfig | { Evm: any } | string | Uint8Array,
664
672
  ) => SubmittableExtrinsic<ApiType>,
665
- [PalletCrosschainTransferSourceChain, PalletCrosschainTransferChainConfig]
673
+ [ArgonPrimitivesGatewaySourceChain, PalletCrosschainTransferChainConfig]
666
674
  >;
667
675
  setMinimumMintingAuthorityValue: AugmentedSubmittable<
668
676
  (
669
- destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
677
+ destinationChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
670
678
  minimumValue: Compact<u128> | AnyNumber | Uint8Array,
671
679
  ) => SubmittableExtrinsic<ApiType>,
672
- [PalletCrosschainTransferSourceChain, Compact<u128>]
680
+ [ArgonPrimitivesGatewaySourceChain, Compact<u128>]
673
681
  >;
674
682
  setMintingAuthorityActivationRepaymentPricing: AugmentedSubmittable<
675
683
  (
676
- destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
684
+ destinationChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
677
685
  pricing:
678
686
  | PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing
679
687
  | {
@@ -686,29 +694,24 @@ declare module '@polkadot/api-base/types/submittable' {
686
694
  | Uint8Array,
687
695
  ) => SubmittableExtrinsic<ApiType>,
688
696
  [
689
- PalletCrosschainTransferSourceChain,
697
+ ArgonPrimitivesGatewaySourceChain,
690
698
  PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing,
691
699
  ]
692
700
  >;
693
701
  transferOut: AugmentedSubmittable<
694
702
  (
695
- destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
703
+ destinationChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
696
704
  asset: PalletCrosschainTransferAssetKind | 'Argon' | 'Argonot' | number | Uint8Array,
697
705
  destinationAccount: H160 | string | Uint8Array,
698
706
  amount: Compact<u128> | AnyNumber | Uint8Array,
699
707
  ) => SubmittableExtrinsic<ApiType>,
700
- [
701
- PalletCrosschainTransferSourceChain,
702
- PalletCrosschainTransferAssetKind,
703
- H160,
704
- Compact<u128>,
705
- ]
708
+ [ArgonPrimitivesGatewaySourceChain, PalletCrosschainTransferAssetKind, H160, Compact<u128>]
706
709
  >;
707
710
  unpauseGateway: AugmentedSubmittable<
708
711
  (
709
- sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
712
+ sourceChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
710
713
  ) => SubmittableExtrinsic<ApiType>,
711
- [PalletCrosschainTransferSourceChain]
714
+ [ArgonPrimitivesGatewaySourceChain]
712
715
  >;
713
716
  };
714
717
  domains: {
@@ -752,6 +755,7 @@ declare module '@polkadot/api-base/types/submittable' {
752
755
  deneb?: any;
753
756
  electra?: any;
754
757
  fulu?: any;
758
+ gloas?: any;
755
759
  }
756
760
  | string
757
761
  | Uint8Array,
@@ -774,6 +778,16 @@ declare module '@polkadot/api-base/types/submittable' {
774
778
  ) => SubmittableExtrinsic<ApiType>,
775
779
  [H256, SnowbridgeBeaconPrimitivesBeaconHeader, PalletEthereumVerifierExecutionHeaderProof]
776
780
  >;
781
+ /**
782
+ * Configure the implemented Gloas fork before the verifier finalizes its activation.
783
+ * Earlier forks and retained consensus state are preserved. May only be called by root.
784
+ **/
785
+ setGloasFork: AugmentedSubmittable<
786
+ (
787
+ fork: PalletEthereumVerifierFork | { version?: any; epoch?: any } | string | Uint8Array,
788
+ ) => SubmittableExtrinsic<ApiType>,
789
+ [PalletEthereumVerifierFork]
790
+ >;
777
791
  /**
778
792
  * Halt or resume all pallet operations. May only be called by root.
779
793
  **/
@@ -1461,7 +1475,7 @@ declare module '@polkadot/api-base/types/submittable' {
1461
1475
  submit: AugmentedSubmittable<
1462
1476
  (
1463
1477
  index:
1464
- | PalletPriceIndexPriceIndex
1478
+ | ArgonPrimitivesPriceIndex
1465
1479
  | {
1466
1480
  btcUsdPrice?: any;
1467
1481
  argonotUsdPrice?: any;
@@ -1469,6 +1483,8 @@ declare module '@polkadot/api-base/types/submittable' {
1469
1483
  argonUsdTargetPrice?: any;
1470
1484
  argonTimeWeightedAverageLiquidity?: any;
1471
1485
  tick?: any;
1486
+ usdcUsdPrice?: any;
1487
+ stabilizerPoolSqrtPriceX96?: any;
1472
1488
  }
1473
1489
  | string
1474
1490
  | Uint8Array,
@@ -1480,7 +1496,7 @@ declare module '@polkadot/api-base/types/submittable' {
1480
1496
  | { ethereumUsdPrice?: any; ethereumGasPriceWei?: any; tick?: any }
1481
1497
  | string,
1482
1498
  ) => SubmittableExtrinsic<ApiType>,
1483
- [PalletPriceIndexPriceIndex, Option<PalletPriceIndexEthereumPriceIndex>]
1499
+ [ArgonPrimitivesPriceIndex, Option<PalletPriceIndexEthereumPriceIndex>]
1484
1500
  >;
1485
1501
  };
1486
1502
  proxy: {
@@ -1842,6 +1858,80 @@ declare module '@polkadot/api-base/types/submittable' {
1842
1858
  [MultiAddress, ArgonRuntimeProxyType, u32]
1843
1859
  >;
1844
1860
  };
1861
+ stabilizerBuys: {
1862
+ /**
1863
+ * Submit a whole-percent bid during F+1. Larger matching bases break equal-rate ties;
1864
+ * account ID orders bids with the same rate and matching basis.
1865
+ **/
1866
+ bid: AugmentedSubmittable<
1867
+ (
1868
+ admissionFrame: u64 | AnyNumber | Uint8Array,
1869
+ rewardRate: Percent | AnyNumber | Uint8Array,
1870
+ ) => SubmittableExtrinsic<ApiType>,
1871
+ [u64, Percent]
1872
+ >;
1873
+ /**
1874
+ * Select the reward pool, or disable new purchase eligibility.
1875
+ **/
1876
+ setApprovedPool: AugmentedSubmittable<
1877
+ (
1878
+ pool:
1879
+ | Option<PalletStabilizerBuysUniswapPurchasePurchasePool>
1880
+ | null
1881
+ | Uint8Array
1882
+ | PalletStabilizerBuysUniswapPurchasePurchasePool
1883
+ | {
1884
+ chainId?: any;
1885
+ poolManager?: any;
1886
+ poolId?: any;
1887
+ usdcToken?: any;
1888
+ argonIsToken0?: any;
1889
+ }
1890
+ | string,
1891
+ ) => SubmittableExtrinsic<ApiType>,
1892
+ [Option<PalletStabilizerBuysUniswapPurchasePurchasePool>]
1893
+ >;
1894
+ /**
1895
+ * Change matching for newly created auctions; existing policy remains frozen.
1896
+ **/
1897
+ setMatchingRate: AugmentedSubmittable<
1898
+ (rate: Permill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
1899
+ [Permill]
1900
+ >;
1901
+ };
1902
+ stabilizerPools: {
1903
+ /**
1904
+ * Register a baseline, extend a maintained revision, or reset after an unproven change.
1905
+ **/
1906
+ checkpointPosition: AugmentedSubmittable<
1907
+ (
1908
+ poolManager: H160 | string | Uint8Array,
1909
+ poolId: H256 | string | Uint8Array,
1910
+ tokenId: U256 | AnyNumber | Uint8Array,
1911
+ proof:
1912
+ | PalletStabilizerPoolsPositionProof
1913
+ | { subscriber?: any; positionManager?: any; poolManager?: any }
1914
+ | string
1915
+ | Uint8Array,
1916
+ ) => SubmittableExtrinsic<ApiType>,
1917
+ [H160, H256, U256, PalletStabilizerPoolsPositionProof]
1918
+ >;
1919
+ /**
1920
+ * Approve immutable deployment bindings and the canonical pool key.
1921
+ * Root must verify the pinned implementations and their immutable bindings first.
1922
+ **/
1923
+ registerPool: AugmentedSubmittable<
1924
+ (
1925
+ poolManager: H160 | string | Uint8Array,
1926
+ config:
1927
+ | PalletStabilizerPoolsPoolConfig
1928
+ | { positionManager?: any; subscriber?: any; key?: any }
1929
+ | string
1930
+ | Uint8Array,
1931
+ ) => SubmittableExtrinsic<ApiType>,
1932
+ [H160, PalletStabilizerPoolsPoolConfig]
1933
+ >;
1934
+ };
1845
1935
  sudo: {
1846
1936
  /**
1847
1937
  * Permanently removes the sudo key.