@argonprotocol/mainchain 1.5.1 → 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.
- package/README.md +87 -0
- package/browser/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +573 -0
- package/browser/artifacts/contracts/ArgonToken.sol/ArgonToken.json +11 -11
- package/browser/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +11 -11
- package/browser/artifacts/contracts/MintingGateway.sol/MintingGateway.json +357 -16
- package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
- package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +4 -4
- package/browser/artifacts/contracts/StabilizationPoolHook.sol/StabilizationPoolHook.json +699 -0
- package/browser/artifacts/contracts/StabilizationPoolSubscriber.sol/StabilizationPoolSubscriber.json +187 -0
- package/browser/artifacts/contracts/UniswapV4PriceQuoter.sol/UniswapV4PriceQuoter.json +391 -0
- package/browser/index.d.ts +6074 -822
- package/browser/index.js +4738 -991
- package/browser/index.js.map +1 -1
- package/lib/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +573 -0
- package/lib/artifacts/contracts/ArgonToken.sol/ArgonToken.json +11 -11
- package/lib/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +11 -11
- package/lib/artifacts/contracts/MintingGateway.sol/MintingGateway.json +357 -16
- package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
- package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +4 -4
- package/lib/artifacts/contracts/StabilizationPoolHook.sol/StabilizationPoolHook.json +699 -0
- package/lib/artifacts/contracts/StabilizationPoolSubscriber.sol/StabilizationPoolSubscriber.json +187 -0
- package/lib/artifacts/contracts/UniswapV4PriceQuoter.sol/UniswapV4PriceQuoter.json +391 -0
- package/lib/index.cjs +4955 -1233
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +6074 -822
- package/lib/index.d.ts +6074 -822
- package/lib/index.js +4720 -998
- package/lib/index.js.map +1 -1
- package/package.json +8 -7
- package/src/interfaces/augment-api-consts.ts +101 -1
- package/src/interfaces/augment-api-errors.ts +185 -13
- package/src/interfaces/augment-api-events.ts +279 -82
- package/src/interfaces/augment-api-query.ts +399 -54
- package/src/interfaces/augment-api-rpc.ts +0 -1
- package/src/interfaces/augment-api-tx.ts +209 -78
- package/src/interfaces/lookup.ts +909 -345
- package/src/interfaces/registry.ts +86 -10
- package/src/interfaces/types-lookup.ts +1003 -370
|
@@ -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,
|
|
@@ -39,34 +40,40 @@ import type {
|
|
|
39
40
|
ArgonPrimitivesBitcoinUtxoRef,
|
|
40
41
|
ArgonPrimitivesDomainZoneRecord,
|
|
41
42
|
ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
|
|
43
|
+
ArgonPrimitivesGatewaySourceChain,
|
|
42
44
|
ArgonPrimitivesInherentsBitcoinUtxoSyncV2,
|
|
43
45
|
ArgonPrimitivesInherentsBlockSealInherent,
|
|
44
46
|
ArgonPrimitivesNotaryNotaryMeta,
|
|
45
47
|
ArgonPrimitivesNotebookSignedNotebookHeader,
|
|
48
|
+
ArgonPrimitivesPriceIndex,
|
|
46
49
|
ArgonPrimitivesVaultTreasuryBonusApprovalProof,
|
|
47
50
|
ArgonPrimitivesVaultVaultTerms,
|
|
48
51
|
ArgonRuntimeOriginCaller,
|
|
49
52
|
ArgonRuntimeProxyType,
|
|
50
53
|
ArgonRuntimeSessionKeys,
|
|
51
54
|
PalletBalancesAdjustmentDirection,
|
|
55
|
+
PalletBitcoinLocksFeeCoupon,
|
|
52
56
|
PalletBitcoinLocksLockOptions,
|
|
53
57
|
PalletBootstrapEndpointPubkey,
|
|
54
58
|
PalletBootstrapRecoveryProof,
|
|
55
59
|
PalletBootstrapRecoveryPubkey,
|
|
56
60
|
PalletCrosschainTransferAssetKind,
|
|
57
61
|
PalletCrosschainTransferChainConfig,
|
|
62
|
+
PalletCrosschainTransferGatewayActivityStorageProof,
|
|
58
63
|
PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing,
|
|
59
|
-
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
|
-
|
|
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
|
-
[
|
|
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
|
|
461
|
+
* Replace the Lock's guarantee, leaving active Fission guarantees unchanged.
|
|
415
462
|
**/
|
|
416
|
-
|
|
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
|
/**
|
|
@@ -538,10 +578,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
538
578
|
crosschainTransfer: {
|
|
539
579
|
approveQueueEntries: AugmentedSubmittable<
|
|
540
580
|
(
|
|
541
|
-
destinationChain:
|
|
581
|
+
destinationChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
|
|
542
582
|
signatures: Vec<U8aFixed>,
|
|
543
583
|
) => SubmittableExtrinsic<ApiType>,
|
|
544
|
-
[
|
|
584
|
+
[ArgonPrimitivesGatewaySourceChain, Vec<U8aFixed>]
|
|
545
585
|
>;
|
|
546
586
|
collateralizeTransfer: AugmentedSubmittable<
|
|
547
587
|
(
|
|
@@ -558,21 +598,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
558
598
|
>;
|
|
559
599
|
forceSetGlobalIssuanceCouncil: AugmentedSubmittable<
|
|
560
600
|
(
|
|
561
|
-
destinationChain:
|
|
601
|
+
destinationChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
|
|
562
602
|
afterNonce: Compact<u64> | AnyNumber | Uint8Array,
|
|
563
603
|
memberAccountIds: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[],
|
|
564
604
|
) => SubmittableExtrinsic<ApiType>,
|
|
565
|
-
[
|
|
605
|
+
[ArgonPrimitivesGatewaySourceChain, Compact<u64>, Vec<AccountId32>]
|
|
566
606
|
>;
|
|
567
607
|
pauseGateway: AugmentedSubmittable<
|
|
568
608
|
(
|
|
569
|
-
sourceChain:
|
|
609
|
+
sourceChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
|
|
570
610
|
) => SubmittableExtrinsic<ApiType>,
|
|
571
|
-
[
|
|
611
|
+
[ArgonPrimitivesGatewaySourceChain]
|
|
572
612
|
>;
|
|
573
613
|
proveGatewayActivity: AugmentedSubmittable<
|
|
574
614
|
(
|
|
575
|
-
sourceChain:
|
|
615
|
+
sourceChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
|
|
576
616
|
previousGatewayActivityNonce: Compact<u64> | AnyNumber | Uint8Array,
|
|
577
617
|
proofBatch:
|
|
578
618
|
| ArgonPrimitivesEthereumEthereumReceiptLogProofBatch
|
|
@@ -581,46 +621,67 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
581
621
|
| Uint8Array,
|
|
582
622
|
) => SubmittableExtrinsic<ApiType>,
|
|
583
623
|
[
|
|
584
|
-
|
|
624
|
+
ArgonPrimitivesGatewaySourceChain,
|
|
585
625
|
Compact<u64>,
|
|
586
626
|
ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
|
|
587
627
|
]
|
|
588
628
|
>;
|
|
629
|
+
/**
|
|
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.
|
|
633
|
+
**/
|
|
634
|
+
proveGatewayActivityStorage: AugmentedSubmittable<
|
|
635
|
+
(
|
|
636
|
+
sourceChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
|
|
637
|
+
previousGatewayActivityNonce: Compact<u64> | AnyNumber | Uint8Array,
|
|
638
|
+
proof:
|
|
639
|
+
| PalletCrosschainTransferGatewayActivityStorageProof
|
|
640
|
+
| { locatorIndex?: any; activityRootSeed?: any; storageProof?: any; activityLogs?: any }
|
|
641
|
+
| string
|
|
642
|
+
| Uint8Array,
|
|
643
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
644
|
+
[
|
|
645
|
+
ArgonPrimitivesGatewaySourceChain,
|
|
646
|
+
Compact<u64>,
|
|
647
|
+
PalletCrosschainTransferGatewayActivityStorageProof,
|
|
648
|
+
]
|
|
649
|
+
>;
|
|
589
650
|
registerCouncilSigner: AugmentedSubmittable<
|
|
590
651
|
(
|
|
591
|
-
destinationChain:
|
|
652
|
+
destinationChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
|
|
592
653
|
signingKey: H160 | string | Uint8Array,
|
|
593
654
|
signature: U8aFixed | string | Uint8Array,
|
|
594
655
|
) => SubmittableExtrinsic<ApiType>,
|
|
595
|
-
[
|
|
656
|
+
[ArgonPrimitivesGatewaySourceChain, H160, U8aFixed]
|
|
596
657
|
>;
|
|
597
658
|
registerMintingAuthority: AugmentedSubmittable<
|
|
598
659
|
(
|
|
599
|
-
destinationChain:
|
|
660
|
+
destinationChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
|
|
600
661
|
destinationSigningKey: H160 | string | Uint8Array,
|
|
601
662
|
signature: U8aFixed | string | Uint8Array,
|
|
602
663
|
microgonCollateral: Compact<u128> | AnyNumber | Uint8Array,
|
|
603
664
|
micronotCollateral: Compact<u128> | AnyNumber | Uint8Array,
|
|
604
665
|
) => SubmittableExtrinsic<ApiType>,
|
|
605
|
-
[
|
|
666
|
+
[ArgonPrimitivesGatewaySourceChain, H160, U8aFixed, Compact<u128>, Compact<u128>]
|
|
606
667
|
>;
|
|
607
668
|
setChainConfig: AugmentedSubmittable<
|
|
608
669
|
(
|
|
609
|
-
sourceChain:
|
|
670
|
+
sourceChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
|
|
610
671
|
config: PalletCrosschainTransferChainConfig | { Evm: any } | string | Uint8Array,
|
|
611
672
|
) => SubmittableExtrinsic<ApiType>,
|
|
612
|
-
[
|
|
673
|
+
[ArgonPrimitivesGatewaySourceChain, PalletCrosschainTransferChainConfig]
|
|
613
674
|
>;
|
|
614
675
|
setMinimumMintingAuthorityValue: AugmentedSubmittable<
|
|
615
676
|
(
|
|
616
|
-
destinationChain:
|
|
677
|
+
destinationChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
|
|
617
678
|
minimumValue: Compact<u128> | AnyNumber | Uint8Array,
|
|
618
679
|
) => SubmittableExtrinsic<ApiType>,
|
|
619
|
-
[
|
|
680
|
+
[ArgonPrimitivesGatewaySourceChain, Compact<u128>]
|
|
620
681
|
>;
|
|
621
682
|
setMintingAuthorityActivationRepaymentPricing: AugmentedSubmittable<
|
|
622
683
|
(
|
|
623
|
-
destinationChain:
|
|
684
|
+
destinationChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
|
|
624
685
|
pricing:
|
|
625
686
|
| PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing
|
|
626
687
|
| {
|
|
@@ -633,29 +694,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
633
694
|
| Uint8Array,
|
|
634
695
|
) => SubmittableExtrinsic<ApiType>,
|
|
635
696
|
[
|
|
636
|
-
|
|
697
|
+
ArgonPrimitivesGatewaySourceChain,
|
|
637
698
|
PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing,
|
|
638
699
|
]
|
|
639
700
|
>;
|
|
640
701
|
transferOut: AugmentedSubmittable<
|
|
641
702
|
(
|
|
642
|
-
destinationChain:
|
|
703
|
+
destinationChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
|
|
643
704
|
asset: PalletCrosschainTransferAssetKind | 'Argon' | 'Argonot' | number | Uint8Array,
|
|
644
705
|
destinationAccount: H160 | string | Uint8Array,
|
|
645
706
|
amount: Compact<u128> | AnyNumber | Uint8Array,
|
|
646
707
|
) => SubmittableExtrinsic<ApiType>,
|
|
647
|
-
[
|
|
648
|
-
PalletCrosschainTransferSourceChain,
|
|
649
|
-
PalletCrosschainTransferAssetKind,
|
|
650
|
-
H160,
|
|
651
|
-
Compact<u128>,
|
|
652
|
-
]
|
|
708
|
+
[ArgonPrimitivesGatewaySourceChain, PalletCrosschainTransferAssetKind, H160, Compact<u128>]
|
|
653
709
|
>;
|
|
654
710
|
unpauseGateway: AugmentedSubmittable<
|
|
655
711
|
(
|
|
656
|
-
sourceChain:
|
|
712
|
+
sourceChain: ArgonPrimitivesGatewaySourceChain | 'Ethereum' | number | Uint8Array,
|
|
657
713
|
) => SubmittableExtrinsic<ApiType>,
|
|
658
|
-
[
|
|
714
|
+
[ArgonPrimitivesGatewaySourceChain]
|
|
659
715
|
>;
|
|
660
716
|
};
|
|
661
717
|
domains: {
|
|
@@ -699,6 +755,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
699
755
|
deneb?: any;
|
|
700
756
|
electra?: any;
|
|
701
757
|
fulu?: any;
|
|
758
|
+
gloas?: any;
|
|
702
759
|
}
|
|
703
760
|
| string
|
|
704
761
|
| Uint8Array,
|
|
@@ -721,6 +778,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
721
778
|
) => SubmittableExtrinsic<ApiType>,
|
|
722
779
|
[H256, SnowbridgeBeaconPrimitivesBeaconHeader, PalletEthereumVerifierExecutionHeaderProof]
|
|
723
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
|
+
>;
|
|
724
791
|
/**
|
|
725
792
|
* Halt or resume all pallet operations. May only be called by root.
|
|
726
793
|
**/
|
|
@@ -832,28 +899,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
832
899
|
};
|
|
833
900
|
miningSlot: {
|
|
834
901
|
/**
|
|
835
|
-
* Submit a
|
|
836
|
-
*
|
|
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
|
|
902
|
+
* Submit a funded public bid, optionally committing to a hidden maximum.
|
|
903
|
+
* Every bid competes at its public amount even if no maximum is revealed.
|
|
904
|
+
* An omitted target frame selects the current auction at dispatch time.
|
|
857
905
|
**/
|
|
858
906
|
bid: AugmentedSubmittable<
|
|
859
907
|
(
|
|
@@ -864,8 +912,23 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
864
912
|
| string
|
|
865
913
|
| Uint8Array,
|
|
866
914
|
miningAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string,
|
|
915
|
+
targetFrameId: Option<u64> | null | Uint8Array | u64 | AnyNumber,
|
|
916
|
+
maxHash: Option<U8aFixed> | null | Uint8Array | U8aFixed | string,
|
|
867
917
|
) => SubmittableExtrinsic<ApiType>,
|
|
868
|
-
[u128, ArgonRuntimeSessionKeys, Option<AccountId32>]
|
|
918
|
+
[u128, ArgonRuntimeSessionKeys, Option<AccountId32>, Option<u64>, Option<U8aFixed>]
|
|
919
|
+
>;
|
|
920
|
+
/**
|
|
921
|
+
* Disclose a committed maximum during the five blocks following submission.
|
|
922
|
+
* The target frame must match the original bid and the current auction.
|
|
923
|
+
**/
|
|
924
|
+
bidMax: AugmentedSubmittable<
|
|
925
|
+
(
|
|
926
|
+
max: u128 | AnyNumber | Uint8Array,
|
|
927
|
+
salt: U8aFixed | string | Uint8Array,
|
|
928
|
+
miningAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string,
|
|
929
|
+
targetFrameId: u64 | AnyNumber | Uint8Array,
|
|
930
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
931
|
+
[u128, U8aFixed, Option<AccountId32>, u64]
|
|
869
932
|
>;
|
|
870
933
|
/**
|
|
871
934
|
* Admin function to update the mining slot delay.
|
|
@@ -1412,7 +1475,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1412
1475
|
submit: AugmentedSubmittable<
|
|
1413
1476
|
(
|
|
1414
1477
|
index:
|
|
1415
|
-
|
|
|
1478
|
+
| ArgonPrimitivesPriceIndex
|
|
1416
1479
|
| {
|
|
1417
1480
|
btcUsdPrice?: any;
|
|
1418
1481
|
argonotUsdPrice?: any;
|
|
@@ -1420,6 +1483,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1420
1483
|
argonUsdTargetPrice?: any;
|
|
1421
1484
|
argonTimeWeightedAverageLiquidity?: any;
|
|
1422
1485
|
tick?: any;
|
|
1486
|
+
usdcUsdPrice?: any;
|
|
1487
|
+
stabilizerPoolSqrtPriceX96?: any;
|
|
1423
1488
|
}
|
|
1424
1489
|
| string
|
|
1425
1490
|
| Uint8Array,
|
|
@@ -1431,7 +1496,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1431
1496
|
| { ethereumUsdPrice?: any; ethereumGasPriceWei?: any; tick?: any }
|
|
1432
1497
|
| string,
|
|
1433
1498
|
) => SubmittableExtrinsic<ApiType>,
|
|
1434
|
-
[
|
|
1499
|
+
[ArgonPrimitivesPriceIndex, Option<PalletPriceIndexEthereumPriceIndex>]
|
|
1435
1500
|
>;
|
|
1436
1501
|
};
|
|
1437
1502
|
proxy: {
|
|
@@ -1793,6 +1858,80 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1793
1858
|
[MultiAddress, ArgonRuntimeProxyType, u32]
|
|
1794
1859
|
>;
|
|
1795
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
|
+
};
|
|
1796
1935
|
sudo: {
|
|
1797
1936
|
/**
|
|
1798
1937
|
* Permanently removes the sudo key.
|
|
@@ -2077,8 +2216,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2077
2216
|
configureRewardEconomics: AugmentedSubmittable<
|
|
2078
2217
|
(
|
|
2079
2218
|
targetBitcoinPercent: Option<Percent> | null | Uint8Array | Percent | AnyNumber,
|
|
2219
|
+
upstreamParticipationFactor: Option<Percent> | null | Uint8Array | Percent | AnyNumber,
|
|
2080
2220
|
) => SubmittableExtrinsic<ApiType>,
|
|
2081
|
-
[Option<Percent>]
|
|
2221
|
+
[Option<Percent>, Option<Percent>]
|
|
2082
2222
|
>;
|
|
2083
2223
|
/**
|
|
2084
2224
|
* Liquidate one full bond lot. It keeps the locked frame's payout terms and is
|
|
@@ -2325,13 +2465,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2325
2465
|
(
|
|
2326
2466
|
vaultConfig:
|
|
2327
2467
|
| PalletVaultsVaultConfig
|
|
2328
|
-
| {
|
|
2329
|
-
terms?: any;
|
|
2330
|
-
delegateAccountId?: any;
|
|
2331
|
-
securitization?: any;
|
|
2332
|
-
bitcoinXpubkey?: any;
|
|
2333
|
-
securitizationRatio?: any;
|
|
2334
|
-
}
|
|
2468
|
+
| { terms?: any; delegateAccountId?: any; securitization?: any; bitcoinXpubkey?: any }
|
|
2335
2469
|
| string
|
|
2336
2470
|
| Uint8Array,
|
|
2337
2471
|
) => SubmittableExtrinsic<ApiType>,
|
|
@@ -2340,8 +2474,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2340
2474
|
/**
|
|
2341
2475
|
* Modify funds allocated by the vault without changing existing Bitcoin locks.
|
|
2342
2476
|
*
|
|
2343
|
-
* The securitization percent must be maintained or increased.
|
|
2344
|
-
*
|
|
2345
2477
|
* Funds not yet used in a reward snapshot may leave without notice if not needed for
|
|
2346
2478
|
* Bitcoin commitments. Reward-committed funds require a one-year Bitcoin-height exit
|
|
2347
2479
|
* notice and remain held until both the notice and any Bitcoin commitment have ended.
|
|
@@ -2351,9 +2483,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2351
2483
|
(
|
|
2352
2484
|
vaultId: u32 | AnyNumber | Uint8Array,
|
|
2353
2485
|
securitization: u128 | AnyNumber | Uint8Array,
|
|
2354
|
-
securitizationRatio: u128 | AnyNumber | Uint8Array,
|
|
2355
2486
|
) => SubmittableExtrinsic<ApiType>,
|
|
2356
|
-
[u32, u128
|
|
2487
|
+
[u32, u128]
|
|
2357
2488
|
>;
|
|
2358
2489
|
/**
|
|
2359
2490
|
* Change the terms of this vault. The change will be applied at the next mining frame
|