@argonprotocol/mainchain 1.5.2-dev.5254a99c → 1.5.2-dev.5a6c09ac

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 +439 -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 +290 -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 +4730 -516
  12. package/browser/index.js +3458 -796
  13. package/browser/index.js.map +1 -1
  14. package/lib/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +439 -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 +290 -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 +3470 -803
  24. package/lib/index.cjs.map +1 -1
  25. package/lib/index.d.cts +4730 -516
  26. package/lib/index.d.ts +4730 -516
  27. package/lib/index.js +3464 -797
  28. package/lib/index.js.map +1 -1
  29. package/package.json +8 -7
  30. package/src/interfaces/augment-api-consts.ts +53 -0
  31. package/src/interfaces/augment-api-errors.ts +95 -0
  32. package/src/interfaces/augment-api-events.ts +119 -1
  33. package/src/interfaces/augment-api-query.ts +186 -4
  34. package/src/interfaces/augment-api-tx.ts +95 -3
  35. package/src/interfaces/lookup.ts +611 -271
  36. package/src/interfaces/registry.ts +50 -4
  37. package/src/interfaces/types-lookup.ts +654 -278
@@ -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,
@@ -42,6 +44,7 @@ import type {
42
44
  ArgonPrimitivesInherentsBlockSealInherent,
43
45
  ArgonPrimitivesNotaryNotaryMeta,
44
46
  ArgonPrimitivesNotebookSignedNotebookHeader,
47
+ ArgonPrimitivesPriceIndex,
45
48
  ArgonPrimitivesVaultTreasuryBonusApprovalProof,
46
49
  ArgonPrimitivesVaultVaultTerms,
47
50
  ArgonRuntimeOriginCaller,
@@ -61,13 +64,16 @@ import type {
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,
@@ -752,6 +758,7 @@ declare module '@polkadot/api-base/types/submittable' {
752
758
  deneb?: any;
753
759
  electra?: any;
754
760
  fulu?: any;
761
+ gloas?: any;
755
762
  }
756
763
  | string
757
764
  | Uint8Array,
@@ -774,6 +781,16 @@ declare module '@polkadot/api-base/types/submittable' {
774
781
  ) => SubmittableExtrinsic<ApiType>,
775
782
  [H256, SnowbridgeBeaconPrimitivesBeaconHeader, PalletEthereumVerifierExecutionHeaderProof]
776
783
  >;
784
+ /**
785
+ * Configure the implemented Gloas fork before the verifier finalizes its activation.
786
+ * Earlier forks and retained consensus state are preserved. May only be called by root.
787
+ **/
788
+ setGloasFork: AugmentedSubmittable<
789
+ (
790
+ fork: PalletEthereumVerifierFork | { version?: any; epoch?: any } | string | Uint8Array,
791
+ ) => SubmittableExtrinsic<ApiType>,
792
+ [PalletEthereumVerifierFork]
793
+ >;
777
794
  /**
778
795
  * Halt or resume all pallet operations. May only be called by root.
779
796
  **/
@@ -1461,7 +1478,7 @@ declare module '@polkadot/api-base/types/submittable' {
1461
1478
  submit: AugmentedSubmittable<
1462
1479
  (
1463
1480
  index:
1464
- | PalletPriceIndexPriceIndex
1481
+ | ArgonPrimitivesPriceIndex
1465
1482
  | {
1466
1483
  btcUsdPrice?: any;
1467
1484
  argonotUsdPrice?: any;
@@ -1469,6 +1486,8 @@ declare module '@polkadot/api-base/types/submittable' {
1469
1486
  argonUsdTargetPrice?: any;
1470
1487
  argonTimeWeightedAverageLiquidity?: any;
1471
1488
  tick?: any;
1489
+ usdcUsdPrice?: any;
1490
+ stabilizerPoolSqrtPriceX96?: any;
1472
1491
  }
1473
1492
  | string
1474
1493
  | Uint8Array,
@@ -1480,7 +1499,7 @@ declare module '@polkadot/api-base/types/submittable' {
1480
1499
  | { ethereumUsdPrice?: any; ethereumGasPriceWei?: any; tick?: any }
1481
1500
  | string,
1482
1501
  ) => SubmittableExtrinsic<ApiType>,
1483
- [PalletPriceIndexPriceIndex, Option<PalletPriceIndexEthereumPriceIndex>]
1502
+ [ArgonPrimitivesPriceIndex, Option<PalletPriceIndexEthereumPriceIndex>]
1484
1503
  >;
1485
1504
  };
1486
1505
  proxy: {
@@ -1842,6 +1861,79 @@ declare module '@polkadot/api-base/types/submittable' {
1842
1861
  [MultiAddress, ArgonRuntimeProxyType, u32]
1843
1862
  >;
1844
1863
  };
1864
+ stabilizerBuys: {
1865
+ /**
1866
+ * Submit a whole-percent bid during F+1. Account ID breaks equal-rate ties.
1867
+ **/
1868
+ bid: AugmentedSubmittable<
1869
+ (
1870
+ admissionFrame: u64 | AnyNumber | Uint8Array,
1871
+ rewardRate: Percent | AnyNumber | Uint8Array,
1872
+ ) => SubmittableExtrinsic<ApiType>,
1873
+ [u64, Percent]
1874
+ >;
1875
+ /**
1876
+ * Select the reward pool, or disable new purchase eligibility.
1877
+ **/
1878
+ setApprovedPool: AugmentedSubmittable<
1879
+ (
1880
+ pool:
1881
+ | Option<PalletStabilizerBuysUniswapPurchasePurchasePool>
1882
+ | null
1883
+ | Uint8Array
1884
+ | PalletStabilizerBuysUniswapPurchasePurchasePool
1885
+ | {
1886
+ chainId?: any;
1887
+ poolManager?: any;
1888
+ poolId?: any;
1889
+ usdcToken?: any;
1890
+ argonIsToken0?: any;
1891
+ }
1892
+ | string,
1893
+ ) => SubmittableExtrinsic<ApiType>,
1894
+ [Option<PalletStabilizerBuysUniswapPurchasePurchasePool>]
1895
+ >;
1896
+ /**
1897
+ * Change matching for newly created auctions; existing policy remains frozen.
1898
+ **/
1899
+ setMatchingRate: AugmentedSubmittable<
1900
+ (rate: Permill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
1901
+ [Permill]
1902
+ >;
1903
+ };
1904
+ stabilizerPools: {
1905
+ /**
1906
+ * Register a baseline, extend a maintained revision, or reset after an unproven change.
1907
+ **/
1908
+ checkpointPosition: AugmentedSubmittable<
1909
+ (
1910
+ poolManager: H160 | string | Uint8Array,
1911
+ poolId: H256 | string | Uint8Array,
1912
+ tokenId: U256 | AnyNumber | Uint8Array,
1913
+ proof:
1914
+ | PalletStabilizerPoolsPositionProof
1915
+ | { subscriber?: any; positionManager?: any; poolManager?: any }
1916
+ | string
1917
+ | Uint8Array,
1918
+ ) => SubmittableExtrinsic<ApiType>,
1919
+ [H160, H256, U256, PalletStabilizerPoolsPositionProof]
1920
+ >;
1921
+ /**
1922
+ * Approve immutable deployment bindings and the canonical pool key.
1923
+ * Root must verify the pinned implementations and their immutable bindings first.
1924
+ **/
1925
+ registerPool: AugmentedSubmittable<
1926
+ (
1927
+ poolManager: H160 | string | Uint8Array,
1928
+ config:
1929
+ | PalletStabilizerPoolsPoolConfig
1930
+ | { positionManager?: any; subscriber?: any; key?: any }
1931
+ | string
1932
+ | Uint8Array,
1933
+ ) => SubmittableExtrinsic<ApiType>,
1934
+ [H160, PalletStabilizerPoolsPoolConfig]
1935
+ >;
1936
+ };
1845
1937
  sudo: {
1846
1938
  /**
1847
1939
  * Permanently removes the sudo key.