@argonprotocol/mainchain 1.4.3-dev.1f0d7a33 → 1.4.3-dev.25eec055

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