@argonprotocol/mainchain 0.0.2

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 (102) hide show
  1. package/lib/cjs/index.d.ts +14 -0
  2. package/lib/cjs/index.js +37 -0
  3. package/lib/cjs/index.js.map +1 -0
  4. package/lib/cjs/interfaces/augment-api-consts.d.ts +408 -0
  5. package/lib/cjs/interfaces/augment-api-consts.js +8 -0
  6. package/lib/cjs/interfaces/augment-api-consts.js.map +1 -0
  7. package/lib/cjs/interfaces/augment-api-errors.d.ts +807 -0
  8. package/lib/cjs/interfaces/augment-api-errors.js +8 -0
  9. package/lib/cjs/interfaces/augment-api-errors.js.map +1 -0
  10. package/lib/cjs/interfaces/augment-api-events.d.ts +902 -0
  11. package/lib/cjs/interfaces/augment-api-events.js +8 -0
  12. package/lib/cjs/interfaces/augment-api-events.js.map +1 -0
  13. package/lib/cjs/interfaces/augment-api-query.d.ts +640 -0
  14. package/lib/cjs/interfaces/augment-api-query.js +8 -0
  15. package/lib/cjs/interfaces/augment-api-query.js.map +1 -0
  16. package/lib/cjs/interfaces/augment-api-rpc.d.ts +679 -0
  17. package/lib/cjs/interfaces/augment-api-rpc.js +8 -0
  18. package/lib/cjs/interfaces/augment-api-rpc.js.map +1 -0
  19. package/lib/cjs/interfaces/augment-api-runtime.d.ts +204 -0
  20. package/lib/cjs/interfaces/augment-api-runtime.js +8 -0
  21. package/lib/cjs/interfaces/augment-api-runtime.js.map +1 -0
  22. package/lib/cjs/interfaces/augment-api-tx.d.ts +1134 -0
  23. package/lib/cjs/interfaces/augment-api-tx.js +8 -0
  24. package/lib/cjs/interfaces/augment-api-tx.js.map +1 -0
  25. package/lib/cjs/interfaces/augment-api.d.ts +7 -0
  26. package/lib/cjs/interfaces/augment-api.js +12 -0
  27. package/lib/cjs/interfaces/augment-api.js.map +1 -0
  28. package/lib/cjs/interfaces/augment-types.d.ts +1249 -0
  29. package/lib/cjs/interfaces/augment-types.js +8 -0
  30. package/lib/cjs/interfaces/augment-types.js.map +1 -0
  31. package/lib/cjs/interfaces/definitions.d.ts +0 -0
  32. package/lib/cjs/interfaces/definitions.js +2 -0
  33. package/lib/cjs/interfaces/definitions.js.map +1 -0
  34. package/lib/cjs/interfaces/lookup.d.ts +2393 -0
  35. package/lib/cjs/interfaces/lookup.js +2398 -0
  36. package/lib/cjs/interfaces/lookup.js.map +1 -0
  37. package/lib/cjs/interfaces/registry.d.ts +202 -0
  38. package/lib/cjs/interfaces/registry.js +8 -0
  39. package/lib/cjs/interfaces/registry.js.map +1 -0
  40. package/lib/cjs/interfaces/types-lookup.d.ts +2350 -0
  41. package/lib/cjs/interfaces/types-lookup.js +8 -0
  42. package/lib/cjs/interfaces/types-lookup.js.map +1 -0
  43. package/lib/esm/index.d.ts +14 -0
  44. package/lib/esm/index.js +31 -0
  45. package/lib/esm/index.js.map +1 -0
  46. package/lib/esm/interfaces/augment-api-consts.d.ts +408 -0
  47. package/lib/esm/interfaces/augment-api-consts.js +6 -0
  48. package/lib/esm/interfaces/augment-api-consts.js.map +1 -0
  49. package/lib/esm/interfaces/augment-api-errors.d.ts +807 -0
  50. package/lib/esm/interfaces/augment-api-errors.js +6 -0
  51. package/lib/esm/interfaces/augment-api-errors.js.map +1 -0
  52. package/lib/esm/interfaces/augment-api-events.d.ts +902 -0
  53. package/lib/esm/interfaces/augment-api-events.js +6 -0
  54. package/lib/esm/interfaces/augment-api-events.js.map +1 -0
  55. package/lib/esm/interfaces/augment-api-query.d.ts +640 -0
  56. package/lib/esm/interfaces/augment-api-query.js +6 -0
  57. package/lib/esm/interfaces/augment-api-query.js.map +1 -0
  58. package/lib/esm/interfaces/augment-api-rpc.d.ts +679 -0
  59. package/lib/esm/interfaces/augment-api-rpc.js +6 -0
  60. package/lib/esm/interfaces/augment-api-rpc.js.map +1 -0
  61. package/lib/esm/interfaces/augment-api-runtime.d.ts +204 -0
  62. package/lib/esm/interfaces/augment-api-runtime.js +6 -0
  63. package/lib/esm/interfaces/augment-api-runtime.js.map +1 -0
  64. package/lib/esm/interfaces/augment-api-tx.d.ts +1134 -0
  65. package/lib/esm/interfaces/augment-api-tx.js +6 -0
  66. package/lib/esm/interfaces/augment-api-tx.js.map +1 -0
  67. package/lib/esm/interfaces/augment-api.d.ts +7 -0
  68. package/lib/esm/interfaces/augment-api.js +10 -0
  69. package/lib/esm/interfaces/augment-api.js.map +1 -0
  70. package/lib/esm/interfaces/augment-types.d.ts +1249 -0
  71. package/lib/esm/interfaces/augment-types.js +6 -0
  72. package/lib/esm/interfaces/augment-types.js.map +1 -0
  73. package/lib/esm/interfaces/definitions.d.ts +0 -0
  74. package/lib/esm/interfaces/definitions.js +2 -0
  75. package/lib/esm/interfaces/definitions.js.map +1 -0
  76. package/lib/esm/interfaces/lookup.d.ts +2393 -0
  77. package/lib/esm/interfaces/lookup.js +2396 -0
  78. package/lib/esm/interfaces/lookup.js.map +1 -0
  79. package/lib/esm/interfaces/registry.d.ts +202 -0
  80. package/lib/esm/interfaces/registry.js +6 -0
  81. package/lib/esm/interfaces/registry.js.map +1 -0
  82. package/lib/esm/interfaces/types-lookup.d.ts +2350 -0
  83. package/lib/esm/interfaces/types-lookup.js +6 -0
  84. package/lib/esm/interfaces/types-lookup.js.map +1 -0
  85. package/lib/tsconfig-cjs.tsbuildinfo +1 -0
  86. package/lib/tsconfig-types.tsbuildinfo +1 -0
  87. package/lib/tsconfig.tsbuildinfo +1 -0
  88. package/lib/types/index.d.ts +14 -0
  89. package/lib/types/interfaces/augment-api-consts.d.ts +408 -0
  90. package/lib/types/interfaces/augment-api-errors.d.ts +807 -0
  91. package/lib/types/interfaces/augment-api-events.d.ts +902 -0
  92. package/lib/types/interfaces/augment-api-query.d.ts +640 -0
  93. package/lib/types/interfaces/augment-api-rpc.d.ts +679 -0
  94. package/lib/types/interfaces/augment-api-runtime.d.ts +204 -0
  95. package/lib/types/interfaces/augment-api-tx.d.ts +1134 -0
  96. package/lib/types/interfaces/augment-api.d.ts +7 -0
  97. package/lib/types/interfaces/augment-types.d.ts +1249 -0
  98. package/lib/types/interfaces/definitions.d.ts +0 -0
  99. package/lib/types/interfaces/lookup.d.ts +2393 -0
  100. package/lib/types/interfaces/registry.d.ts +202 -0
  101. package/lib/types/interfaces/types-lookup.d.ts +2350 -0
  102. package/package.json +62 -0
@@ -0,0 +1,1134 @@
1
+ import '@polkadot/api-base/types/submittable';
2
+ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
3
+ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
4
+ import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
+ import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';
6
+ import type { ArgonNodeRuntimeOpaqueSessionKeys, ArgonNodeRuntimeProxyType, ArgonPrimitivesBitcoinCompressedBitcoinPubkey, ArgonPrimitivesBitcoinH256Le, ArgonPrimitivesBitcoinOpaqueBitcoinXpub, ArgonPrimitivesBlockSealRewardDestination, ArgonPrimitivesBondVaultTerms, ArgonPrimitivesDataDomainZoneRecord, ArgonPrimitivesInherentsBitcoinUtxoSync, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotebookSignedNotebookHeader, PalletBalancesAdjustmentDirection, PalletMiningSlotMiningSlotBid, PalletMultisigTimepoint, PalletPriceIndexPriceIndex, PalletVaultsVaultConfig, SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
+ export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
8
+ export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
9
+ export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
10
+ declare module '@polkadot/api-base/types/submittable' {
11
+ interface AugmentedSubmittables<ApiType extends ApiTypes> {
12
+ argonBalances: {
13
+ /**
14
+ * Burn the specified liquid free balance from the origin account.
15
+ *
16
+ * If the origin's account ends up below the existential deposit as a result
17
+ * of the burn and `keep_alive` is false, the account will be reaped.
18
+ *
19
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
20
+ * this `burn` operation will reduce total issuance by the amount _burned_.
21
+ **/
22
+ burn: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, bool]>;
23
+ /**
24
+ * Adjust the total issuance in a saturating way.
25
+ *
26
+ * Can only be called by root and always needs a positive `delta`.
27
+ *
28
+ * # Example
29
+ **/
30
+ forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBalancesAdjustmentDirection, Compact<u128>]>;
31
+ /**
32
+ * Set the regular balance of a given account.
33
+ *
34
+ * The dispatch origin for this call is `root`.
35
+ **/
36
+ forceSetBalance: AugmentedSubmittable<(who: MultiAddress | {
37
+ Id: any;
38
+ } | {
39
+ Index: any;
40
+ } | {
41
+ Raw: any;
42
+ } | {
43
+ Address32: any;
44
+ } | {
45
+ Address20: any;
46
+ } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
47
+ /**
48
+ * Exactly as `transfer_allow_death`, except the origin must be root and the source account
49
+ * may be specified.
50
+ **/
51
+ forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
52
+ Id: any;
53
+ } | {
54
+ Index: any;
55
+ } | {
56
+ Raw: any;
57
+ } | {
58
+ Address32: any;
59
+ } | {
60
+ Address20: any;
61
+ } | string | Uint8Array, dest: MultiAddress | {
62
+ Id: any;
63
+ } | {
64
+ Index: any;
65
+ } | {
66
+ Raw: any;
67
+ } | {
68
+ Address32: any;
69
+ } | {
70
+ Address20: any;
71
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
72
+ /**
73
+ * Unreserve some balance from a user by force.
74
+ *
75
+ * Can only be called by ROOT.
76
+ **/
77
+ forceUnreserve: AugmentedSubmittable<(who: MultiAddress | {
78
+ Id: any;
79
+ } | {
80
+ Index: any;
81
+ } | {
82
+ Raw: any;
83
+ } | {
84
+ Address32: any;
85
+ } | {
86
+ Address20: any;
87
+ } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
88
+ /**
89
+ * Transfer the entire transferable balance from the caller account.
90
+ *
91
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
92
+ * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
93
+ * transferred by this function. To ensure that this function results in a killed account,
94
+ * you might need to prepare the account by removing any reference counters, storage
95
+ * deposits, etc...
96
+ *
97
+ * The dispatch origin of this call must be Signed.
98
+ *
99
+ * - `dest`: The recipient of the transfer.
100
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
101
+ * of the funds the account has, causing the sender account to be killed (false), or
102
+ * transfer everything except at least the existential deposit, which will guarantee to
103
+ * keep the sender account alive (true).
104
+ **/
105
+ transferAll: AugmentedSubmittable<(dest: MultiAddress | {
106
+ Id: any;
107
+ } | {
108
+ Index: any;
109
+ } | {
110
+ Raw: any;
111
+ } | {
112
+ Address32: any;
113
+ } | {
114
+ Address20: any;
115
+ } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
116
+ /**
117
+ * Transfer some liquid free balance to another account.
118
+ *
119
+ * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
120
+ * If the sender's account is below the existential deposit as a result
121
+ * of the transfer, the account will be reaped.
122
+ *
123
+ * The dispatch origin for this call must be `Signed` by the transactor.
124
+ **/
125
+ transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | {
126
+ Id: any;
127
+ } | {
128
+ Index: any;
129
+ } | {
130
+ Raw: any;
131
+ } | {
132
+ Address32: any;
133
+ } | {
134
+ Address20: any;
135
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
136
+ /**
137
+ * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
138
+ * kill the origin account.
139
+ *
140
+ * 99% of the time you want [`transfer_allow_death`] instead.
141
+ *
142
+ * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
143
+ **/
144
+ transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | {
145
+ Id: any;
146
+ } | {
147
+ Index: any;
148
+ } | {
149
+ Raw: any;
150
+ } | {
151
+ Address32: any;
152
+ } | {
153
+ Address20: any;
154
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
155
+ /**
156
+ * Upgrade a specified account.
157
+ *
158
+ * - `origin`: Must be `Signed`.
159
+ * - `who`: The account to be upgraded.
160
+ *
161
+ * This will waive the transaction fee if at least all but 10% of the accounts needed to
162
+ * be upgraded. (We let some not have to be upgraded just in order to allow for the
163
+ * possibility of churn).
164
+ **/
165
+ upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
166
+ };
167
+ bitcoinUtxos: {
168
+ /**
169
+ * Sets the most recent confirmed bitcoin block height (only executable by the Oracle
170
+ * Operator account)
171
+ *
172
+ * # Arguments
173
+ * * `bitcoin_height` - the latest bitcoin block height to be confirmed
174
+ **/
175
+ setConfirmedBlock: AugmentedSubmittable<(bitcoinHeight: u64 | AnyNumber | Uint8Array, bitcoinBlockHash: ArgonPrimitivesBitcoinH256Le | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, ArgonPrimitivesBitcoinH256Le]>;
176
+ /**
177
+ * Sets the oracle operator account id (only executable by the Root account)
178
+ *
179
+ * # Arguments
180
+ * * `account_id` - the account id of the operator
181
+ **/
182
+ setOperator: AugmentedSubmittable<(accountId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
183
+ /**
184
+ * Submitted when a bitcoin UTXO has been moved or confirmed
185
+ **/
186
+ sync: AugmentedSubmittable<(utxoSync: ArgonPrimitivesInherentsBitcoinUtxoSync | {
187
+ spent?: any;
188
+ verified?: any;
189
+ invalid?: any;
190
+ syncToBlock?: any;
191
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ArgonPrimitivesInherentsBitcoinUtxoSync]>;
192
+ };
193
+ blockRewards: {};
194
+ blockSeal: {
195
+ apply: AugmentedSubmittable<(seal: ArgonPrimitivesInherentsBlockSealInherent | {
196
+ Vote: any;
197
+ } | {
198
+ Compute: any;
199
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ArgonPrimitivesInherentsBlockSealInherent]>;
200
+ };
201
+ blockSealSpec: {
202
+ configure: AugmentedSubmittable<(voteMinimum: Option<u128> | null | Uint8Array | u128 | AnyNumber, computeDifficulty: Option<u128> | null | Uint8Array | u128 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u128>, Option<u128>]>;
203
+ };
204
+ bonds: {
205
+ /**
206
+ * Bond a bitcoin. This will create a bond for the submitting account and log the Bitcoin
207
+ * Script hash to Events. A bondee must create the UTXO in order to be added to the Bitcoin
208
+ * Mint line.
209
+ *
210
+ * The pubkey submitted here will be used to create a script pubkey that will be used in a
211
+ * timelock multisig script to lock the bitcoin.
212
+ **/
213
+ bondBitcoin: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, satoshis: Compact<u64> | AnyNumber | Uint8Array, bitcoinPubkey: ArgonPrimitivesBitcoinCompressedBitcoinPubkey | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Compact<u64>, ArgonPrimitivesBitcoinCompressedBitcoinPubkey]>;
214
+ /**
215
+ * Submitted by a Vault operator to cosign the unlock of a bitcoin utxo. The Bitcoin owner
216
+ * unlock fee will be burned, and the bond will be allowed to expire without penalty.
217
+ *
218
+ * This is submitted as a no-fee transaction off chain to allow keys to remain in cold
219
+ * wallets.
220
+ **/
221
+ cosignBitcoinUnlock: AugmentedSubmittable<(bondId: u64 | AnyNumber | Uint8Array, signature: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Bytes]>;
222
+ /**
223
+ * Submitted by a Bitcoin holder to trigger the unlock of their Bitcoin. A transaction
224
+ * spending the UTXO from the given bond should be pre-created so that the sighash can be
225
+ * submitted here. The vault operator will have 10 days to counter-sign the transaction. It
226
+ * will be published with the public key as a BitcoinUtxoCosigned Event.
227
+ *
228
+ * Owner must submit a script pubkey and also a fee to pay to the bitcoin network.
229
+ **/
230
+ unlockBitcoinBond: AugmentedSubmittable<(bondId: u64 | AnyNumber | Uint8Array, toScriptPubkey: Bytes | string | Uint8Array, bitcoinNetworkFee: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Bytes, u64]>;
231
+ };
232
+ chainTransfer: {
233
+ sendToLocalchain: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, notaryId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
234
+ };
235
+ dataDomain: {
236
+ setZoneRecord: AugmentedSubmittable<(domainHash: H256 | string | Uint8Array, zoneRecord: ArgonPrimitivesDataDomainZoneRecord | {
237
+ paymentAccount?: any;
238
+ notaryId?: any;
239
+ versions?: any;
240
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, ArgonPrimitivesDataDomainZoneRecord]>;
241
+ };
242
+ grandpa: {
243
+ /**
244
+ * Note that the current authority set of the GRANDPA finality gadget has stalled.
245
+ *
246
+ * This will trigger a forced authority set change at the beginning of the next session, to
247
+ * be enacted `delay` blocks after that. The `delay` should be high enough to safely assume
248
+ * that the block signalling the forced change will not be re-orged e.g. 1000 blocks.
249
+ * The block production rate (which may be slowed down because of finality lagging) should
250
+ * be taken into account when choosing the `delay`. The GRANDPA voters based on the new
251
+ * authority will start voting on top of `best_finalized_block_number` for new finalized
252
+ * blocks. `best_finalized_block_number` should be the highest of the latest finalized
253
+ * block of all validators of the new authority set.
254
+ *
255
+ * Only callable by root.
256
+ **/
257
+ noteStalled: AugmentedSubmittable<(delay: u32 | AnyNumber | Uint8Array, bestFinalizedBlockNumber: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
258
+ /**
259
+ * Report voter equivocation/misbehavior. This method will verify the
260
+ * equivocation proof and validate the given key ownership proof
261
+ * against the extracted offender. If both are valid, the offence
262
+ * will be reported.
263
+ **/
264
+ reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | {
265
+ setId?: any;
266
+ equivocation?: any;
267
+ } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
268
+ session?: any;
269
+ trieNodes?: any;
270
+ validatorCount?: any;
271
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
272
+ /**
273
+ * Report voter equivocation/misbehavior. This method will verify the
274
+ * equivocation proof and validate the given key ownership proof
275
+ * against the extracted offender. If both are valid, the offence
276
+ * will be reported.
277
+ *
278
+ * This extrinsic must be called unsigned and it is expected that only
279
+ * block authors will call it (validated in `ValidateUnsigned`), as such
280
+ * if the block author is defined it will be defined as the equivocation
281
+ * reporter.
282
+ **/
283
+ reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | {
284
+ setId?: any;
285
+ equivocation?: any;
286
+ } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
287
+ session?: any;
288
+ trieNodes?: any;
289
+ validatorCount?: any;
290
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
291
+ };
292
+ miningSlot: {
293
+ /**
294
+ * Submit a bid for a mining slot in the next cohort. Once all spots are filled in a slot,
295
+ * a slot can be supplanted by supplying a higher mining bond amount. Bond terms can be
296
+ * found in the `vaults` pallet. You will supply the bond amount and the vault id to bond
297
+ * with.
298
+ *
299
+ * Each slot has `MaxCohortSize` spots available.
300
+ *
301
+ * To be eligible for a slot, you must have the required ownership tokens in this account.
302
+ * The required amount is calculated as a percentage of the total ownership tokens in the
303
+ * network. This percentage is adjusted before the beginning of each slot.
304
+ *
305
+ * If your bid is replaced, a `SlotBidderReplaced` event will be emitted. By monitoring for
306
+ * this event, you will be able to ensure your bid is accepted.
307
+ *
308
+ * NOTE: bidding for each slot will be closed at a random block within
309
+ * `BlocksBeforeBidEndForVrfClose` blocks of the slot end time.
310
+ *
311
+ * The slot duration can be calculated as `BlocksBetweenSlots * MaxMiners / MaxCohortSize`.
312
+ *
313
+ * Parameters:
314
+ * - `bond_info`: The bond information to submit for the bid. If `None`, the bid will be
315
+ * considered a zero-bid.
316
+ * - `vault_id`: The vault id to bond with. Terms are taken from the vault at time of bid
317
+ * inclusion in the block.
318
+ * - `amount`: The amount to bond with the vault.
319
+ * - `reward_destination`: The account_id for the mining rewards, or `Owner` for the
320
+ * submitting user.
321
+ **/
322
+ bid: AugmentedSubmittable<(bondInfo: Option<PalletMiningSlotMiningSlotBid> | null | Uint8Array | PalletMiningSlotMiningSlotBid | {
323
+ vaultId?: any;
324
+ amount?: any;
325
+ } | string, rewardDestination: ArgonPrimitivesBlockSealRewardDestination | {
326
+ Owner: any;
327
+ } | {
328
+ Account: any;
329
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<PalletMiningSlotMiningSlotBid>, ArgonPrimitivesBlockSealRewardDestination]>;
330
+ };
331
+ mint: {};
332
+ multisig: {
333
+ /**
334
+ * Register approval for a dispatch to be made from a deterministic composite account if
335
+ * approved by a total of `threshold - 1` of `other_signatories`.
336
+ *
337
+ * Payment: `DepositBase` will be reserved if this is the first approval, plus
338
+ * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
339
+ * is cancelled.
340
+ *
341
+ * The dispatch origin for this call must be _Signed_.
342
+ *
343
+ * - `threshold`: The total number of approvals for this dispatch before it is executed.
344
+ * - `other_signatories`: The accounts (other than the sender) who can approve this
345
+ * dispatch. May not be empty.
346
+ * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
347
+ * not the first approval, then it must be `Some`, with the timepoint (block number and
348
+ * transaction index) of the first approval transaction.
349
+ * - `call_hash`: The hash of the call to be executed.
350
+ *
351
+ * NOTE: If this is the final approval, you will want to use `as_multi` instead.
352
+ *
353
+ * ## Complexity
354
+ * - `O(S)`.
355
+ * - Up to one balance-reserve or unreserve operation.
356
+ * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
357
+ * signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
358
+ * - One encode & hash, both of complexity `O(S)`.
359
+ * - Up to one binary search and insert (`O(logS + S)`).
360
+ * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
361
+ * - One event.
362
+ * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
363
+ * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
364
+ **/
365
+ approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
366
+ height?: any;
367
+ index?: any;
368
+ } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | {
369
+ refTime?: any;
370
+ proofSize?: any;
371
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, SpWeightsWeightV2Weight]>;
372
+ /**
373
+ * Register approval for a dispatch to be made from a deterministic composite account if
374
+ * approved by a total of `threshold - 1` of `other_signatories`.
375
+ *
376
+ * If there are enough, then dispatch the call.
377
+ *
378
+ * Payment: `DepositBase` will be reserved if this is the first approval, plus
379
+ * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
380
+ * is cancelled.
381
+ *
382
+ * The dispatch origin for this call must be _Signed_.
383
+ *
384
+ * - `threshold`: The total number of approvals for this dispatch before it is executed.
385
+ * - `other_signatories`: The accounts (other than the sender) who can approve this
386
+ * dispatch. May not be empty.
387
+ * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
388
+ * not the first approval, then it must be `Some`, with the timepoint (block number and
389
+ * transaction index) of the first approval transaction.
390
+ * - `call`: The call to be executed.
391
+ *
392
+ * NOTE: Unless this is the final approval, you will generally want to use
393
+ * `approve_as_multi` instead, since it only requires a hash of the call.
394
+ *
395
+ * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
396
+ * on success, result is `Ok` and the result from the interior call, if it was executed,
397
+ * may be found in the deposited `MultisigExecuted` event.
398
+ *
399
+ * ## Complexity
400
+ * - `O(S + Z + Call)`.
401
+ * - Up to one balance-reserve or unreserve operation.
402
+ * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
403
+ * signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
404
+ * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len.
405
+ * - One encode & hash, both of complexity `O(S)`.
406
+ * - Up to one binary search and insert (`O(logS + S)`).
407
+ * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
408
+ * - One event.
409
+ * - The weight of the `call`.
410
+ * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
411
+ * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
412
+ **/
413
+ asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
414
+ height?: any;
415
+ index?: any;
416
+ } | string, call: Call | IMethod | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | {
417
+ refTime?: any;
418
+ proofSize?: any;
419
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, Call, SpWeightsWeightV2Weight]>;
420
+ /**
421
+ * Immediately dispatch a multi-signature call using a single approval from the caller.
422
+ *
423
+ * The dispatch origin for this call must be _Signed_.
424
+ *
425
+ * - `other_signatories`: The accounts (other than the sender) who are part of the
426
+ * multi-signature, but do not participate in the approval process.
427
+ * - `call`: The call to be executed.
428
+ *
429
+ * Result is equivalent to the dispatched result.
430
+ *
431
+ * ## Complexity
432
+ * O(Z + C) where Z is the length of the call and C its execution weight.
433
+ **/
434
+ asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
435
+ /**
436
+ * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
437
+ * for this operation will be unreserved on success.
438
+ *
439
+ * The dispatch origin for this call must be _Signed_.
440
+ *
441
+ * - `threshold`: The total number of approvals for this dispatch before it is executed.
442
+ * - `other_signatories`: The accounts (other than the sender) who can approve this
443
+ * dispatch. May not be empty.
444
+ * - `timepoint`: The timepoint (block number and transaction index) of the first approval
445
+ * transaction for this dispatch.
446
+ * - `call_hash`: The hash of the call to be executed.
447
+ *
448
+ * ## Complexity
449
+ * - `O(S)`.
450
+ * - Up to one balance-reserve or unreserve operation.
451
+ * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
452
+ * signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
453
+ * - One encode & hash, both of complexity `O(S)`.
454
+ * - One event.
455
+ * - I/O: 1 read `O(S)`, one remove.
456
+ * - Storage: removes one item.
457
+ **/
458
+ cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | {
459
+ height?: any;
460
+ index?: any;
461
+ } | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PalletMultisigTimepoint, U8aFixed]>;
462
+ };
463
+ notaries: {
464
+ activate: AugmentedSubmittable<(operatorAccount: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
465
+ propose: AugmentedSubmittable<(meta: ArgonPrimitivesNotaryNotaryMeta | {
466
+ name?: any;
467
+ public?: any;
468
+ hosts?: any;
469
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ArgonPrimitivesNotaryNotaryMeta]>;
470
+ /**
471
+ * Update the metadata of a notary, to be effective at the given tick height, which must be
472
+ * >= MetaChangesTickDelay ticks in the future.
473
+ **/
474
+ update: AugmentedSubmittable<(notaryId: Compact<u32> | AnyNumber | Uint8Array, meta: ArgonPrimitivesNotaryNotaryMeta | {
475
+ name?: any;
476
+ public?: any;
477
+ hosts?: any;
478
+ } | string | Uint8Array, effectiveTick: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, ArgonPrimitivesNotaryNotaryMeta, Compact<u32>]>;
479
+ };
480
+ notebook: {
481
+ submit: AugmentedSubmittable<(notebooks: Vec<ArgonPrimitivesNotebookSignedNotebookHeader> | (ArgonPrimitivesNotebookSignedNotebookHeader | {
482
+ header?: any;
483
+ signature?: any;
484
+ } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<ArgonPrimitivesNotebookSignedNotebookHeader>]>;
485
+ };
486
+ priceIndex: {
487
+ /**
488
+ * Sets the operator account id (only executable by the Root account)
489
+ *
490
+ * # Arguments
491
+ * * `account_id` - the account id of the operator
492
+ **/
493
+ setOperator: AugmentedSubmittable<(accountId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
494
+ /**
495
+ * Submit the latest price index. Only valid for the configured operator account
496
+ **/
497
+ submit: AugmentedSubmittable<(index: PalletPriceIndexPriceIndex | {
498
+ btcUsdPrice?: any;
499
+ argonUsdPrice?: any;
500
+ argonUsdTargetPrice?: any;
501
+ tick?: any;
502
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletPriceIndexPriceIndex]>;
503
+ };
504
+ proxy: {
505
+ /**
506
+ * Register a proxy account for the sender that is able to make calls on its behalf.
507
+ *
508
+ * The dispatch origin for this call must be _Signed_.
509
+ *
510
+ * Parameters:
511
+ * - `proxy`: The account that the `caller` would like to make a proxy.
512
+ * - `proxy_type`: The permissions allowed for this proxy account.
513
+ * - `delay`: The announcement period required of the initial proxy. Will generally be
514
+ * zero.
515
+ **/
516
+ addProxy: AugmentedSubmittable<(delegate: MultiAddress | {
517
+ Id: any;
518
+ } | {
519
+ Index: any;
520
+ } | {
521
+ Raw: any;
522
+ } | {
523
+ Address32: any;
524
+ } | {
525
+ Address20: any;
526
+ } | string | Uint8Array, proxyType: ArgonNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, ArgonNodeRuntimeProxyType, u32]>;
527
+ /**
528
+ * Publish the hash of a proxy-call that will be made in the future.
529
+ *
530
+ * This must be called some number of blocks before the corresponding `proxy` is attempted
531
+ * if the delay associated with the proxy relationship is greater than zero.
532
+ *
533
+ * No more than `MaxPending` announcements may be made at any one time.
534
+ *
535
+ * This will take a deposit of `AnnouncementDepositFactor` as well as
536
+ * `AnnouncementDepositBase` if there are no other pending announcements.
537
+ *
538
+ * The dispatch origin for this call must be _Signed_ and a proxy of `real`.
539
+ *
540
+ * Parameters:
541
+ * - `real`: The account that the proxy will make a call on behalf of.
542
+ * - `call_hash`: The hash of the call to be made by the `real` account.
543
+ **/
544
+ announce: AugmentedSubmittable<(real: MultiAddress | {
545
+ Id: any;
546
+ } | {
547
+ Index: any;
548
+ } | {
549
+ Raw: any;
550
+ } | {
551
+ Address32: any;
552
+ } | {
553
+ Address20: any;
554
+ } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
555
+ /**
556
+ * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
557
+ * initialize it with a proxy of `proxy_type` for `origin` sender.
558
+ *
559
+ * Requires a `Signed` origin.
560
+ *
561
+ * - `proxy_type`: The type of the proxy that the sender will be registered as over the
562
+ * new account. This will almost always be the most permissive `ProxyType` possible to
563
+ * allow for maximum flexibility.
564
+ * - `index`: A disambiguation index, in case this is called multiple times in the same
565
+ * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just
566
+ * want to use `0`.
567
+ * - `delay`: The announcement period required of the initial proxy. Will generally be
568
+ * zero.
569
+ *
570
+ * Fails with `Duplicate` if this has already been called in this transaction, from the
571
+ * same sender, with the same parameters.
572
+ *
573
+ * Fails if there are insufficient funds to pay for deposit.
574
+ **/
575
+ createPure: AugmentedSubmittable<(proxyType: ArgonNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ArgonNodeRuntimeProxyType, u32, u16]>;
576
+ /**
577
+ * Removes a previously spawned pure proxy.
578
+ *
579
+ * WARNING: **All access to this account will be lost.** Any funds held in it will be
580
+ * inaccessible.
581
+ *
582
+ * Requires a `Signed` origin, and the sender account must have been created by a call to
583
+ * `pure` with corresponding parameters.
584
+ *
585
+ * - `spawner`: The account that originally called `pure` to create this account.
586
+ * - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
587
+ * - `proxy_type`: The proxy type originally passed to `pure`.
588
+ * - `height`: The height of the chain when the call to `pure` was processed.
589
+ * - `ext_index`: The extrinsic index in which the call to `pure` was processed.
590
+ *
591
+ * Fails with `NoPermission` in case the caller is not a previously created pure
592
+ * account whose `pure` call has corresponding parameters.
593
+ **/
594
+ killPure: AugmentedSubmittable<(spawner: MultiAddress | {
595
+ Id: any;
596
+ } | {
597
+ Index: any;
598
+ } | {
599
+ Raw: any;
600
+ } | {
601
+ Address32: any;
602
+ } | {
603
+ Address20: any;
604
+ } | string | Uint8Array, proxyType: ArgonNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, ArgonNodeRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
605
+ /**
606
+ * Dispatch the given `call` from an account that the sender is authorised for through
607
+ * `add_proxy`.
608
+ *
609
+ * The dispatch origin for this call must be _Signed_.
610
+ *
611
+ * Parameters:
612
+ * - `real`: The account that the proxy will make a call on behalf of.
613
+ * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
614
+ * - `call`: The call to be made by the `real` account.
615
+ **/
616
+ proxy: AugmentedSubmittable<(real: MultiAddress | {
617
+ Id: any;
618
+ } | {
619
+ Index: any;
620
+ } | {
621
+ Raw: any;
622
+ } | {
623
+ Address32: any;
624
+ } | {
625
+ Address20: any;
626
+ } | string | Uint8Array, forceProxyType: Option<ArgonNodeRuntimeProxyType> | null | Uint8Array | ArgonNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<ArgonNodeRuntimeProxyType>, Call]>;
627
+ /**
628
+ * Dispatch the given `call` from an account that the sender is authorized for through
629
+ * `add_proxy`.
630
+ *
631
+ * Removes any corresponding announcement(s).
632
+ *
633
+ * The dispatch origin for this call must be _Signed_.
634
+ *
635
+ * Parameters:
636
+ * - `real`: The account that the proxy will make a call on behalf of.
637
+ * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
638
+ * - `call`: The call to be made by the `real` account.
639
+ **/
640
+ proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | {
641
+ Id: any;
642
+ } | {
643
+ Index: any;
644
+ } | {
645
+ Raw: any;
646
+ } | {
647
+ Address32: any;
648
+ } | {
649
+ Address20: any;
650
+ } | string | Uint8Array, real: MultiAddress | {
651
+ Id: any;
652
+ } | {
653
+ Index: any;
654
+ } | {
655
+ Raw: any;
656
+ } | {
657
+ Address32: any;
658
+ } | {
659
+ Address20: any;
660
+ } | string | Uint8Array, forceProxyType: Option<ArgonNodeRuntimeProxyType> | null | Uint8Array | ArgonNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<ArgonNodeRuntimeProxyType>, Call]>;
661
+ /**
662
+ * Remove the given announcement of a delegate.
663
+ *
664
+ * May be called by a target (proxied) account to remove a call that one of their delegates
665
+ * (`delegate`) has announced they want to execute. The deposit is returned.
666
+ *
667
+ * The dispatch origin for this call must be _Signed_.
668
+ *
669
+ * Parameters:
670
+ * - `delegate`: The account that previously announced the call.
671
+ * - `call_hash`: The hash of the call to be made.
672
+ **/
673
+ rejectAnnouncement: AugmentedSubmittable<(delegate: MultiAddress | {
674
+ Id: any;
675
+ } | {
676
+ Index: any;
677
+ } | {
678
+ Raw: any;
679
+ } | {
680
+ Address32: any;
681
+ } | {
682
+ Address20: any;
683
+ } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
684
+ /**
685
+ * Remove a given announcement.
686
+ *
687
+ * May be called by a proxy account to remove a call they previously announced and return
688
+ * the deposit.
689
+ *
690
+ * The dispatch origin for this call must be _Signed_.
691
+ *
692
+ * Parameters:
693
+ * - `real`: The account that the proxy will make a call on behalf of.
694
+ * - `call_hash`: The hash of the call to be made by the `real` account.
695
+ **/
696
+ removeAnnouncement: AugmentedSubmittable<(real: MultiAddress | {
697
+ Id: any;
698
+ } | {
699
+ Index: any;
700
+ } | {
701
+ Raw: any;
702
+ } | {
703
+ Address32: any;
704
+ } | {
705
+ Address20: any;
706
+ } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
707
+ /**
708
+ * Unregister all proxy accounts for the sender.
709
+ *
710
+ * The dispatch origin for this call must be _Signed_.
711
+ *
712
+ * WARNING: This may be called on accounts created by `pure`, however if done, then
713
+ * the unreserved fees will be inaccessible. **All access to this account will be lost.**
714
+ **/
715
+ removeProxies: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
716
+ /**
717
+ * Unregister a proxy account for the sender.
718
+ *
719
+ * The dispatch origin for this call must be _Signed_.
720
+ *
721
+ * Parameters:
722
+ * - `proxy`: The account that the `caller` would like to remove as a proxy.
723
+ * - `proxy_type`: The permissions currently enabled for the removed proxy account.
724
+ **/
725
+ removeProxy: AugmentedSubmittable<(delegate: MultiAddress | {
726
+ Id: any;
727
+ } | {
728
+ Index: any;
729
+ } | {
730
+ Raw: any;
731
+ } | {
732
+ Address32: any;
733
+ } | {
734
+ Address20: any;
735
+ } | string | Uint8Array, proxyType: ArgonNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'PriceIndex' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, ArgonNodeRuntimeProxyType, u32]>;
736
+ };
737
+ session: {
738
+ /**
739
+ * Removes any session key(s) of the function caller.
740
+ *
741
+ * This doesn't take effect until the next session.
742
+ *
743
+ * The dispatch origin of this function must be Signed and the account must be either be
744
+ * convertible to a validator ID using the chain's typical addressing system (this usually
745
+ * means being a controller account) or directly convertible into a validator ID (which
746
+ * usually means being a stash account).
747
+ *
748
+ * ## Complexity
749
+ * - `O(1)` in number of key types. Actual cost depends on the number of length of
750
+ * `T::Keys::key_ids()` which is fixed.
751
+ **/
752
+ purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
753
+ /**
754
+ * Sets the session key(s) of the function caller to `keys`.
755
+ * Allows an account to set its session key prior to becoming a validator.
756
+ * This doesn't take effect until the next session.
757
+ *
758
+ * The dispatch origin of this function must be signed.
759
+ *
760
+ * ## Complexity
761
+ * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
762
+ * fixed.
763
+ **/
764
+ setKeys: AugmentedSubmittable<(keys: ArgonNodeRuntimeOpaqueSessionKeys | {
765
+ grandpa?: any;
766
+ blockSealAuthority?: any;
767
+ } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ArgonNodeRuntimeOpaqueSessionKeys, Bytes]>;
768
+ };
769
+ shareBalances: {
770
+ /**
771
+ * Burn the specified liquid free balance from the origin account.
772
+ *
773
+ * If the origin's account ends up below the existential deposit as a result
774
+ * of the burn and `keep_alive` is false, the account will be reaped.
775
+ *
776
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
777
+ * this `burn` operation will reduce total issuance by the amount _burned_.
778
+ **/
779
+ burn: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, bool]>;
780
+ /**
781
+ * Adjust the total issuance in a saturating way.
782
+ *
783
+ * Can only be called by root and always needs a positive `delta`.
784
+ *
785
+ * # Example
786
+ **/
787
+ forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBalancesAdjustmentDirection, Compact<u128>]>;
788
+ /**
789
+ * Set the regular balance of a given account.
790
+ *
791
+ * The dispatch origin for this call is `root`.
792
+ **/
793
+ forceSetBalance: AugmentedSubmittable<(who: MultiAddress | {
794
+ Id: any;
795
+ } | {
796
+ Index: any;
797
+ } | {
798
+ Raw: any;
799
+ } | {
800
+ Address32: any;
801
+ } | {
802
+ Address20: any;
803
+ } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
804
+ /**
805
+ * Exactly as `transfer_allow_death`, except the origin must be root and the source account
806
+ * may be specified.
807
+ **/
808
+ forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
809
+ Id: any;
810
+ } | {
811
+ Index: any;
812
+ } | {
813
+ Raw: any;
814
+ } | {
815
+ Address32: any;
816
+ } | {
817
+ Address20: any;
818
+ } | string | Uint8Array, dest: MultiAddress | {
819
+ Id: any;
820
+ } | {
821
+ Index: any;
822
+ } | {
823
+ Raw: any;
824
+ } | {
825
+ Address32: any;
826
+ } | {
827
+ Address20: any;
828
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
829
+ /**
830
+ * Unreserve some balance from a user by force.
831
+ *
832
+ * Can only be called by ROOT.
833
+ **/
834
+ forceUnreserve: AugmentedSubmittable<(who: MultiAddress | {
835
+ Id: any;
836
+ } | {
837
+ Index: any;
838
+ } | {
839
+ Raw: any;
840
+ } | {
841
+ Address32: any;
842
+ } | {
843
+ Address20: any;
844
+ } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
845
+ /**
846
+ * Transfer the entire transferable balance from the caller account.
847
+ *
848
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
849
+ * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
850
+ * transferred by this function. To ensure that this function results in a killed account,
851
+ * you might need to prepare the account by removing any reference counters, storage
852
+ * deposits, etc...
853
+ *
854
+ * The dispatch origin of this call must be Signed.
855
+ *
856
+ * - `dest`: The recipient of the transfer.
857
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
858
+ * of the funds the account has, causing the sender account to be killed (false), or
859
+ * transfer everything except at least the existential deposit, which will guarantee to
860
+ * keep the sender account alive (true).
861
+ **/
862
+ transferAll: AugmentedSubmittable<(dest: MultiAddress | {
863
+ Id: any;
864
+ } | {
865
+ Index: any;
866
+ } | {
867
+ Raw: any;
868
+ } | {
869
+ Address32: any;
870
+ } | {
871
+ Address20: any;
872
+ } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
873
+ /**
874
+ * Transfer some liquid free balance to another account.
875
+ *
876
+ * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
877
+ * If the sender's account is below the existential deposit as a result
878
+ * of the transfer, the account will be reaped.
879
+ *
880
+ * The dispatch origin for this call must be `Signed` by the transactor.
881
+ **/
882
+ transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | {
883
+ Id: any;
884
+ } | {
885
+ Index: any;
886
+ } | {
887
+ Raw: any;
888
+ } | {
889
+ Address32: any;
890
+ } | {
891
+ Address20: any;
892
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
893
+ /**
894
+ * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
895
+ * kill the origin account.
896
+ *
897
+ * 99% of the time you want [`transfer_allow_death`] instead.
898
+ *
899
+ * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
900
+ **/
901
+ transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | {
902
+ Id: any;
903
+ } | {
904
+ Index: any;
905
+ } | {
906
+ Raw: any;
907
+ } | {
908
+ Address32: any;
909
+ } | {
910
+ Address20: any;
911
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
912
+ /**
913
+ * Upgrade a specified account.
914
+ *
915
+ * - `origin`: Must be `Signed`.
916
+ * - `who`: The account to be upgraded.
917
+ *
918
+ * This will waive the transaction fee if at least all but 10% of the accounts needed to
919
+ * be upgraded. (We let some not have to be upgraded just in order to allow for the
920
+ * possibility of churn).
921
+ **/
922
+ upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
923
+ };
924
+ sudo: {
925
+ /**
926
+ * Permanently removes the sudo key.
927
+ *
928
+ * **This cannot be un-done.**
929
+ **/
930
+ removeKey: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
931
+ /**
932
+ * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo
933
+ * key.
934
+ **/
935
+ setKey: AugmentedSubmittable<(updated: MultiAddress | {
936
+ Id: any;
937
+ } | {
938
+ Index: any;
939
+ } | {
940
+ Raw: any;
941
+ } | {
942
+ Address32: any;
943
+ } | {
944
+ Address20: any;
945
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
946
+ /**
947
+ * Authenticates the sudo key and dispatches a function call with `Root` origin.
948
+ **/
949
+ sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
950
+ /**
951
+ * Authenticates the sudo key and dispatches a function call with `Signed` origin from
952
+ * a given account.
953
+ *
954
+ * The dispatch origin for this call must be _Signed_.
955
+ **/
956
+ sudoAs: AugmentedSubmittable<(who: MultiAddress | {
957
+ Id: any;
958
+ } | {
959
+ Index: any;
960
+ } | {
961
+ Raw: any;
962
+ } | {
963
+ Address32: any;
964
+ } | {
965
+ Address20: any;
966
+ } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;
967
+ /**
968
+ * Authenticates the sudo key and dispatches a function call with `Root` origin.
969
+ * This function does not check the weight of the call, and instead allows the
970
+ * Sudo user to specify the weight of the call.
971
+ *
972
+ * The dispatch origin for this call must be _Signed_.
973
+ **/
974
+ sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
975
+ refTime?: any;
976
+ proofSize?: any;
977
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, SpWeightsWeightV2Weight]>;
978
+ };
979
+ system: {
980
+ /**
981
+ * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
982
+ *
983
+ * If the authorization required a version check, this call will ensure the spec name
984
+ * remains unchanged and that the spec version has increased.
985
+ *
986
+ * Depending on the runtime's `OnSetCode` configuration, this function may directly apply
987
+ * the new `code` in the same block or attempt to schedule the upgrade.
988
+ *
989
+ * All origins are allowed.
990
+ **/
991
+ applyAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
992
+ /**
993
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
994
+ * later.
995
+ *
996
+ * This call requires Root origin.
997
+ **/
998
+ authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
999
+ /**
1000
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
1001
+ * later.
1002
+ *
1003
+ * WARNING: This authorizes an upgrade that will take place without any safety checks, for
1004
+ * example that the spec name remains the same and that the version number increases. Not
1005
+ * recommended for normal use. Use `authorize_upgrade` instead.
1006
+ *
1007
+ * This call requires Root origin.
1008
+ **/
1009
+ authorizeUpgradeWithoutChecks: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
1010
+ /**
1011
+ * Kill all storage items with a key that starts with the given prefix.
1012
+ *
1013
+ * **NOTE:** We rely on the Root origin to provide us the number of subkeys under
1014
+ * the prefix we are removing to accurately calculate the weight of this function.
1015
+ **/
1016
+ killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;
1017
+ /**
1018
+ * Kill some items from storage.
1019
+ **/
1020
+ killStorage: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;
1021
+ /**
1022
+ * Make some on-chain remark.
1023
+ *
1024
+ * Can be executed by every `origin`.
1025
+ **/
1026
+ remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
1027
+ /**
1028
+ * Make some on-chain remark and emit event.
1029
+ **/
1030
+ remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
1031
+ /**
1032
+ * Set the new runtime code.
1033
+ **/
1034
+ setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
1035
+ /**
1036
+ * Set the new runtime code without doing any checks of the given `code`.
1037
+ *
1038
+ * Note that runtime upgrades will not run if this is called with a not-increasing spec
1039
+ * version!
1040
+ **/
1041
+ setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
1042
+ /**
1043
+ * Set the number of pages in the WebAssembly environment's heap.
1044
+ **/
1045
+ setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
1046
+ /**
1047
+ * Set some items of storage.
1048
+ **/
1049
+ setStorage: AugmentedSubmittable<(items: Vec<ITuple<[Bytes, Bytes]>> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[Bytes, Bytes]>>]>;
1050
+ };
1051
+ ticks: {};
1052
+ timestamp: {
1053
+ /**
1054
+ * Set the current time.
1055
+ *
1056
+ * This call should be invoked exactly once per block. It will panic at the finalization
1057
+ * phase, if this call hasn't been invoked by that time.
1058
+ *
1059
+ * The timestamp should be greater than the previous one by the amount specified by
1060
+ * [`Config::MinimumPeriod`].
1061
+ *
1062
+ * The dispatch origin for this call must be _None_.
1063
+ *
1064
+ * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware
1065
+ * that changing the complexity of this call could result exhausting the resources in a
1066
+ * block to execute any other calls.
1067
+ *
1068
+ * ## Complexity
1069
+ * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
1070
+ * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in
1071
+ * `on_finalize`)
1072
+ * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
1073
+ **/
1074
+ set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;
1075
+ };
1076
+ txPause: {
1077
+ /**
1078
+ * Pause a call.
1079
+ *
1080
+ * Can only be called by [`Config::PauseOrigin`].
1081
+ * Emits an [`Event::CallPaused`] event on success.
1082
+ **/
1083
+ pause: AugmentedSubmittable<(fullName: ITuple<[Bytes, Bytes]> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [ITuple<[Bytes, Bytes]>]>;
1084
+ /**
1085
+ * Un-pause a call.
1086
+ *
1087
+ * Can only be called by [`Config::UnpauseOrigin`].
1088
+ * Emits an [`Event::CallUnpaused`] event on success.
1089
+ **/
1090
+ unpause: AugmentedSubmittable<(ident: ITuple<[Bytes, Bytes]> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [ITuple<[Bytes, Bytes]>]>;
1091
+ };
1092
+ vaults: {
1093
+ /**
1094
+ * Stop offering additional bonds from this vault. Will not affect existing bond.
1095
+ * As funds are returned, they will be released to the vault owner.
1096
+ **/
1097
+ close: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1098
+ create: AugmentedSubmittable<(vaultConfig: PalletVaultsVaultConfig | {
1099
+ terms?: any;
1100
+ bitcoinAmountAllocated?: any;
1101
+ bitcoinXpubkey?: any;
1102
+ miningAmountAllocated?: any;
1103
+ securitizationPercent?: any;
1104
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletVaultsVaultConfig]>;
1105
+ /**
1106
+ * Modify funds offered by the vault. This will not affect existing bonds, but will affect
1107
+ * the amount of funds available for new bonds.
1108
+ *
1109
+ * The securitization percent must be maintained or increased.
1110
+ *
1111
+ * The amount offered may not go below the existing bonded amounts, but you can release
1112
+ * funds in this vault as bonds are released. To stop issuing any more bonds, use the
1113
+ * `close` api.
1114
+ **/
1115
+ modifyFunding: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, totalMiningAmountOffered: u128 | AnyNumber | Uint8Array, totalBitcoinAmountOffered: u128 | AnyNumber | Uint8Array, securitizationPercent: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u128, u128, u128]>;
1116
+ /**
1117
+ * Change the terms of this vault. The change will be applied at the next mining slot
1118
+ * change that is at least `MinTermsModificationBlockDelay` blocks away.
1119
+ **/
1120
+ modifyTerms: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, terms: ArgonPrimitivesBondVaultTerms | {
1121
+ bitcoinAnnualPercentRate?: any;
1122
+ bitcoinBaseFee?: any;
1123
+ miningAnnualPercentRate?: any;
1124
+ miningBaseFee?: any;
1125
+ miningRewardSharingPercentTake?: any;
1126
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, ArgonPrimitivesBondVaultTerms]>;
1127
+ /**
1128
+ * Replace the bitcoin xpubkey for this vault. This will not affect existing bonds, but
1129
+ * will be used for any bonds after this point. Will be rejected if already used.
1130
+ **/
1131
+ replaceBitcoinXpub: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, bitcoinXpub: ArgonPrimitivesBitcoinOpaqueBitcoinXpub | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, ArgonPrimitivesBitcoinOpaqueBitcoinXpub]>;
1132
+ };
1133
+ }
1134
+ }