@argonprotocol/mainchain 1.0.12 → 1.0.13

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 (58) hide show
  1. package/README.md +18 -15
  2. package/lib/cjs/WageProtector.d.ts +1 -1
  3. package/lib/cjs/WageProtector.js +3 -2
  4. package/lib/cjs/WageProtector.js.map +1 -1
  5. package/lib/cjs/__test__/WageProtector.test.js +2 -2
  6. package/lib/cjs/__test__/WageProtector.test.js.map +1 -1
  7. package/lib/cjs/examples/decodePkcs.js +3 -3
  8. package/lib/cjs/examples/decodePkcs.js.map +1 -1
  9. package/lib/cjs/examples/findSs58Formats.js +6 -1
  10. package/lib/cjs/examples/findSs58Formats.js.map +1 -1
  11. package/lib/cjs/index.d.ts +9 -9
  12. package/lib/cjs/index.js.map +1 -1
  13. package/lib/cjs/interfaces/augment-api-consts.d.ts +0 -6
  14. package/lib/cjs/interfaces/augment-api-errors.d.ts +8 -0
  15. package/lib/cjs/interfaces/augment-api-events.d.ts +678 -149
  16. package/lib/cjs/interfaces/augment-api-query.d.ts +334 -129
  17. package/lib/cjs/interfaces/augment-api-rpc.d.ts +1 -1
  18. package/lib/cjs/interfaces/augment-api-tx.d.ts +362 -96
  19. package/lib/cjs/interfaces/lookup.d.ts +63 -54
  20. package/lib/cjs/interfaces/lookup.js +653 -411
  21. package/lib/cjs/interfaces/lookup.js.map +1 -1
  22. package/lib/cjs/interfaces/types-lookup.d.ts +87 -61
  23. package/lib/esm/WageProtector.d.ts +1 -1
  24. package/lib/esm/WageProtector.js +3 -2
  25. package/lib/esm/WageProtector.js.map +1 -1
  26. package/lib/esm/__test__/WageProtector.test.js +3 -3
  27. package/lib/esm/__test__/WageProtector.test.js.map +1 -1
  28. package/lib/esm/examples/decodePkcs.js +8 -8
  29. package/lib/esm/examples/decodePkcs.js.map +1 -1
  30. package/lib/esm/examples/findSs58Formats.js +6 -1
  31. package/lib/esm/examples/findSs58Formats.js.map +1 -1
  32. package/lib/esm/index.d.ts +9 -9
  33. package/lib/esm/index.js +7 -7
  34. package/lib/esm/index.js.map +1 -1
  35. package/lib/esm/interfaces/augment-api-consts.d.ts +0 -6
  36. package/lib/esm/interfaces/augment-api-errors.d.ts +8 -0
  37. package/lib/esm/interfaces/augment-api-events.d.ts +678 -149
  38. package/lib/esm/interfaces/augment-api-query.d.ts +334 -129
  39. package/lib/esm/interfaces/augment-api-rpc.d.ts +1 -1
  40. package/lib/esm/interfaces/augment-api-tx.d.ts +362 -96
  41. package/lib/esm/interfaces/lookup.d.ts +63 -54
  42. package/lib/esm/interfaces/lookup.js +653 -411
  43. package/lib/esm/interfaces/lookup.js.map +1 -1
  44. package/lib/esm/interfaces/types-lookup.d.ts +87 -61
  45. package/lib/tsconfig-cjs.tsbuildinfo +1 -1
  46. package/lib/tsconfig-types.tsbuildinfo +1 -1
  47. package/lib/tsconfig.tsbuildinfo +1 -1
  48. package/lib/types/WageProtector.d.ts +1 -1
  49. package/lib/types/index.d.ts +9 -9
  50. package/lib/types/interfaces/augment-api-consts.d.ts +0 -6
  51. package/lib/types/interfaces/augment-api-errors.d.ts +8 -0
  52. package/lib/types/interfaces/augment-api-events.d.ts +678 -149
  53. package/lib/types/interfaces/augment-api-query.d.ts +334 -129
  54. package/lib/types/interfaces/augment-api-rpc.d.ts +1 -1
  55. package/lib/types/interfaces/augment-api-tx.d.ts +362 -96
  56. package/lib/types/interfaces/lookup.d.ts +63 -54
  57. package/lib/types/interfaces/types-lookup.d.ts +87 -61
  58. package/package.json +1 -1
@@ -250,6 +250,7 @@ declare const _default: {
250
250
  NewMiners: {
251
251
  startIndex: string;
252
252
  newMiners: string;
253
+ cohortId: string;
253
254
  };
254
255
  SlotBidderAdded: {
255
256
  accountId: string;
@@ -289,7 +290,7 @@ declare const _default: {
289
290
  argonots: string;
290
291
  rewardSharing: string;
291
292
  authorityKeys: string;
292
- slotId: string;
293
+ cohortId: string;
293
294
  };
294
295
  /**
295
296
  * Lookup42: argon_runtime::SessionKeys
@@ -387,6 +388,7 @@ declare const _default: {
387
388
  bondedArgons: string;
388
389
  addedSecuritizationPercent: string;
389
390
  operatorAccountId: string;
391
+ activationTick: string;
390
392
  };
391
393
  VaultModified: {
392
394
  vaultId: string;
@@ -446,6 +448,12 @@ declare const _default: {
446
448
  obligationId: string;
447
449
  error: string;
448
450
  };
451
+ ObligationBaseFeeMaturationError: {
452
+ obligationId: string;
453
+ baseFee: string;
454
+ vaultId: string;
455
+ error: string;
456
+ };
449
457
  };
450
458
  };
451
459
  /**
@@ -2545,6 +2553,7 @@ declare const _default: {
2545
2553
  pendingTerms: string;
2546
2554
  pendingBondedArgons: string;
2547
2555
  pendingBitcoins: string;
2556
+ activationTick: string;
2548
2557
  };
2549
2558
  /**
2550
2559
  * Lookup349: argon_primitives::vault::VaultArgons<Balance>
@@ -2573,7 +2582,7 @@ declare const _default: {
2573
2582
  _enum: string[];
2574
2583
  };
2575
2584
  /**
2576
- * Lookup360: argon_primitives::vault::Obligation<sp_core::crypto::AccountId32, Balance>
2585
+ * Lookup363: argon_primitives::vault::Obligation<sp_core::crypto::AccountId32, Balance>
2577
2586
  **/
2578
2587
  ArgonPrimitivesVaultObligation: {
2579
2588
  obligationId: string;
@@ -2587,13 +2596,13 @@ declare const _default: {
2587
2596
  expiration: string;
2588
2597
  };
2589
2598
  /**
2590
- * Lookup363: pallet_vaults::pallet::Error<T>
2599
+ * Lookup366: pallet_vaults::pallet::Error<T>
2591
2600
  **/
2592
2601
  PalletVaultsError: {
2593
2602
  _enum: string[];
2594
2603
  };
2595
2604
  /**
2596
- * Lookup364: pallet_bitcoin_locks::pallet::LockedBitcoin<T>
2605
+ * Lookup367: pallet_bitcoin_locks::pallet::LockedBitcoin<T>
2597
2606
  **/
2598
2607
  PalletBitcoinLocksLockedBitcoin: {
2599
2608
  obligationId: string;
@@ -2612,7 +2621,7 @@ declare const _default: {
2612
2621
  isVerified: string;
2613
2622
  };
2614
2623
  /**
2615
- * Lookup368: pallet_bitcoin_locks::pallet::LockReleaseRequest<Balance>
2624
+ * Lookup371: pallet_bitcoin_locks::pallet::LockReleaseRequest<Balance>
2616
2625
  **/
2617
2626
  PalletBitcoinLocksLockReleaseRequest: {
2618
2627
  utxoId: string;
@@ -2624,7 +2633,7 @@ declare const _default: {
2624
2633
  redemptionPrice: string;
2625
2634
  };
2626
2635
  /**
2627
- * Lookup372: pallet_bitcoin_locks::pallet::Error<T>
2636
+ * Lookup375: pallet_bitcoin_locks::pallet::Error<T>
2628
2637
  **/
2629
2638
  PalletBitcoinLocksError: {
2630
2639
  _enum: {
@@ -2661,13 +2670,13 @@ declare const _default: {
2661
2670
  };
2662
2671
  };
2663
2672
  /**
2664
- * Lookup384: pallet_notaries::pallet::Error<T>
2673
+ * Lookup387: pallet_notaries::pallet::Error<T>
2665
2674
  **/
2666
2675
  PalletNotariesError: {
2667
2676
  _enum: string[];
2668
2677
  };
2669
2678
  /**
2670
- * Lookup388: argon_primitives::notary::NotaryNotebookKeyDetails
2679
+ * Lookup391: argon_primitives::notary::NotaryNotebookKeyDetails
2671
2680
  **/
2672
2681
  ArgonPrimitivesNotaryNotaryNotebookKeyDetails: {
2673
2682
  notebookNumber: string;
@@ -2677,13 +2686,13 @@ declare const _default: {
2677
2686
  parentSecret: string;
2678
2687
  };
2679
2688
  /**
2680
- * Lookup391: pallet_notebook::pallet::Error<T>
2689
+ * Lookup394: pallet_notebook::pallet::Error<T>
2681
2690
  **/
2682
2691
  PalletNotebookError: {
2683
2692
  _enum: string[];
2684
2693
  };
2685
2694
  /**
2686
- * Lookup392: pallet_chain_transfer::QueuedTransferOut<sp_core::crypto::AccountId32, Balance>
2695
+ * Lookup395: pallet_chain_transfer::QueuedTransferOut<sp_core::crypto::AccountId32, Balance>
2687
2696
  **/
2688
2697
  PalletChainTransferQueuedTransferOut: {
2689
2698
  accountId: string;
@@ -2692,17 +2701,17 @@ declare const _default: {
2692
2701
  notaryId: string;
2693
2702
  };
2694
2703
  /**
2695
- * Lookup398: frame_support::PalletId
2704
+ * Lookup401: frame_support::PalletId
2696
2705
  **/
2697
2706
  FrameSupportPalletId: string;
2698
2707
  /**
2699
- * Lookup399: pallet_chain_transfer::pallet::Error<T>
2708
+ * Lookup402: pallet_chain_transfer::pallet::Error<T>
2700
2709
  **/
2701
2710
  PalletChainTransferError: {
2702
2711
  _enum: string[];
2703
2712
  };
2704
2713
  /**
2705
- * Lookup404: argon_primitives::notary::NotaryNotebookVoteDigestDetails
2714
+ * Lookup407: argon_primitives::notary::NotaryNotebookVoteDigestDetails
2706
2715
  **/
2707
2716
  ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails: {
2708
2717
  notaryId: string;
@@ -2712,25 +2721,25 @@ declare const _default: {
2712
2721
  blockVotingPower: string;
2713
2722
  };
2714
2723
  /**
2715
- * Lookup409: pallet_block_seal_spec::pallet::Error<T>
2724
+ * Lookup412: pallet_block_seal_spec::pallet::Error<T>
2716
2725
  **/
2717
2726
  PalletBlockSealSpecError: {
2718
2727
  _enum: string[];
2719
2728
  };
2720
2729
  /**
2721
- * Lookup411: pallet_domains::pallet::Error<T>
2730
+ * Lookup414: pallet_domains::pallet::Error<T>
2722
2731
  **/
2723
2732
  PalletDomainsError: {
2724
2733
  _enum: string[];
2725
2734
  };
2726
2735
  /**
2727
- * Lookup412: pallet_price_index::pallet::Error<T>
2736
+ * Lookup415: pallet_price_index::pallet::Error<T>
2728
2737
  **/
2729
2738
  PalletPriceIndexError: {
2730
2739
  _enum: string[];
2731
2740
  };
2732
2741
  /**
2733
- * Lookup413: pallet_grandpa::StoredState<N>
2742
+ * Lookup416: pallet_grandpa::StoredState<N>
2734
2743
  **/
2735
2744
  PalletGrandpaStoredState: {
2736
2745
  _enum: {
@@ -2747,7 +2756,7 @@ declare const _default: {
2747
2756
  };
2748
2757
  };
2749
2758
  /**
2750
- * Lookup414: pallet_grandpa::StoredPendingChange<N, Limit>
2759
+ * Lookup417: pallet_grandpa::StoredPendingChange<N, Limit>
2751
2760
  **/
2752
2761
  PalletGrandpaStoredPendingChange: {
2753
2762
  scheduledAt: string;
@@ -2756,13 +2765,13 @@ declare const _default: {
2756
2765
  forced: string;
2757
2766
  };
2758
2767
  /**
2759
- * Lookup417: pallet_grandpa::pallet::Error<T>
2768
+ * Lookup420: pallet_grandpa::pallet::Error<T>
2760
2769
  **/
2761
2770
  PalletGrandpaError: {
2762
2771
  _enum: string[];
2763
2772
  };
2764
2773
  /**
2765
- * Lookup418: argon_primitives::providers::BlockSealerInfo<sp_core::crypto::AccountId32>
2774
+ * Lookup421: argon_primitives::providers::BlockSealerInfo<sp_core::crypto::AccountId32>
2766
2775
  **/
2767
2776
  ArgonPrimitivesProvidersBlockSealerInfo: {
2768
2777
  blockAuthorAccountId: string;
@@ -2770,17 +2779,17 @@ declare const _default: {
2770
2779
  blockSealAuthority: string;
2771
2780
  };
2772
2781
  /**
2773
- * Lookup422: pallet_block_seal::pallet::Error<T>
2782
+ * Lookup425: pallet_block_seal::pallet::Error<T>
2774
2783
  **/
2775
2784
  PalletBlockSealError: {
2776
2785
  _enum: string[];
2777
2786
  };
2778
2787
  /**
2779
- * Lookup425: pallet_block_rewards::pallet::Error<T>
2788
+ * Lookup428: pallet_block_rewards::pallet::Error<T>
2780
2789
  **/
2781
2790
  PalletBlockRewardsError: string;
2782
2791
  /**
2783
- * Lookup430: pallet_mint::MintAction<Balance>
2792
+ * Lookup433: pallet_mint::MintAction<Balance>
2784
2793
  **/
2785
2794
  PalletMintMintAction: {
2786
2795
  argonBurned: string;
@@ -2788,13 +2797,13 @@ declare const _default: {
2788
2797
  bitcoinMinted: string;
2789
2798
  };
2790
2799
  /**
2791
- * Lookup431: pallet_mint::pallet::Error<T>
2800
+ * Lookup434: pallet_mint::pallet::Error<T>
2792
2801
  **/
2793
2802
  PalletMintError: {
2794
2803
  _enum: string[];
2795
2804
  };
2796
2805
  /**
2797
- * Lookup433: pallet_balances::types::BalanceLock<Balance>
2806
+ * Lookup436: pallet_balances::types::BalanceLock<Balance>
2798
2807
  **/
2799
2808
  PalletBalancesBalanceLock: {
2800
2809
  id: string;
@@ -2802,27 +2811,27 @@ declare const _default: {
2802
2811
  reasons: string;
2803
2812
  };
2804
2813
  /**
2805
- * Lookup434: pallet_balances::types::Reasons
2814
+ * Lookup437: pallet_balances::types::Reasons
2806
2815
  **/
2807
2816
  PalletBalancesReasons: {
2808
2817
  _enum: string[];
2809
2818
  };
2810
2819
  /**
2811
- * Lookup437: pallet_balances::types::ReserveData<ReserveIdentifier, Balance>
2820
+ * Lookup440: pallet_balances::types::ReserveData<ReserveIdentifier, Balance>
2812
2821
  **/
2813
2822
  PalletBalancesReserveData: {
2814
2823
  id: string;
2815
2824
  amount: string;
2816
2825
  };
2817
2826
  /**
2818
- * Lookup440: frame_support::traits::tokens::misc::IdAmount<argon_runtime::RuntimeHoldReason, Balance>
2827
+ * Lookup443: frame_support::traits::tokens::misc::IdAmount<argon_runtime::RuntimeHoldReason, Balance>
2819
2828
  **/
2820
2829
  FrameSupportTokensMiscIdAmountRuntimeHoldReason: {
2821
2830
  id: string;
2822
2831
  amount: string;
2823
2832
  };
2824
2833
  /**
2825
- * Lookup441: argon_runtime::RuntimeHoldReason
2834
+ * Lookup444: argon_runtime::RuntimeHoldReason
2826
2835
  **/
2827
2836
  ArgonRuntimeRuntimeHoldReason: {
2828
2837
  _enum: {
@@ -2849,38 +2858,38 @@ declare const _default: {
2849
2858
  };
2850
2859
  };
2851
2860
  /**
2852
- * Lookup442: pallet_mining_slot::pallet::HoldReason
2861
+ * Lookup445: pallet_mining_slot::pallet::HoldReason
2853
2862
  **/
2854
2863
  PalletMiningSlotHoldReason: {
2855
2864
  _enum: string[];
2856
2865
  };
2857
2866
  /**
2858
- * Lookup443: pallet_vaults::pallet::HoldReason
2867
+ * Lookup446: pallet_vaults::pallet::HoldReason
2859
2868
  **/
2860
2869
  PalletVaultsHoldReason: {
2861
2870
  _enum: string[];
2862
2871
  };
2863
2872
  /**
2864
- * Lookup444: pallet_bitcoin_locks::pallet::HoldReason
2873
+ * Lookup447: pallet_bitcoin_locks::pallet::HoldReason
2865
2874
  **/
2866
2875
  PalletBitcoinLocksHoldReason: {
2867
2876
  _enum: string[];
2868
2877
  };
2869
2878
  /**
2870
- * Lookup445: pallet_block_rewards::pallet::HoldReason
2879
+ * Lookup448: pallet_block_rewards::pallet::HoldReason
2871
2880
  **/
2872
2881
  PalletBlockRewardsHoldReason: {
2873
2882
  _enum: string[];
2874
2883
  };
2875
2884
  /**
2876
- * Lookup448: frame_support::traits::tokens::misc::IdAmount<argon_runtime::RuntimeFreezeReason, Balance>
2885
+ * Lookup451: frame_support::traits::tokens::misc::IdAmount<argon_runtime::RuntimeFreezeReason, Balance>
2877
2886
  **/
2878
2887
  FrameSupportTokensMiscIdAmountRuntimeFreezeReason: {
2879
2888
  id: string;
2880
2889
  amount: string;
2881
2890
  };
2882
2891
  /**
2883
- * Lookup449: argon_runtime::RuntimeFreezeReason
2892
+ * Lookup452: argon_runtime::RuntimeFreezeReason
2884
2893
  **/
2885
2894
  ArgonRuntimeRuntimeFreezeReason: {
2886
2895
  _enum: {
@@ -2907,99 +2916,99 @@ declare const _default: {
2907
2916
  };
2908
2917
  };
2909
2918
  /**
2910
- * Lookup450: pallet_block_rewards::pallet::FreezeReason
2919
+ * Lookup453: pallet_block_rewards::pallet::FreezeReason
2911
2920
  **/
2912
2921
  PalletBlockRewardsFreezeReason: {
2913
2922
  _enum: string[];
2914
2923
  };
2915
2924
  /**
2916
- * Lookup452: pallet_balances::pallet::Error<T, I>
2925
+ * Lookup455: pallet_balances::pallet::Error<T, I>
2917
2926
  **/
2918
2927
  PalletBalancesError: {
2919
2928
  _enum: string[];
2920
2929
  };
2921
2930
  /**
2922
- * Lookup454: pallet_tx_pause::pallet::Error<T>
2931
+ * Lookup457: pallet_tx_pause::pallet::Error<T>
2923
2932
  **/
2924
2933
  PalletTxPauseError: {
2925
2934
  _enum: string[];
2926
2935
  };
2927
2936
  /**
2928
- * Lookup455: pallet_transaction_payment::Releases
2937
+ * Lookup458: pallet_transaction_payment::Releases
2929
2938
  **/
2930
2939
  PalletTransactionPaymentReleases: {
2931
2940
  _enum: string[];
2932
2941
  };
2933
2942
  /**
2934
- * Lookup456: pallet_utility::pallet::Error<T>
2943
+ * Lookup459: pallet_utility::pallet::Error<T>
2935
2944
  **/
2936
2945
  PalletUtilityError: {
2937
2946
  _enum: string[];
2938
2947
  };
2939
2948
  /**
2940
- * Lookup457: pallet_sudo::pallet::Error<T>
2949
+ * Lookup460: pallet_sudo::pallet::Error<T>
2941
2950
  **/
2942
2951
  PalletSudoError: {
2943
2952
  _enum: string[];
2944
2953
  };
2945
2954
  /**
2946
- * Lookup458: pallet_ismp::pallet::Error<T>
2955
+ * Lookup461: pallet_ismp::pallet::Error<T>
2947
2956
  **/
2948
2957
  PalletIsmpError: {
2949
2958
  _enum: string[];
2950
2959
  };
2951
2960
  /**
2952
- * Lookup459: pallet_hyperbridge::pallet::Error<T>
2961
+ * Lookup462: pallet_hyperbridge::pallet::Error<T>
2953
2962
  **/
2954
2963
  PalletHyperbridgeError: string;
2955
2964
  /**
2956
- * Lookup461: pallet_token_gateway::pallet::Error<T>
2965
+ * Lookup464: pallet_token_gateway::pallet::Error<T>
2957
2966
  **/
2958
2967
  PalletTokenGatewayError: {
2959
2968
  _enum: string[];
2960
2969
  };
2961
2970
  /**
2962
- * Lookup464: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<T>
2971
+ * Lookup467: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<T>
2963
2972
  **/
2964
2973
  FrameSystemExtensionsCheckNonZeroSender: string;
2965
2974
  /**
2966
- * Lookup465: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
2975
+ * Lookup468: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
2967
2976
  **/
2968
2977
  FrameSystemExtensionsCheckSpecVersion: string;
2969
2978
  /**
2970
- * Lookup466: frame_system::extensions::check_tx_version::CheckTxVersion<T>
2979
+ * Lookup469: frame_system::extensions::check_tx_version::CheckTxVersion<T>
2971
2980
  **/
2972
2981
  FrameSystemExtensionsCheckTxVersion: string;
2973
2982
  /**
2974
- * Lookup467: frame_system::extensions::check_genesis::CheckGenesis<T>
2983
+ * Lookup470: frame_system::extensions::check_genesis::CheckGenesis<T>
2975
2984
  **/
2976
2985
  FrameSystemExtensionsCheckGenesis: string;
2977
2986
  /**
2978
- * Lookup470: frame_system::extensions::check_nonce::CheckNonce<T>
2987
+ * Lookup473: frame_system::extensions::check_nonce::CheckNonce<T>
2979
2988
  **/
2980
2989
  FrameSystemExtensionsCheckNonce: string;
2981
2990
  /**
2982
- * Lookup471: frame_system::extensions::check_weight::CheckWeight<T>
2991
+ * Lookup474: frame_system::extensions::check_weight::CheckWeight<T>
2983
2992
  **/
2984
2993
  FrameSystemExtensionsCheckWeight: string;
2985
2994
  /**
2986
- * Lookup472: pallet_transaction_payment::ChargeTransactionPayment<T>
2995
+ * Lookup475: pallet_transaction_payment::ChargeTransactionPayment<T>
2987
2996
  **/
2988
2997
  PalletTransactionPaymentChargeTransactionPayment: string;
2989
2998
  /**
2990
- * Lookup473: frame_metadata_hash_extension::CheckMetadataHash<T>
2999
+ * Lookup476: frame_metadata_hash_extension::CheckMetadataHash<T>
2991
3000
  **/
2992
3001
  FrameMetadataHashExtensionCheckMetadataHash: {
2993
3002
  mode: string;
2994
3003
  };
2995
3004
  /**
2996
- * Lookup474: frame_metadata_hash_extension::Mode
3005
+ * Lookup477: frame_metadata_hash_extension::Mode
2997
3006
  **/
2998
3007
  FrameMetadataHashExtensionMode: {
2999
3008
  _enum: string[];
3000
3009
  };
3001
3010
  /**
3002
- * Lookup476: argon_runtime::Runtime
3011
+ * Lookup479: argon_runtime::Runtime
3003
3012
  **/
3004
3013
  ArgonRuntimeRuntime: string;
3005
3014
  };