@argonprotocol/mainchain 1.0.17 → 1.0.18
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/lib/cjs/interfaces/augment-api-consts.d.ts +16 -7
- package/lib/cjs/interfaces/augment-api-errors.d.ts +7 -19
- package/lib/cjs/interfaces/augment-api-events.d.ts +90 -73
- package/lib/cjs/interfaces/augment-api-query.d.ts +44 -28
- package/lib/cjs/interfaces/augment-api-rpc.d.ts +4 -0
- package/lib/cjs/interfaces/augment-api-tx.d.ts +25 -34
- package/lib/cjs/interfaces/lookup.d.ts +241 -276
- package/lib/cjs/interfaces/lookup.js +280 -292
- package/lib/cjs/interfaces/lookup.js.map +1 -1
- package/lib/cjs/interfaces/registry.d.ts +2 -3
- package/lib/cjs/interfaces/types-lookup.d.ts +278 -293
- package/lib/esm/interfaces/augment-api-consts.d.ts +16 -7
- package/lib/esm/interfaces/augment-api-errors.d.ts +7 -19
- package/lib/esm/interfaces/augment-api-events.d.ts +90 -73
- package/lib/esm/interfaces/augment-api-query.d.ts +44 -28
- package/lib/esm/interfaces/augment-api-rpc.d.ts +4 -0
- package/lib/esm/interfaces/augment-api-tx.d.ts +25 -34
- package/lib/esm/interfaces/lookup.d.ts +241 -276
- package/lib/esm/interfaces/lookup.js +280 -292
- package/lib/esm/interfaces/lookup.js.map +1 -1
- package/lib/esm/interfaces/registry.d.ts +2 -3
- package/lib/esm/interfaces/types-lookup.d.ts +278 -293
- package/lib/tsconfig-cjs.tsbuildinfo +1 -1
- package/lib/tsconfig-types.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/interfaces/augment-api-consts.d.ts +16 -7
- package/lib/types/interfaces/augment-api-errors.d.ts +7 -19
- package/lib/types/interfaces/augment-api-events.d.ts +90 -73
- package/lib/types/interfaces/augment-api-query.d.ts +44 -28
- package/lib/types/interfaces/augment-api-rpc.d.ts +4 -0
- package/lib/types/interfaces/augment-api-tx.d.ts +25 -34
- package/lib/types/interfaces/lookup.d.ts +241 -276
- package/lib/types/interfaces/registry.d.ts +2 -3
- package/lib/types/interfaces/types-lookup.d.ts +278 -293
- package/package.json +5 -5
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
|
|
|
3
3
|
import type { BTreeMap, Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { ArgonPrimitivesBitcoinCompressedBitcoinPubkey, ArgonPrimitivesBitcoinH256Le, ArgonPrimitivesBitcoinOpaqueBitcoinXpub, ArgonPrimitivesBlockSealRewardDestination, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesInherentsBitcoinUtxoSync, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotebookSignedNotebookHeader, ArgonPrimitivesVaultVaultTerms, ArgonRuntimeOriginCaller, ArgonRuntimeProxyType, ArgonRuntimeSessionKeys, IsmpGrandpaAddStateMachine, IsmpHostStateMachine, IsmpMessagingCreateConsensusState, IsmpMessagingMessage, PalletBalancesAdjustmentDirection, PalletIsmpUtilsFundMessageParams, PalletIsmpUtilsUpdateConsensusState,
|
|
6
|
+
import type { ArgonPrimitivesBitcoinCompressedBitcoinPubkey, ArgonPrimitivesBitcoinH256Le, ArgonPrimitivesBitcoinOpaqueBitcoinXpub, ArgonPrimitivesBlockSealRewardDestination, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesInherentsBitcoinUtxoSync, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotebookSignedNotebookHeader, ArgonPrimitivesVaultVaultTerms, ArgonRuntimeOriginCaller, ArgonRuntimeProxyType, ArgonRuntimeSessionKeys, IsmpGrandpaAddStateMachine, IsmpHostStateMachine, IsmpMessagingCreateConsensusState, IsmpMessagingMessage, PalletBalancesAdjustmentDirection, PalletIsmpUtilsFundMessageParams, PalletIsmpUtilsUpdateConsensusState, PalletMultisigTimepoint, PalletPriceIndexPriceIndex, PalletTokenGatewayAssetRegistration, PalletTokenGatewayPrecisionUpdate, PalletTokenGatewayTeleportParams, PalletVaultsVaultConfig, SpConsensusGrandpaEquivocationProof, SpCoreVoid, SpWeightsWeightV2Weight, TokenGatewayPrimitivesGatewayAssetUpdate } from '@polkadot/types/lookup';
|
|
7
7
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
8
8
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
9
9
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -456,19 +456,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
456
456
|
};
|
|
457
457
|
miningSlot: {
|
|
458
458
|
/**
|
|
459
|
-
* Submit a bid for a mining slot in the next cohort. Once all spots are filled in
|
|
460
|
-
* a
|
|
461
|
-
* terms can be found in the `vaults` pallet. You will supply the amount and the
|
|
462
|
-
* vault id to work with.
|
|
459
|
+
* Submit a bid for a mining slot in the next cohort. Once all spots are filled in the next
|
|
460
|
+
* cohort, a bidder can be supplanted by supplying a higher bid.
|
|
463
461
|
*
|
|
464
462
|
* Each slot has `MaxCohortSize` spots available.
|
|
465
463
|
*
|
|
466
|
-
* To be eligible for a slot, you must have the required ownership tokens in
|
|
467
|
-
* The required amount is calculated as a percentage of the total ownership
|
|
468
|
-
* network. This percentage is adjusted before the beginning of each slot.
|
|
464
|
+
* To be eligible for a slot, you must have the required ownership tokens (argonots) in
|
|
465
|
+
* this account. The required amount is calculated as a percentage of the total ownership
|
|
466
|
+
* tokens in the network. This percentage is adjusted before the beginning of each slot.
|
|
469
467
|
*
|
|
470
|
-
* If your bid is no longer winning, a `
|
|
471
|
-
* for this event, you will be able to ensure your bid is accepted.
|
|
468
|
+
* If your bid is no longer winning, a `SlotBidderDropped` event will be emitted. By
|
|
469
|
+
* monitoring for this event, you will be able to ensure your bid is accepted.
|
|
472
470
|
*
|
|
473
471
|
* NOTE: bidding for each slot will be closed at a random block within
|
|
474
472
|
* `mining_config.ticks_before_bid_end_for_vrf_close` blocks of the slot end time.
|
|
@@ -476,29 +474,25 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
476
474
|
* The slot duration can be calculated as `BlocksBetweenSlots * MaxMiners / MaxCohortSize`.
|
|
477
475
|
*
|
|
478
476
|
* Parameters:
|
|
479
|
-
* - `
|
|
480
|
-
* considered a zero-bid.
|
|
481
|
-
* - `vault_id`: The vault id to used. Terms are taken from the vault at time of bid
|
|
482
|
-
* inclusion in the block.
|
|
483
|
-
* - `amount`: The amount to reserve from the vault.
|
|
477
|
+
* - `bid`: The amount of argons to bid
|
|
484
478
|
* - `reward_destination`: The account_id for the mining rewards, or `Owner` for the
|
|
485
479
|
* submitting user.
|
|
486
480
|
* - `keys`: The session "hot" keys for the slot (BlockSealAuthorityId and GrandpaId).
|
|
481
|
+
* - `mining_account_id`: This account_id allows you to operate as this miner account id,
|
|
482
|
+
* but use funding (argonots and bid) from the submitting account
|
|
487
483
|
**/
|
|
488
|
-
bid: AugmentedSubmittable<(
|
|
489
|
-
vaultId?: any;
|
|
490
|
-
amount?: any;
|
|
491
|
-
} | string, rewardDestination: ArgonPrimitivesBlockSealRewardDestination | {
|
|
484
|
+
bid: AugmentedSubmittable<(bid: u128 | AnyNumber | Uint8Array, rewardDestination: ArgonPrimitivesBlockSealRewardDestination | {
|
|
492
485
|
Owner: any;
|
|
493
486
|
} | {
|
|
494
487
|
Account: any;
|
|
495
488
|
} | string | Uint8Array, keys: ArgonRuntimeSessionKeys | {
|
|
496
489
|
grandpa?: any;
|
|
497
490
|
blockSealAuthority?: any;
|
|
498
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
499
|
-
|
|
491
|
+
} | string | Uint8Array, miningAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [
|
|
492
|
+
u128,
|
|
500
493
|
ArgonPrimitivesBlockSealRewardDestination,
|
|
501
|
-
ArgonRuntimeSessionKeys
|
|
494
|
+
ArgonRuntimeSessionKeys,
|
|
495
|
+
Option<AccountId32>
|
|
502
496
|
]>;
|
|
503
497
|
/**
|
|
504
498
|
* Admin function to update the mining slot delay.
|
|
@@ -924,7 +918,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
924
918
|
Address32: any;
|
|
925
919
|
} | {
|
|
926
920
|
Address20: any;
|
|
927
|
-
} | string | Uint8Array, proxyType: ArgonRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
921
|
+
} | string | Uint8Array, proxyType: ArgonRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | 'MiningBid' | 'BitcoinCosign' | 'VaultAdmin' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
928
922
|
MultiAddress,
|
|
929
923
|
ArgonRuntimeProxyType,
|
|
930
924
|
u32
|
|
@@ -980,7 +974,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
980
974
|
*
|
|
981
975
|
* Fails if there are insufficient funds to pay for deposit.
|
|
982
976
|
**/
|
|
983
|
-
createPure: AugmentedSubmittable<(proxyType: ArgonRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
977
|
+
createPure: AugmentedSubmittable<(proxyType: ArgonRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | 'MiningBid' | 'BitcoinCosign' | 'VaultAdmin' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
984
978
|
ArgonRuntimeProxyType,
|
|
985
979
|
u32,
|
|
986
980
|
u16
|
|
@@ -1013,7 +1007,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1013
1007
|
Address32: any;
|
|
1014
1008
|
} | {
|
|
1015
1009
|
Address20: any;
|
|
1016
|
-
} | string | Uint8Array, proxyType: ArgonRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1010
|
+
} | string | Uint8Array, proxyType: ArgonRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | 'MiningBid' | 'BitcoinCosign' | 'VaultAdmin' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1017
1011
|
MultiAddress,
|
|
1018
1012
|
ArgonRuntimeProxyType,
|
|
1019
1013
|
u16,
|
|
@@ -1041,7 +1035,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1041
1035
|
Address32: any;
|
|
1042
1036
|
} | {
|
|
1043
1037
|
Address20: any;
|
|
1044
|
-
} | string | Uint8Array, forceProxyType: Option<ArgonRuntimeProxyType> | null | Uint8Array | ArgonRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1038
|
+
} | string | Uint8Array, forceProxyType: Option<ArgonRuntimeProxyType> | null | Uint8Array | ArgonRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | 'MiningBid' | 'BitcoinCosign' | 'VaultAdmin' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1045
1039
|
MultiAddress,
|
|
1046
1040
|
Option<ArgonRuntimeProxyType>,
|
|
1047
1041
|
Call
|
|
@@ -1079,7 +1073,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1079
1073
|
Address32: any;
|
|
1080
1074
|
} | {
|
|
1081
1075
|
Address20: any;
|
|
1082
|
-
} | string | Uint8Array, forceProxyType: Option<ArgonRuntimeProxyType> | null | Uint8Array | ArgonRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1076
|
+
} | string | Uint8Array, forceProxyType: Option<ArgonRuntimeProxyType> | null | Uint8Array | ArgonRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | 'MiningBid' | 'BitcoinCosign' | 'VaultAdmin' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1083
1077
|
MultiAddress,
|
|
1084
1078
|
MultiAddress,
|
|
1085
1079
|
Option<ArgonRuntimeProxyType>,
|
|
@@ -1166,7 +1160,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1166
1160
|
Address32: any;
|
|
1167
1161
|
} | {
|
|
1168
1162
|
Address20: any;
|
|
1169
|
-
} | string | Uint8Array, proxyType: ArgonRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1163
|
+
} | string | Uint8Array, proxyType: ArgonRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | 'MiningBid' | 'BitcoinCosign' | 'VaultAdmin' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1170
1164
|
MultiAddress,
|
|
1171
1165
|
ArgonRuntimeProxyType,
|
|
1172
1166
|
u32
|
|
@@ -1563,9 +1557,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1563
1557
|
]>;
|
|
1564
1558
|
create: AugmentedSubmittable<(vaultConfig: PalletVaultsVaultConfig | {
|
|
1565
1559
|
terms?: any;
|
|
1566
|
-
|
|
1560
|
+
lockedBitcoinArgonsAllocated?: any;
|
|
1567
1561
|
bitcoinXpubkey?: any;
|
|
1568
|
-
|
|
1562
|
+
bondedBitcoinArgonsAllocated?: any;
|
|
1569
1563
|
addedSecuritizationPercent?: any;
|
|
1570
1564
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1571
1565
|
PalletVaultsVaultConfig
|
|
@@ -1580,7 +1574,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1580
1574
|
* funds in this vault as obligations are released. To stop issuing any more obligations,
|
|
1581
1575
|
* use the `close` api.
|
|
1582
1576
|
**/
|
|
1583
|
-
modifyFunding: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array,
|
|
1577
|
+
modifyFunding: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, totalBondedBitcoinAmountOffered: u128 | AnyNumber | Uint8Array, totalLockedBitcoinAmountOffered: u128 | AnyNumber | Uint8Array, addedSecuritizationPercent: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1584
1578
|
u32,
|
|
1585
1579
|
u128,
|
|
1586
1580
|
u128,
|
|
@@ -1593,9 +1587,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1593
1587
|
modifyTerms: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, terms: ArgonPrimitivesVaultVaultTerms | {
|
|
1594
1588
|
bitcoinAnnualPercentRate?: any;
|
|
1595
1589
|
bitcoinBaseFee?: any;
|
|
1596
|
-
bondedArgonsAnnualPercentRate?: any;
|
|
1597
|
-
bondedArgonsBaseFee?: any;
|
|
1598
|
-
miningRewardSharingPercentTake?: any;
|
|
1599
1590
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1600
1591
|
u32,
|
|
1601
1592
|
ArgonPrimitivesVaultVaultTerms
|