@argonprotocol/mainchain 1.4.3 → 1.4.4-dev.abb08dac

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/browser/artifacts/contracts/ArgonToken.sol/ArgonToken.json +671 -0
  2. package/browser/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +671 -0
  3. package/browser/artifacts/contracts/MintingGateway.sol/MintingGateway.json +1688 -0
  4. package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +135 -0
  5. package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +131 -0
  6. package/browser/index.d.ts +2875 -1792
  7. package/browser/index.js +6827 -200
  8. package/browser/index.js.map +1 -1
  9. package/lib/artifacts/contracts/ArgonToken.sol/ArgonToken.json +671 -0
  10. package/lib/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +671 -0
  11. package/lib/artifacts/contracts/MintingGateway.sol/MintingGateway.json +1688 -0
  12. package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +135 -0
  13. package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +131 -0
  14. package/lib/index.cjs +6915 -266
  15. package/lib/index.cjs.map +1 -1
  16. package/lib/index.d.cts +2875 -1792
  17. package/lib/index.d.ts +2875 -1792
  18. package/lib/index.js +6855 -206
  19. package/lib/index.js.map +1 -1
  20. package/package.json +29 -26
  21. package/src/interfaces/augment-api-consts.ts +656 -0
  22. package/src/interfaces/augment-api-errors.ts +1376 -0
  23. package/src/interfaces/augment-api-events.ts +2098 -0
  24. package/src/interfaces/augment-api-query.ts +1809 -0
  25. package/src/interfaces/augment-api-rpc.ts +1133 -0
  26. package/src/interfaces/augment-api-runtime.ts +306 -0
  27. package/src/interfaces/augment-api-tx.ts +2298 -0
  28. package/src/interfaces/augment-api.ts +10 -0
  29. package/src/interfaces/augment-types.ts +2692 -0
  30. package/src/interfaces/definitions.ts +42 -0
  31. package/src/interfaces/ethereum/index.ts +4 -0
  32. package/src/interfaces/ethereum/types.ts +66 -0
  33. package/src/interfaces/lookup.ts +4167 -0
  34. package/src/interfaces/registry.ts +598 -0
  35. package/src/interfaces/types-lookup.ts +4868 -0
@@ -0,0 +1,2298 @@
1
+ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
3
+
4
+ // import type lookup before we augment - in some environments
5
+ // this is required to allow for ambient/previous definitions
6
+ import type {} from '@polkadot/api-base/types/submittable';
7
+
8
+ import type {
9
+ ApiTypes,
10
+ AugmentedSubmittable,
11
+ SubmittableExtrinsic,
12
+ SubmittableExtrinsicFunction,
13
+ } from '@polkadot/api-base/types';
14
+ import type {
15
+ Bytes,
16
+ Compact,
17
+ Option,
18
+ U8aFixed,
19
+ Vec,
20
+ bool,
21
+ u128,
22
+ u16,
23
+ u32,
24
+ u64,
25
+ } from '@polkadot/types-codec';
26
+ import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
27
+ import type {
28
+ AccountId32,
29
+ Call,
30
+ H160,
31
+ H256,
32
+ MultiAddress,
33
+ } from '@polkadot/types/interfaces/runtime';
34
+ import type {
35
+ ArgonPrimitivesBitcoinCompressedBitcoinPubkey,
36
+ ArgonPrimitivesBitcoinH256Le,
37
+ ArgonPrimitivesBitcoinOpaqueBitcoinXpub,
38
+ ArgonPrimitivesBitcoinUtxoRef,
39
+ ArgonPrimitivesDomainZoneRecord,
40
+ ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
41
+ ArgonPrimitivesInherentsBitcoinUtxoSync,
42
+ ArgonPrimitivesInherentsBlockSealInherent,
43
+ ArgonPrimitivesNotaryNotaryMeta,
44
+ ArgonPrimitivesNotebookSignedNotebookHeader,
45
+ ArgonPrimitivesVaultVaultTerms,
46
+ ArgonRuntimeOriginCaller,
47
+ ArgonRuntimeProxyType,
48
+ ArgonRuntimeSessionKeys,
49
+ PalletBalancesAdjustmentDirection,
50
+ PalletBitcoinLocksLockOptions,
51
+ PalletCrosschainTransferAssetKind,
52
+ PalletCrosschainTransferChainConfig,
53
+ PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing,
54
+ PalletCrosschainTransferSourceChain,
55
+ PalletEthereumVerifierBasicOperatingMode,
56
+ PalletEthereumVerifierCheckpointUpdate,
57
+ PalletEthereumVerifierForkVersions,
58
+ PalletEthereumVerifierUpdate,
59
+ PalletMultisigTimepoint,
60
+ PalletOperationalAccountsOperationalProgressPatch,
61
+ PalletOperationalAccountsRegistration,
62
+ PalletPriceIndexPriceIndex,
63
+ PalletVaultsVaultConfig,
64
+ SpConsensusGrandpaEquivocationProof,
65
+ SpCoreVoid,
66
+ SpWeightsWeightV2Weight,
67
+ } from '@polkadot/types/lookup';
68
+
69
+ export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
70
+ export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
71
+ export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> =
72
+ SubmittableExtrinsicFunction<ApiType>;
73
+
74
+ declare module '@polkadot/api-base/types/submittable' {
75
+ interface AugmentedSubmittables<ApiType extends ApiTypes> {
76
+ balances: {
77
+ /**
78
+ * Burn the specified liquid free balance from the origin account.
79
+ *
80
+ * If the origin's account ends up below the existential deposit as a result
81
+ * of the burn and `keep_alive` is false, the account will be reaped.
82
+ *
83
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
84
+ * this `burn` operation will reduce total issuance by the amount _burned_.
85
+ **/
86
+ burn: AugmentedSubmittable<
87
+ (
88
+ value: Compact<u128> | AnyNumber | Uint8Array,
89
+ keepAlive: bool | boolean | Uint8Array,
90
+ ) => SubmittableExtrinsic<ApiType>,
91
+ [Compact<u128>, bool]
92
+ >;
93
+ /**
94
+ * Adjust the total issuance in a saturating way.
95
+ *
96
+ * Can only be called by root and always needs a positive `delta`.
97
+ *
98
+ * # Example
99
+ **/
100
+ forceAdjustTotalIssuance: AugmentedSubmittable<
101
+ (
102
+ direction:
103
+ | PalletBalancesAdjustmentDirection
104
+ | 'Increase'
105
+ | 'Decrease'
106
+ | number
107
+ | Uint8Array,
108
+ delta: Compact<u128> | AnyNumber | Uint8Array,
109
+ ) => SubmittableExtrinsic<ApiType>,
110
+ [PalletBalancesAdjustmentDirection, Compact<u128>]
111
+ >;
112
+ /**
113
+ * Set the regular balance of a given account.
114
+ *
115
+ * The dispatch origin for this call is `root`.
116
+ **/
117
+ forceSetBalance: AugmentedSubmittable<
118
+ (
119
+ who:
120
+ | MultiAddress
121
+ | { Id: any }
122
+ | { Index: any }
123
+ | { Raw: any }
124
+ | { Address32: any }
125
+ | { Address20: any }
126
+ | string
127
+ | Uint8Array,
128
+ newFree: Compact<u128> | AnyNumber | Uint8Array,
129
+ ) => SubmittableExtrinsic<ApiType>,
130
+ [MultiAddress, Compact<u128>]
131
+ >;
132
+ /**
133
+ * Exactly as `transfer_allow_death`, except the origin must be root and the source account
134
+ * may be specified.
135
+ **/
136
+ forceTransfer: AugmentedSubmittable<
137
+ (
138
+ source:
139
+ | MultiAddress
140
+ | { Id: any }
141
+ | { Index: any }
142
+ | { Raw: any }
143
+ | { Address32: any }
144
+ | { Address20: any }
145
+ | string
146
+ | Uint8Array,
147
+ dest:
148
+ | MultiAddress
149
+ | { Id: any }
150
+ | { Index: any }
151
+ | { Raw: any }
152
+ | { Address32: any }
153
+ | { Address20: any }
154
+ | string
155
+ | Uint8Array,
156
+ value: Compact<u128> | AnyNumber | Uint8Array,
157
+ ) => SubmittableExtrinsic<ApiType>,
158
+ [MultiAddress, MultiAddress, Compact<u128>]
159
+ >;
160
+ /**
161
+ * Unreserve some balance from a user by force.
162
+ *
163
+ * Can only be called by ROOT.
164
+ **/
165
+ forceUnreserve: AugmentedSubmittable<
166
+ (
167
+ who:
168
+ | MultiAddress
169
+ | { Id: any }
170
+ | { Index: any }
171
+ | { Raw: any }
172
+ | { Address32: any }
173
+ | { Address20: any }
174
+ | string
175
+ | Uint8Array,
176
+ amount: u128 | AnyNumber | Uint8Array,
177
+ ) => SubmittableExtrinsic<ApiType>,
178
+ [MultiAddress, u128]
179
+ >;
180
+ /**
181
+ * Transfer the entire transferable balance from the caller account.
182
+ *
183
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
184
+ * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
185
+ * transferred by this function. To ensure that this function results in a killed account,
186
+ * you might need to prepare the account by removing any reference counters, storage
187
+ * deposits, etc...
188
+ *
189
+ * The dispatch origin of this call must be Signed.
190
+ *
191
+ * - `dest`: The recipient of the transfer.
192
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
193
+ * of the funds the account has, causing the sender account to be killed (false), or
194
+ * transfer everything except at least the existential deposit, which will guarantee to
195
+ * keep the sender account alive (true).
196
+ **/
197
+ transferAll: AugmentedSubmittable<
198
+ (
199
+ dest:
200
+ | MultiAddress
201
+ | { Id: any }
202
+ | { Index: any }
203
+ | { Raw: any }
204
+ | { Address32: any }
205
+ | { Address20: any }
206
+ | string
207
+ | Uint8Array,
208
+ keepAlive: bool | boolean | Uint8Array,
209
+ ) => SubmittableExtrinsic<ApiType>,
210
+ [MultiAddress, bool]
211
+ >;
212
+ /**
213
+ * Transfer some liquid free balance to another account.
214
+ *
215
+ * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
216
+ * If the sender's account is below the existential deposit as a result
217
+ * of the transfer, the account will be reaped.
218
+ *
219
+ * The dispatch origin for this call must be `Signed` by the transactor.
220
+ **/
221
+ transferAllowDeath: AugmentedSubmittable<
222
+ (
223
+ dest:
224
+ | MultiAddress
225
+ | { Id: any }
226
+ | { Index: any }
227
+ | { Raw: any }
228
+ | { Address32: any }
229
+ | { Address20: any }
230
+ | string
231
+ | Uint8Array,
232
+ value: Compact<u128> | AnyNumber | Uint8Array,
233
+ ) => SubmittableExtrinsic<ApiType>,
234
+ [MultiAddress, Compact<u128>]
235
+ >;
236
+ /**
237
+ * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
238
+ * kill the origin account.
239
+ *
240
+ * 99% of the time you want [`transfer_allow_death`] instead.
241
+ *
242
+ * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
243
+ **/
244
+ transferKeepAlive: AugmentedSubmittable<
245
+ (
246
+ dest:
247
+ | MultiAddress
248
+ | { Id: any }
249
+ | { Index: any }
250
+ | { Raw: any }
251
+ | { Address32: any }
252
+ | { Address20: any }
253
+ | string
254
+ | Uint8Array,
255
+ value: Compact<u128> | AnyNumber | Uint8Array,
256
+ ) => SubmittableExtrinsic<ApiType>,
257
+ [MultiAddress, Compact<u128>]
258
+ >;
259
+ /**
260
+ * Upgrade a specified account.
261
+ *
262
+ * - `origin`: Must be `Signed`.
263
+ * - `who`: The account to be upgraded.
264
+ *
265
+ * This will waive the transaction fee if at least all but 10% of the accounts needed to
266
+ * be upgraded. (We let some not have to be upgraded just in order to allow for the
267
+ * possibility of churn).
268
+ **/
269
+ upgradeAccounts: AugmentedSubmittable<
270
+ (
271
+ who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[],
272
+ ) => SubmittableExtrinsic<ApiType>,
273
+ [Vec<AccountId32>]
274
+ >;
275
+ };
276
+ bitcoinLocks: {
277
+ adminModifyMinimumLockedSats: AugmentedSubmittable<
278
+ (satoshis: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
279
+ [u64]
280
+ >;
281
+ /**
282
+ * NOTE: The `signature` parameter is NOT verified on-chain. The orphan record does
283
+ * not retain the cosign script args needed for verification (they are cleaned up
284
+ * with the BitcoinLock). The signature is passed through to the
285
+ * `OrphanedUtxoCosigned` event so the lock owner can construct the Bitcoin release
286
+ * transaction off-chain. A garbage signature means the owner can't spend — no
287
+ * on-chain damage. To add on-chain verification, the cosign script args would need
288
+ * to be stored in `OrphanedUtxo` (storage migration required).
289
+ **/
290
+ cosignOrphanedUtxoRelease: AugmentedSubmittable<
291
+ (
292
+ orphanOwner: AccountId32 | string | Uint8Array,
293
+ utxoRef:
294
+ | ArgonPrimitivesBitcoinUtxoRef
295
+ | { txid?: any; outputIndex?: any }
296
+ | string
297
+ | Uint8Array,
298
+ signature: Bytes | string | Uint8Array,
299
+ ) => SubmittableExtrinsic<ApiType>,
300
+ [AccountId32, ArgonPrimitivesBitcoinUtxoRef, Bytes]
301
+ >;
302
+ /**
303
+ * Submitted by a Vault operator to cosign the release of a bitcoin utxo. The Bitcoin owner
304
+ * release fee will be burned, and the lock will be allowed to expire without a penalty.
305
+ *
306
+ * This is submitted as a no-fee transaction off chain to allow keys to remain in cold
307
+ * wallets.
308
+ **/
309
+ cosignRelease: AugmentedSubmittable<
310
+ (
311
+ utxoId: u64 | AnyNumber | Uint8Array,
312
+ signature: Bytes | string | Uint8Array,
313
+ ) => SubmittableExtrinsic<ApiType>,
314
+ [u64, Bytes]
315
+ >;
316
+ increaseSecuritization: AugmentedSubmittable<
317
+ (
318
+ utxoId: u64 | AnyNumber | Uint8Array,
319
+ newSatoshis: Compact<u64> | AnyNumber | Uint8Array,
320
+ ) => SubmittableExtrinsic<ApiType>,
321
+ [u64, Compact<u64>]
322
+ >;
323
+ /**
324
+ * Initialize a bitcoin lock. This will create a LockedBitcoin for the submitting account
325
+ * and log the Bitcoin Script hash to Events.
326
+ *
327
+ * The pubkey submitted here will be used to create a script pubkey that will be used in a
328
+ * timelock multisig script to lock the bitcoin.
329
+ *
330
+ * NOTE: A "lock-er" must send btc to the cosigner UTXO address to "complete" the
331
+ * LockedBitcoin and be added to the Bitcoin Mint line.
332
+ **/
333
+ initialize: AugmentedSubmittable<
334
+ (
335
+ vaultId: u32 | AnyNumber | Uint8Array,
336
+ satoshis: Compact<u64> | AnyNumber | Uint8Array,
337
+ bitcoinPubkey: ArgonPrimitivesBitcoinCompressedBitcoinPubkey | string | Uint8Array,
338
+ options:
339
+ | Option<PalletBitcoinLocksLockOptions>
340
+ | null
341
+ | Uint8Array
342
+ | PalletBitcoinLocksLockOptions
343
+ | { V1: any }
344
+ | string,
345
+ ) => SubmittableExtrinsic<ApiType>,
346
+ [
347
+ u32,
348
+ Compact<u64>,
349
+ ArgonPrimitivesBitcoinCompressedBitcoinPubkey,
350
+ Option<PalletBitcoinLocksLockOptions>,
351
+ ]
352
+ >;
353
+ initializeFor: AugmentedSubmittable<
354
+ (
355
+ accountId: AccountId32 | string | Uint8Array,
356
+ vaultId: u32 | AnyNumber | Uint8Array,
357
+ satoshis: Compact<u64> | AnyNumber | Uint8Array,
358
+ bitcoinPubkey: ArgonPrimitivesBitcoinCompressedBitcoinPubkey | string | Uint8Array,
359
+ options:
360
+ | Option<PalletBitcoinLocksLockOptions>
361
+ | null
362
+ | Uint8Array
363
+ | PalletBitcoinLocksLockOptions
364
+ | { V1: any }
365
+ | string,
366
+ ) => SubmittableExtrinsic<ApiType>,
367
+ [
368
+ AccountId32,
369
+ u32,
370
+ Compact<u64>,
371
+ ArgonPrimitivesBitcoinCompressedBitcoinPubkey,
372
+ Option<PalletBitcoinLocksLockOptions>,
373
+ ]
374
+ >;
375
+ /**
376
+ * Ratcheting allows a user to change the lock price of their bitcoin lock. This is
377
+ * functionally the same as releasing and re-initializing, but it allows a user to skip
378
+ * sending transactions through bitcoin and any associated fees. It also allows you to stay
379
+ * on your original lock expiration without having to pay the full year of fees again.
380
+ *
381
+ * Ratcheting "down" - when the price of bitcoin is lower than your lock price, you pay the
382
+ * full release price and get added back to the mint queue at the current market rate. You
383
+ * pocket the difference between the already minted "lock price" and the new market value
384
+ * (which you just had burned). Your new lock price is set to the market low, so you can
385
+ * take advantage of ratchets "up" in the future.
386
+ *
387
+ * Ratcheting "up" - when the price of bitcoin is higher than your lock price, you pay a
388
+ * prorated fee for the remainder of your existing lock duration. You are added to the mint
389
+ * queue for the difference in your new lock price vs the previous lock price.
390
+ **/
391
+ ratchet: AugmentedSubmittable<
392
+ (
393
+ utxoId: u64 | AnyNumber | Uint8Array,
394
+ options:
395
+ | Option<PalletBitcoinLocksLockOptions>
396
+ | null
397
+ | Uint8Array
398
+ | PalletBitcoinLocksLockOptions
399
+ | { V1: any }
400
+ | string,
401
+ ) => SubmittableExtrinsic<ApiType>,
402
+ [u64, Option<PalletBitcoinLocksLockOptions>]
403
+ >;
404
+ requestOrphanedUtxoRelease: AugmentedSubmittable<
405
+ (
406
+ utxoRef:
407
+ | ArgonPrimitivesBitcoinUtxoRef
408
+ | { txid?: any; outputIndex?: any }
409
+ | string
410
+ | Uint8Array,
411
+ toScriptPubkey: Bytes | string | Uint8Array,
412
+ bitcoinNetworkFee: u64 | AnyNumber | Uint8Array,
413
+ ) => SubmittableExtrinsic<ApiType>,
414
+ [ArgonPrimitivesBitcoinUtxoRef, Bytes, u64]
415
+ >;
416
+ /**
417
+ * Submitted by a Bitcoin holder to trigger the release of their Utxo out of the cosign
418
+ * script. A transaction spending the UTXO should be pre-created so that the sighash
419
+ * can be submitted here. The vault operator will have 10 days to counter-sign the
420
+ * transaction. It will be published with the public key as a BitcoinUtxoCosigned Event.
421
+ *
422
+ * Owner must submit a script pubkey and also a fee to pay to the bitcoin network.
423
+ **/
424
+ requestRelease: AugmentedSubmittable<
425
+ (
426
+ utxoId: u64 | AnyNumber | Uint8Array,
427
+ toScriptPubkey: Bytes | string | Uint8Array,
428
+ bitcoinNetworkFee: u64 | AnyNumber | Uint8Array,
429
+ ) => SubmittableExtrinsic<ApiType>,
430
+ [u64, Bytes, u64]
431
+ >;
432
+ };
433
+ bitcoinUtxos: {
434
+ /**
435
+ * Bind a candidate UTXO ref as the funding UTXO for its lock.
436
+ * The locks pallet authorizes the promotion; this pallet binds the ref and begins
437
+ * tracking.
438
+ **/
439
+ fundWithUtxoCandidate: AugmentedSubmittable<
440
+ (
441
+ utxoId: u64 | AnyNumber | Uint8Array,
442
+ utxoRef:
443
+ | ArgonPrimitivesBitcoinUtxoRef
444
+ | { txid?: any; outputIndex?: any }
445
+ | string
446
+ | Uint8Array,
447
+ ) => SubmittableExtrinsic<ApiType>,
448
+ [u64, ArgonPrimitivesBitcoinUtxoRef]
449
+ >;
450
+ /**
451
+ * Reject a pending candidate UTXO and materialize it as an orphan through the locks
452
+ * pallet.
453
+ **/
454
+ rejectUtxoCandidate: AugmentedSubmittable<
455
+ (
456
+ utxoId: u64 | AnyNumber | Uint8Array,
457
+ utxoRef:
458
+ | ArgonPrimitivesBitcoinUtxoRef
459
+ | { txid?: any; outputIndex?: any }
460
+ | string
461
+ | Uint8Array,
462
+ ) => SubmittableExtrinsic<ApiType>,
463
+ [u64, ArgonPrimitivesBitcoinUtxoRef]
464
+ >;
465
+ /**
466
+ * Sets the most recent confirmed bitcoin block height (only executable by the Oracle
467
+ * Operator account)
468
+ *
469
+ * # Arguments
470
+ * * `bitcoin_height` - the latest bitcoin block height to be confirmed
471
+ **/
472
+ setConfirmedBlock: AugmentedSubmittable<
473
+ (
474
+ bitcoinHeight: u64 | AnyNumber | Uint8Array,
475
+ bitcoinBlockHash: ArgonPrimitivesBitcoinH256Le | string | Uint8Array,
476
+ ) => SubmittableExtrinsic<ApiType>,
477
+ [u64, ArgonPrimitivesBitcoinH256Le]
478
+ >;
479
+ /**
480
+ * Sets the oracle operator account id (only executable by the Root account)
481
+ *
482
+ * # Arguments
483
+ * * `account_id` - the account id of the operator
484
+ **/
485
+ setOperator: AugmentedSubmittable<
486
+ (accountId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
487
+ [AccountId32]
488
+ >;
489
+ /**
490
+ * Submitted when a bitcoin UTXO has been moved or confirmed.
491
+ **/
492
+ sync: AugmentedSubmittable<
493
+ (
494
+ utxoSync:
495
+ | ArgonPrimitivesInherentsBitcoinUtxoSync
496
+ | { spent?: any; funded?: any; syncToBlock?: any }
497
+ | string
498
+ | Uint8Array,
499
+ ) => SubmittableExtrinsic<ApiType>,
500
+ [ArgonPrimitivesInherentsBitcoinUtxoSync]
501
+ >;
502
+ };
503
+ blockRewards: {
504
+ setBlockRewardsPaused: AugmentedSubmittable<
505
+ (paused: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>,
506
+ [bool]
507
+ >;
508
+ };
509
+ blockSeal: {
510
+ apply: AugmentedSubmittable<
511
+ (
512
+ seal:
513
+ | ArgonPrimitivesInherentsBlockSealInherent
514
+ | { Vote: any }
515
+ | { Compute: any }
516
+ | string
517
+ | Uint8Array,
518
+ ) => SubmittableExtrinsic<ApiType>,
519
+ [ArgonPrimitivesInherentsBlockSealInherent]
520
+ >;
521
+ };
522
+ blockSealSpec: {
523
+ configure: AugmentedSubmittable<
524
+ (
525
+ voteMinimum: Option<u128> | null | Uint8Array | u128 | AnyNumber,
526
+ computeDifficulty: Option<u128> | null | Uint8Array | u128 | AnyNumber,
527
+ ) => SubmittableExtrinsic<ApiType>,
528
+ [Option<u128>, Option<u128>]
529
+ >;
530
+ };
531
+ crosschainTransfer: {
532
+ approveQueueEntries: AugmentedSubmittable<
533
+ (
534
+ destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
535
+ signatures: Vec<U8aFixed>,
536
+ ) => SubmittableExtrinsic<ApiType>,
537
+ [PalletCrosschainTransferSourceChain, Vec<U8aFixed>]
538
+ >;
539
+ collateralizeTransfer: AugmentedSubmittable<
540
+ (
541
+ transferId: H256 | string | Uint8Array,
542
+ signature: U8aFixed | string | Uint8Array,
543
+ microgonCollateral: Compact<u128> | AnyNumber | Uint8Array,
544
+ micronotCollateral: Compact<u128> | AnyNumber | Uint8Array,
545
+ ) => SubmittableExtrinsic<ApiType>,
546
+ [H256, U8aFixed, Compact<u128>, Compact<u128>]
547
+ >;
548
+ deactivateMintingAuthority: AugmentedSubmittable<
549
+ (
550
+ destinationSigningKey: H160 | string | Uint8Array,
551
+ signature: U8aFixed | string | Uint8Array,
552
+ ) => SubmittableExtrinsic<ApiType>,
553
+ [H160, U8aFixed]
554
+ >;
555
+ forceSetGlobalIssuanceCouncil: AugmentedSubmittable<
556
+ (
557
+ destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
558
+ afterNonce: Compact<u64> | AnyNumber | Uint8Array,
559
+ memberAccountIds: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[],
560
+ ) => SubmittableExtrinsic<ApiType>,
561
+ [PalletCrosschainTransferSourceChain, Compact<u64>, Vec<AccountId32>]
562
+ >;
563
+ pauseGateway: AugmentedSubmittable<
564
+ (
565
+ sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
566
+ ) => SubmittableExtrinsic<ApiType>,
567
+ [PalletCrosschainTransferSourceChain]
568
+ >;
569
+ proveGatewayActivity: AugmentedSubmittable<
570
+ (
571
+ sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
572
+ previousGatewayActivityNonce: Compact<u64> | AnyNumber | Uint8Array,
573
+ proofBatch:
574
+ | ArgonPrimitivesEthereumEthereumReceiptLogProofBatch
575
+ | { executionBlockProof?: any; blocks?: any }
576
+ | string
577
+ | Uint8Array,
578
+ ) => SubmittableExtrinsic<ApiType>,
579
+ [
580
+ PalletCrosschainTransferSourceChain,
581
+ Compact<u64>,
582
+ ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
583
+ ]
584
+ >;
585
+ registerCouncilSigner: AugmentedSubmittable<
586
+ (
587
+ destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
588
+ signingKey: H160 | string | Uint8Array,
589
+ signature: U8aFixed | string | Uint8Array,
590
+ ) => SubmittableExtrinsic<ApiType>,
591
+ [PalletCrosschainTransferSourceChain, H160, U8aFixed]
592
+ >;
593
+ registerMintingAuthority: AugmentedSubmittable<
594
+ (
595
+ destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
596
+ destinationSigningKey: H160 | string | Uint8Array,
597
+ signature: U8aFixed | string | Uint8Array,
598
+ microgonCollateral: Compact<u128> | AnyNumber | Uint8Array,
599
+ micronotCollateral: Compact<u128> | AnyNumber | Uint8Array,
600
+ ) => SubmittableExtrinsic<ApiType>,
601
+ [PalletCrosschainTransferSourceChain, H160, U8aFixed, Compact<u128>, Compact<u128>]
602
+ >;
603
+ setChainConfig: AugmentedSubmittable<
604
+ (
605
+ sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
606
+ config: PalletCrosschainTransferChainConfig | { Evm: any } | string | Uint8Array,
607
+ ) => SubmittableExtrinsic<ApiType>,
608
+ [PalletCrosschainTransferSourceChain, PalletCrosschainTransferChainConfig]
609
+ >;
610
+ setMinimumMintingAuthorityValue: AugmentedSubmittable<
611
+ (
612
+ destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
613
+ minimumValue: Compact<u128> | AnyNumber | Uint8Array,
614
+ ) => SubmittableExtrinsic<ApiType>,
615
+ [PalletCrosschainTransferSourceChain, Compact<u128>]
616
+ >;
617
+ setMintingAuthorityActivationRepaymentPricing: AugmentedSubmittable<
618
+ (
619
+ destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
620
+ pricing:
621
+ | PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing
622
+ | {
623
+ activationGasCost?: any;
624
+ signatureGasCost?: any;
625
+ estimatedWeiPerGas?: any;
626
+ estimatedMicrogonsPerEth?: any;
627
+ }
628
+ | string
629
+ | Uint8Array,
630
+ ) => SubmittableExtrinsic<ApiType>,
631
+ [
632
+ PalletCrosschainTransferSourceChain,
633
+ PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing,
634
+ ]
635
+ >;
636
+ transferOut: AugmentedSubmittable<
637
+ (
638
+ destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
639
+ asset: PalletCrosschainTransferAssetKind | 'Argon' | 'Argonot' | number | Uint8Array,
640
+ destinationAccount: H160 | string | Uint8Array,
641
+ amount: Compact<u128> | AnyNumber | Uint8Array,
642
+ ) => SubmittableExtrinsic<ApiType>,
643
+ [
644
+ PalletCrosschainTransferSourceChain,
645
+ PalletCrosschainTransferAssetKind,
646
+ H160,
647
+ Compact<u128>,
648
+ ]
649
+ >;
650
+ unpauseGateway: AugmentedSubmittable<
651
+ (
652
+ sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
653
+ ) => SubmittableExtrinsic<ApiType>,
654
+ [PalletCrosschainTransferSourceChain]
655
+ >;
656
+ };
657
+ domains: {
658
+ setZoneRecord: AugmentedSubmittable<
659
+ (
660
+ domainHash: H256 | string | Uint8Array,
661
+ zoneRecord:
662
+ | ArgonPrimitivesDomainZoneRecord
663
+ | { paymentAccount?: any; notaryId?: any; versions?: any }
664
+ | string
665
+ | Uint8Array,
666
+ ) => SubmittableExtrinsic<ApiType>,
667
+ [H256, ArgonPrimitivesDomainZoneRecord]
668
+ >;
669
+ };
670
+ ethereumVerifier: {
671
+ /**
672
+ * Used for pallet initialization and light client resetting. Needs to be called by
673
+ * the root origin.
674
+ **/
675
+ forceCheckpoint: AugmentedSubmittable<
676
+ (
677
+ update:
678
+ | PalletEthereumVerifierCheckpointUpdate
679
+ | {
680
+ header?: any;
681
+ currentSyncCommittee?: any;
682
+ currentSyncCommitteeBranch?: any;
683
+ validatorsRoot?: any;
684
+ executionHeaderProof?: any;
685
+ }
686
+ | string
687
+ | Uint8Array,
688
+ forkVersions:
689
+ | PalletEthereumVerifierForkVersions
690
+ | {
691
+ genesis?: any;
692
+ altair?: any;
693
+ bellatrix?: any;
694
+ capella?: any;
695
+ deneb?: any;
696
+ electra?: any;
697
+ fulu?: any;
698
+ }
699
+ | string
700
+ | Uint8Array,
701
+ ) => SubmittableExtrinsic<ApiType>,
702
+ [PalletEthereumVerifierCheckpointUpdate, PalletEthereumVerifierForkVersions]
703
+ >;
704
+ /**
705
+ * Halt or resume all pallet operations. May only be called by root.
706
+ **/
707
+ setOperatingMode: AugmentedSubmittable<
708
+ (
709
+ mode:
710
+ | PalletEthereumVerifierBasicOperatingMode
711
+ | 'Normal'
712
+ | 'Halted'
713
+ | number
714
+ | Uint8Array,
715
+ ) => SubmittableExtrinsic<ApiType>,
716
+ [PalletEthereumVerifierBasicOperatingMode]
717
+ >;
718
+ /**
719
+ * Submits a new finalized beacon header update. The update may contain the next
720
+ * sync committee and an execution header witness for the finalized beacon header it
721
+ * advances.
722
+ **/
723
+ submit: AugmentedSubmittable<
724
+ (
725
+ update:
726
+ | PalletEthereumVerifierUpdate
727
+ | {
728
+ attestedHeader?: any;
729
+ syncAggregate?: any;
730
+ signatureSlot?: any;
731
+ nextSyncCommitteeUpdate?: any;
732
+ finalizedHeader?: any;
733
+ finalityBranch?: any;
734
+ executionHeaderProof?: any;
735
+ }
736
+ | string
737
+ | Uint8Array,
738
+ ) => SubmittableExtrinsic<ApiType>,
739
+ [PalletEthereumVerifierUpdate]
740
+ >;
741
+ };
742
+ grandpa: {
743
+ /**
744
+ * Note that the current authority set of the GRANDPA finality gadget has stalled.
745
+ *
746
+ * This will trigger a forced authority set change at the beginning of the next session, to
747
+ * be enacted `delay` blocks after that. The `delay` should be high enough to safely assume
748
+ * that the block signalling the forced change will not be re-orged e.g. 1000 blocks.
749
+ * The block production rate (which may be slowed down because of finality lagging) should
750
+ * be taken into account when choosing the `delay`. The GRANDPA voters based on the new
751
+ * authority will start voting on top of `best_finalized_block_number` for new finalized
752
+ * blocks. `best_finalized_block_number` should be the highest of the latest finalized
753
+ * block of all validators of the new authority set.
754
+ *
755
+ * Only callable by root.
756
+ **/
757
+ noteStalled: AugmentedSubmittable<
758
+ (
759
+ delay: u32 | AnyNumber | Uint8Array,
760
+ bestFinalizedBlockNumber: u32 | AnyNumber | Uint8Array,
761
+ ) => SubmittableExtrinsic<ApiType>,
762
+ [u32, u32]
763
+ >;
764
+ /**
765
+ * Report voter equivocation/misbehavior. This method will verify the
766
+ * equivocation proof and validate the given key ownership proof
767
+ * against the extracted offender. If both are valid, the offence
768
+ * will be reported.
769
+ **/
770
+ reportEquivocation: AugmentedSubmittable<
771
+ (
772
+ equivocationProof:
773
+ | SpConsensusGrandpaEquivocationProof
774
+ | { setId?: any; equivocation?: any }
775
+ | string
776
+ | Uint8Array,
777
+ keyOwnerProof: SpCoreVoid | null,
778
+ ) => SubmittableExtrinsic<ApiType>,
779
+ [SpConsensusGrandpaEquivocationProof, SpCoreVoid]
780
+ >;
781
+ /**
782
+ * Report voter equivocation/misbehavior. This method will verify the
783
+ * equivocation proof and validate the given key ownership proof
784
+ * against the extracted offender. If both are valid, the offence
785
+ * will be reported.
786
+ *
787
+ * This extrinsic must be called unsigned and it is expected that only
788
+ * block authors will call it (validated in `ValidateUnsigned`), as such
789
+ * if the block author is defined it will be defined as the equivocation
790
+ * reporter.
791
+ **/
792
+ reportEquivocationUnsigned: AugmentedSubmittable<
793
+ (
794
+ equivocationProof:
795
+ | SpConsensusGrandpaEquivocationProof
796
+ | { setId?: any; equivocation?: any }
797
+ | string
798
+ | Uint8Array,
799
+ keyOwnerProof: SpCoreVoid | null,
800
+ ) => SubmittableExtrinsic<ApiType>,
801
+ [SpConsensusGrandpaEquivocationProof, SpCoreVoid]
802
+ >;
803
+ };
804
+ localchainTransfer: {
805
+ sendToLocalchain: AugmentedSubmittable<
806
+ (
807
+ amount: Compact<u128> | AnyNumber | Uint8Array,
808
+ notaryId: u32 | AnyNumber | Uint8Array,
809
+ ) => SubmittableExtrinsic<ApiType>,
810
+ [Compact<u128>, u32]
811
+ >;
812
+ };
813
+ miningSlot: {
814
+ /**
815
+ * Submit a bid for a mining slot in the next cohort. Once all spots are filled in the next
816
+ * cohort, a bidder can be supplanted by supplying a higher bid.
817
+ *
818
+ * Each slot has `MaxCohortSize` spots available.
819
+ *
820
+ * To be eligible for a slot, you must have the required ownership tokens (argonots) in
821
+ * this account. The required amount is calculated as a percentage of the total ownership
822
+ * tokens in the network. This percentage is adjusted before the beginning of each slot.
823
+ *
824
+ * If your bid is no longer winning, a `SlotBidderDropped` event will be emitted. By
825
+ * monitoring for this event, you will be able to ensure your bid is accepted.
826
+ *
827
+ * NOTE: bidding for each slot will be closed at a random block within
828
+ * `mining_config.ticks_before_bid_end_for_vrf_close` blocks of the slot end time.
829
+ *
830
+ * The slot duration can be calculated as `BlocksBetweenSlots * MaxMiners / MaxCohortSize`.
831
+ *
832
+ * Parameters:
833
+ * - `bid`: The amount of argons to bid
834
+ * - `keys`: The session "hot" keys for the slot (BlockSealAuthorityId and GrandpaId).
835
+ * - `mining_account_id`: This account_id allows you to operate as this miner account id,
836
+ * but use funding (argonots and bid) from the submitting account
837
+ **/
838
+ bid: AugmentedSubmittable<
839
+ (
840
+ bid: u128 | AnyNumber | Uint8Array,
841
+ keys:
842
+ | ArgonRuntimeSessionKeys
843
+ | { grandpa?: any; blockSealAuthority?: any }
844
+ | string
845
+ | Uint8Array,
846
+ miningAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string,
847
+ ) => SubmittableExtrinsic<ApiType>,
848
+ [u128, ArgonRuntimeSessionKeys, Option<AccountId32>]
849
+ >;
850
+ /**
851
+ * Admin function to update the mining slot delay.
852
+ **/
853
+ configureMiningSlotDelay: AugmentedSubmittable<
854
+ (
855
+ miningSlotDelay: Option<u64> | null | Uint8Array | u64 | AnyNumber,
856
+ ticksBeforeBidEndForVrfClose: Option<u64> | null | Uint8Array | u64 | AnyNumber,
857
+ ) => SubmittableExtrinsic<ApiType>,
858
+ [Option<u64>, Option<u64>]
859
+ >;
860
+ };
861
+ mint: {};
862
+ multisig: {
863
+ /**
864
+ * Register approval for a dispatch to be made from a deterministic composite account if
865
+ * approved by a total of `threshold - 1` of `other_signatories`.
866
+ *
867
+ * **This function will NEVER execute the call, even if the approval threshold is
868
+ * reached.** It only registers approval. To actually execute the call, `as_multi` must
869
+ * be called with the full call data by any of the signatories.
870
+ *
871
+ * This function is more efficient than `as_multi` for intermediate approvals since it
872
+ * only requires the call hash, not the full call data.
873
+ *
874
+ * Payment: `DepositBase` will be reserved if this is the first approval, plus
875
+ * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
876
+ * is cancelled.
877
+ *
878
+ * The dispatch origin for this call must be _Signed_.
879
+ *
880
+ * - `threshold`: The total number of approvals for this dispatch before it is executed.
881
+ * - `other_signatories`: The accounts (other than the sender) who can approve this
882
+ * dispatch. May not be empty.
883
+ * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
884
+ * not the first approval, then it must be `Some`, with the timepoint (block number and
885
+ * transaction index) of the first approval transaction.
886
+ * - `call_hash`: The hash of the call to be executed.
887
+ *
888
+ * NOTE: To execute the call after approvals are gathered, any signatory must call
889
+ * `as_multi` with the full call data. This function cannot execute the call.
890
+ *
891
+ * ## Complexity
892
+ * - `O(S)`.
893
+ * - Up to one balance-reserve or unreserve operation.
894
+ * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
895
+ * signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
896
+ * - One encode & hash, both of complexity `O(S)`.
897
+ * - Up to one binary search and insert (`O(logS + S)`).
898
+ * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
899
+ * - One event.
900
+ * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
901
+ * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
902
+ **/
903
+ approveAsMulti: AugmentedSubmittable<
904
+ (
905
+ threshold: u16 | AnyNumber | Uint8Array,
906
+ otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[],
907
+ maybeTimepoint:
908
+ | Option<PalletMultisigTimepoint>
909
+ | null
910
+ | Uint8Array
911
+ | PalletMultisigTimepoint
912
+ | { height?: any; index?: any }
913
+ | string,
914
+ callHash: U8aFixed | string | Uint8Array,
915
+ maxWeight:
916
+ | SpWeightsWeightV2Weight
917
+ | { refTime?: any; proofSize?: any }
918
+ | string
919
+ | Uint8Array,
920
+ ) => SubmittableExtrinsic<ApiType>,
921
+ [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, SpWeightsWeightV2Weight]
922
+ >;
923
+ /**
924
+ * Register approval for a dispatch to be made from a deterministic composite account if
925
+ * approved by a total of `threshold - 1` of `other_signatories`.
926
+ *
927
+ * **If the approval threshold is met (including the sender's approval), this will
928
+ * immediately execute the call.** This is the only way to execute a multisig call -
929
+ * `approve_as_multi` will never trigger execution.
930
+ *
931
+ * Payment: `DepositBase` will be reserved if this is the first approval, plus
932
+ * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
933
+ * is cancelled.
934
+ *
935
+ * The dispatch origin for this call must be _Signed_.
936
+ *
937
+ * - `threshold`: The total number of approvals for this dispatch before it is executed.
938
+ * - `other_signatories`: The accounts (other than the sender) who can approve this
939
+ * dispatch. May not be empty.
940
+ * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
941
+ * not the first approval, then it must be `Some`, with the timepoint (block number and
942
+ * transaction index) of the first approval transaction.
943
+ * - `call`: The call to be executed.
944
+ *
945
+ * NOTE: For intermediate approvals (not the final approval), you should generally use
946
+ * `approve_as_multi` instead, since it only requires a hash of the call and is more
947
+ * efficient.
948
+ *
949
+ * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
950
+ * on success, result is `Ok` and the result from the interior call, if it was executed,
951
+ * may be found in the deposited `MultisigExecuted` event.
952
+ *
953
+ * ## Complexity
954
+ * - `O(S + Z + Call)`.
955
+ * - Up to one balance-reserve or unreserve operation.
956
+ * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
957
+ * signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
958
+ * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len.
959
+ * - One encode & hash, both of complexity `O(S)`.
960
+ * - Up to one binary search and insert (`O(logS + S)`).
961
+ * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
962
+ * - One event.
963
+ * - The weight of the `call`.
964
+ * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
965
+ * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
966
+ **/
967
+ asMulti: AugmentedSubmittable<
968
+ (
969
+ threshold: u16 | AnyNumber | Uint8Array,
970
+ otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[],
971
+ maybeTimepoint:
972
+ | Option<PalletMultisigTimepoint>
973
+ | null
974
+ | Uint8Array
975
+ | PalletMultisigTimepoint
976
+ | { height?: any; index?: any }
977
+ | string,
978
+ call: Call | IMethod | string | Uint8Array,
979
+ maxWeight:
980
+ | SpWeightsWeightV2Weight
981
+ | { refTime?: any; proofSize?: any }
982
+ | string
983
+ | Uint8Array,
984
+ ) => SubmittableExtrinsic<ApiType>,
985
+ [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, Call, SpWeightsWeightV2Weight]
986
+ >;
987
+ /**
988
+ * Immediately dispatch a multi-signature call using a single approval from the caller.
989
+ *
990
+ * The dispatch origin for this call must be _Signed_.
991
+ *
992
+ * - `other_signatories`: The accounts (other than the sender) who are part of the
993
+ * multi-signature, but do not participate in the approval process.
994
+ * - `call`: The call to be executed.
995
+ *
996
+ * Result is equivalent to the dispatched result.
997
+ *
998
+ * ## Complexity
999
+ * O(Z + C) where Z is the length of the call and C its execution weight.
1000
+ **/
1001
+ asMultiThreshold1: AugmentedSubmittable<
1002
+ (
1003
+ otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[],
1004
+ call: Call | IMethod | string | Uint8Array,
1005
+ ) => SubmittableExtrinsic<ApiType>,
1006
+ [Vec<AccountId32>, Call]
1007
+ >;
1008
+ /**
1009
+ * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
1010
+ * for this operation will be unreserved on success.
1011
+ *
1012
+ * The dispatch origin for this call must be _Signed_.
1013
+ *
1014
+ * - `threshold`: The total number of approvals for this dispatch before it is executed.
1015
+ * - `other_signatories`: The accounts (other than the sender) who can approve this
1016
+ * dispatch. May not be empty.
1017
+ * - `timepoint`: The timepoint (block number and transaction index) of the first approval
1018
+ * transaction for this dispatch.
1019
+ * - `call_hash`: The hash of the call to be executed.
1020
+ *
1021
+ * ## Complexity
1022
+ * - `O(S)`.
1023
+ * - Up to one balance-reserve or unreserve operation.
1024
+ * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
1025
+ * signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
1026
+ * - One encode & hash, both of complexity `O(S)`.
1027
+ * - One event.
1028
+ * - I/O: 1 read `O(S)`, one remove.
1029
+ * - Storage: removes one item.
1030
+ **/
1031
+ cancelAsMulti: AugmentedSubmittable<
1032
+ (
1033
+ threshold: u16 | AnyNumber | Uint8Array,
1034
+ otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[],
1035
+ timepoint: PalletMultisigTimepoint | { height?: any; index?: any } | string | Uint8Array,
1036
+ callHash: U8aFixed | string | Uint8Array,
1037
+ ) => SubmittableExtrinsic<ApiType>,
1038
+ [u16, Vec<AccountId32>, PalletMultisigTimepoint, U8aFixed]
1039
+ >;
1040
+ /**
1041
+ * Poke the deposit reserved for an existing multisig operation.
1042
+ *
1043
+ * The dispatch origin for this call must be _Signed_ and must be the original depositor of
1044
+ * the multisig operation.
1045
+ *
1046
+ * The transaction fee is waived if the deposit amount has changed.
1047
+ *
1048
+ * - `threshold`: The total number of approvals needed for this multisig.
1049
+ * - `other_signatories`: The accounts (other than the sender) who are part of the
1050
+ * multisig.
1051
+ * - `call_hash`: The hash of the call this deposit is reserved for.
1052
+ *
1053
+ * Emits `DepositPoked` if successful.
1054
+ **/
1055
+ pokeDeposit: AugmentedSubmittable<
1056
+ (
1057
+ threshold: u16 | AnyNumber | Uint8Array,
1058
+ otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[],
1059
+ callHash: U8aFixed | string | Uint8Array,
1060
+ ) => SubmittableExtrinsic<ApiType>,
1061
+ [u16, Vec<AccountId32>, U8aFixed]
1062
+ >;
1063
+ };
1064
+ notaries: {
1065
+ activate: AugmentedSubmittable<
1066
+ (operatorAccount: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
1067
+ [AccountId32]
1068
+ >;
1069
+ propose: AugmentedSubmittable<
1070
+ (
1071
+ meta:
1072
+ | ArgonPrimitivesNotaryNotaryMeta
1073
+ | { name?: any; public?: any; hosts?: any }
1074
+ | string
1075
+ | Uint8Array,
1076
+ ) => SubmittableExtrinsic<ApiType>,
1077
+ [ArgonPrimitivesNotaryNotaryMeta]
1078
+ >;
1079
+ /**
1080
+ * Update the metadata of a notary, to be effective at the given tick height, which must be
1081
+ * >= MetaChangesTickDelay ticks in the future.
1082
+ **/
1083
+ update: AugmentedSubmittable<
1084
+ (
1085
+ notaryId: Compact<u32> | AnyNumber | Uint8Array,
1086
+ meta:
1087
+ | ArgonPrimitivesNotaryNotaryMeta
1088
+ | { name?: any; public?: any; hosts?: any }
1089
+ | string
1090
+ | Uint8Array,
1091
+ effectiveTick: Compact<u64> | AnyNumber | Uint8Array,
1092
+ ) => SubmittableExtrinsic<ApiType>,
1093
+ [Compact<u32>, ArgonPrimitivesNotaryNotaryMeta, Compact<u64>]
1094
+ >;
1095
+ };
1096
+ notebook: {
1097
+ submit: AugmentedSubmittable<
1098
+ (
1099
+ notebooks:
1100
+ | Vec<ArgonPrimitivesNotebookSignedNotebookHeader>
1101
+ | (
1102
+ | ArgonPrimitivesNotebookSignedNotebookHeader
1103
+ | { header?: any; signature?: any }
1104
+ | string
1105
+ | Uint8Array
1106
+ )[],
1107
+ ) => SubmittableExtrinsic<ApiType>,
1108
+ [Vec<ArgonPrimitivesNotebookSignedNotebookHeader>]
1109
+ >;
1110
+ unlock: AugmentedSubmittable<
1111
+ (notaryId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
1112
+ [u32]
1113
+ >;
1114
+ };
1115
+ operationalAccounts: {
1116
+ /**
1117
+ * Activate an eligible operational account from any managed account.
1118
+ **/
1119
+ activate: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1120
+ /**
1121
+ * Claim pending operational rewards to any managed account.
1122
+ **/
1123
+ claimRewards: AugmentedSubmittable<
1124
+ (amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
1125
+ [u128]
1126
+ >;
1127
+ /**
1128
+ * Force-update operational progress markers for an account.
1129
+ **/
1130
+ forceSetProgress: AugmentedSubmittable<
1131
+ (
1132
+ owner: AccountId32 | string | Uint8Array,
1133
+ patch:
1134
+ | PalletOperationalAccountsOperationalProgressPatch
1135
+ | {
1136
+ hasUniswapTransfer?: any;
1137
+ vaultCreated?: any;
1138
+ hasTreasuryPoolParticipation?: any;
1139
+ observedBitcoinTotal?: any;
1140
+ observedMiningSeatTotal?: any;
1141
+ }
1142
+ | string
1143
+ | Uint8Array,
1144
+ updateOperationalProgress: bool | boolean | Uint8Array,
1145
+ ) => SubmittableExtrinsic<ApiType>,
1146
+ [AccountId32, PalletOperationalAccountsOperationalProgressPatch, bool]
1147
+ >;
1148
+ /**
1149
+ * Register vault, mining funding, and bot accounts for an operational account.
1150
+ * Any account in the registration may submit the transaction.
1151
+ * If a referral proof is provided, the registration records the sponsor relationship.
1152
+ **/
1153
+ register: AugmentedSubmittable<
1154
+ (
1155
+ registration: PalletOperationalAccountsRegistration | { V1: any } | string | Uint8Array,
1156
+ ) => SubmittableExtrinsic<ApiType>,
1157
+ [PalletOperationalAccountsRegistration]
1158
+ >;
1159
+ /**
1160
+ * Store an opaque encrypted sponsor server payload for a sponsored operational account.
1161
+ **/
1162
+ setEncryptedServerForSponsee: AugmentedSubmittable<
1163
+ (
1164
+ sponsee: AccountId32 | string | Uint8Array,
1165
+ encryptedServer: Bytes | string | Uint8Array,
1166
+ ) => SubmittableExtrinsic<ApiType>,
1167
+ [AccountId32, Bytes]
1168
+ >;
1169
+ /**
1170
+ * Update reward amounts for operational accounts.
1171
+ **/
1172
+ setRewardConfig: AugmentedSubmittable<
1173
+ (
1174
+ operationalReferralReward: u128 | AnyNumber | Uint8Array,
1175
+ referralBonusReward: u128 | AnyNumber | Uint8Array,
1176
+ ) => SubmittableExtrinsic<ApiType>,
1177
+ [u128, u128]
1178
+ >;
1179
+ };
1180
+ ownership: {
1181
+ /**
1182
+ * Burn the specified liquid free balance from the origin account.
1183
+ *
1184
+ * If the origin's account ends up below the existential deposit as a result
1185
+ * of the burn and `keep_alive` is false, the account will be reaped.
1186
+ *
1187
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
1188
+ * this `burn` operation will reduce total issuance by the amount _burned_.
1189
+ **/
1190
+ burn: AugmentedSubmittable<
1191
+ (
1192
+ value: Compact<u128> | AnyNumber | Uint8Array,
1193
+ keepAlive: bool | boolean | Uint8Array,
1194
+ ) => SubmittableExtrinsic<ApiType>,
1195
+ [Compact<u128>, bool]
1196
+ >;
1197
+ /**
1198
+ * Adjust the total issuance in a saturating way.
1199
+ *
1200
+ * Can only be called by root and always needs a positive `delta`.
1201
+ *
1202
+ * # Example
1203
+ **/
1204
+ forceAdjustTotalIssuance: AugmentedSubmittable<
1205
+ (
1206
+ direction:
1207
+ | PalletBalancesAdjustmentDirection
1208
+ | 'Increase'
1209
+ | 'Decrease'
1210
+ | number
1211
+ | Uint8Array,
1212
+ delta: Compact<u128> | AnyNumber | Uint8Array,
1213
+ ) => SubmittableExtrinsic<ApiType>,
1214
+ [PalletBalancesAdjustmentDirection, Compact<u128>]
1215
+ >;
1216
+ /**
1217
+ * Set the regular balance of a given account.
1218
+ *
1219
+ * The dispatch origin for this call is `root`.
1220
+ **/
1221
+ forceSetBalance: AugmentedSubmittable<
1222
+ (
1223
+ who:
1224
+ | MultiAddress
1225
+ | { Id: any }
1226
+ | { Index: any }
1227
+ | { Raw: any }
1228
+ | { Address32: any }
1229
+ | { Address20: any }
1230
+ | string
1231
+ | Uint8Array,
1232
+ newFree: Compact<u128> | AnyNumber | Uint8Array,
1233
+ ) => SubmittableExtrinsic<ApiType>,
1234
+ [MultiAddress, Compact<u128>]
1235
+ >;
1236
+ /**
1237
+ * Exactly as `transfer_allow_death`, except the origin must be root and the source account
1238
+ * may be specified.
1239
+ **/
1240
+ forceTransfer: AugmentedSubmittable<
1241
+ (
1242
+ source:
1243
+ | MultiAddress
1244
+ | { Id: any }
1245
+ | { Index: any }
1246
+ | { Raw: any }
1247
+ | { Address32: any }
1248
+ | { Address20: any }
1249
+ | string
1250
+ | Uint8Array,
1251
+ dest:
1252
+ | MultiAddress
1253
+ | { Id: any }
1254
+ | { Index: any }
1255
+ | { Raw: any }
1256
+ | { Address32: any }
1257
+ | { Address20: any }
1258
+ | string
1259
+ | Uint8Array,
1260
+ value: Compact<u128> | AnyNumber | Uint8Array,
1261
+ ) => SubmittableExtrinsic<ApiType>,
1262
+ [MultiAddress, MultiAddress, Compact<u128>]
1263
+ >;
1264
+ /**
1265
+ * Unreserve some balance from a user by force.
1266
+ *
1267
+ * Can only be called by ROOT.
1268
+ **/
1269
+ forceUnreserve: AugmentedSubmittable<
1270
+ (
1271
+ who:
1272
+ | MultiAddress
1273
+ | { Id: any }
1274
+ | { Index: any }
1275
+ | { Raw: any }
1276
+ | { Address32: any }
1277
+ | { Address20: any }
1278
+ | string
1279
+ | Uint8Array,
1280
+ amount: u128 | AnyNumber | Uint8Array,
1281
+ ) => SubmittableExtrinsic<ApiType>,
1282
+ [MultiAddress, u128]
1283
+ >;
1284
+ /**
1285
+ * Transfer the entire transferable balance from the caller account.
1286
+ *
1287
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
1288
+ * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
1289
+ * transferred by this function. To ensure that this function results in a killed account,
1290
+ * you might need to prepare the account by removing any reference counters, storage
1291
+ * deposits, etc...
1292
+ *
1293
+ * The dispatch origin of this call must be Signed.
1294
+ *
1295
+ * - `dest`: The recipient of the transfer.
1296
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
1297
+ * of the funds the account has, causing the sender account to be killed (false), or
1298
+ * transfer everything except at least the existential deposit, which will guarantee to
1299
+ * keep the sender account alive (true).
1300
+ **/
1301
+ transferAll: AugmentedSubmittable<
1302
+ (
1303
+ dest:
1304
+ | MultiAddress
1305
+ | { Id: any }
1306
+ | { Index: any }
1307
+ | { Raw: any }
1308
+ | { Address32: any }
1309
+ | { Address20: any }
1310
+ | string
1311
+ | Uint8Array,
1312
+ keepAlive: bool | boolean | Uint8Array,
1313
+ ) => SubmittableExtrinsic<ApiType>,
1314
+ [MultiAddress, bool]
1315
+ >;
1316
+ /**
1317
+ * Transfer some liquid free balance to another account.
1318
+ *
1319
+ * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
1320
+ * If the sender's account is below the existential deposit as a result
1321
+ * of the transfer, the account will be reaped.
1322
+ *
1323
+ * The dispatch origin for this call must be `Signed` by the transactor.
1324
+ **/
1325
+ transferAllowDeath: AugmentedSubmittable<
1326
+ (
1327
+ dest:
1328
+ | MultiAddress
1329
+ | { Id: any }
1330
+ | { Index: any }
1331
+ | { Raw: any }
1332
+ | { Address32: any }
1333
+ | { Address20: any }
1334
+ | string
1335
+ | Uint8Array,
1336
+ value: Compact<u128> | AnyNumber | Uint8Array,
1337
+ ) => SubmittableExtrinsic<ApiType>,
1338
+ [MultiAddress, Compact<u128>]
1339
+ >;
1340
+ /**
1341
+ * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
1342
+ * kill the origin account.
1343
+ *
1344
+ * 99% of the time you want [`transfer_allow_death`] instead.
1345
+ *
1346
+ * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
1347
+ **/
1348
+ transferKeepAlive: AugmentedSubmittable<
1349
+ (
1350
+ dest:
1351
+ | MultiAddress
1352
+ | { Id: any }
1353
+ | { Index: any }
1354
+ | { Raw: any }
1355
+ | { Address32: any }
1356
+ | { Address20: any }
1357
+ | string
1358
+ | Uint8Array,
1359
+ value: Compact<u128> | AnyNumber | Uint8Array,
1360
+ ) => SubmittableExtrinsic<ApiType>,
1361
+ [MultiAddress, Compact<u128>]
1362
+ >;
1363
+ /**
1364
+ * Upgrade a specified account.
1365
+ *
1366
+ * - `origin`: Must be `Signed`.
1367
+ * - `who`: The account to be upgraded.
1368
+ *
1369
+ * This will waive the transaction fee if at least all but 10% of the accounts needed to
1370
+ * be upgraded. (We let some not have to be upgraded just in order to allow for the
1371
+ * possibility of churn).
1372
+ **/
1373
+ upgradeAccounts: AugmentedSubmittable<
1374
+ (
1375
+ who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[],
1376
+ ) => SubmittableExtrinsic<ApiType>,
1377
+ [Vec<AccountId32>]
1378
+ >;
1379
+ };
1380
+ priceIndex: {
1381
+ /**
1382
+ * Sets the operator account id (only executable by the Root account)
1383
+ *
1384
+ * # Arguments
1385
+ * * `account_id` - the account id of the operator
1386
+ **/
1387
+ setOperator: AugmentedSubmittable<
1388
+ (accountId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
1389
+ [AccountId32]
1390
+ >;
1391
+ /**
1392
+ * Submit the latest price index. Only valid for the configured operator account
1393
+ **/
1394
+ submit: AugmentedSubmittable<
1395
+ (
1396
+ index:
1397
+ | PalletPriceIndexPriceIndex
1398
+ | {
1399
+ btcUsdPrice?: any;
1400
+ argonotUsdPrice?: any;
1401
+ argonUsdPrice?: any;
1402
+ argonUsdTargetPrice?: any;
1403
+ argonTimeWeightedAverageLiquidity?: any;
1404
+ tick?: any;
1405
+ }
1406
+ | string
1407
+ | Uint8Array,
1408
+ ) => SubmittableExtrinsic<ApiType>,
1409
+ [PalletPriceIndexPriceIndex]
1410
+ >;
1411
+ };
1412
+ proxy: {
1413
+ /**
1414
+ * Register a proxy account for the sender that is able to make calls on its behalf.
1415
+ *
1416
+ * The dispatch origin for this call must be _Signed_.
1417
+ *
1418
+ * Parameters:
1419
+ * - `proxy`: The account that the `caller` would like to make a proxy.
1420
+ * - `proxy_type`: The permissions allowed for this proxy account.
1421
+ * - `delay`: The announcement period required of the initial proxy. Will generally be
1422
+ * zero.
1423
+ **/
1424
+ addProxy: AugmentedSubmittable<
1425
+ (
1426
+ delegate:
1427
+ | MultiAddress
1428
+ | { Id: any }
1429
+ | { Index: any }
1430
+ | { Raw: any }
1431
+ | { Address32: any }
1432
+ | { Address20: any }
1433
+ | string
1434
+ | Uint8Array,
1435
+ proxyType:
1436
+ | ArgonRuntimeProxyType
1437
+ | 'Any'
1438
+ | 'NonTransfer'
1439
+ | 'PriceIndex'
1440
+ | 'MiningBid'
1441
+ | 'MiningBidRealPaysFee'
1442
+ | 'Bitcoin'
1443
+ | 'VaultAdmin'
1444
+ | 'BitcoinInitializeFor'
1445
+ | number
1446
+ | Uint8Array,
1447
+ delay: u32 | AnyNumber | Uint8Array,
1448
+ ) => SubmittableExtrinsic<ApiType>,
1449
+ [MultiAddress, ArgonRuntimeProxyType, u32]
1450
+ >;
1451
+ /**
1452
+ * Publish the hash of a proxy-call that will be made in the future.
1453
+ *
1454
+ * This must be called some number of blocks before the corresponding `proxy` is attempted
1455
+ * if the delay associated with the proxy relationship is greater than zero.
1456
+ *
1457
+ * No more than `MaxPending` announcements may be made at any one time.
1458
+ *
1459
+ * This will take a deposit of `AnnouncementDepositFactor` as well as
1460
+ * `AnnouncementDepositBase` if there are no other pending announcements.
1461
+ *
1462
+ * The dispatch origin for this call must be _Signed_ and a proxy of `real`.
1463
+ *
1464
+ * Parameters:
1465
+ * - `real`: The account that the proxy will make a call on behalf of.
1466
+ * - `call_hash`: The hash of the call to be made by the `real` account.
1467
+ **/
1468
+ announce: AugmentedSubmittable<
1469
+ (
1470
+ real:
1471
+ | MultiAddress
1472
+ | { Id: any }
1473
+ | { Index: any }
1474
+ | { Raw: any }
1475
+ | { Address32: any }
1476
+ | { Address20: any }
1477
+ | string
1478
+ | Uint8Array,
1479
+ callHash: H256 | string | Uint8Array,
1480
+ ) => SubmittableExtrinsic<ApiType>,
1481
+ [MultiAddress, H256]
1482
+ >;
1483
+ /**
1484
+ * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
1485
+ * initialize it with a proxy of `proxy_type` for `origin` sender.
1486
+ *
1487
+ * Requires a `Signed` origin.
1488
+ *
1489
+ * - `proxy_type`: The type of the proxy that the sender will be registered as over the
1490
+ * new account. This will almost always be the most permissive `ProxyType` possible to
1491
+ * allow for maximum flexibility.
1492
+ * - `index`: A disambiguation index, in case this is called multiple times in the same
1493
+ * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just
1494
+ * want to use `0`.
1495
+ * - `delay`: The announcement period required of the initial proxy. Will generally be
1496
+ * zero.
1497
+ *
1498
+ * Fails with `Duplicate` if this has already been called in this transaction, from the
1499
+ * same sender, with the same parameters.
1500
+ *
1501
+ * Fails if there are insufficient funds to pay for deposit.
1502
+ **/
1503
+ createPure: AugmentedSubmittable<
1504
+ (
1505
+ proxyType:
1506
+ | ArgonRuntimeProxyType
1507
+ | 'Any'
1508
+ | 'NonTransfer'
1509
+ | 'PriceIndex'
1510
+ | 'MiningBid'
1511
+ | 'MiningBidRealPaysFee'
1512
+ | 'Bitcoin'
1513
+ | 'VaultAdmin'
1514
+ | 'BitcoinInitializeFor'
1515
+ | number
1516
+ | Uint8Array,
1517
+ delay: u32 | AnyNumber | Uint8Array,
1518
+ index: u16 | AnyNumber | Uint8Array,
1519
+ ) => SubmittableExtrinsic<ApiType>,
1520
+ [ArgonRuntimeProxyType, u32, u16]
1521
+ >;
1522
+ /**
1523
+ * Removes a previously spawned pure proxy.
1524
+ *
1525
+ * WARNING: **All access to this account will be lost.** Any funds held in it will be
1526
+ * inaccessible.
1527
+ *
1528
+ * Requires a `Signed` origin, and the sender account must have been created by a call to
1529
+ * `create_pure` with corresponding parameters.
1530
+ *
1531
+ * - `spawner`: The account that originally called `create_pure` to create this account.
1532
+ * - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
1533
+ * - `proxy_type`: The proxy type originally passed to `create_pure`.
1534
+ * - `height`: The height of the chain when the call to `create_pure` was processed.
1535
+ * - `ext_index`: The extrinsic index in which the call to `create_pure` was processed.
1536
+ *
1537
+ * Fails with `NoPermission` in case the caller is not a previously created pure
1538
+ * account whose `create_pure` call has corresponding parameters.
1539
+ **/
1540
+ killPure: AugmentedSubmittable<
1541
+ (
1542
+ spawner:
1543
+ | MultiAddress
1544
+ | { Id: any }
1545
+ | { Index: any }
1546
+ | { Raw: any }
1547
+ | { Address32: any }
1548
+ | { Address20: any }
1549
+ | string
1550
+ | Uint8Array,
1551
+ proxyType:
1552
+ | ArgonRuntimeProxyType
1553
+ | 'Any'
1554
+ | 'NonTransfer'
1555
+ | 'PriceIndex'
1556
+ | 'MiningBid'
1557
+ | 'MiningBidRealPaysFee'
1558
+ | 'Bitcoin'
1559
+ | 'VaultAdmin'
1560
+ | 'BitcoinInitializeFor'
1561
+ | number
1562
+ | Uint8Array,
1563
+ index: u16 | AnyNumber | Uint8Array,
1564
+ height: Compact<u32> | AnyNumber | Uint8Array,
1565
+ extIndex: Compact<u32> | AnyNumber | Uint8Array,
1566
+ ) => SubmittableExtrinsic<ApiType>,
1567
+ [MultiAddress, ArgonRuntimeProxyType, u16, Compact<u32>, Compact<u32>]
1568
+ >;
1569
+ /**
1570
+ * Poke / Adjust deposits made for proxies and announcements based on current values.
1571
+ * This can be used by accounts to possibly lower their locked amount.
1572
+ *
1573
+ * The dispatch origin for this call must be _Signed_.
1574
+ *
1575
+ * The transaction fee is waived if the deposit amount has changed.
1576
+ *
1577
+ * Emits `DepositPoked` if successful.
1578
+ **/
1579
+ pokeDeposit: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1580
+ /**
1581
+ * Dispatch the given `call` from an account that the sender is authorised for through
1582
+ * `add_proxy`.
1583
+ *
1584
+ * The dispatch origin for this call must be _Signed_.
1585
+ *
1586
+ * Parameters:
1587
+ * - `real`: The account that the proxy will make a call on behalf of.
1588
+ * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
1589
+ * - `call`: The call to be made by the `real` account.
1590
+ **/
1591
+ proxy: AugmentedSubmittable<
1592
+ (
1593
+ real:
1594
+ | MultiAddress
1595
+ | { Id: any }
1596
+ | { Index: any }
1597
+ | { Raw: any }
1598
+ | { Address32: any }
1599
+ | { Address20: any }
1600
+ | string
1601
+ | Uint8Array,
1602
+ forceProxyType:
1603
+ | Option<ArgonRuntimeProxyType>
1604
+ | null
1605
+ | Uint8Array
1606
+ | ArgonRuntimeProxyType
1607
+ | 'Any'
1608
+ | 'NonTransfer'
1609
+ | 'PriceIndex'
1610
+ | 'MiningBid'
1611
+ | 'MiningBidRealPaysFee'
1612
+ | 'Bitcoin'
1613
+ | 'VaultAdmin'
1614
+ | 'BitcoinInitializeFor'
1615
+ | number,
1616
+ call: Call | IMethod | string | Uint8Array,
1617
+ ) => SubmittableExtrinsic<ApiType>,
1618
+ [MultiAddress, Option<ArgonRuntimeProxyType>, Call]
1619
+ >;
1620
+ /**
1621
+ * Dispatch the given `call` from an account that the sender is authorized for through
1622
+ * `add_proxy`.
1623
+ *
1624
+ * Removes any corresponding announcement(s).
1625
+ *
1626
+ * The dispatch origin for this call must be _Signed_.
1627
+ *
1628
+ * Parameters:
1629
+ * - `real`: The account that the proxy will make a call on behalf of.
1630
+ * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
1631
+ * - `call`: The call to be made by the `real` account.
1632
+ **/
1633
+ proxyAnnounced: AugmentedSubmittable<
1634
+ (
1635
+ delegate:
1636
+ | MultiAddress
1637
+ | { Id: any }
1638
+ | { Index: any }
1639
+ | { Raw: any }
1640
+ | { Address32: any }
1641
+ | { Address20: any }
1642
+ | string
1643
+ | Uint8Array,
1644
+ real:
1645
+ | MultiAddress
1646
+ | { Id: any }
1647
+ | { Index: any }
1648
+ | { Raw: any }
1649
+ | { Address32: any }
1650
+ | { Address20: any }
1651
+ | string
1652
+ | Uint8Array,
1653
+ forceProxyType:
1654
+ | Option<ArgonRuntimeProxyType>
1655
+ | null
1656
+ | Uint8Array
1657
+ | ArgonRuntimeProxyType
1658
+ | 'Any'
1659
+ | 'NonTransfer'
1660
+ | 'PriceIndex'
1661
+ | 'MiningBid'
1662
+ | 'MiningBidRealPaysFee'
1663
+ | 'Bitcoin'
1664
+ | 'VaultAdmin'
1665
+ | 'BitcoinInitializeFor'
1666
+ | number,
1667
+ call: Call | IMethod | string | Uint8Array,
1668
+ ) => SubmittableExtrinsic<ApiType>,
1669
+ [MultiAddress, MultiAddress, Option<ArgonRuntimeProxyType>, Call]
1670
+ >;
1671
+ /**
1672
+ * Remove the given announcement of a delegate.
1673
+ *
1674
+ * May be called by a target (proxied) account to remove a call that one of their delegates
1675
+ * (`delegate`) has announced they want to execute. The deposit is returned.
1676
+ *
1677
+ * The dispatch origin for this call must be _Signed_.
1678
+ *
1679
+ * Parameters:
1680
+ * - `delegate`: The account that previously announced the call.
1681
+ * - `call_hash`: The hash of the call to be made.
1682
+ **/
1683
+ rejectAnnouncement: AugmentedSubmittable<
1684
+ (
1685
+ delegate:
1686
+ | MultiAddress
1687
+ | { Id: any }
1688
+ | { Index: any }
1689
+ | { Raw: any }
1690
+ | { Address32: any }
1691
+ | { Address20: any }
1692
+ | string
1693
+ | Uint8Array,
1694
+ callHash: H256 | string | Uint8Array,
1695
+ ) => SubmittableExtrinsic<ApiType>,
1696
+ [MultiAddress, H256]
1697
+ >;
1698
+ /**
1699
+ * Remove a given announcement.
1700
+ *
1701
+ * May be called by a proxy account to remove a call they previously announced and return
1702
+ * the deposit.
1703
+ *
1704
+ * The dispatch origin for this call must be _Signed_.
1705
+ *
1706
+ * Parameters:
1707
+ * - `real`: The account that the proxy will make a call on behalf of.
1708
+ * - `call_hash`: The hash of the call to be made by the `real` account.
1709
+ **/
1710
+ removeAnnouncement: AugmentedSubmittable<
1711
+ (
1712
+ real:
1713
+ | MultiAddress
1714
+ | { Id: any }
1715
+ | { Index: any }
1716
+ | { Raw: any }
1717
+ | { Address32: any }
1718
+ | { Address20: any }
1719
+ | string
1720
+ | Uint8Array,
1721
+ callHash: H256 | string | Uint8Array,
1722
+ ) => SubmittableExtrinsic<ApiType>,
1723
+ [MultiAddress, H256]
1724
+ >;
1725
+ /**
1726
+ * Unregister all proxy accounts for the sender.
1727
+ *
1728
+ * The dispatch origin for this call must be _Signed_.
1729
+ *
1730
+ * WARNING: This may be called on accounts created by `create_pure`, however if done, then
1731
+ * the unreserved fees will be inaccessible. **All access to this account will be lost.**
1732
+ **/
1733
+ removeProxies: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1734
+ /**
1735
+ * Unregister a proxy account for the sender.
1736
+ *
1737
+ * The dispatch origin for this call must be _Signed_.
1738
+ *
1739
+ * Parameters:
1740
+ * - `proxy`: The account that the `caller` would like to remove as a proxy.
1741
+ * - `proxy_type`: The permissions currently enabled for the removed proxy account.
1742
+ **/
1743
+ removeProxy: AugmentedSubmittable<
1744
+ (
1745
+ delegate:
1746
+ | MultiAddress
1747
+ | { Id: any }
1748
+ | { Index: any }
1749
+ | { Raw: any }
1750
+ | { Address32: any }
1751
+ | { Address20: any }
1752
+ | string
1753
+ | Uint8Array,
1754
+ proxyType:
1755
+ | ArgonRuntimeProxyType
1756
+ | 'Any'
1757
+ | 'NonTransfer'
1758
+ | 'PriceIndex'
1759
+ | 'MiningBid'
1760
+ | 'MiningBidRealPaysFee'
1761
+ | 'Bitcoin'
1762
+ | 'VaultAdmin'
1763
+ | 'BitcoinInitializeFor'
1764
+ | number
1765
+ | Uint8Array,
1766
+ delay: u32 | AnyNumber | Uint8Array,
1767
+ ) => SubmittableExtrinsic<ApiType>,
1768
+ [MultiAddress, ArgonRuntimeProxyType, u32]
1769
+ >;
1770
+ };
1771
+ sudo: {
1772
+ /**
1773
+ * Permanently removes the sudo key.
1774
+ *
1775
+ * **This cannot be un-done.**
1776
+ **/
1777
+ removeKey: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1778
+ /**
1779
+ * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo
1780
+ * key.
1781
+ **/
1782
+ setKey: AugmentedSubmittable<
1783
+ (
1784
+ updated:
1785
+ | MultiAddress
1786
+ | { Id: any }
1787
+ | { Index: any }
1788
+ | { Raw: any }
1789
+ | { Address32: any }
1790
+ | { Address20: any }
1791
+ | string
1792
+ | Uint8Array,
1793
+ ) => SubmittableExtrinsic<ApiType>,
1794
+ [MultiAddress]
1795
+ >;
1796
+ /**
1797
+ * Authenticates the sudo key and dispatches a function call with `Root` origin.
1798
+ **/
1799
+ sudo: AugmentedSubmittable<
1800
+ (call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
1801
+ [Call]
1802
+ >;
1803
+ /**
1804
+ * Authenticates the sudo key and dispatches a function call with `Signed` origin from
1805
+ * a given account.
1806
+ *
1807
+ * The dispatch origin for this call must be _Signed_.
1808
+ **/
1809
+ sudoAs: AugmentedSubmittable<
1810
+ (
1811
+ who:
1812
+ | MultiAddress
1813
+ | { Id: any }
1814
+ | { Index: any }
1815
+ | { Raw: any }
1816
+ | { Address32: any }
1817
+ | { Address20: any }
1818
+ | string
1819
+ | Uint8Array,
1820
+ call: Call | IMethod | string | Uint8Array,
1821
+ ) => SubmittableExtrinsic<ApiType>,
1822
+ [MultiAddress, Call]
1823
+ >;
1824
+ /**
1825
+ * Authenticates the sudo key and dispatches a function call with `Root` origin.
1826
+ * This function does not check the weight of the call, and instead allows the
1827
+ * Sudo user to specify the weight of the call.
1828
+ *
1829
+ * The dispatch origin for this call must be _Signed_.
1830
+ **/
1831
+ sudoUncheckedWeight: AugmentedSubmittable<
1832
+ (
1833
+ call: Call | IMethod | string | Uint8Array,
1834
+ weight:
1835
+ | SpWeightsWeightV2Weight
1836
+ | { refTime?: any; proofSize?: any }
1837
+ | string
1838
+ | Uint8Array,
1839
+ ) => SubmittableExtrinsic<ApiType>,
1840
+ [Call, SpWeightsWeightV2Weight]
1841
+ >;
1842
+ };
1843
+ system: {
1844
+ /**
1845
+ * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
1846
+ *
1847
+ * If the authorization required a version check, this call will ensure the spec name
1848
+ * remains unchanged and that the spec version has increased.
1849
+ *
1850
+ * Depending on the runtime's `OnSetCode` configuration, this function may directly apply
1851
+ * the new `code` in the same block or attempt to schedule the upgrade.
1852
+ *
1853
+ * All origins are allowed.
1854
+ **/
1855
+ applyAuthorizedUpgrade: AugmentedSubmittable<
1856
+ (code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
1857
+ [Bytes]
1858
+ >;
1859
+ /**
1860
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
1861
+ * later.
1862
+ *
1863
+ * This call requires Root origin.
1864
+ **/
1865
+ authorizeUpgrade: AugmentedSubmittable<
1866
+ (codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
1867
+ [H256]
1868
+ >;
1869
+ /**
1870
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
1871
+ * later.
1872
+ *
1873
+ * WARNING: This authorizes an upgrade that will take place without any safety checks, for
1874
+ * example that the spec name remains the same and that the version number increases. Not
1875
+ * recommended for normal use. Use `authorize_upgrade` instead.
1876
+ *
1877
+ * This call requires Root origin.
1878
+ **/
1879
+ authorizeUpgradeWithoutChecks: AugmentedSubmittable<
1880
+ (codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
1881
+ [H256]
1882
+ >;
1883
+ /**
1884
+ * Kill all storage items with a key that starts with the given prefix.
1885
+ *
1886
+ * **NOTE:** We rely on the Root origin to provide us the number of subkeys under
1887
+ * the prefix we are removing to accurately calculate the weight of this function.
1888
+ **/
1889
+ killPrefix: AugmentedSubmittable<
1890
+ (
1891
+ prefix: Bytes | string | Uint8Array,
1892
+ subkeys: u32 | AnyNumber | Uint8Array,
1893
+ ) => SubmittableExtrinsic<ApiType>,
1894
+ [Bytes, u32]
1895
+ >;
1896
+ /**
1897
+ * Kill some items from storage.
1898
+ **/
1899
+ killStorage: AugmentedSubmittable<
1900
+ (keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>,
1901
+ [Vec<Bytes>]
1902
+ >;
1903
+ /**
1904
+ * Make some on-chain remark.
1905
+ *
1906
+ * Can be executed by every `origin`.
1907
+ **/
1908
+ remark: AugmentedSubmittable<
1909
+ (remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
1910
+ [Bytes]
1911
+ >;
1912
+ /**
1913
+ * Make some on-chain remark and emit event.
1914
+ **/
1915
+ remarkWithEvent: AugmentedSubmittable<
1916
+ (remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
1917
+ [Bytes]
1918
+ >;
1919
+ /**
1920
+ * Set the new runtime code.
1921
+ **/
1922
+ setCode: AugmentedSubmittable<
1923
+ (code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
1924
+ [Bytes]
1925
+ >;
1926
+ /**
1927
+ * Set the new runtime code without doing any checks of the given `code`.
1928
+ *
1929
+ * Note that runtime upgrades will not run if this is called with a not-increasing spec
1930
+ * version!
1931
+ **/
1932
+ setCodeWithoutChecks: AugmentedSubmittable<
1933
+ (code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
1934
+ [Bytes]
1935
+ >;
1936
+ /**
1937
+ * Set the number of pages in the WebAssembly environment's heap.
1938
+ **/
1939
+ setHeapPages: AugmentedSubmittable<
1940
+ (pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
1941
+ [u64]
1942
+ >;
1943
+ /**
1944
+ * Set some items of storage.
1945
+ **/
1946
+ setStorage: AugmentedSubmittable<
1947
+ (
1948
+ items:
1949
+ | Vec<ITuple<[Bytes, Bytes]>>
1950
+ | [Bytes | string | Uint8Array, Bytes | string | Uint8Array][],
1951
+ ) => SubmittableExtrinsic<ApiType>,
1952
+ [Vec<ITuple<[Bytes, Bytes]>>]
1953
+ >;
1954
+ };
1955
+ ticks: {};
1956
+ timestamp: {
1957
+ /**
1958
+ * Set the current time.
1959
+ *
1960
+ * This call should be invoked exactly once per block. It will panic at the finalization
1961
+ * phase, if this call hasn't been invoked by that time.
1962
+ *
1963
+ * The timestamp should be greater than the previous one by the amount specified by
1964
+ * [`Config::MinimumPeriod`].
1965
+ *
1966
+ * The dispatch origin for this call must be _None_.
1967
+ *
1968
+ * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware
1969
+ * that changing the complexity of this call could result exhausting the resources in a
1970
+ * block to execute any other calls.
1971
+ *
1972
+ * ## Complexity
1973
+ * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
1974
+ * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in
1975
+ * `on_finalize`)
1976
+ * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
1977
+ **/
1978
+ set: AugmentedSubmittable<
1979
+ (now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
1980
+ [Compact<u64>]
1981
+ >;
1982
+ };
1983
+ treasury: {
1984
+ /**
1985
+ * Buy whole `1 ARGON` bonds for a vault.
1986
+ *
1987
+ * The purchase either enters the accepted list or fails.
1988
+ **/
1989
+ buyBonds: AugmentedSubmittable<
1990
+ (
1991
+ vaultId: u32 | AnyNumber | Uint8Array,
1992
+ bonds: u32 | AnyNumber | Uint8Array,
1993
+ ) => SubmittableExtrinsic<ApiType>,
1994
+ [u32, u32]
1995
+ >;
1996
+ /**
1997
+ * Liquidate one full bond lot.
1998
+ *
1999
+ * The lot stops participating right away and is released after the delay.
2000
+ **/
2001
+ liquidateBondLot: AugmentedSubmittable<
2002
+ (bondLotId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2003
+ [u64]
2004
+ >;
2005
+ };
2006
+ txPause: {
2007
+ /**
2008
+ * Pause a call.
2009
+ *
2010
+ * Can only be called by [`Config::PauseOrigin`].
2011
+ * Emits an [`Event::CallPaused`] event on success.
2012
+ **/
2013
+ pause: AugmentedSubmittable<
2014
+ (
2015
+ fullName:
2016
+ | ITuple<[Bytes, Bytes]>
2017
+ | [Bytes | string | Uint8Array, Bytes | string | Uint8Array],
2018
+ ) => SubmittableExtrinsic<ApiType>,
2019
+ [ITuple<[Bytes, Bytes]>]
2020
+ >;
2021
+ /**
2022
+ * Un-pause a call.
2023
+ *
2024
+ * Can only be called by [`Config::UnpauseOrigin`].
2025
+ * Emits an [`Event::CallUnpaused`] event on success.
2026
+ **/
2027
+ unpause: AugmentedSubmittable<
2028
+ (
2029
+ ident:
2030
+ | ITuple<[Bytes, Bytes]>
2031
+ | [Bytes | string | Uint8Array, Bytes | string | Uint8Array],
2032
+ ) => SubmittableExtrinsic<ApiType>,
2033
+ [ITuple<[Bytes, Bytes]>]
2034
+ >;
2035
+ };
2036
+ utility: {
2037
+ /**
2038
+ * Send a call through an indexed pseudonym of the sender.
2039
+ *
2040
+ * Filter from origin are passed along. The call will be dispatched with an origin which
2041
+ * use the same filter as the origin of this call.
2042
+ *
2043
+ * NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
2044
+ * because you expect `proxy` to have been used prior in the call stack and you do not want
2045
+ * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
2046
+ * in the Multisig pallet instead.
2047
+ *
2048
+ * NOTE: Prior to version *12, this was called `as_limited_sub`.
2049
+ *
2050
+ * The dispatch origin for this call must be _Signed_.
2051
+ **/
2052
+ asDerivative: AugmentedSubmittable<
2053
+ (
2054
+ index: u16 | AnyNumber | Uint8Array,
2055
+ call: Call | IMethod | string | Uint8Array,
2056
+ ) => SubmittableExtrinsic<ApiType>,
2057
+ [u16, Call]
2058
+ >;
2059
+ /**
2060
+ * Send a batch of dispatch calls.
2061
+ *
2062
+ * May be called from any origin except `None`.
2063
+ *
2064
+ * - `calls`: The calls to be dispatched from the same origin. The number of call must not
2065
+ * exceed the constant: `batched_calls_limit` (available in constant metadata).
2066
+ *
2067
+ * If origin is root then the calls are dispatched without checking origin filter. (This
2068
+ * includes bypassing `frame_system::Config::BaseCallFilter`).
2069
+ *
2070
+ * ## Complexity
2071
+ * - O(C) where C is the number of calls to be batched.
2072
+ *
2073
+ * This will return `Ok` in all circumstances. To determine the success of the batch, an
2074
+ * event is deposited. If a call failed and the batch was interrupted, then the
2075
+ * `BatchInterrupted` event is deposited, along with the number of successful calls made
2076
+ * and the error of the failed call. If all were successful, then the `BatchCompleted`
2077
+ * event is deposited.
2078
+ **/
2079
+ batch: AugmentedSubmittable<
2080
+ (
2081
+ calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[],
2082
+ ) => SubmittableExtrinsic<ApiType>,
2083
+ [Vec<Call>]
2084
+ >;
2085
+ /**
2086
+ * Send a batch of dispatch calls and atomically execute them.
2087
+ * The whole transaction will rollback and fail if any of the calls failed.
2088
+ *
2089
+ * May be called from any origin except `None`.
2090
+ *
2091
+ * - `calls`: The calls to be dispatched from the same origin. The number of call must not
2092
+ * exceed the constant: `batched_calls_limit` (available in constant metadata).
2093
+ *
2094
+ * If origin is root then the calls are dispatched without checking origin filter. (This
2095
+ * includes bypassing `frame_system::Config::BaseCallFilter`).
2096
+ *
2097
+ * ## Complexity
2098
+ * - O(C) where C is the number of calls to be batched.
2099
+ **/
2100
+ batchAll: AugmentedSubmittable<
2101
+ (
2102
+ calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[],
2103
+ ) => SubmittableExtrinsic<ApiType>,
2104
+ [Vec<Call>]
2105
+ >;
2106
+ /**
2107
+ * Dispatches a function call with a provided origin.
2108
+ *
2109
+ * The dispatch origin for this call must be _Root_.
2110
+ *
2111
+ * ## Complexity
2112
+ * - O(1).
2113
+ **/
2114
+ dispatchAs: AugmentedSubmittable<
2115
+ (
2116
+ asOrigin: ArgonRuntimeOriginCaller | { system: any } | string | Uint8Array,
2117
+ call: Call | IMethod | string | Uint8Array,
2118
+ ) => SubmittableExtrinsic<ApiType>,
2119
+ [ArgonRuntimeOriginCaller, Call]
2120
+ >;
2121
+ /**
2122
+ * Dispatches a function call with a provided origin.
2123
+ *
2124
+ * Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
2125
+ *
2126
+ * The dispatch origin for this call must be _Root_.
2127
+ **/
2128
+ dispatchAsFallible: AugmentedSubmittable<
2129
+ (
2130
+ asOrigin: ArgonRuntimeOriginCaller | { system: any } | string | Uint8Array,
2131
+ call: Call | IMethod | string | Uint8Array,
2132
+ ) => SubmittableExtrinsic<ApiType>,
2133
+ [ArgonRuntimeOriginCaller, Call]
2134
+ >;
2135
+ /**
2136
+ * Send a batch of dispatch calls.
2137
+ * Unlike `batch`, it allows errors and won't interrupt.
2138
+ *
2139
+ * May be called from any origin except `None`.
2140
+ *
2141
+ * - `calls`: The calls to be dispatched from the same origin. The number of call must not
2142
+ * exceed the constant: `batched_calls_limit` (available in constant metadata).
2143
+ *
2144
+ * If origin is root then the calls are dispatch without checking origin filter. (This
2145
+ * includes bypassing `frame_system::Config::BaseCallFilter`).
2146
+ *
2147
+ * ## Complexity
2148
+ * - O(C) where C is the number of calls to be batched.
2149
+ **/
2150
+ forceBatch: AugmentedSubmittable<
2151
+ (
2152
+ calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[],
2153
+ ) => SubmittableExtrinsic<ApiType>,
2154
+ [Vec<Call>]
2155
+ >;
2156
+ /**
2157
+ * Dispatch a fallback call in the event the main call fails to execute.
2158
+ * May be called from any origin except `None`.
2159
+ *
2160
+ * This function first attempts to dispatch the `main` call.
2161
+ * If the `main` call fails, the `fallback` is attemted.
2162
+ * if the fallback is successfully dispatched, the weights of both calls
2163
+ * are accumulated and an event containing the main call error is deposited.
2164
+ *
2165
+ * In the event of a fallback failure the whole call fails
2166
+ * with the weights returned.
2167
+ *
2168
+ * - `main`: The main call to be dispatched. This is the primary action to execute.
2169
+ * - `fallback`: The fallback call to be dispatched in case the `main` call fails.
2170
+ *
2171
+ * ## Dispatch Logic
2172
+ * - If the origin is `root`, both the main and fallback calls are executed without
2173
+ * applying any origin filters.
2174
+ * - If the origin is not `root`, the origin filter is applied to both the `main` and
2175
+ * `fallback` calls.
2176
+ *
2177
+ * ## Use Case
2178
+ * - Some use cases might involve submitting a `batch` type call in either main, fallback
2179
+ * or both.
2180
+ **/
2181
+ ifElse: AugmentedSubmittable<
2182
+ (
2183
+ main: Call | IMethod | string | Uint8Array,
2184
+ fallback: Call | IMethod | string | Uint8Array,
2185
+ ) => SubmittableExtrinsic<ApiType>,
2186
+ [Call, Call]
2187
+ >;
2188
+ /**
2189
+ * Dispatch a function call with a specified weight.
2190
+ *
2191
+ * This function does not check the weight of the call, and instead allows the
2192
+ * Root origin to specify the weight of the call.
2193
+ *
2194
+ * The dispatch origin for this call must be _Root_.
2195
+ **/
2196
+ withWeight: AugmentedSubmittable<
2197
+ (
2198
+ call: Call | IMethod | string | Uint8Array,
2199
+ weight:
2200
+ | SpWeightsWeightV2Weight
2201
+ | { refTime?: any; proofSize?: any }
2202
+ | string
2203
+ | Uint8Array,
2204
+ ) => SubmittableExtrinsic<ApiType>,
2205
+ [Call, SpWeightsWeightV2Weight]
2206
+ >;
2207
+ };
2208
+ vaults: {
2209
+ /**
2210
+ * Stop offering additional bitcoin locks from this vault. Will not affect existing
2211
+ * locks. As funds are returned, they will be released to the vault owner.
2212
+ **/
2213
+ close: AugmentedSubmittable<
2214
+ (vaultId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2215
+ [u32]
2216
+ >;
2217
+ collect: AugmentedSubmittable<
2218
+ (vaultId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2219
+ [u32]
2220
+ >;
2221
+ create: AugmentedSubmittable<
2222
+ (
2223
+ vaultConfig:
2224
+ | PalletVaultsVaultConfig
2225
+ | {
2226
+ terms?: any;
2227
+ name?: any;
2228
+ securitization?: any;
2229
+ bitcoinXpubkey?: any;
2230
+ securitizationRatio?: any;
2231
+ }
2232
+ | string
2233
+ | Uint8Array,
2234
+ ) => SubmittableExtrinsic<ApiType>,
2235
+ [PalletVaultsVaultConfig]
2236
+ >;
2237
+ /**
2238
+ * Modify funds allocated by the vault. This will not affect issued bitcoin locks, but will
2239
+ * affect the amount of funds available for new ones.
2240
+ *
2241
+ * The securitization percent must be maintained or increased.
2242
+ *
2243
+ * The amount allocated may not go below the existing reserved amounts, but you can release
2244
+ * funds in this vault as bitcoin locks are released. To stop issuing any more bitcoin
2245
+ * locks, use the `close` api.
2246
+ **/
2247
+ modifyFunding: AugmentedSubmittable<
2248
+ (
2249
+ vaultId: u32 | AnyNumber | Uint8Array,
2250
+ securitization: u128 | AnyNumber | Uint8Array,
2251
+ securitizationRatio: u128 | AnyNumber | Uint8Array,
2252
+ ) => SubmittableExtrinsic<ApiType>,
2253
+ [u32, u128, u128]
2254
+ >;
2255
+ /**
2256
+ * Change the terms of this vault. The change will be applied at the next mining frame
2257
+ * change that is at least `MinTermsModificationBlockDelay` blocks away.
2258
+ **/
2259
+ modifyTerms: AugmentedSubmittable<
2260
+ (
2261
+ vaultId: u32 | AnyNumber | Uint8Array,
2262
+ terms:
2263
+ | ArgonPrimitivesVaultVaultTerms
2264
+ | { bitcoinAnnualPercentRate?: any; bitcoinBaseFee?: any; treasuryProfitSharing?: any }
2265
+ | string
2266
+ | Uint8Array,
2267
+ ) => SubmittableExtrinsic<ApiType>,
2268
+ [u32, ArgonPrimitivesVaultVaultTerms]
2269
+ >;
2270
+ /**
2271
+ * Replace the bitcoin xpubkey for this vault. This will not affect existing bitcoin locks,
2272
+ * but will be used for any locks after this point. Will be rejected if already
2273
+ * used.
2274
+ **/
2275
+ replaceBitcoinXpub: AugmentedSubmittable<
2276
+ (
2277
+ vaultId: u32 | AnyNumber | Uint8Array,
2278
+ bitcoinXpub: ArgonPrimitivesBitcoinOpaqueBitcoinXpub | string | Uint8Array,
2279
+ ) => SubmittableExtrinsic<ApiType>,
2280
+ [u32, ArgonPrimitivesBitcoinOpaqueBitcoinXpub]
2281
+ >;
2282
+ setBitcoinLockDelegate: AugmentedSubmittable<
2283
+ (
2284
+ delegateAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string,
2285
+ ) => SubmittableExtrinsic<ApiType>,
2286
+ [Option<AccountId32>]
2287
+ >;
2288
+ setCommittedArgonots: AugmentedSubmittable<
2289
+ (amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2290
+ [Compact<u128>]
2291
+ >;
2292
+ setName: AugmentedSubmittable<
2293
+ (name: Option<Bytes> | null | Uint8Array | Bytes | string) => SubmittableExtrinsic<ApiType>,
2294
+ [Option<Bytes>]
2295
+ >;
2296
+ };
2297
+ } // AugmentedSubmittables
2298
+ } // declare module