@argonprotocol/mainchain 1.0.9 → 1.0.11

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/lib/cjs/interfaces/augment-api-consts.d.ts +57 -57
  2. package/lib/cjs/interfaces/augment-api-errors.d.ts +91 -106
  3. package/lib/cjs/interfaces/augment-api-events.d.ts +114 -108
  4. package/lib/cjs/interfaces/augment-api-query.d.ts +72 -52
  5. package/lib/cjs/interfaces/augment-api-tx.d.ts +74 -60
  6. package/lib/cjs/interfaces/lookup.d.ts +229 -207
  7. package/lib/cjs/interfaces/lookup.js +255 -233
  8. package/lib/cjs/interfaces/lookup.js.map +1 -1
  9. package/lib/cjs/interfaces/registry.d.ts +16 -15
  10. package/lib/cjs/interfaces/types-lookup.d.ts +281 -262
  11. package/lib/esm/interfaces/augment-api-consts.d.ts +57 -57
  12. package/lib/esm/interfaces/augment-api-errors.d.ts +91 -106
  13. package/lib/esm/interfaces/augment-api-events.d.ts +114 -108
  14. package/lib/esm/interfaces/augment-api-query.d.ts +72 -52
  15. package/lib/esm/interfaces/augment-api-tx.d.ts +74 -60
  16. package/lib/esm/interfaces/lookup.d.ts +229 -207
  17. package/lib/esm/interfaces/lookup.js +255 -233
  18. package/lib/esm/interfaces/lookup.js.map +1 -1
  19. package/lib/esm/interfaces/registry.d.ts +16 -15
  20. package/lib/esm/interfaces/types-lookup.d.ts +281 -262
  21. package/lib/tsconfig-cjs.tsbuildinfo +1 -1
  22. package/lib/tsconfig-types.tsbuildinfo +1 -1
  23. package/lib/tsconfig.tsbuildinfo +1 -1
  24. package/lib/types/interfaces/augment-api-consts.d.ts +57 -57
  25. package/lib/types/interfaces/augment-api-errors.d.ts +91 -106
  26. package/lib/types/interfaces/augment-api-events.d.ts +114 -108
  27. package/lib/types/interfaces/augment-api-query.d.ts +72 -52
  28. package/lib/types/interfaces/augment-api-tx.d.ts +74 -60
  29. package/lib/types/interfaces/lookup.d.ts +229 -207
  30. package/lib/types/interfaces/registry.d.ts +16 -15
  31. package/lib/types/interfaces/types-lookup.d.ts +281 -262
  32. package/package.json +1 -1
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
3
3
  import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
4
4
  import type { ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
6
- import type { ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBitcoinBitcoinRejectedReason, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesBondBondExpiration, ArgonPrimitivesBondBondType, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryRecord, ArgonRuntimeConfigsProxyType, FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, IsmpConsensusStateMachineHeight, IsmpConsensusStateMachineId, IsmpEventsRequestResponseHandled, IsmpEventsTimeoutHandled, IsmpHostStateMachine, PalletDomainsDomainRegistration, PalletHyperbridgeVersionedHostParams, PalletIsmpErrorsHandlingError, PalletMintMintType, PalletMultisigTimepoint, SpConsensusGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
6
+ import type { ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBitcoinBitcoinRejectedReason, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryRecord, ArgonPrimitivesVaultFundType, ArgonPrimitivesVaultObligationExpiration, ArgonRuntimeProxyType, FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, IsmpConsensusStateMachineHeight, IsmpConsensusStateMachineId, IsmpEventsRequestResponseHandled, IsmpEventsTimeoutHandled, IsmpHostStateMachine, PalletDomainsDomainRegistration, PalletHyperbridgeVersionedHostParams, PalletIsmpErrorsHandlingError, PalletMintMintType, PalletMultisigTimepoint, SpConsensusGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
7
7
  export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
8
8
  declare module '@polkadot/api-base/types/events' {
9
9
  interface AugmentedEvents<ApiType extends ApiTypes> {
@@ -165,6 +165,49 @@ declare module '@polkadot/api-base/types/events' {
165
165
  amount: u128;
166
166
  }>;
167
167
  };
168
+ bitcoinLocks: {
169
+ BitcoinCosignPastDue: AugmentedEvent<ApiType, [utxoId: u64, obligationId: u64, vaultId: u32, compensationAmount: u128, compensationStillOwed: u128, compensatedAccountId: AccountId32], {
170
+ utxoId: u64;
171
+ obligationId: u64;
172
+ vaultId: u32;
173
+ compensationAmount: u128;
174
+ compensationStillOwed: u128;
175
+ compensatedAccountId: AccountId32;
176
+ }>;
177
+ BitcoinLockBurned: AugmentedEvent<ApiType, [utxoId: u64, vaultId: u32, obligationId: u64, amountBurned: u128, amountHeld: u128, wasUtxoSpent: bool], {
178
+ utxoId: u64;
179
+ vaultId: u32;
180
+ obligationId: u64;
181
+ amountBurned: u128;
182
+ amountHeld: u128;
183
+ wasUtxoSpent: bool;
184
+ }>;
185
+ BitcoinLockCreated: AugmentedEvent<ApiType, [utxoId: u64, vaultId: u32, obligationId: u64, lockPrice: u128, accountId: AccountId32], {
186
+ utxoId: u64;
187
+ vaultId: u32;
188
+ obligationId: u64;
189
+ lockPrice: u128;
190
+ accountId: AccountId32;
191
+ }>;
192
+ BitcoinUtxoCosigned: AugmentedEvent<ApiType, [utxoId: u64, obligationId: u64, vaultId: u32, signature: Bytes], {
193
+ utxoId: u64;
194
+ obligationId: u64;
195
+ vaultId: u32;
196
+ signature: Bytes;
197
+ }>;
198
+ BitcoinUtxoCosignRequested: AugmentedEvent<ApiType, [utxoId: u64, obligationId: u64, vaultId: u32], {
199
+ utxoId: u64;
200
+ obligationId: u64;
201
+ vaultId: u32;
202
+ }>;
203
+ /**
204
+ * An error occurred while refunding an overdue cosigned bitcoin lock
205
+ **/
206
+ CosignOverdueError: AugmentedEvent<ApiType, [utxoId: u64, error: SpRuntimeDispatchError], {
207
+ utxoId: u64;
208
+ error: SpRuntimeDispatchError;
209
+ }>;
210
+ };
168
211
  bitcoinUtxos: {
169
212
  UtxoExpiredError: AugmentedEvent<ApiType, [utxoRef: ArgonPrimitivesBitcoinUtxoRef, error: SpRuntimeDispatchError], {
170
213
  utxoRef: ArgonPrimitivesBitcoinUtxoRef;
@@ -232,74 +275,6 @@ declare module '@polkadot/api-base/types/events' {
232
275
  newVoteMinimum: u128;
233
276
  }>;
234
277
  };
235
- bonds: {
236
- BitcoinBondBurned: AugmentedEvent<ApiType, [vaultId: u32, bondId: u64, utxoId: u64, amountBurned: u128, amountHeld: u128, wasUtxoSpent: bool], {
237
- vaultId: u32;
238
- bondId: u64;
239
- utxoId: u64;
240
- amountBurned: u128;
241
- amountHeld: u128;
242
- wasUtxoSpent: bool;
243
- }>;
244
- BitcoinCosignPastDue: AugmentedEvent<ApiType, [bondId: u64, vaultId: u32, utxoId: u64, compensationAmount: u128, compensationStillOwed: u128, compensatedAccountId: AccountId32], {
245
- bondId: u64;
246
- vaultId: u32;
247
- utxoId: u64;
248
- compensationAmount: u128;
249
- compensationStillOwed: u128;
250
- compensatedAccountId: AccountId32;
251
- }>;
252
- BitcoinUtxoCosigned: AugmentedEvent<ApiType, [bondId: u64, vaultId: u32, utxoId: u64, signature: Bytes], {
253
- bondId: u64;
254
- vaultId: u32;
255
- utxoId: u64;
256
- signature: Bytes;
257
- }>;
258
- BitcoinUtxoCosignRequested: AugmentedEvent<ApiType, [bondId: u64, vaultId: u32, utxoId: u64], {
259
- bondId: u64;
260
- vaultId: u32;
261
- utxoId: u64;
262
- }>;
263
- BondCanceled: AugmentedEvent<ApiType, [vaultId: u32, bondId: u64, bondedAccountId: AccountId32, bondType: ArgonPrimitivesBondBondType, returnedFee: u128], {
264
- vaultId: u32;
265
- bondId: u64;
266
- bondedAccountId: AccountId32;
267
- bondType: ArgonPrimitivesBondBondType;
268
- returnedFee: u128;
269
- }>;
270
- BondCompleted: AugmentedEvent<ApiType, [vaultId: u32, bondId: u64], {
271
- vaultId: u32;
272
- bondId: u64;
273
- }>;
274
- /**
275
- * An error occurred while completing a bond
276
- **/
277
- BondCompletionError: AugmentedEvent<ApiType, [bondId: u64, error: SpRuntimeDispatchError], {
278
- bondId: u64;
279
- error: SpRuntimeDispatchError;
280
- }>;
281
- BondCreated: AugmentedEvent<ApiType, [vaultId: u32, bondId: u64, bondType: ArgonPrimitivesBondBondType, bondedAccountId: AccountId32, utxoId: Option<u64>, amount: u128, expiration: ArgonPrimitivesBondBondExpiration], {
282
- vaultId: u32;
283
- bondId: u64;
284
- bondType: ArgonPrimitivesBondBondType;
285
- bondedAccountId: AccountId32;
286
- utxoId: Option<u64>;
287
- amount: u128;
288
- expiration: ArgonPrimitivesBondBondExpiration;
289
- }>;
290
- BondModified: AugmentedEvent<ApiType, [vaultId: u32, bondId: u64, amount: u128], {
291
- vaultId: u32;
292
- bondId: u64;
293
- amount: u128;
294
- }>;
295
- /**
296
- * An error occurred while refunding an overdue cosigned bitcoin bond
297
- **/
298
- CosignOverdueError: AugmentedEvent<ApiType, [utxoId: u64, error: SpRuntimeDispatchError], {
299
- utxoId: u64;
300
- error: SpRuntimeDispatchError;
301
- }>;
302
- };
303
278
  chainTransfer: {
304
279
  /**
305
280
  * A localchain transfer could not be cleaned up properly. Possible invalid transfer
@@ -542,34 +517,34 @@ declare module '@polkadot/api-base/types/events' {
542
517
  }>;
543
518
  };
544
519
  miningSlot: {
545
- MiningConfigurationUpdated: AugmentedEvent<ApiType, [blocksBeforeBidEndForVrfClose: u32, blocksBetweenSlots: u32, slotBiddingStartAfterTicks: u64], {
546
- blocksBeforeBidEndForVrfClose: u32;
547
- blocksBetweenSlots: u32;
520
+ MiningConfigurationUpdated: AugmentedEvent<ApiType, [ticksBeforeBidEndForVrfClose: u64, ticksBetweenSlots: u64, slotBiddingStartAfterTicks: u64], {
521
+ ticksBeforeBidEndForVrfClose: u64;
522
+ ticksBetweenSlots: u64;
548
523
  slotBiddingStartAfterTicks: u64;
549
524
  }>;
550
525
  NewMiners: AugmentedEvent<ApiType, [startIndex: u32, newMiners: Vec<ArgonPrimitivesBlockSealMiningRegistration>], {
551
526
  startIndex: u32;
552
527
  newMiners: Vec<ArgonPrimitivesBlockSealMiningRegistration>;
553
528
  }>;
554
- SlotBidderAdded: AugmentedEvent<ApiType, [accountId: AccountId32, bidAmount: u128, index: u32], {
529
+ ReleasedMinerSeat: AugmentedEvent<ApiType, [accountId: AccountId32, obligationId: Option<u64>, preservedArgonotHold: bool], {
555
530
  accountId: AccountId32;
556
- bidAmount: u128;
557
- index: u32;
531
+ obligationId: Option<u64>;
532
+ preservedArgonotHold: bool;
558
533
  }>;
559
- SlotBidderReplaced: AugmentedEvent<ApiType, [accountId: AccountId32, bondId: Option<u64>, keptOwnershipBond: bool], {
534
+ ReleaseMinerSeatError: AugmentedEvent<ApiType, [accountId: AccountId32, obligationId: Option<u64>, error: SpRuntimeDispatchError], {
560
535
  accountId: AccountId32;
561
- bondId: Option<u64>;
562
- keptOwnershipBond: bool;
536
+ obligationId: Option<u64>;
537
+ error: SpRuntimeDispatchError;
563
538
  }>;
564
- UnbondedMiner: AugmentedEvent<ApiType, [accountId: AccountId32, bondId: Option<u64>, keptOwnershipBond: bool], {
539
+ SlotBidderAdded: AugmentedEvent<ApiType, [accountId: AccountId32, bidAmount: u128, index: u32], {
565
540
  accountId: AccountId32;
566
- bondId: Option<u64>;
567
- keptOwnershipBond: bool;
541
+ bidAmount: u128;
542
+ index: u32;
568
543
  }>;
569
- UnbondMinerError: AugmentedEvent<ApiType, [accountId: AccountId32, bondId: Option<u64>, error: SpRuntimeDispatchError], {
544
+ SlotBidderReplaced: AugmentedEvent<ApiType, [accountId: AccountId32, obligationId: Option<u64>, preservedArgonotHold: bool], {
570
545
  accountId: AccountId32;
571
- bondId: Option<u64>;
572
- error: SpRuntimeDispatchError;
546
+ obligationId: Option<u64>;
547
+ preservedArgonotHold: bool;
573
548
  }>;
574
549
  };
575
550
  mint: {
@@ -859,10 +834,10 @@ declare module '@polkadot/api-base/types/events' {
859
834
  /**
860
835
  * A proxy was added.
861
836
  **/
862
- ProxyAdded: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: ArgonRuntimeConfigsProxyType, delay: u32], {
837
+ ProxyAdded: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: ArgonRuntimeProxyType, delay: u32], {
863
838
  delegator: AccountId32;
864
839
  delegatee: AccountId32;
865
- proxyType: ArgonRuntimeConfigsProxyType;
840
+ proxyType: ArgonRuntimeProxyType;
866
841
  delay: u32;
867
842
  }>;
868
843
  /**
@@ -874,20 +849,20 @@ declare module '@polkadot/api-base/types/events' {
874
849
  /**
875
850
  * A proxy was removed.
876
851
  **/
877
- ProxyRemoved: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: ArgonRuntimeConfigsProxyType, delay: u32], {
852
+ ProxyRemoved: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: ArgonRuntimeProxyType, delay: u32], {
878
853
  delegator: AccountId32;
879
854
  delegatee: AccountId32;
880
- proxyType: ArgonRuntimeConfigsProxyType;
855
+ proxyType: ArgonRuntimeProxyType;
881
856
  delay: u32;
882
857
  }>;
883
858
  /**
884
859
  * A pure account has been created by new proxy with given
885
860
  * disambiguation index and proxy type.
886
861
  **/
887
- PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType: ArgonRuntimeConfigsProxyType, disambiguationIndex: u16], {
862
+ PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType: ArgonRuntimeProxyType, disambiguationIndex: u16], {
888
863
  pure: AccountId32;
889
864
  who: AccountId32;
890
- proxyType: ArgonRuntimeConfigsProxyType;
865
+ proxyType: ArgonRuntimeProxyType;
891
866
  disambiguationIndex: u16;
892
867
  }>;
893
868
  };
@@ -1055,42 +1030,73 @@ declare module '@polkadot/api-base/types/events' {
1055
1030
  }>;
1056
1031
  };
1057
1032
  vaults: {
1033
+ ObligationCanceled: AugmentedEvent<ApiType, [vaultId: u32, obligationId: u64, beneficiary: AccountId32, fundType: ArgonPrimitivesVaultFundType, returnedFee: u128], {
1034
+ vaultId: u32;
1035
+ obligationId: u64;
1036
+ beneficiary: AccountId32;
1037
+ fundType: ArgonPrimitivesVaultFundType;
1038
+ returnedFee: u128;
1039
+ }>;
1040
+ ObligationCompleted: AugmentedEvent<ApiType, [vaultId: u32, obligationId: u64], {
1041
+ vaultId: u32;
1042
+ obligationId: u64;
1043
+ }>;
1044
+ /**
1045
+ * An error occurred while completing an obligation
1046
+ **/
1047
+ ObligationCompletionError: AugmentedEvent<ApiType, [obligationId: u64, error: SpRuntimeDispatchError], {
1048
+ obligationId: u64;
1049
+ error: SpRuntimeDispatchError;
1050
+ }>;
1051
+ ObligationCreated: AugmentedEvent<ApiType, [vaultId: u32, obligationId: u64, fundType: ArgonPrimitivesVaultFundType, beneficiary: AccountId32, amount: u128, expiration: ArgonPrimitivesVaultObligationExpiration], {
1052
+ vaultId: u32;
1053
+ obligationId: u64;
1054
+ fundType: ArgonPrimitivesVaultFundType;
1055
+ beneficiary: AccountId32;
1056
+ amount: u128;
1057
+ expiration: ArgonPrimitivesVaultObligationExpiration;
1058
+ }>;
1059
+ ObligationModified: AugmentedEvent<ApiType, [vaultId: u32, obligationId: u64, amount: u128], {
1060
+ vaultId: u32;
1061
+ obligationId: u64;
1062
+ amount: u128;
1063
+ }>;
1058
1064
  VaultBitcoinXpubChange: AugmentedEvent<ApiType, [vaultId: u32], {
1059
1065
  vaultId: u32;
1060
1066
  }>;
1061
- VaultClosed: AugmentedEvent<ApiType, [vaultId: u32, bitcoinAmountStillBonded: u128, miningAmountStillBonded: u128, securitizationStillBonded: u128], {
1067
+ VaultBondedArgonsChangeScheduled: AugmentedEvent<ApiType, [vaultId: u32, changeTick: u64], {
1062
1068
  vaultId: u32;
1063
- bitcoinAmountStillBonded: u128;
1064
- miningAmountStillBonded: u128;
1065
- securitizationStillBonded: u128;
1069
+ changeTick: u64;
1066
1070
  }>;
1067
- VaultCreated: AugmentedEvent<ApiType, [vaultId: u32, bitcoinArgons: u128, miningArgons: u128, securitizationPercent: u128, operatorAccountId: AccountId32], {
1071
+ VaultBondedArgonsIncreased: AugmentedEvent<ApiType, [vaultId: u32, bondedArgons: u128], {
1068
1072
  vaultId: u32;
1069
- bitcoinArgons: u128;
1070
- miningArgons: u128;
1071
- securitizationPercent: u128;
1072
- operatorAccountId: AccountId32;
1073
+ bondedArgons: u128;
1073
1074
  }>;
1074
- VaultMiningBondsChangeScheduled: AugmentedEvent<ApiType, [vaultId: u32, changeBlock: u32], {
1075
+ VaultClosed: AugmentedEvent<ApiType, [vaultId: u32, bitcoinAmountStillReserved: u128, miningAmountStillReserved: u128, securitizationStillReserved: u128], {
1075
1076
  vaultId: u32;
1076
- changeBlock: u32;
1077
+ bitcoinAmountStillReserved: u128;
1078
+ miningAmountStillReserved: u128;
1079
+ securitizationStillReserved: u128;
1077
1080
  }>;
1078
- VaultMiningBondsIncreased: AugmentedEvent<ApiType, [vaultId: u32, miningArgons: u128], {
1081
+ VaultCreated: AugmentedEvent<ApiType, [vaultId: u32, bitcoinArgons: u128, bondedArgons: u128, addedSecuritizationPercent: u128, operatorAccountId: AccountId32], {
1079
1082
  vaultId: u32;
1080
- miningArgons: u128;
1083
+ bitcoinArgons: u128;
1084
+ bondedArgons: u128;
1085
+ addedSecuritizationPercent: u128;
1086
+ operatorAccountId: AccountId32;
1081
1087
  }>;
1082
- VaultModified: AugmentedEvent<ApiType, [vaultId: u32, bitcoinArgons: u128, miningArgons: u128, securitizationPercent: u128], {
1088
+ VaultModified: AugmentedEvent<ApiType, [vaultId: u32, bitcoinArgons: u128, bondedArgons: u128, addedSecuritizationPercent: u128], {
1083
1089
  vaultId: u32;
1084
1090
  bitcoinArgons: u128;
1085
- miningArgons: u128;
1086
- securitizationPercent: u128;
1091
+ bondedArgons: u128;
1092
+ addedSecuritizationPercent: u128;
1087
1093
  }>;
1088
1094
  VaultTermsChanged: AugmentedEvent<ApiType, [vaultId: u32], {
1089
1095
  vaultId: u32;
1090
1096
  }>;
1091
- VaultTermsChangeScheduled: AugmentedEvent<ApiType, [vaultId: u32, changeBlock: u32], {
1097
+ VaultTermsChangeScheduled: AugmentedEvent<ApiType, [vaultId: u32, changeTick: u64], {
1092
1098
  vaultId: u32;
1093
- changeBlock: u32;
1099
+ changeTick: u64;
1094
1100
  }>;
1095
1101
  };
1096
1102
  }
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/
3
3
  import type { BTreeMap, Bytes, Null, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
6
- import type { ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBalanceChangeAccountOrigin, ArgonPrimitivesBitcoinBitcoinBlock, ArgonPrimitivesBitcoinBitcoinNetwork, ArgonPrimitivesBitcoinBitcoinXPub, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBitcoinUtxoValue, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealMiningBidStats, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesBlockSealMiningSlotConfig, ArgonPrimitivesBond, ArgonPrimitivesBondVault, ArgonPrimitivesDigestsBlockVoteDigest, ArgonPrimitivesDigestsDigestset, ArgonPrimitivesDigestsNotebookDigest, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesForkPower, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryNotebookKeyDetails, ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails, ArgonPrimitivesNotaryNotaryRecord, ArgonPrimitivesProvidersBlockSealerInfo, ArgonPrimitivesTickTicker, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, IsmpConsensusStateCommitment, IsmpConsensusStateMachineHeight, IsmpConsensusStateMachineId, IsmpHostStateMachine, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBondUtxoCosignRequest, PalletBondUtxoState, PalletChainTransferQueuedTransferOut, PalletDomainsDomainRegistration, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletHyperbridgeVersionedHostParams, PalletMintMintAction, PalletMultisigMultisig, PalletPriceIndexPriceIndex, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletTransactionPaymentReleases, SpConsensusGrandpaAppPublic, SpRuntimeDigest } from '@polkadot/types/lookup';
6
+ import type { ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBalanceChangeAccountOrigin, ArgonPrimitivesBitcoinBitcoinBlock, ArgonPrimitivesBitcoinBitcoinNetwork, ArgonPrimitivesBitcoinBitcoinXPub, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBitcoinUtxoValue, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealMiningBidStats, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesBlockSealMiningSlotConfig, ArgonPrimitivesDigestsBlockVoteDigest, ArgonPrimitivesDigestsDigestset, ArgonPrimitivesDigestsNotebookDigest, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesForkPower, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryNotebookKeyDetails, ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails, ArgonPrimitivesNotaryNotaryRecord, ArgonPrimitivesProvidersBlockSealerInfo, ArgonPrimitivesTickTicker, ArgonPrimitivesVault, ArgonPrimitivesVaultObligation, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, IsmpConsensusStateCommitment, IsmpConsensusStateMachineHeight, IsmpConsensusStateMachineId, IsmpHostStateMachine, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBitcoinLocksLockReleaseRequest, PalletBitcoinLocksLockedBitcoin, PalletChainTransferQueuedTransferOut, PalletDomainsDomainRegistration, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletHyperbridgeVersionedHostParams, PalletMintMintAction, PalletMultisigMultisig, PalletPriceIndexPriceIndex, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletTransactionPaymentReleases, SpConsensusGrandpaAppPublic, SpRuntimeDigest } from '@polkadot/types/lookup';
7
7
  import type { Observable } from '@polkadot/types/types';
8
8
  export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
9
9
  export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
@@ -73,6 +73,35 @@ declare module '@polkadot/api-base/types/storage' {
73
73
  **/
74
74
  totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
75
75
  };
76
+ bitcoinLocks: {
77
+ /**
78
+ * Stores the block number where the lock was released
79
+ **/
80
+ lockReleaseCosignHeightById: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]>;
81
+ /**
82
+ * Stores bitcoin utxos that have requested to be released
83
+ **/
84
+ locksByUtxoId: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBitcoinLocksLockedBitcoin>>, [u64]>;
85
+ /**
86
+ * Utxos that have been requested to be cosigned for releasing
87
+ **/
88
+ locksPendingReleaseByUtxoId: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, PalletBitcoinLocksLockReleaseRequest>>, []>;
89
+ /**
90
+ * The minimum number of satoshis that can be locked
91
+ **/
92
+ minimumSatoshis: AugmentedQuery<ApiType, () => Observable<u64>, []>;
93
+ nextUtxoId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
94
+ /**
95
+ * Mapping of obligation id to lock id
96
+ **/
97
+ obligationIdToUtxoId: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u64>>, [u64]>;
98
+ /**
99
+ * Stores Utxos that were not paid back in full
100
+ *
101
+ * Tuple stores Account, Vault, Still Owed, State
102
+ **/
103
+ owedUtxoAggrieved: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32, u128, PalletBitcoinLocksLockedBitcoin]>>>, [u64]>;
104
+ };
76
105
  bitcoinUtxos: {
77
106
  /**
78
107
  * The genesis set bitcoin network that this chain is tied to
@@ -92,17 +121,17 @@ declare module '@polkadot/api-base/types/storage' {
92
121
  lockedUtxoExpirationsByBlock: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<ArgonPrimitivesBitcoinUtxoRef>>, [u64]>;
93
122
  /**
94
123
  * Locked Bitcoin UTXOs that have had ownership confirmed. If a Bitcoin UTXO is moved before
95
- * the expiration block, the bond is burned and the UTXO is unlocked.
124
+ * the expiration block, the obligation is burned and the UTXO is unlocked.
96
125
  **/
97
126
  lockedUtxos: AugmentedQuery<ApiType, (arg: ArgonPrimitivesBitcoinUtxoRef | {
98
127
  txid?: any;
99
128
  outputIndex?: any;
100
129
  } | string | Uint8Array) => Observable<Option<ArgonPrimitivesBitcoinUtxoValue>>, [ArgonPrimitivesBitcoinUtxoRef]>;
101
- nextUtxoId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
102
130
  /**
103
131
  * Bitcoin Oracle Operator Account
104
132
  **/
105
133
  oracleOperatorAccount: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
134
+ previousBitcoinBlockTip: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesBitcoinBitcoinBlock>>, []>;
106
135
  /**
107
136
  * The last synched bitcoin block
108
137
  **/
@@ -185,44 +214,6 @@ declare module '@polkadot/api-base/types/storage' {
185
214
  **/
186
215
  voteMinimumHistory: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []>;
187
216
  };
188
- bonds: {
189
- /**
190
- * Completion of bitcoin bonds by bitcoin height. Bond funds are returned to the vault if
191
- * unlocked or used as the price of the bitcoin
192
- **/
193
- bitcoinBondCompletions: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>, [u64]>;
194
- /**
195
- * Bonds by id
196
- **/
197
- bondsById: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesBond>>, [u64]>;
198
- /**
199
- * The minimum number of satoshis that can be bonded
200
- **/
201
- minimumBitcoinBondSatoshis: AugmentedQuery<ApiType, () => Observable<u64>, []>;
202
- /**
203
- * Completion of mining bonds, upon which funds are returned to the vault
204
- **/
205
- miningBondCompletions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u64>>, [u32]>;
206
- nextBondId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
207
- /**
208
- * Stores Utxos that were not paid back in full
209
- *
210
- * Tuple stores Account, Vault, Still Owed, State
211
- **/
212
- owedUtxoAggrieved: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32, u128, PalletBondUtxoState]>>>, [u64]>;
213
- /**
214
- * Stores bitcoin utxos that have requested to be unlocked
215
- **/
216
- utxosById: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBondUtxoState>>, [u64]>;
217
- /**
218
- * Stores the block number where the utxo was unlocked
219
- **/
220
- utxosCosignReleaseHeightById: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]>;
221
- /**
222
- * Utxos that have been requested to be cosigned for unlocking
223
- **/
224
- utxosPendingUnlockByUtxoId: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, PalletBondUtxoCosignRequest>>, []>;
225
- };
226
217
  chainTransfer: {
227
218
  expiringTransfersOutByNotary: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32, u64]>;
228
219
  /**
@@ -380,11 +371,19 @@ declare module '@polkadot/api-base/types/storage' {
380
371
  **/
381
372
  activeMinersByIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesBlockSealMiningRegistration>>, [u32]>;
382
373
  activeMinersCount: AugmentedQuery<ApiType, () => Observable<u16>, []>;
374
+ /**
375
+ * Argonots that must be locked to take a Miner role
376
+ **/
377
+ argonotsPerMiningSeat: AugmentedQuery<ApiType, () => Observable<u128>, []>;
383
378
  /**
384
379
  * Authorities are the session keys that are actively participating in the network.
385
380
  * The tuple is the authority, and the blake2 256 hash of the authority used for xor lookups
386
381
  **/
387
382
  authorityHashByIndex: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, U256>>, []>;
383
+ /**
384
+ * The current slot id
385
+ **/
386
+ currentSlotId: AugmentedQuery<ApiType, () => Observable<u64>, []>;
388
387
  hasAddedGrandpaRotation: AugmentedQuery<ApiType, () => Observable<bool>, []>;
389
388
  /**
390
389
  * The number of bids per slot for the last 10 slots (newest first)
@@ -403,10 +402,6 @@ declare module '@polkadot/api-base/types/storage' {
403
402
  * registrants with their bid amount
404
403
  **/
405
404
  nextSlotCohort: AugmentedQuery<ApiType, () => Observable<Vec<ArgonPrimitivesBlockSealMiningRegistration>>, []>;
406
- /**
407
- * Tokens that must be bonded to take a Miner role
408
- **/
409
- ownershipBondAmount: AugmentedQuery<ApiType, () => Observable<u128>, []>;
410
405
  };
411
406
  mint: {
412
407
  blockMintAction: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, PalletMintMintAction]>>, []>;
@@ -651,6 +646,7 @@ declare module '@polkadot/api-base/types/storage' {
651
646
  currentTick: AugmentedQuery<ApiType, () => Observable<u64>, []>;
652
647
  genesisTick: AugmentedQuery<ApiType, () => Observable<u64>, []>;
653
648
  genesisTicker: AugmentedQuery<ApiType, () => Observable<ArgonPrimitivesTickTicker>, []>;
649
+ previousTick: AugmentedQuery<ApiType, () => Observable<u64>, []>;
654
650
  /**
655
651
  * Blocks from the last 100 ticks. Trimmed in on_initialize.
656
652
  * NOTE: cannot include the current block hash until next block
@@ -671,10 +667,6 @@ declare module '@polkadot/api-base/types/storage' {
671
667
  now: AugmentedQuery<ApiType, () => Observable<u64>, []>;
672
668
  };
673
669
  tokenGateway: {
674
- /**
675
- * The decimals used by the EVM counterpart of this asset
676
- **/
677
- decimals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u8>>, [u32]>;
678
670
  /**
679
671
  * Assets supported by this instance of token gateway
680
672
  * A map of the token gateway asset id to the local asset id
@@ -684,6 +676,20 @@ declare module '@polkadot/api-base/types/storage' {
684
676
  * Assets that originate from this chain
685
677
  **/
686
678
  nativeAssets: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<bool>, [u32]>;
679
+ /**
680
+ * The decimals used by the EVM counterpart of this asset
681
+ **/
682
+ precisions: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: IsmpHostStateMachine | {
683
+ Evm: any;
684
+ } | {
685
+ Polkadot: any;
686
+ } | {
687
+ Kusama: any;
688
+ } | {
689
+ Substrate: any;
690
+ } | {
691
+ Tendermint: any;
692
+ } | string | Uint8Array) => Observable<Option<u8>>, [u32, IsmpHostStateMachine]>;
687
693
  /**
688
694
  * Assets supported by this instance of token gateway
689
695
  * A map of the local asset id to the token gateway asset id
@@ -715,21 +721,35 @@ declare module '@polkadot/api-base/types/storage' {
715
721
  pausedCalls: AugmentedQuery<ApiType, (arg: ITuple<[Bytes, Bytes]> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<Null>>, [ITuple<[Bytes, Bytes]>]>;
716
722
  };
717
723
  vaults: {
724
+ /**
725
+ * Completion of bitcoin locks by bitcoin height. Funds are returned to the vault if
726
+ * unlocked or used as the price of the bitcoin
727
+ **/
728
+ bitcoinLockCompletions: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>, [u64]>;
729
+ /**
730
+ * Completion of mining obligation, upon which funds are returned to the vault
731
+ **/
732
+ bondedArgonCompletions: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>, [u64]>;
733
+ nextObligationId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
718
734
  nextVaultId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
735
+ /**
736
+ * Obligation by id
737
+ **/
738
+ obligationsById: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesVaultObligation>>, [u64]>;
719
739
  /**
720
740
  * Pending funding that will be committed at the given block number (must be a minimum of 1
721
741
  * slot change away)
722
742
  **/
723
- pendingFundingModificationsByBlock: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]>;
743
+ pendingFundingModificationsByTick: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u64]>;
724
744
  /**
725
745
  * Pending terms that will be committed at the given block number (must be a minimum of 1 slot
726
746
  * change away)
727
747
  **/
728
- pendingTermsModificationsByBlock: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]>;
748
+ pendingTermsModificationsByTick: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u64]>;
729
749
  /**
730
750
  * Vaults by id
731
751
  **/
732
- vaultsById: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesBondVault>>, [u32]>;
752
+ vaultsById: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesVault>>, [u32]>;
733
753
  /**
734
754
  * Vault Bitcoin Xpub and current child counter by VaultId
735
755
  **/