@argonprotocol/mainchain 1.5.2-dev.689967a9 → 1.5.2-dev.79fc938b

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 (32) hide show
  1. package/README.md +87 -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 +319 -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/index.d.ts +5168 -551
  9. package/browser/index.js +2168 -420
  10. package/browser/index.js.map +1 -1
  11. package/lib/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +439 -0
  12. package/lib/artifacts/contracts/ArgonToken.sol/ArgonToken.json +11 -11
  13. package/lib/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +11 -11
  14. package/lib/artifacts/contracts/MintingGateway.sol/MintingGateway.json +319 -16
  15. package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
  16. package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +4 -4
  17. package/lib/index.cjs +2123 -400
  18. package/lib/index.cjs.map +1 -1
  19. package/lib/index.d.cts +5168 -551
  20. package/lib/index.d.ts +5168 -551
  21. package/lib/index.js +2144 -421
  22. package/lib/index.js.map +1 -1
  23. package/package.json +8 -7
  24. package/src/interfaces/augment-api-consts.ts +68 -1
  25. package/src/interfaces/augment-api-errors.ts +148 -10
  26. package/src/interfaces/augment-api-events.ts +133 -3
  27. package/src/interfaces/augment-api-query.ts +244 -10
  28. package/src/interfaces/augment-api-rpc.ts +0 -1
  29. package/src/interfaces/augment-api-tx.ts +179 -38
  30. package/src/interfaces/lookup.ts +729 -272
  31. package/src/interfaces/registry.ts +66 -4
  32. package/src/interfaces/types-lookup.ts +799 -292
@@ -1,5 +1,4 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
- /* eslint-disable */
3
2
 
4
3
  // import type lookup before we augment - in some environments
5
4
  // this is required to allow for ambient/previous definitions
@@ -15,6 +14,7 @@ import type {
15
14
  Bytes,
16
15
  Compact,
17
16
  Option,
17
+ U256,
18
18
  U8aFixed,
19
19
  Vec,
20
20
  bool,
@@ -31,6 +31,7 @@ import type {
31
31
  H256,
32
32
  MultiAddress,
33
33
  Percent,
34
+ Permill,
34
35
  } from '@polkadot/types/interfaces/runtime';
35
36
  import type {
36
37
  ArgonPrimitivesBitcoinCompressedBitcoinPubkey,
@@ -43,30 +44,36 @@ import type {
43
44
  ArgonPrimitivesInherentsBlockSealInherent,
44
45
  ArgonPrimitivesNotaryNotaryMeta,
45
46
  ArgonPrimitivesNotebookSignedNotebookHeader,
47
+ ArgonPrimitivesPriceIndex,
46
48
  ArgonPrimitivesVaultTreasuryBonusApprovalProof,
47
49
  ArgonPrimitivesVaultVaultTerms,
48
50
  ArgonRuntimeOriginCaller,
49
51
  ArgonRuntimeProxyType,
50
52
  ArgonRuntimeSessionKeys,
51
53
  PalletBalancesAdjustmentDirection,
54
+ PalletBitcoinLocksFeeCoupon,
52
55
  PalletBitcoinLocksLockOptions,
53
56
  PalletBootstrapEndpointPubkey,
54
57
  PalletBootstrapRecoveryProof,
55
58
  PalletBootstrapRecoveryPubkey,
56
59
  PalletCrosschainTransferAssetKind,
57
60
  PalletCrosschainTransferChainConfig,
61
+ PalletCrosschainTransferGatewayActivityStorageProof,
58
62
  PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing,
59
63
  PalletCrosschainTransferSourceChain,
60
64
  PalletEthereumVerifierBasicOperatingMode,
61
65
  PalletEthereumVerifierCheckpointUpdate,
62
66
  PalletEthereumVerifierExecutionHeaderProof,
67
+ PalletEthereumVerifierFork,
63
68
  PalletEthereumVerifierForkVersions,
64
69
  PalletEthereumVerifierUpdate,
65
70
  PalletMultisigTimepoint,
66
71
  PalletOperationalAccountsOperationalProgressPatch,
67
72
  PalletOperationalAccountsRegistration,
68
73
  PalletPriceIndexEthereumPriceIndex,
69
- PalletPriceIndexPriceIndex,
74
+ PalletStabilizerBuysUniswapPurchasePurchasePool,
75
+ PalletStabilizerPoolsPoolConfig,
76
+ PalletStabilizerPoolsPositionProof,
70
77
  PalletTreasuryBondLotEarningsMetrics,
71
78
  PalletVaultsVaultConfig,
72
79
  SnowbridgeBeaconPrimitivesBeaconHeader,
@@ -300,8 +307,28 @@ declare module '@polkadot/api-base/types/submittable' {
300
307
  lockId: Compact<u64> | AnyNumber | Uint8Array,
301
308
  satoshis: Compact<u64> | AnyNumber | Uint8Array,
302
309
  microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
310
+ feeCoupon:
311
+ | Option<PalletBitcoinLocksFeeCoupon>
312
+ | null
313
+ | Uint8Array
314
+ | PalletBitcoinLocksFeeCoupon
315
+ | {
316
+ feeDiscount?: any;
317
+ securitizationSpaceToUnreserve?: any;
318
+ expiresAtFrame?: any;
319
+ nonce?: any;
320
+ signature?: any;
321
+ }
322
+ | string,
303
323
  ) => SubmittableExtrinsic<ApiType>,
304
- [Compact<u64>, Compact<u64>, Compact<u64>, Compact<u64>, Compact<u128>]
324
+ [
325
+ Compact<u64>,
326
+ Compact<u64>,
327
+ Compact<u64>,
328
+ Compact<u64>,
329
+ Compact<u128>,
330
+ Option<PalletBitcoinLocksFeeCoupon>,
331
+ ]
305
332
  >;
306
333
  /**
307
334
  * Ratchet an active Fission to a replacement target-normalized BTC value.
@@ -310,8 +337,21 @@ declare module '@polkadot/api-base/types/submittable' {
310
337
  (
311
338
  fissionId: Compact<u64> | AnyNumber | Uint8Array,
312
339
  microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
340
+ feeCoupon:
341
+ | Option<PalletBitcoinLocksFeeCoupon>
342
+ | null
343
+ | Uint8Array
344
+ | PalletBitcoinLocksFeeCoupon
345
+ | {
346
+ feeDiscount?: any;
347
+ securitizationSpaceToUnreserve?: any;
348
+ expiresAtFrame?: any;
349
+ nonce?: any;
350
+ signature?: any;
351
+ }
352
+ | string,
313
353
  ) => SubmittableExtrinsic<ApiType>,
314
- [Compact<u64>, Compact<u128>]
354
+ [Compact<u64>, Compact<u128>, Option<PalletBitcoinLocksFeeCoupon>]
315
355
  >;
316
356
  };
317
357
  bitcoinLocks: {
@@ -410,10 +450,17 @@ declare module '@polkadot/api-base/types/submittable' {
410
450
  ) => SubmittableExtrinsic<ApiType>,
411
451
  [u64, Bytes, u64, u64]
412
452
  >;
453
+ setFlexible: AugmentedSubmittable<
454
+ (
455
+ lockId: u64 | AnyNumber | Uint8Array,
456
+ isFlexible: bool | boolean | Uint8Array,
457
+ ) => SubmittableExtrinsic<ApiType>,
458
+ [u64, bool]
459
+ >;
413
460
  /**
414
- * Replace this Lock's BTC coverage and target value for its remaining term.
461
+ * Replace the Lock's guarantee, leaving active Fission guarantees unchanged.
415
462
  **/
416
- resecuritize: AugmentedSubmittable<
463
+ setGuarantee: AugmentedSubmittable<
417
464
  (
418
465
  lockId: u64 | AnyNumber | Uint8Array,
419
466
  satoshis: Compact<u64> | AnyNumber | Uint8Array,
@@ -427,13 +474,6 @@ declare module '@polkadot/api-base/types/submittable' {
427
474
  ) => SubmittableExtrinsic<ApiType>,
428
475
  [u64, Compact<u64>, Option<PalletBitcoinLocksLockOptions>]
429
476
  >;
430
- setFlexible: AugmentedSubmittable<
431
- (
432
- lockId: u64 | AnyNumber | Uint8Array,
433
- isFlexible: bool | boolean | Uint8Array,
434
- ) => SubmittableExtrinsic<ApiType>,
435
- [u64, bool]
436
- >;
437
477
  };
438
478
  bitcoinUtxos: {
439
479
  /**
@@ -586,6 +626,25 @@ declare module '@polkadot/api-base/types/submittable' {
586
626
  ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
587
627
  ]
588
628
  >;
629
+ /**
630
+ * Authenticate a complete gateway locator and settle its unconsumed activities.
631
+ **/
632
+ proveGatewayActivityStorage: AugmentedSubmittable<
633
+ (
634
+ sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
635
+ previousGatewayActivityNonce: Compact<u64> | AnyNumber | Uint8Array,
636
+ proof:
637
+ | PalletCrosschainTransferGatewayActivityStorageProof
638
+ | { locatorIndex?: any; activityRootSeed?: any; storageProof?: any; activityLogs?: any }
639
+ | string
640
+ | Uint8Array,
641
+ ) => SubmittableExtrinsic<ApiType>,
642
+ [
643
+ PalletCrosschainTransferSourceChain,
644
+ Compact<u64>,
645
+ PalletCrosschainTransferGatewayActivityStorageProof,
646
+ ]
647
+ >;
589
648
  registerCouncilSigner: AugmentedSubmittable<
590
649
  (
591
650
  destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
@@ -699,6 +758,7 @@ declare module '@polkadot/api-base/types/submittable' {
699
758
  deneb?: any;
700
759
  electra?: any;
701
760
  fulu?: any;
761
+ gloas?: any;
702
762
  }
703
763
  | string
704
764
  | Uint8Array,
@@ -721,6 +781,16 @@ declare module '@polkadot/api-base/types/submittable' {
721
781
  ) => SubmittableExtrinsic<ApiType>,
722
782
  [H256, SnowbridgeBeaconPrimitivesBeaconHeader, PalletEthereumVerifierExecutionHeaderProof]
723
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
+ >;
724
794
  /**
725
795
  * Halt or resume all pallet operations. May only be called by root.
726
796
  **/
@@ -832,28 +902,9 @@ declare module '@polkadot/api-base/types/submittable' {
832
902
  };
833
903
  miningSlot: {
834
904
  /**
835
- * Submit a bid for a mining slot in the next cohort. Once all spots are filled in the next
836
- * cohort, a bidder can be supplanted by supplying a higher bid.
837
- *
838
- * Each slot has `MaxCohortSize` spots available.
839
- *
840
- * To be eligible for a slot, you must have the required ownership tokens (argonots) in
841
- * this account. The required amount is calculated as a percentage of the total ownership
842
- * tokens in the network. This percentage is adjusted before the beginning of each slot.
843
- *
844
- * If your bid is no longer winning, a `SlotBidderDropped` event will be emitted. By
845
- * monitoring for this event, you will be able to ensure your bid is accepted.
846
- *
847
- * NOTE: bidding for each slot will be closed at a random block within
848
- * `mining_config.ticks_before_bid_end_for_vrf_close` blocks of the slot end time.
849
- *
850
- * The slot duration can be calculated as `BlocksBetweenSlots * MaxMiners / MaxCohortSize`.
851
- *
852
- * Parameters:
853
- * - `bid`: The amount of argons to bid
854
- * - `keys`: The session "hot" keys for the slot (BlockSealAuthorityId and GrandpaId).
855
- * - `mining_account_id`: This account_id allows you to operate as this miner account id,
856
- * but use funding (argonots and bid) from the submitting account
905
+ * Submit a funded public bid, optionally committing to a hidden maximum.
906
+ * Every bid competes at its public amount even if no maximum is revealed.
907
+ * An omitted target frame selects the current auction at dispatch time.
857
908
  **/
858
909
  bid: AugmentedSubmittable<
859
910
  (
@@ -864,8 +915,23 @@ declare module '@polkadot/api-base/types/submittable' {
864
915
  | string
865
916
  | Uint8Array,
866
917
  miningAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string,
918
+ targetFrameId: Option<u64> | null | Uint8Array | u64 | AnyNumber,
919
+ maxHash: Option<U8aFixed> | null | Uint8Array | U8aFixed | string,
920
+ ) => SubmittableExtrinsic<ApiType>,
921
+ [u128, ArgonRuntimeSessionKeys, Option<AccountId32>, Option<u64>, Option<U8aFixed>]
922
+ >;
923
+ /**
924
+ * Disclose a committed maximum during the five blocks following submission.
925
+ * The target frame must match the original bid and the current auction.
926
+ **/
927
+ bidMax: AugmentedSubmittable<
928
+ (
929
+ max: u128 | AnyNumber | Uint8Array,
930
+ salt: U8aFixed | string | Uint8Array,
931
+ miningAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string,
932
+ targetFrameId: u64 | AnyNumber | Uint8Array,
867
933
  ) => SubmittableExtrinsic<ApiType>,
868
- [u128, ArgonRuntimeSessionKeys, Option<AccountId32>]
934
+ [u128, U8aFixed, Option<AccountId32>, u64]
869
935
  >;
870
936
  /**
871
937
  * Admin function to update the mining slot delay.
@@ -1412,7 +1478,7 @@ declare module '@polkadot/api-base/types/submittable' {
1412
1478
  submit: AugmentedSubmittable<
1413
1479
  (
1414
1480
  index:
1415
- | PalletPriceIndexPriceIndex
1481
+ | ArgonPrimitivesPriceIndex
1416
1482
  | {
1417
1483
  btcUsdPrice?: any;
1418
1484
  argonotUsdPrice?: any;
@@ -1420,6 +1486,8 @@ declare module '@polkadot/api-base/types/submittable' {
1420
1486
  argonUsdTargetPrice?: any;
1421
1487
  argonTimeWeightedAverageLiquidity?: any;
1422
1488
  tick?: any;
1489
+ usdcUsdPrice?: any;
1490
+ stabilizerPoolSqrtPriceX96?: any;
1423
1491
  }
1424
1492
  | string
1425
1493
  | Uint8Array,
@@ -1431,7 +1499,7 @@ declare module '@polkadot/api-base/types/submittable' {
1431
1499
  | { ethereumUsdPrice?: any; ethereumGasPriceWei?: any; tick?: any }
1432
1500
  | string,
1433
1501
  ) => SubmittableExtrinsic<ApiType>,
1434
- [PalletPriceIndexPriceIndex, Option<PalletPriceIndexEthereumPriceIndex>]
1502
+ [ArgonPrimitivesPriceIndex, Option<PalletPriceIndexEthereumPriceIndex>]
1435
1503
  >;
1436
1504
  };
1437
1505
  proxy: {
@@ -1793,6 +1861,79 @@ declare module '@polkadot/api-base/types/submittable' {
1793
1861
  [MultiAddress, ArgonRuntimeProxyType, u32]
1794
1862
  >;
1795
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
+ };
1796
1937
  sudo: {
1797
1938
  /**
1798
1939
  * Permanently removes the sudo key.