@argonprotocol/mainchain 1.4.3-dev.78a9481b → 1.4.3-dev.83602b96

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