@argonprotocol/mainchain 0.0.16 → 0.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 (57) hide show
  1. package/README.md +46 -0
  2. package/lib/cjs/WageProtector.d.ts +37 -0
  3. package/lib/cjs/WageProtector.js +63 -0
  4. package/lib/cjs/WageProtector.js.map +1 -0
  5. package/lib/cjs/__test__/WageProtector.test.d.ts +1 -0
  6. package/lib/cjs/__test__/WageProtector.test.js +28 -0
  7. package/lib/cjs/__test__/WageProtector.test.js.map +1 -0
  8. package/lib/cjs/index.d.ts +16 -1
  9. package/lib/cjs/index.js +22 -7
  10. package/lib/cjs/index.js.map +1 -1
  11. package/lib/cjs/interfaces/augment-api-consts.d.ts +34 -7
  12. package/lib/cjs/interfaces/augment-api-errors.d.ts +115 -4
  13. package/lib/cjs/interfaces/augment-api-events.d.ts +172 -14
  14. package/lib/cjs/interfaces/augment-api-query.d.ts +160 -29
  15. package/lib/cjs/interfaces/augment-api-tx.d.ts +140 -13
  16. package/lib/cjs/interfaces/augment-types.d.ts +4 -1
  17. package/lib/cjs/interfaces/lookup.d.ts +809 -307
  18. package/lib/cjs/interfaces/lookup.js +840 -338
  19. package/lib/cjs/interfaces/lookup.js.map +1 -1
  20. package/lib/cjs/interfaces/registry.d.ts +55 -9
  21. package/lib/cjs/interfaces/types-lookup.d.ts +792 -328
  22. package/lib/esm/WageProtector.d.ts +37 -0
  23. package/lib/esm/WageProtector.js +59 -0
  24. package/lib/esm/WageProtector.js.map +1 -0
  25. package/lib/esm/__test__/WageProtector.test.d.ts +1 -0
  26. package/lib/esm/__test__/WageProtector.test.js +26 -0
  27. package/lib/esm/__test__/WageProtector.test.js.map +1 -0
  28. package/lib/esm/index.d.ts +16 -1
  29. package/lib/esm/index.js +16 -2
  30. package/lib/esm/index.js.map +1 -1
  31. package/lib/esm/interfaces/augment-api-consts.d.ts +34 -7
  32. package/lib/esm/interfaces/augment-api-errors.d.ts +115 -4
  33. package/lib/esm/interfaces/augment-api-events.d.ts +172 -14
  34. package/lib/esm/interfaces/augment-api-query.d.ts +160 -29
  35. package/lib/esm/interfaces/augment-api-tx.d.ts +140 -13
  36. package/lib/esm/interfaces/augment-types.d.ts +4 -1
  37. package/lib/esm/interfaces/lookup.d.ts +809 -307
  38. package/lib/esm/interfaces/lookup.js +840 -338
  39. package/lib/esm/interfaces/lookup.js.map +1 -1
  40. package/lib/esm/interfaces/registry.d.ts +55 -9
  41. package/lib/esm/interfaces/types-lookup.d.ts +792 -328
  42. package/lib/tsconfig-cjs.tsbuildinfo +1 -1
  43. package/lib/tsconfig-types.tsbuildinfo +1 -1
  44. package/lib/tsconfig.tsbuildinfo +1 -1
  45. package/lib/types/WageProtector.d.ts +37 -0
  46. package/lib/types/__test__/WageProtector.test.d.ts +1 -0
  47. package/lib/types/index.d.ts +16 -1
  48. package/lib/types/interfaces/augment-api-consts.d.ts +34 -7
  49. package/lib/types/interfaces/augment-api-errors.d.ts +115 -4
  50. package/lib/types/interfaces/augment-api-events.d.ts +172 -14
  51. package/lib/types/interfaces/augment-api-query.d.ts +160 -29
  52. package/lib/types/interfaces/augment-api-tx.d.ts +140 -13
  53. package/lib/types/interfaces/augment-types.d.ts +4 -1
  54. package/lib/types/interfaces/lookup.d.ts +809 -307
  55. package/lib/types/interfaces/registry.d.ts +55 -9
  56. package/lib/types/interfaces/types-lookup.d.ts +792 -328
  57. package/package.json +28 -7
@@ -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 { ArgonNodeRuntimeProxyType, ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBitcoinBitcoinRejectedReason, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesBondBondExpiration, ArgonPrimitivesBondBondType, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryRecord, FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDomainsDomainRegistration, PalletMintMintType, PalletMultisigTimepoint, SpConsensusGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
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';
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> {
@@ -300,7 +300,7 @@ declare module '@polkadot/api-base/types/events' {
300
300
  * A localchain transfer could not be cleaned up properly. Possible invalid transfer
301
301
  * needing investigation.
302
302
  **/
303
- PossibleInvalidTransferAllowed: AugmentedEvent<ApiType, [transferId: u32, notaryId: u32, notebookNumber: u32], {
303
+ PossibleInvalidLocalchainTransferAllowed: AugmentedEvent<ApiType, [transferId: u32, notaryId: u32, notebookNumber: u32], {
304
304
  transferId: u32;
305
305
  notaryId: u32;
306
306
  notebookNumber: u32;
@@ -314,7 +314,10 @@ declare module '@polkadot/api-base/types/events' {
314
314
  tax: u128;
315
315
  error: SpRuntimeDispatchError;
316
316
  }>;
317
- TransferIn: AugmentedEvent<ApiType, [accountId: AccountId32, amount: u128, notaryId: u32], {
317
+ /**
318
+ * Transfer from Localchain to Mainchain
319
+ **/
320
+ TransferFromLocalchain: AugmentedEvent<ApiType, [accountId: AccountId32, amount: u128, notaryId: u32], {
318
321
  accountId: AccountId32;
319
322
  amount: u128;
320
323
  notaryId: u32;
@@ -322,20 +325,26 @@ declare module '@polkadot/api-base/types/events' {
322
325
  /**
323
326
  * A transfer into the mainchain failed
324
327
  **/
325
- TransferInError: AugmentedEvent<ApiType, [accountId: AccountId32, amount: u128, notaryId: u32, notebookNumber: u32, error: SpRuntimeDispatchError], {
328
+ TransferFromLocalchainError: AugmentedEvent<ApiType, [accountId: AccountId32, amount: u128, notaryId: u32, notebookNumber: u32, error: SpRuntimeDispatchError], {
326
329
  accountId: AccountId32;
327
330
  amount: u128;
328
331
  notaryId: u32;
329
332
  notebookNumber: u32;
330
333
  error: SpRuntimeDispatchError;
331
334
  }>;
332
- TransferToLocalchain: AugmentedEvent<ApiType, [accountId: AccountId32, amount: u128, transferId: u32, notaryId: u32, expirationTick: u32], {
335
+ /**
336
+ * Funds sent to a localchain
337
+ **/
338
+ TransferToLocalchain: AugmentedEvent<ApiType, [accountId: AccountId32, amount: u128, transferId: u32, notaryId: u32, expirationTick: u64], {
333
339
  accountId: AccountId32;
334
340
  amount: u128;
335
341
  transferId: u32;
336
342
  notaryId: u32;
337
- expirationTick: u32;
343
+ expirationTick: u64;
338
344
  }>;
345
+ /**
346
+ * Transfer to localchain expired and rolled back
347
+ **/
339
348
  TransferToLocalchainExpired: AugmentedEvent<ApiType, [accountId: AccountId32, transferId: u32, notaryId: u32], {
340
349
  accountId: AccountId32;
341
350
  transferId: u32;
@@ -352,6 +361,7 @@ declare module '@polkadot/api-base/types/events' {
352
361
  error: SpRuntimeDispatchError;
353
362
  }>;
354
363
  };
364
+ digests: {};
355
365
  domains: {
356
366
  /**
357
367
  * A domain was expired
@@ -412,6 +422,120 @@ declare module '@polkadot/api-base/types/events' {
412
422
  **/
413
423
  Resumed: AugmentedEvent<ApiType, []>;
414
424
  };
425
+ hyperbridge: {
426
+ /**
427
+ * Hyperbridge governance has now updated it's host params on this chain.
428
+ **/
429
+ HostParamsUpdated: AugmentedEvent<ApiType, [old: PalletHyperbridgeVersionedHostParams, new_: PalletHyperbridgeVersionedHostParams], {
430
+ old: PalletHyperbridgeVersionedHostParams;
431
+ new_: PalletHyperbridgeVersionedHostParams;
432
+ }>;
433
+ /**
434
+ * Hyperbridge has withdrawn it's protocol revenue
435
+ **/
436
+ ProtocolRevenueWithdrawn: AugmentedEvent<ApiType, [amount: u128, account: AccountId32], {
437
+ amount: u128;
438
+ account: AccountId32;
439
+ }>;
440
+ /**
441
+ * A relayer has withdrawn some fees
442
+ **/
443
+ RelayerFeeWithdrawn: AugmentedEvent<ApiType, [amount: u128, account: AccountId32], {
444
+ amount: u128;
445
+ account: AccountId32;
446
+ }>;
447
+ };
448
+ ismp: {
449
+ /**
450
+ * Indicates that a consensus client has been created
451
+ **/
452
+ ConsensusClientCreated: AugmentedEvent<ApiType, [consensusClientId: U8aFixed], {
453
+ consensusClientId: U8aFixed;
454
+ }>;
455
+ /**
456
+ * Indicates that a consensus client has been created
457
+ **/
458
+ ConsensusClientFrozen: AugmentedEvent<ApiType, [consensusClientId: U8aFixed], {
459
+ consensusClientId: U8aFixed;
460
+ }>;
461
+ /**
462
+ * Some errors handling some ismp messages
463
+ **/
464
+ Errors: AugmentedEvent<ApiType, [errors: Vec<PalletIsmpErrorsHandlingError>], {
465
+ errors: Vec<PalletIsmpErrorsHandlingError>;
466
+ }>;
467
+ /**
468
+ * Get Response Handled
469
+ **/
470
+ GetRequestHandled: AugmentedEvent<ApiType, [IsmpEventsRequestResponseHandled]>;
471
+ /**
472
+ * Get request timeout handled
473
+ **/
474
+ GetRequestTimeoutHandled: AugmentedEvent<ApiType, [IsmpEventsTimeoutHandled]>;
475
+ /**
476
+ * Post Request Handled
477
+ **/
478
+ PostRequestHandled: AugmentedEvent<ApiType, [IsmpEventsRequestResponseHandled]>;
479
+ /**
480
+ * Post request timeout handled
481
+ **/
482
+ PostRequestTimeoutHandled: AugmentedEvent<ApiType, [IsmpEventsTimeoutHandled]>;
483
+ /**
484
+ * Post Response Handled
485
+ **/
486
+ PostResponseHandled: AugmentedEvent<ApiType, [IsmpEventsRequestResponseHandled]>;
487
+ /**
488
+ * Post response timeout handled
489
+ **/
490
+ PostResponseTimeoutHandled: AugmentedEvent<ApiType, [IsmpEventsTimeoutHandled]>;
491
+ /**
492
+ * An Outgoing Request has been deposited
493
+ **/
494
+ Request: AugmentedEvent<ApiType, [destChain: IsmpHostStateMachine, sourceChain: IsmpHostStateMachine, requestNonce: u64, commitment: H256], {
495
+ destChain: IsmpHostStateMachine;
496
+ sourceChain: IsmpHostStateMachine;
497
+ requestNonce: u64;
498
+ commitment: H256;
499
+ }>;
500
+ /**
501
+ * An Outgoing Response has been deposited
502
+ **/
503
+ Response: AugmentedEvent<ApiType, [destChain: IsmpHostStateMachine, sourceChain: IsmpHostStateMachine, requestNonce: u64, commitment: H256, reqCommitment: H256], {
504
+ destChain: IsmpHostStateMachine;
505
+ sourceChain: IsmpHostStateMachine;
506
+ requestNonce: u64;
507
+ commitment: H256;
508
+ reqCommitment: H256;
509
+ }>;
510
+ /**
511
+ * Emitted when a state commitment is vetoed by a fisherman
512
+ **/
513
+ StateCommitmentVetoed: AugmentedEvent<ApiType, [height: IsmpConsensusStateMachineHeight, fisherman: Bytes], {
514
+ height: IsmpConsensusStateMachineHeight;
515
+ fisherman: Bytes;
516
+ }>;
517
+ /**
518
+ * Emitted when a state machine is successfully updated to a new height
519
+ **/
520
+ StateMachineUpdated: AugmentedEvent<ApiType, [stateMachineId: IsmpConsensusStateMachineId, latestHeight: u64], {
521
+ stateMachineId: IsmpConsensusStateMachineId;
522
+ latestHeight: u64;
523
+ }>;
524
+ };
525
+ ismpGrandpa: {
526
+ /**
527
+ * State machines have been added to whitelist
528
+ **/
529
+ StateMachineAdded: AugmentedEvent<ApiType, [stateMachines: Vec<IsmpHostStateMachine>], {
530
+ stateMachines: Vec<IsmpHostStateMachine>;
531
+ }>;
532
+ /**
533
+ * State machines have been removed from the whitelist
534
+ **/
535
+ StateMachineRemoved: AugmentedEvent<ApiType, [stateMachines: Vec<IsmpHostStateMachine>], {
536
+ stateMachines: Vec<IsmpHostStateMachine>;
537
+ }>;
538
+ };
415
539
  miningSlot: {
416
540
  NewMiners: AugmentedEvent<ApiType, [startIndex: u32, newMiners: Vec<ArgonPrimitivesBlockSealMiningRegistration>], {
417
541
  startIndex: u32;
@@ -516,10 +640,10 @@ declare module '@polkadot/api-base/types/events' {
516
640
  /**
517
641
  * Notary metadata queued for update
518
642
  **/
519
- NotaryMetaUpdateQueued: AugmentedEvent<ApiType, [notaryId: u32, meta: ArgonPrimitivesNotaryNotaryMeta, effectiveTick: u32], {
643
+ NotaryMetaUpdateQueued: AugmentedEvent<ApiType, [notaryId: u32, meta: ArgonPrimitivesNotaryNotaryMeta, effectiveTick: u64], {
520
644
  notaryId: u32;
521
645
  meta: ArgonPrimitivesNotaryNotaryMeta;
522
- effectiveTick: u32;
646
+ effectiveTick: u64;
523
647
  }>;
524
648
  /**
525
649
  * A user has proposed operating as a notary
@@ -725,10 +849,10 @@ declare module '@polkadot/api-base/types/events' {
725
849
  /**
726
850
  * A proxy was added.
727
851
  **/
728
- ProxyAdded: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: ArgonNodeRuntimeProxyType, delay: u32], {
852
+ ProxyAdded: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: ArgonRuntimeConfigsProxyType, delay: u32], {
729
853
  delegator: AccountId32;
730
854
  delegatee: AccountId32;
731
- proxyType: ArgonNodeRuntimeProxyType;
855
+ proxyType: ArgonRuntimeConfigsProxyType;
732
856
  delay: u32;
733
857
  }>;
734
858
  /**
@@ -740,20 +864,20 @@ declare module '@polkadot/api-base/types/events' {
740
864
  /**
741
865
  * A proxy was removed.
742
866
  **/
743
- ProxyRemoved: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: ArgonNodeRuntimeProxyType, delay: u32], {
867
+ ProxyRemoved: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: ArgonRuntimeConfigsProxyType, delay: u32], {
744
868
  delegator: AccountId32;
745
869
  delegatee: AccountId32;
746
- proxyType: ArgonNodeRuntimeProxyType;
870
+ proxyType: ArgonRuntimeConfigsProxyType;
747
871
  delay: u32;
748
872
  }>;
749
873
  /**
750
874
  * A pure account has been created by new proxy with given
751
875
  * disambiguation index and proxy type.
752
876
  **/
753
- PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType: ArgonNodeRuntimeProxyType, disambiguationIndex: u16], {
877
+ PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType: ArgonRuntimeConfigsProxyType, disambiguationIndex: u16], {
754
878
  pure: AccountId32;
755
879
  who: AccountId32;
756
- proxyType: ArgonNodeRuntimeProxyType;
880
+ proxyType: ArgonRuntimeConfigsProxyType;
757
881
  disambiguationIndex: u16;
758
882
  }>;
759
883
  };
@@ -827,6 +951,40 @@ declare module '@polkadot/api-base/types/events' {
827
951
  checkVersion: bool;
828
952
  }>;
829
953
  };
954
+ tokenGateway: {
955
+ /**
956
+ * An asset has been received and transferred to the beneficiary's account
957
+ **/
958
+ AssetReceived: AugmentedEvent<ApiType, [beneficiary: AccountId32, amount: u128, source: IsmpHostStateMachine], {
959
+ beneficiary: AccountId32;
960
+ amount: u128;
961
+ source: IsmpHostStateMachine;
962
+ }>;
963
+ /**
964
+ * An asset has been refunded and transferred to the beneficiary's account
965
+ **/
966
+ AssetRefunded: AugmentedEvent<ApiType, [beneficiary: AccountId32, amount: u128, source: IsmpHostStateMachine], {
967
+ beneficiary: AccountId32;
968
+ amount: u128;
969
+ source: IsmpHostStateMachine;
970
+ }>;
971
+ /**
972
+ * An asset has been teleported
973
+ **/
974
+ AssetTeleported: AugmentedEvent<ApiType, [from: AccountId32, to: H256, amount: u128, dest: IsmpHostStateMachine, commitment: H256], {
975
+ from: AccountId32;
976
+ to: H256;
977
+ amount: u128;
978
+ dest: IsmpHostStateMachine;
979
+ commitment: H256;
980
+ }>;
981
+ /**
982
+ * ERC6160 asset creation request dispatched to hyperbridge
983
+ **/
984
+ ERC6160AssetRegistrationDispatched: AugmentedEvent<ApiType, [commitment: H256], {
985
+ commitment: H256;
986
+ }>;
987
+ };
830
988
  transactionPayment: {
831
989
  /**
832
990
  * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
@@ -1,9 +1,9 @@
1
1
  import '@polkadot/api-base/types/storage';
2
2
  import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
3
- import type { BTreeMap, Bytes, Null, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
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, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesBlockSealMiningSlotConfig, ArgonPrimitivesBond, ArgonPrimitivesBondVault, ArgonPrimitivesDigestsBlockVoteDigest, ArgonPrimitivesDigestsNotebookDigest, ArgonPrimitivesDigestsParentVotingKeyDigest, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesForkPower, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryNotebookKeyDetails, ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails, ArgonPrimitivesNotaryNotaryRecord, ArgonPrimitivesProvidersBlockSealerInfo, ArgonPrimitivesTickTicker, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBondUtxoCosignRequest, PalletBondUtxoState, PalletChainTransferQueuedTransferOut, PalletDomainsDomainRegistration, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMultisigMultisig, PalletPriceIndexPriceIndex, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletTransactionPaymentReleases, SpConsensusGrandpaAppPublic, SpRuntimeDigest } from '@polkadot/types/lookup';
6
+ import type { ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBalanceChangeAccountOrigin, ArgonPrimitivesBitcoinBitcoinBlock, ArgonPrimitivesBitcoinBitcoinNetwork, ArgonPrimitivesBitcoinBitcoinXPub, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBitcoinUtxoValue, ArgonPrimitivesBlockSealBlockPayout, 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, 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>;
@@ -82,6 +82,10 @@ declare module '@polkadot/api-base/types/storage' {
82
82
  * An oracle-provided confirmed bitcoin block (eg, 6 blocks back)
83
83
  **/
84
84
  confirmedBitcoinBlockTip: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesBitcoinBitcoinBlock>>, []>;
85
+ /**
86
+ * Check if the inherent was included
87
+ **/
88
+ inherentIncluded: AugmentedQuery<ApiType, () => Observable<bool>, []>;
85
89
  /**
86
90
  * Expiration date as a day since unix timestamp mapped to Bitcoin UTXOs
87
91
  **/
@@ -103,6 +107,10 @@ declare module '@polkadot/api-base/types/storage' {
103
107
  * The last synched bitcoin block
104
108
  **/
105
109
  synchedBitcoinBlock: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesBitcoinBitcoinBlock>>, []>;
110
+ /**
111
+ * Stores if parent block had a confirmed bitcoin block
112
+ **/
113
+ tempParentHasSyncState: AugmentedQuery<ApiType, () => Observable<bool>, []>;
106
114
  utxoIdToRef: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesBitcoinUtxoRef>>, [u64]>;
107
115
  /**
108
116
  * Bitcoin UTXOs that have been submitted for ownership confirmation
@@ -124,22 +132,14 @@ declare module '@polkadot/api-base/types/storage' {
124
132
  * Secret + VotesMerkleRoot of the parent block notebooks.
125
133
  **/
126
134
  parentVotingKey: AugmentedQuery<ApiType, () => Observable<Option<H256>>, []>;
127
- /**
128
- * Author of current block (temporary storage).
129
- **/
130
- tempAuthor: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
131
135
  /**
132
136
  * Ensures only a single inherent is applied
133
137
  **/
134
138
  tempSealInherent: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesInherentsBlockSealInherent>>, []>;
135
- /**
136
- * Temporarily track the parent voting key digest
137
- **/
138
- tempVotingKeyDigest: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesDigestsParentVotingKeyDigest>>, []>;
139
139
  /**
140
140
  * The count of votes in the last 3 ticks
141
141
  **/
142
- votesInPast3Ticks: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []>;
142
+ votesInPast3Ticks: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []>;
143
143
  };
144
144
  blockSealSpec: {
145
145
  /**
@@ -148,14 +148,23 @@ declare module '@polkadot/api-base/types/storage' {
148
148
  * target a max number of votes
149
149
  **/
150
150
  currentComputeDifficulty: AugmentedQuery<ApiType, () => Observable<u128>, []>;
151
+ /**
152
+ * The key K is selected to be the hash of a block in the blockchain - this block is called
153
+ * the 'key block'. For optimal mining and verification performance, the key should
154
+ * change every day
155
+ **/
156
+ currentComputeKeyBlock: AugmentedQuery<ApiType, () => Observable<Option<H256>>, []>;
151
157
  /**
152
158
  * The current vote minimum of the chain. Block votes use this minimum to determine the
153
159
  * minimum amount of tax or compute needed to create a vote. It is adjusted up or down to
154
160
  * target a max number of votes
155
161
  **/
156
162
  currentVoteMinimum: AugmentedQuery<ApiType, () => Observable<u128>, []>;
157
- pastBlockVotes: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32, u128]>>>, []>;
163
+ pastBlockVotes: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32, u128]>>>, []>;
158
164
  pastComputeBlockTimes: AugmentedQuery<ApiType, () => Observable<Vec<u64>>, []>;
165
+ /**
166
+ * The timestamp from the previous block
167
+ **/
159
168
  previousBlockTimestamp: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
160
169
  tempBlockTimestamp: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
161
170
  /**
@@ -210,13 +219,20 @@ declare module '@polkadot/api-base/types/storage' {
210
219
  utxosPendingUnlockByUtxoId: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, PalletBondUtxoCosignRequest>>, []>;
211
220
  };
212
221
  chainTransfer: {
213
- expiringTransfersOutByNotary: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32, u32]>;
222
+ expiringTransfersOutByNotary: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32, u64]>;
223
+ /**
224
+ * The admin of the hyperbridge token gateway
225
+ **/
226
+ hyperbridgeTokenAdmin: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
214
227
  nextTransferId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
215
228
  pendingTransfersOut: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletChainTransferQueuedTransferOut>>, [u32]>;
216
229
  transfersUsedInBlockNotebooks: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[AccountId32, u32]>>>, [u32]>;
217
230
  };
231
+ digests: {
232
+ tempDigests: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesDigestsDigestset>>, []>;
233
+ };
218
234
  domains: {
219
- expiringDomainsByBlock: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<H256>>, [u32]>;
235
+ expiringDomainsByBlock: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<H256>>, [u64]>;
220
236
  registeredDomains: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletDomainsDomainRegistration>>, [H256]>;
221
237
  zoneRecordsByDomain: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<ArgonPrimitivesDomainZoneRecord>>, [H256]>;
222
238
  };
@@ -260,6 +276,95 @@ declare module '@polkadot/api-base/types/storage' {
260
276
  **/
261
277
  state: AugmentedQuery<ApiType, () => Observable<PalletGrandpaStoredState>, []>;
262
278
  };
279
+ hyperbridge: {
280
+ /**
281
+ * The host parameters of the pallet-hyperbridge.
282
+ **/
283
+ hostParams: AugmentedQuery<ApiType, () => Observable<PalletHyperbridgeVersionedHostParams>, []>;
284
+ };
285
+ ismp: {
286
+ /**
287
+ * A mapping of state machine Ids to their challenge periods
288
+ **/
289
+ challengePeriod: AugmentedQuery<ApiType, (arg: IsmpConsensusStateMachineId | {
290
+ stateId?: any;
291
+ consensusStateId?: any;
292
+ } | string | Uint8Array) => Observable<Option<u64>>, [IsmpConsensusStateMachineId]>;
293
+ /**
294
+ * The child trie root of messages
295
+ **/
296
+ childTrieRoot: AugmentedQuery<ApiType, () => Observable<H256>, []>;
297
+ /**
298
+ * Holds the timestamp at which a consensus client was recently updated.
299
+ * Used in ensuring that the configured challenge period elapses.
300
+ **/
301
+ consensusClientUpdateTime: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<u64>>, [U8aFixed]>;
302
+ /**
303
+ * A mapping of consensus state identifier to it's associated consensus client identifier
304
+ **/
305
+ consensusStateClient: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<U8aFixed>>, [U8aFixed]>;
306
+ /**
307
+ * Holds a map of consensus state identifiers to their consensus state.
308
+ **/
309
+ consensusStates: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<Bytes>>, [U8aFixed]>;
310
+ /**
311
+ * Holds a map of consensus clients frozen due to byzantine
312
+ * behaviour
313
+ **/
314
+ frozenConsensusClients: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<bool>, [U8aFixed]>;
315
+ /**
316
+ * The latest verified height for a state machine
317
+ **/
318
+ latestStateMachineHeight: AugmentedQuery<ApiType, (arg: IsmpConsensusStateMachineId | {
319
+ stateId?: any;
320
+ consensusStateId?: any;
321
+ } | string | Uint8Array) => Observable<Option<u64>>, [IsmpConsensusStateMachineId]>;
322
+ /**
323
+ * Latest nonce for messages sent from this chain
324
+ **/
325
+ nonce: AugmentedQuery<ApiType, () => Observable<u64>, []>;
326
+ /**
327
+ * Tracks requests that have been responded to
328
+ * The key is the request commitment
329
+ **/
330
+ responded: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<bool>, [H256]>;
331
+ /**
332
+ * Holds a map of state machine heights to their verified state commitments. These state
333
+ * commitments end up here after they are successfully verified by a `ConsensusClient`
334
+ **/
335
+ stateCommitments: AugmentedQuery<ApiType, (arg: IsmpConsensusStateMachineHeight | {
336
+ id?: any;
337
+ height?: any;
338
+ } | string | Uint8Array) => Observable<Option<IsmpConsensusStateCommitment>>, [IsmpConsensusStateMachineHeight]>;
339
+ /**
340
+ * Holds the timestamp at which a state machine height was updated.
341
+ * Used in ensuring that the configured challenge period elapses.
342
+ **/
343
+ stateMachineUpdateTime: AugmentedQuery<ApiType, (arg: IsmpConsensusStateMachineHeight | {
344
+ id?: any;
345
+ height?: any;
346
+ } | string | Uint8Array) => Observable<Option<u64>>, [IsmpConsensusStateMachineHeight]>;
347
+ /**
348
+ * A mapping of consensus state identifiers to their unbonding periods
349
+ **/
350
+ unbondingPeriod: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<u64>>, [U8aFixed]>;
351
+ };
352
+ ismpGrandpa: {
353
+ /**
354
+ * Registered state machines for the grandpa consensus client
355
+ **/
356
+ supportedStateMachines: AugmentedQuery<ApiType, (arg: IsmpHostStateMachine | {
357
+ Evm: any;
358
+ } | {
359
+ Polkadot: any;
360
+ } | {
361
+ Kusama: any;
362
+ } | {
363
+ Substrate: any;
364
+ } | {
365
+ Tendermint: any;
366
+ } | string | Uint8Array) => Observable<Option<u64>>, [IsmpHostStateMachine]>;
367
+ };
263
368
  miningSlot: {
264
369
  /**
265
370
  * Lookup by account id to the corresponding index in ActiveMinersByIndex and Authorities
@@ -287,10 +392,6 @@ declare module '@polkadot/api-base/types/storage' {
287
392
  * The last percentage adjustment to the ownership bond amount
288
393
  **/
289
394
  lastOwnershipPercentAdjustment: AugmentedQuery<ApiType, () => Observable<Option<u128>>, []>;
290
- /**
291
- * The configuration for a miner to supply if there are no registered miners
292
- **/
293
- minerZero: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesBlockSealMiningRegistration>>, []>;
294
395
  /**
295
396
  * The mining slot configuration set in genesis
296
397
  **/
@@ -306,8 +407,8 @@ declare module '@polkadot/api-base/types/storage' {
306
407
  ownershipBondAmount: AugmentedQuery<ApiType, () => Observable<u128>, []>;
307
408
  };
308
409
  mint: {
309
- mintedBitcoinArgons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
310
- mintedMiningArgons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
410
+ mintedBitcoinArgons: AugmentedQuery<ApiType, () => Observable<U256>, []>;
411
+ mintedMiningArgons: AugmentedQuery<ApiType, () => Observable<U256>, []>;
311
412
  /**
312
413
  * Bitcoin UTXOs that have been submitted for minting. This list is FIFO for minting whenever
313
414
  * a) CPI >= 0 and
@@ -325,12 +426,12 @@ declare module '@polkadot/api-base/types/storage' {
325
426
  activeNotaries: AugmentedQuery<ApiType, () => Observable<Vec<ArgonPrimitivesNotaryNotaryRecord>>, []>;
326
427
  expiringProposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<AccountId32>>, [u32]>;
327
428
  nextNotaryId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
328
- notaryKeyHistory: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, U8aFixed]>>>, [u32]>;
429
+ notaryKeyHistory: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u64, U8aFixed]>>>, [u32]>;
329
430
  proposedNotaries: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[ArgonPrimitivesNotaryNotaryMeta, u32]>>>, [AccountId32]>;
330
431
  /**
331
432
  * Metadata changes to be activated at the given tick
332
433
  **/
333
- queuedNotaryMetaChanges: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<BTreeMap<u32, ArgonPrimitivesNotaryNotaryMeta>>, [u32]>;
434
+ queuedNotaryMetaChanges: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeMap<u32, ArgonPrimitivesNotaryNotaryMeta>>, [u64]>;
334
435
  };
335
436
  notebook: {
336
437
  /**
@@ -346,6 +447,10 @@ declare module '@polkadot/api-base/types/storage' {
346
447
  * The notebooks included in this block
347
448
  **/
348
449
  blockNotebooks: AugmentedQuery<ApiType, () => Observable<ArgonPrimitivesDigestsNotebookDigest>, []>;
450
+ /**
451
+ * Check if the inherent was included
452
+ **/
453
+ inherentIncluded: AugmentedQuery<ApiType, () => Observable<bool>, []>;
349
454
  /**
350
455
  * List of last few notebook details by notary. The bool is whether the notebook is eligible
351
456
  * for votes (received at correct tick and audit passed)
@@ -358,15 +463,11 @@ declare module '@polkadot/api-base/types/storage' {
358
463
  /**
359
464
  * Notaries locked for failing audits
360
465
  **/
361
- notariesLockedForFailedAudit: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u32, u32, ArgonNotaryAuditErrorVerifyError]>>>, [u32]>;
466
+ notariesLockedForFailedAudit: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u32, u64, ArgonNotaryAuditErrorVerifyError]>>>, [u32]>;
362
467
  /**
363
468
  * Double storage map of notary id + notebook # to the change root
364
469
  **/
365
470
  notebookChangedAccountsRootByNotary: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32, u32]>;
366
- /**
367
- * Temporary store a copy of the notebook digest in storage
368
- **/
369
- tempNotebookDigest: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesDigestsNotebookDigest>>, []>;
370
471
  };
371
472
  ownership: {
372
473
  /**
@@ -544,13 +645,13 @@ declare module '@polkadot/api-base/types/storage' {
544
645
  upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []>;
545
646
  };
546
647
  ticks: {
547
- currentTick: AugmentedQuery<ApiType, () => Observable<u32>, []>;
648
+ currentTick: AugmentedQuery<ApiType, () => Observable<u64>, []>;
548
649
  genesisTicker: AugmentedQuery<ApiType, () => Observable<ArgonPrimitivesTickTicker>, []>;
549
650
  /**
550
651
  * Blocks from the last 100 ticks. Trimmed in on_initialize.
551
652
  * NOTE: cannot include the current block hash until next block
552
653
  **/
553
- recentBlocksAtTicks: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, H256>>, []>;
654
+ recentBlocksAtTicks: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<H256>>, [u64]>;
554
655
  };
555
656
  timestamp: {
556
657
  /**
@@ -565,6 +666,36 @@ declare module '@polkadot/api-base/types/storage' {
565
666
  **/
566
667
  now: AugmentedQuery<ApiType, () => Observable<u64>, []>;
567
668
  };
669
+ tokenGateway: {
670
+ /**
671
+ * The decimals used by the EVM counterpart of this asset
672
+ **/
673
+ decimals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u8>>, [u32]>;
674
+ /**
675
+ * Assets supported by this instance of token gateway
676
+ * A map of the token gateway asset id to the local asset id
677
+ **/
678
+ localAssets: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<u32>>, [H256]>;
679
+ /**
680
+ * Assets supported by this instance of token gateway
681
+ * A map of the local asset id to the token gateway asset id
682
+ **/
683
+ supportedAssets: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]>;
684
+ /**
685
+ * The token gateway adresses on different chains
686
+ **/
687
+ tokenGatewayAddresses: AugmentedQuery<ApiType, (arg: IsmpHostStateMachine | {
688
+ Evm: any;
689
+ } | {
690
+ Polkadot: any;
691
+ } | {
692
+ Kusama: any;
693
+ } | {
694
+ Substrate: any;
695
+ } | {
696
+ Tendermint: any;
697
+ } | string | Uint8Array) => Observable<Option<Bytes>>, [IsmpHostStateMachine]>;
698
+ };
568
699
  transactionPayment: {
569
700
  nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []>;
570
701
  storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, []>;