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