@argonprotocol/mainchain 1.0.16 → 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.
Files changed (35) hide show
  1. package/lib/cjs/interfaces/augment-api-consts.d.ts +16 -7
  2. package/lib/cjs/interfaces/augment-api-errors.d.ts +7 -19
  3. package/lib/cjs/interfaces/augment-api-events.d.ts +90 -73
  4. package/lib/cjs/interfaces/augment-api-query.d.ts +44 -28
  5. package/lib/cjs/interfaces/augment-api-rpc.d.ts +4 -0
  6. package/lib/cjs/interfaces/augment-api-tx.d.ts +30 -36
  7. package/lib/cjs/interfaces/lookup.d.ts +245 -276
  8. package/lib/cjs/interfaces/lookup.js +285 -293
  9. package/lib/cjs/interfaces/lookup.js.map +1 -1
  10. package/lib/cjs/interfaces/registry.d.ts +2 -3
  11. package/lib/cjs/interfaces/types-lookup.d.ts +283 -294
  12. package/lib/esm/interfaces/augment-api-consts.d.ts +16 -7
  13. package/lib/esm/interfaces/augment-api-errors.d.ts +7 -19
  14. package/lib/esm/interfaces/augment-api-events.d.ts +90 -73
  15. package/lib/esm/interfaces/augment-api-query.d.ts +44 -28
  16. package/lib/esm/interfaces/augment-api-rpc.d.ts +4 -0
  17. package/lib/esm/interfaces/augment-api-tx.d.ts +30 -36
  18. package/lib/esm/interfaces/lookup.d.ts +245 -276
  19. package/lib/esm/interfaces/lookup.js +285 -293
  20. package/lib/esm/interfaces/lookup.js.map +1 -1
  21. package/lib/esm/interfaces/registry.d.ts +2 -3
  22. package/lib/esm/interfaces/types-lookup.d.ts +283 -294
  23. package/lib/tsconfig-cjs.tsbuildinfo +1 -1
  24. package/lib/tsconfig-types.tsbuildinfo +1 -1
  25. package/lib/tsconfig.tsbuildinfo +1 -1
  26. package/lib/types/interfaces/augment-api-consts.d.ts +16 -7
  27. package/lib/types/interfaces/augment-api-errors.d.ts +7 -19
  28. package/lib/types/interfaces/augment-api-events.d.ts +90 -73
  29. package/lib/types/interfaces/augment-api-query.d.ts +44 -28
  30. package/lib/types/interfaces/augment-api-rpc.d.ts +4 -0
  31. package/lib/types/interfaces/augment-api-tx.d.ts +30 -36
  32. package/lib/types/interfaces/lookup.d.ts +245 -276
  33. package/lib/types/interfaces/registry.d.ts +2 -3
  34. package/lib/types/interfaces/types-lookup.d.ts +283 -294
  35. 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, PalletMiningSlotMiningSlotBid, PalletMultisigTimepoint, PalletPriceIndexPriceIndex, PalletTokenGatewayAssetRegistration, PalletTokenGatewayPrecisionUpdate, PalletTokenGatewayTeleportParams, PalletVaultsVaultConfig, SpConsensusGrandpaEquivocationProof, SpCoreVoid, SpWeightsWeightV2Weight, TokenGatewayPrimitivesGatewayAssetUpdate } from '@polkadot/types/lookup';
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 a slot,
460
- * a slot can be supplanted by supplying a higher number of Bonded Argons. Bonded Argon
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 this account.
467
- * The required amount is calculated as a percentage of the total ownership tokens in the
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 `SlotBidderOut` event will be emitted. By monitoring
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,35 +474,32 @@ 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
- * - `bonded_argons`: The information to submit for the bid. If `None`, the bid will be
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<(bondedArgons: Option<PalletMiningSlotMiningSlotBid> | null | Uint8Array | PalletMiningSlotMiningSlotBid | {
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
- Option<PalletMiningSlotMiningSlotBid>,
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.
505
499
  **/
506
- configureMiningSlotDelay: AugmentedSubmittable<(miningSlotDelay: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
507
- u64
500
+ configureMiningSlotDelay: AugmentedSubmittable<(miningSlotDelay: Option<u64> | null | Uint8Array | u64 | AnyNumber, ticksBeforeBidEndForVrfClose: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
501
+ Option<u64>,
502
+ Option<u64>
508
503
  ]>;
509
504
  };
510
505
  mint: {};
@@ -892,8 +887,10 @@ declare module '@polkadot/api-base/types/submittable' {
892
887
  **/
893
888
  submit: AugmentedSubmittable<(index: PalletPriceIndexPriceIndex | {
894
889
  btcUsdPrice?: any;
890
+ argonotUsdPrice?: any;
895
891
  argonUsdPrice?: any;
896
892
  argonUsdTargetPrice?: any;
893
+ argonTimeWeightedAverageLiquidity?: any;
897
894
  tick?: any;
898
895
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
899
896
  PalletPriceIndexPriceIndex
@@ -921,7 +918,7 @@ declare module '@polkadot/api-base/types/submittable' {
921
918
  Address32: any;
922
919
  } | {
923
920
  Address20: any;
924
- } | 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>, [
925
922
  MultiAddress,
926
923
  ArgonRuntimeProxyType,
927
924
  u32
@@ -977,7 +974,7 @@ declare module '@polkadot/api-base/types/submittable' {
977
974
  *
978
975
  * Fails if there are insufficient funds to pay for deposit.
979
976
  **/
980
- 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>, [
981
978
  ArgonRuntimeProxyType,
982
979
  u32,
983
980
  u16
@@ -1010,7 +1007,7 @@ declare module '@polkadot/api-base/types/submittable' {
1010
1007
  Address32: any;
1011
1008
  } | {
1012
1009
  Address20: any;
1013
- } | 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>, [
1014
1011
  MultiAddress,
1015
1012
  ArgonRuntimeProxyType,
1016
1013
  u16,
@@ -1038,7 +1035,7 @@ declare module '@polkadot/api-base/types/submittable' {
1038
1035
  Address32: any;
1039
1036
  } | {
1040
1037
  Address20: any;
1041
- } | 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>, [
1042
1039
  MultiAddress,
1043
1040
  Option<ArgonRuntimeProxyType>,
1044
1041
  Call
@@ -1076,7 +1073,7 @@ declare module '@polkadot/api-base/types/submittable' {
1076
1073
  Address32: any;
1077
1074
  } | {
1078
1075
  Address20: any;
1079
- } | 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>, [
1080
1077
  MultiAddress,
1081
1078
  MultiAddress,
1082
1079
  Option<ArgonRuntimeProxyType>,
@@ -1163,7 +1160,7 @@ declare module '@polkadot/api-base/types/submittable' {
1163
1160
  Address32: any;
1164
1161
  } | {
1165
1162
  Address20: any;
1166
- } | 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>, [
1167
1164
  MultiAddress,
1168
1165
  ArgonRuntimeProxyType,
1169
1166
  u32
@@ -1560,9 +1557,9 @@ declare module '@polkadot/api-base/types/submittable' {
1560
1557
  ]>;
1561
1558
  create: AugmentedSubmittable<(vaultConfig: PalletVaultsVaultConfig | {
1562
1559
  terms?: any;
1563
- bitcoinAmountAllocated?: any;
1560
+ lockedBitcoinArgonsAllocated?: any;
1564
1561
  bitcoinXpubkey?: any;
1565
- bondedArgonsAllocated?: any;
1562
+ bondedBitcoinArgonsAllocated?: any;
1566
1563
  addedSecuritizationPercent?: any;
1567
1564
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1568
1565
  PalletVaultsVaultConfig
@@ -1577,7 +1574,7 @@ declare module '@polkadot/api-base/types/submittable' {
1577
1574
  * funds in this vault as obligations are released. To stop issuing any more obligations,
1578
1575
  * use the `close` api.
1579
1576
  **/
1580
- modifyFunding: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, totalMiningAmountOffered: u128 | AnyNumber | Uint8Array, totalBitcoinAmountOffered: u128 | AnyNumber | Uint8Array, addedSecuritizationPercent: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1577
+ modifyFunding: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, totalBondedBitcoinAmountOffered: u128 | AnyNumber | Uint8Array, totalLockedBitcoinAmountOffered: u128 | AnyNumber | Uint8Array, addedSecuritizationPercent: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1581
1578
  u32,
1582
1579
  u128,
1583
1580
  u128,
@@ -1590,9 +1587,6 @@ declare module '@polkadot/api-base/types/submittable' {
1590
1587
  modifyTerms: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, terms: ArgonPrimitivesVaultVaultTerms | {
1591
1588
  bitcoinAnnualPercentRate?: any;
1592
1589
  bitcoinBaseFee?: any;
1593
- bondedArgonsAnnualPercentRate?: any;
1594
- bondedArgonsBaseFee?: any;
1595
- miningRewardSharingPercentTake?: any;
1596
1590
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1597
1591
  u32,
1598
1592
  ArgonPrimitivesVaultVaultTerms