@argonprotocol/mainchain 1.5.1 → 1.5.2-dev.20010413
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 +67 -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 +45 -16
- package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
- package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +3 -3
- package/browser/index.d.ts +784 -393
- package/browser/index.js +1109 -297
- package/browser/index.js.map +1 -1
- 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 +45 -16
- package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
- package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +3 -3
- package/lib/index.cjs +1074 -293
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +784 -393
- package/lib/index.d.ts +784 -393
- package/lib/index.js +1076 -295
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-consts.ts +15 -1
- package/src/interfaces/augment-api-errors.ts +53 -10
- package/src/interfaces/augment-api-events.ts +24 -29
- package/src/interfaces/augment-api-query.ts +63 -6
- package/src/interfaces/augment-api-rpc.ts +0 -1
- package/src/interfaces/augment-api-tx.ts +88 -47
- package/src/interfaces/lookup.ts +413 -302
- package/src/interfaces/registry.ts +16 -0
- package/src/interfaces/types-lookup.ts +440 -315
|
@@ -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
|
|
@@ -49,12 +48,14 @@ import type {
|
|
|
49
48
|
ArgonRuntimeProxyType,
|
|
50
49
|
ArgonRuntimeSessionKeys,
|
|
51
50
|
PalletBalancesAdjustmentDirection,
|
|
51
|
+
PalletBitcoinLocksFeeCoupon,
|
|
52
52
|
PalletBitcoinLocksLockOptions,
|
|
53
53
|
PalletBootstrapEndpointPubkey,
|
|
54
54
|
PalletBootstrapRecoveryProof,
|
|
55
55
|
PalletBootstrapRecoveryPubkey,
|
|
56
56
|
PalletCrosschainTransferAssetKind,
|
|
57
57
|
PalletCrosschainTransferChainConfig,
|
|
58
|
+
PalletCrosschainTransferGatewayActivityStorageProof,
|
|
58
59
|
PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing,
|
|
59
60
|
PalletCrosschainTransferSourceChain,
|
|
60
61
|
PalletEthereumVerifierBasicOperatingMode,
|
|
@@ -300,8 +301,28 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
300
301
|
lockId: Compact<u64> | AnyNumber | Uint8Array,
|
|
301
302
|
satoshis: Compact<u64> | AnyNumber | Uint8Array,
|
|
302
303
|
microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
|
|
304
|
+
feeCoupon:
|
|
305
|
+
| Option<PalletBitcoinLocksFeeCoupon>
|
|
306
|
+
| null
|
|
307
|
+
| Uint8Array
|
|
308
|
+
| PalletBitcoinLocksFeeCoupon
|
|
309
|
+
| {
|
|
310
|
+
feeDiscount?: any;
|
|
311
|
+
securitizationSpaceToUnreserve?: any;
|
|
312
|
+
expiresAtFrame?: any;
|
|
313
|
+
nonce?: any;
|
|
314
|
+
signature?: any;
|
|
315
|
+
}
|
|
316
|
+
| string,
|
|
303
317
|
) => SubmittableExtrinsic<ApiType>,
|
|
304
|
-
[
|
|
318
|
+
[
|
|
319
|
+
Compact<u64>,
|
|
320
|
+
Compact<u64>,
|
|
321
|
+
Compact<u64>,
|
|
322
|
+
Compact<u64>,
|
|
323
|
+
Compact<u128>,
|
|
324
|
+
Option<PalletBitcoinLocksFeeCoupon>,
|
|
325
|
+
]
|
|
305
326
|
>;
|
|
306
327
|
/**
|
|
307
328
|
* Ratchet an active Fission to a replacement target-normalized BTC value.
|
|
@@ -310,8 +331,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
310
331
|
(
|
|
311
332
|
fissionId: Compact<u64> | AnyNumber | Uint8Array,
|
|
312
333
|
microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
|
|
334
|
+
feeCoupon:
|
|
335
|
+
| Option<PalletBitcoinLocksFeeCoupon>
|
|
336
|
+
| null
|
|
337
|
+
| Uint8Array
|
|
338
|
+
| PalletBitcoinLocksFeeCoupon
|
|
339
|
+
| {
|
|
340
|
+
feeDiscount?: any;
|
|
341
|
+
securitizationSpaceToUnreserve?: any;
|
|
342
|
+
expiresAtFrame?: any;
|
|
343
|
+
nonce?: any;
|
|
344
|
+
signature?: any;
|
|
345
|
+
}
|
|
346
|
+
| string,
|
|
313
347
|
) => SubmittableExtrinsic<ApiType>,
|
|
314
|
-
[Compact<u64>, Compact<u128>]
|
|
348
|
+
[Compact<u64>, Compact<u128>, Option<PalletBitcoinLocksFeeCoupon>]
|
|
315
349
|
>;
|
|
316
350
|
};
|
|
317
351
|
bitcoinLocks: {
|
|
@@ -410,10 +444,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
410
444
|
) => SubmittableExtrinsic<ApiType>,
|
|
411
445
|
[u64, Bytes, u64, u64]
|
|
412
446
|
>;
|
|
447
|
+
setFlexible: AugmentedSubmittable<
|
|
448
|
+
(
|
|
449
|
+
lockId: u64 | AnyNumber | Uint8Array,
|
|
450
|
+
isFlexible: bool | boolean | Uint8Array,
|
|
451
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
452
|
+
[u64, bool]
|
|
453
|
+
>;
|
|
413
454
|
/**
|
|
414
|
-
* Replace
|
|
455
|
+
* Replace the Lock's guarantee, leaving active Fission guarantees unchanged.
|
|
415
456
|
**/
|
|
416
|
-
|
|
457
|
+
setGuarantee: AugmentedSubmittable<
|
|
417
458
|
(
|
|
418
459
|
lockId: u64 | AnyNumber | Uint8Array,
|
|
419
460
|
satoshis: Compact<u64> | AnyNumber | Uint8Array,
|
|
@@ -427,13 +468,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
427
468
|
) => SubmittableExtrinsic<ApiType>,
|
|
428
469
|
[u64, Compact<u64>, Option<PalletBitcoinLocksLockOptions>]
|
|
429
470
|
>;
|
|
430
|
-
setFlexible: AugmentedSubmittable<
|
|
431
|
-
(
|
|
432
|
-
lockId: u64 | AnyNumber | Uint8Array,
|
|
433
|
-
isFlexible: bool | boolean | Uint8Array,
|
|
434
|
-
) => SubmittableExtrinsic<ApiType>,
|
|
435
|
-
[u64, bool]
|
|
436
|
-
>;
|
|
437
471
|
};
|
|
438
472
|
bitcoinUtxos: {
|
|
439
473
|
/**
|
|
@@ -586,6 +620,25 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
586
620
|
ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
|
|
587
621
|
]
|
|
588
622
|
>;
|
|
623
|
+
/**
|
|
624
|
+
* Authenticate a complete gateway locator and settle its unconsumed activities.
|
|
625
|
+
**/
|
|
626
|
+
proveGatewayActivityStorage: AugmentedSubmittable<
|
|
627
|
+
(
|
|
628
|
+
sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
|
|
629
|
+
previousGatewayActivityNonce: Compact<u64> | AnyNumber | Uint8Array,
|
|
630
|
+
proof:
|
|
631
|
+
| PalletCrosschainTransferGatewayActivityStorageProof
|
|
632
|
+
| { locatorIndex?: any; activityRootSeed?: any; storageProof?: any; activityLogs?: any }
|
|
633
|
+
| string
|
|
634
|
+
| Uint8Array,
|
|
635
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
636
|
+
[
|
|
637
|
+
PalletCrosschainTransferSourceChain,
|
|
638
|
+
Compact<u64>,
|
|
639
|
+
PalletCrosschainTransferGatewayActivityStorageProof,
|
|
640
|
+
]
|
|
641
|
+
>;
|
|
589
642
|
registerCouncilSigner: AugmentedSubmittable<
|
|
590
643
|
(
|
|
591
644
|
destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
|
|
@@ -832,28 +885,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
832
885
|
};
|
|
833
886
|
miningSlot: {
|
|
834
887
|
/**
|
|
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
|
|
888
|
+
* Submit a funded public bid, optionally committing to a hidden maximum.
|
|
889
|
+
* Every bid competes at its public amount even if no maximum is revealed.
|
|
890
|
+
* An omitted target frame selects the current auction at dispatch time.
|
|
857
891
|
**/
|
|
858
892
|
bid: AugmentedSubmittable<
|
|
859
893
|
(
|
|
@@ -864,8 +898,23 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
864
898
|
| string
|
|
865
899
|
| Uint8Array,
|
|
866
900
|
miningAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string,
|
|
901
|
+
targetFrameId: Option<u64> | null | Uint8Array | u64 | AnyNumber,
|
|
902
|
+
maxHash: Option<U8aFixed> | null | Uint8Array | U8aFixed | string,
|
|
903
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
904
|
+
[u128, ArgonRuntimeSessionKeys, Option<AccountId32>, Option<u64>, Option<U8aFixed>]
|
|
905
|
+
>;
|
|
906
|
+
/**
|
|
907
|
+
* Disclose a committed maximum during the five blocks following submission.
|
|
908
|
+
* The target frame must match the original bid and the current auction.
|
|
909
|
+
**/
|
|
910
|
+
bidMax: AugmentedSubmittable<
|
|
911
|
+
(
|
|
912
|
+
max: u128 | AnyNumber | Uint8Array,
|
|
913
|
+
salt: U8aFixed | string | Uint8Array,
|
|
914
|
+
miningAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string,
|
|
915
|
+
targetFrameId: u64 | AnyNumber | Uint8Array,
|
|
867
916
|
) => SubmittableExtrinsic<ApiType>,
|
|
868
|
-
[u128,
|
|
917
|
+
[u128, U8aFixed, Option<AccountId32>, u64]
|
|
869
918
|
>;
|
|
870
919
|
/**
|
|
871
920
|
* Admin function to update the mining slot delay.
|
|
@@ -2077,8 +2126,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2077
2126
|
configureRewardEconomics: AugmentedSubmittable<
|
|
2078
2127
|
(
|
|
2079
2128
|
targetBitcoinPercent: Option<Percent> | null | Uint8Array | Percent | AnyNumber,
|
|
2129
|
+
upstreamParticipationFactor: Option<Percent> | null | Uint8Array | Percent | AnyNumber,
|
|
2080
2130
|
) => SubmittableExtrinsic<ApiType>,
|
|
2081
|
-
[Option<Percent>]
|
|
2131
|
+
[Option<Percent>, Option<Percent>]
|
|
2082
2132
|
>;
|
|
2083
2133
|
/**
|
|
2084
2134
|
* Liquidate one full bond lot. It keeps the locked frame's payout terms and is
|
|
@@ -2325,13 +2375,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2325
2375
|
(
|
|
2326
2376
|
vaultConfig:
|
|
2327
2377
|
| PalletVaultsVaultConfig
|
|
2328
|
-
| {
|
|
2329
|
-
terms?: any;
|
|
2330
|
-
delegateAccountId?: any;
|
|
2331
|
-
securitization?: any;
|
|
2332
|
-
bitcoinXpubkey?: any;
|
|
2333
|
-
securitizationRatio?: any;
|
|
2334
|
-
}
|
|
2378
|
+
| { terms?: any; delegateAccountId?: any; securitization?: any; bitcoinXpubkey?: any }
|
|
2335
2379
|
| string
|
|
2336
2380
|
| Uint8Array,
|
|
2337
2381
|
) => SubmittableExtrinsic<ApiType>,
|
|
@@ -2340,8 +2384,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2340
2384
|
/**
|
|
2341
2385
|
* Modify funds allocated by the vault without changing existing Bitcoin locks.
|
|
2342
2386
|
*
|
|
2343
|
-
* The securitization percent must be maintained or increased.
|
|
2344
|
-
*
|
|
2345
2387
|
* Funds not yet used in a reward snapshot may leave without notice if not needed for
|
|
2346
2388
|
* Bitcoin commitments. Reward-committed funds require a one-year Bitcoin-height exit
|
|
2347
2389
|
* notice and remain held until both the notice and any Bitcoin commitment have ended.
|
|
@@ -2351,9 +2393,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2351
2393
|
(
|
|
2352
2394
|
vaultId: u32 | AnyNumber | Uint8Array,
|
|
2353
2395
|
securitization: u128 | AnyNumber | Uint8Array,
|
|
2354
|
-
securitizationRatio: u128 | AnyNumber | Uint8Array,
|
|
2355
2396
|
) => SubmittableExtrinsic<ApiType>,
|
|
2356
|
-
[u32, u128
|
|
2397
|
+
[u32, u128]
|
|
2357
2398
|
>;
|
|
2358
2399
|
/**
|
|
2359
2400
|
* Change the terms of this vault. The change will be applied at the next mining frame
|