@functionland/react-native-fula 1.55.0 → 1.55.1
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/LICENSE +20 -20
- package/android/build.gradle +114 -115
- package/android/gradle.properties +8 -8
- package/android/src/main/AndroidManifest.xml +3 -3
- package/android/src/main/AndroidManifestNew.xml +2 -2
- package/android/src/main/java/land/fx/fula/ConfigRef.java +7 -7
- package/android/src/main/java/land/fx/fula/Cryptography.java +62 -62
- package/android/src/main/java/land/fx/fula/FulaModule.java +1991 -1868
- package/android/src/main/java/land/fx/fula/FulaPackage.java +32 -32
- package/android/src/main/java/land/fx/fula/SharedPreferenceHelper.java +65 -65
- package/android/src/main/java/land/fx/fula/StaticHelper.java +13 -13
- package/android/src/main/java/land/fx/fula/ThreadUtils.java +42 -42
- package/ios/Cryptography.swift +59 -59
- package/ios/Fula-Bridging-Header.h +3 -3
- package/ios/UserDataHelper.swift +143 -143
- package/lib/commonjs/index.js +3 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-consts.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-errors.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-events.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-query.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-rpc.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-runtime.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-tx.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api.js.map +1 -1
- package/lib/commonjs/interfaces/augment-types.js.map +1 -1
- package/lib/commonjs/interfaces/definitions.js.map +1 -1
- package/lib/commonjs/interfaces/defintions.js.map +1 -1
- package/lib/commonjs/interfaces/fulaNativeModule.js.map +1 -1
- package/lib/commonjs/interfaces/index.js.map +1 -1
- package/lib/commonjs/interfaces/lookup.js +300 -300
- package/lib/commonjs/interfaces/lookup.js.map +1 -1
- package/lib/commonjs/interfaces/registry.js.map +1 -1
- package/lib/commonjs/interfaces/types-lookup.js.map +1 -1
- package/lib/commonjs/interfaces/types.js.map +1 -1
- package/lib/commonjs/protocols/blockchain.js +66 -66
- package/lib/commonjs/protocols/blockchain.js.map +1 -1
- package/lib/commonjs/protocols/chain-api.js.map +1 -1
- package/lib/commonjs/protocols/fula.js.map +1 -1
- package/lib/commonjs/protocols/fx-ai.js +103 -0
- package/lib/commonjs/protocols/fx-ai.js.map +1 -0
- package/lib/commonjs/protocols/fxblox.js +3 -3
- package/lib/commonjs/protocols/fxblox.js.map +1 -1
- package/lib/commonjs/types/blockchain.js.map +1 -1
- package/lib/commonjs/types/fxblox.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/interfaces/augment-api-consts.js.map +1 -1
- package/lib/module/interfaces/augment-api-errors.js.map +1 -1
- package/lib/module/interfaces/augment-api-events.js.map +1 -1
- package/lib/module/interfaces/augment-api-query.js.map +1 -1
- package/lib/module/interfaces/augment-api-rpc.js.map +1 -1
- package/lib/module/interfaces/augment-api-runtime.js.map +1 -1
- package/lib/module/interfaces/augment-api-tx.js.map +1 -1
- package/lib/module/interfaces/augment-api.js.map +1 -1
- package/lib/module/interfaces/augment-types.js.map +1 -1
- package/lib/module/interfaces/definitions.js.map +1 -1
- package/lib/module/interfaces/defintions.js.map +1 -1
- package/lib/module/interfaces/fulaNativeModule.js.map +1 -1
- package/lib/module/interfaces/index.js.map +1 -1
- package/lib/module/interfaces/lookup.js +300 -300
- package/lib/module/interfaces/lookup.js.map +1 -1
- package/lib/module/interfaces/registry.js.map +1 -1
- package/lib/module/interfaces/types-lookup.js.map +1 -1
- package/lib/module/interfaces/types.js.map +1 -1
- package/lib/module/protocols/blockchain.js +66 -66
- package/lib/module/protocols/blockchain.js.map +1 -1
- package/lib/module/protocols/chain-api.js.map +1 -1
- package/lib/module/protocols/fula.js.map +1 -1
- package/lib/module/protocols/fx-ai.js +93 -0
- package/lib/module/protocols/fx-ai.js.map +1 -0
- package/lib/module/protocols/fxblox.js +3 -3
- package/lib/module/protocols/fxblox.js.map +1 -1
- package/lib/module/types/blockchain.js.map +1 -1
- package/lib/module/types/fxblox.js.map +1 -1
- package/package.json +176 -176
- package/react-native-fula.podspec +47 -47
- package/src/index.tsx +5 -4
- package/src/interfaces/augment-api-consts.ts +273 -273
- package/src/interfaces/augment-api-errors.ts +474 -474
- package/src/interfaces/augment-api-events.ts +448 -448
- package/src/interfaces/augment-api-query.ts +466 -466
- package/src/interfaces/augment-api-rpc.ts +617 -617
- package/src/interfaces/augment-api-runtime.ts +223 -223
- package/src/interfaces/augment-api-tx.ts +709 -709
- package/src/interfaces/augment-api.ts +9 -9
- package/src/interfaces/augment-types.ts +1322 -1322
- package/src/interfaces/definitions.ts +1 -1
- package/src/interfaces/defintions.ts +1 -1
- package/src/interfaces/fulaNativeModule.ts +175 -168
- package/src/interfaces/index.ts +3 -3
- package/src/interfaces/lookup.ts +2011 -2011
- package/src/interfaces/registry.ts +163 -163
- package/src/interfaces/types-lookup.ts +2165 -2165
- package/src/interfaces/types.ts +2 -2
- package/src/protocols/blockchain.ts +644 -644
- package/src/protocols/fx-ai.ts +111 -0
- package/src/protocols/fxblox.ts +443 -443
|
@@ -1,709 +1,709 @@
|
|
|
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 { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
|
|
9
|
-
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, i32, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
10
|
-
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
11
|
-
import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';
|
|
12
|
-
import type { PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, SpConsensusGrandpaEquivocationProof, SpCoreVoid, SpWeightsWeightV2Weight, SugarfungeMarketAssetRate, SugarfungeRuntimeOpaqueSessionKeys, SugarfungeRuntimeOriginCaller } from '@polkadot/types/lookup';
|
|
13
|
-
|
|
14
|
-
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
15
|
-
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
16
|
-
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
17
|
-
|
|
18
|
-
declare module '@polkadot/api-base/types/submittable' {
|
|
19
|
-
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
20
|
-
asset: {
|
|
21
|
-
batchBurn: AugmentedSubmittable<(from: AccountId32 | string | Uint8Array, classId: u64 | AnyNumber | Uint8Array, assetIds: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], amounts: Vec<u128> | (u128 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, u64, Vec<u64>, Vec<u128>]>;
|
|
22
|
-
batchMint: AugmentedSubmittable<(to: AccountId32 | string | Uint8Array, classId: u64 | AnyNumber | Uint8Array, assetIds: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], amounts: Vec<u128> | (u128 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, u64, Vec<u64>, Vec<u128>]>;
|
|
23
|
-
batchTransferFrom: AugmentedSubmittable<(from: AccountId32 | string | Uint8Array, to: AccountId32 | string | Uint8Array, classId: u64 | AnyNumber | Uint8Array, assetIds: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], amounts: Vec<u128> | (u128 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, u64, Vec<u64>, Vec<u128>]>;
|
|
24
|
-
burn: AugmentedSubmittable<(from: AccountId32 | string | Uint8Array, classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u64, u64, u128]>;
|
|
25
|
-
createAsset: AugmentedSubmittable<(classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64, Bytes]>;
|
|
26
|
-
createClass: AugmentedSubmittable<(owner: AccountId32 | string | Uint8Array, classId: u64 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u64, Bytes]>;
|
|
27
|
-
mint: AugmentedSubmittable<(to: AccountId32 | string | Uint8Array, classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u64, u64, u128]>;
|
|
28
|
-
transferFrom: AugmentedSubmittable<(from: AccountId32 | string | Uint8Array, to: AccountId32 | string | Uint8Array, classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, u64, u64, u128]>;
|
|
29
|
-
updateAssetMetadata: AugmentedSubmittable<(classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64, Bytes]>;
|
|
30
|
-
updateClassMetadata: AugmentedSubmittable<(classId: u64 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Bytes]>;
|
|
31
|
-
/**
|
|
32
|
-
* Generic tx
|
|
33
|
-
**/
|
|
34
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
35
|
-
};
|
|
36
|
-
bag: {
|
|
37
|
-
create: AugmentedSubmittable<(classId: u64 | AnyNumber | Uint8Array, owners: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], shares: Vec<u128> | (u128 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u64, Vec<AccountId32>, Vec<u128>]>;
|
|
38
|
-
deposit: AugmentedSubmittable<(bag: AccountId32 | string | Uint8Array, classIds: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], assetIds: Vec<Vec<u64>>, amounts: Vec<Vec<u128>>) => SubmittableExtrinsic<ApiType>, [AccountId32, Vec<u64>, Vec<Vec<u64>>, Vec<Vec<u128>>]>;
|
|
39
|
-
register: AugmentedSubmittable<(classId: u64 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Bytes]>;
|
|
40
|
-
sweep: AugmentedSubmittable<(to: AccountId32 | string | Uint8Array, bag: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
|
41
|
-
/**
|
|
42
|
-
* Generic tx
|
|
43
|
-
**/
|
|
44
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
45
|
-
};
|
|
46
|
-
balances: {
|
|
47
|
-
/**
|
|
48
|
-
* Set the regular balance of a given account.
|
|
49
|
-
*
|
|
50
|
-
* The dispatch origin for this call is `root`.
|
|
51
|
-
**/
|
|
52
|
-
forceSetBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
53
|
-
/**
|
|
54
|
-
* Exactly as `transfer_allow_death`, except the origin must be root and the source account
|
|
55
|
-
* may be specified.
|
|
56
|
-
**/
|
|
57
|
-
forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
|
|
58
|
-
/**
|
|
59
|
-
* Unreserve some balance from a user by force.
|
|
60
|
-
*
|
|
61
|
-
* Can only be called by ROOT.
|
|
62
|
-
**/
|
|
63
|
-
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
|
64
|
-
/**
|
|
65
|
-
* Set the regular balance of a given account; it also takes a reserved balance but this
|
|
66
|
-
* must be the same as the account's current reserved balance.
|
|
67
|
-
*
|
|
68
|
-
* The dispatch origin for this call is `root`.
|
|
69
|
-
*
|
|
70
|
-
* WARNING: This call is DEPRECATED! Use `force_set_balance` instead.
|
|
71
|
-
**/
|
|
72
|
-
setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
|
|
73
|
-
/**
|
|
74
|
-
* Alias for `transfer_allow_death`, provided only for name-wise compatibility.
|
|
75
|
-
*
|
|
76
|
-
* WARNING: DEPRECATED! Will be released in approximately 3 months.
|
|
77
|
-
**/
|
|
78
|
-
transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
79
|
-
/**
|
|
80
|
-
* Transfer the entire transferable balance from the caller account.
|
|
81
|
-
*
|
|
82
|
-
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
83
|
-
* any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
|
|
84
|
-
* transferred by this function. To ensure that this function results in a killed account,
|
|
85
|
-
* you might need to prepare the account by removing any reference counters, storage
|
|
86
|
-
* deposits, etc...
|
|
87
|
-
*
|
|
88
|
-
* The dispatch origin of this call must be Signed.
|
|
89
|
-
*
|
|
90
|
-
* - `dest`: The recipient of the transfer.
|
|
91
|
-
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
92
|
-
* of the funds the account has, causing the sender account to be killed (false), or
|
|
93
|
-
* transfer everything except at least the existential deposit, which will guarantee to
|
|
94
|
-
* keep the sender account alive (true).
|
|
95
|
-
**/
|
|
96
|
-
transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
|
97
|
-
/**
|
|
98
|
-
* Transfer some liquid free balance to another account.
|
|
99
|
-
*
|
|
100
|
-
* `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
|
|
101
|
-
* If the sender's account is below the existential deposit as a result
|
|
102
|
-
* of the transfer, the account will be reaped.
|
|
103
|
-
*
|
|
104
|
-
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
105
|
-
**/
|
|
106
|
-
transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
107
|
-
/**
|
|
108
|
-
* Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
|
|
109
|
-
* kill the origin account.
|
|
110
|
-
*
|
|
111
|
-
* 99% of the time you want [`transfer_allow_death`] instead.
|
|
112
|
-
*
|
|
113
|
-
* [`transfer_allow_death`]: struct.Pallet.html#method.transfer
|
|
114
|
-
**/
|
|
115
|
-
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
116
|
-
/**
|
|
117
|
-
* Upgrade a specified account.
|
|
118
|
-
*
|
|
119
|
-
* - `origin`: Must be `Signed`.
|
|
120
|
-
* - `who`: The account to be upgraded.
|
|
121
|
-
*
|
|
122
|
-
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
123
|
-
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
124
|
-
* possibililty of churn).
|
|
125
|
-
**/
|
|
126
|
-
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
|
127
|
-
/**
|
|
128
|
-
* Generic tx
|
|
129
|
-
**/
|
|
130
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
131
|
-
};
|
|
132
|
-
bundle: {
|
|
133
|
-
burnBundle: AugmentedSubmittable<(from: AccountId32 | string | Uint8Array, to: AccountId32 | string | Uint8Array, bundleId: H256 | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, H256, u128]>;
|
|
134
|
-
mintBundle: AugmentedSubmittable<(from: AccountId32 | string | Uint8Array, to: AccountId32 | string | Uint8Array, bundleId: H256 | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, H256, u128]>;
|
|
135
|
-
registerBundle: AugmentedSubmittable<(classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array, bundleId: H256 | string | Uint8Array, schema: ITuple<[Vec<u64>, Vec<Vec<u64>>, Vec<Vec<u128>>]> | [Vec<u64> | (u64 | AnyNumber | Uint8Array)[], Vec<Vec<u64>>, Vec<Vec<u128>>], metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64, H256, ITuple<[Vec<u64>, Vec<Vec<u64>>, Vec<Vec<u128>>]>, Bytes]>;
|
|
136
|
-
/**
|
|
137
|
-
* Generic tx
|
|
138
|
-
**/
|
|
139
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
140
|
-
};
|
|
141
|
-
council: {
|
|
142
|
-
/**
|
|
143
|
-
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
144
|
-
*
|
|
145
|
-
* May be called by any signed account in order to finish voting and close the proposal.
|
|
146
|
-
*
|
|
147
|
-
* If called before the end of the voting period it will only close the vote if it is
|
|
148
|
-
* has enough votes to be approved or disapproved.
|
|
149
|
-
*
|
|
150
|
-
* If called after the end of the voting period abstentions are counted as rejections
|
|
151
|
-
* unless there is a prime member set and the prime member cast an approval.
|
|
152
|
-
*
|
|
153
|
-
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
154
|
-
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
155
|
-
*
|
|
156
|
-
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
157
|
-
* proposal.
|
|
158
|
-
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
159
|
-
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
160
|
-
*
|
|
161
|
-
* ## Complexity
|
|
162
|
-
* - `O(B + M + P1 + P2)` where:
|
|
163
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
164
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
165
|
-
* - `P1` is the complexity of `proposal` preimage.
|
|
166
|
-
* - `P2` is proposal-count (code-bounded)
|
|
167
|
-
**/
|
|
168
|
-
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
169
|
-
/**
|
|
170
|
-
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
171
|
-
* state.
|
|
172
|
-
*
|
|
173
|
-
* Must be called by the Root origin.
|
|
174
|
-
*
|
|
175
|
-
* Parameters:
|
|
176
|
-
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
177
|
-
*
|
|
178
|
-
* ## Complexity
|
|
179
|
-
* O(P) where P is the number of max proposals
|
|
180
|
-
**/
|
|
181
|
-
disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
182
|
-
/**
|
|
183
|
-
* Dispatch a proposal from a member using the `Member` origin.
|
|
184
|
-
*
|
|
185
|
-
* Origin must be a member of the collective.
|
|
186
|
-
*
|
|
187
|
-
* ## Complexity:
|
|
188
|
-
* - `O(B + M + P)` where:
|
|
189
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
190
|
-
* - `M` members-count (code-bounded)
|
|
191
|
-
* - `P` complexity of dispatching `proposal`
|
|
192
|
-
**/
|
|
193
|
-
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
194
|
-
/**
|
|
195
|
-
* Add a new proposal to either be voted on or executed directly.
|
|
196
|
-
*
|
|
197
|
-
* Requires the sender to be member.
|
|
198
|
-
*
|
|
199
|
-
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
200
|
-
* or put up for voting.
|
|
201
|
-
*
|
|
202
|
-
* ## Complexity
|
|
203
|
-
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
204
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
205
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
206
|
-
* - branching is influenced by `threshold` where:
|
|
207
|
-
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
208
|
-
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
209
|
-
**/
|
|
210
|
-
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
211
|
-
/**
|
|
212
|
-
* Set the collective's membership.
|
|
213
|
-
*
|
|
214
|
-
* - `new_members`: The new member list. Be nice to the chain and provide it sorted.
|
|
215
|
-
* - `prime`: The prime member whose vote sets the default.
|
|
216
|
-
* - `old_count`: The upper bound for the previous number of members in storage. Used for
|
|
217
|
-
* weight estimation.
|
|
218
|
-
*
|
|
219
|
-
* The dispatch of this call must be `SetMembersOrigin`.
|
|
220
|
-
*
|
|
221
|
-
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
222
|
-
* the weight estimations rely on it to estimate dispatchable weight.
|
|
223
|
-
*
|
|
224
|
-
* # WARNING:
|
|
225
|
-
*
|
|
226
|
-
* The `pallet-collective` can also be managed by logic outside of the pallet through the
|
|
227
|
-
* implementation of the trait [`ChangeMembers`].
|
|
228
|
-
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
229
|
-
* with other logic managing the member set.
|
|
230
|
-
*
|
|
231
|
-
* ## Complexity:
|
|
232
|
-
* - `O(MP + N)` where:
|
|
233
|
-
* - `M` old-members-count (code- and governance-bounded)
|
|
234
|
-
* - `N` new-members-count (code- and governance-bounded)
|
|
235
|
-
* - `P` proposals-count (code-bounded)
|
|
236
|
-
**/
|
|
237
|
-
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
|
238
|
-
/**
|
|
239
|
-
* Add an aye or nay vote for the sender to the given proposal.
|
|
240
|
-
*
|
|
241
|
-
* Requires the sender to be a member.
|
|
242
|
-
*
|
|
243
|
-
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
244
|
-
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
245
|
-
* fee.
|
|
246
|
-
* ## Complexity
|
|
247
|
-
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
248
|
-
**/
|
|
249
|
-
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
|
250
|
-
/**
|
|
251
|
-
* Generic tx
|
|
252
|
-
**/
|
|
253
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
254
|
-
};
|
|
255
|
-
dao: {
|
|
256
|
-
/**
|
|
257
|
-
* An example dispatchable that may throw a custom error.
|
|
258
|
-
**/
|
|
259
|
-
causeError: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
260
|
-
/**
|
|
261
|
-
* An example dispatchable that takes a singles value as a parameter, writes the value to
|
|
262
|
-
* storage and emits an event. This function must be dispatched by a signed extrinsic.
|
|
263
|
-
**/
|
|
264
|
-
doSomething: AugmentedSubmittable<(something: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
265
|
-
/**
|
|
266
|
-
* Generic tx
|
|
267
|
-
**/
|
|
268
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
269
|
-
};
|
|
270
|
-
exgine: {
|
|
271
|
-
/**
|
|
272
|
-
* An example dispatchable that may throw a custom error.
|
|
273
|
-
**/
|
|
274
|
-
causeError: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
275
|
-
/**
|
|
276
|
-
* An example dispatchable that takes a singles value as a parameter, writes the value to
|
|
277
|
-
* storage and emits an event. This function must be dispatched by a signed extrinsic.
|
|
278
|
-
**/
|
|
279
|
-
doSomething: AugmentedSubmittable<(something: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
280
|
-
/**
|
|
281
|
-
* Generic tx
|
|
282
|
-
**/
|
|
283
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
284
|
-
};
|
|
285
|
-
fula: {
|
|
286
|
-
batchRemoveManifest: AugmentedSubmittable<(cids: Vec<Bytes> | (Bytes | string | Uint8Array)[], poolIds: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, Vec<u32>]>;
|
|
287
|
-
batchRemoveStoredManifest: AugmentedSubmittable<(cids: Vec<Bytes> | (Bytes | string | Uint8Array)[], poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;
|
|
288
|
-
batchStorageManifest: AugmentedSubmittable<(cids: Vec<Bytes> | (Bytes | string | Uint8Array)[], poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;
|
|
289
|
-
batchUploadManifest: AugmentedSubmittable<(manifest: Vec<Bytes> | (Bytes | string | Uint8Array)[], cids: Vec<Bytes> | (Bytes | string | Uint8Array)[], poolId: Vec<u32> | (u32 | AnyNumber | Uint8Array)[], replicationFactor: Vec<u16> | (u16 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, Vec<Bytes>, Vec<u32>, Vec<u16>]>;
|
|
290
|
-
generateChallenge: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
291
|
-
getAvailableManifests: AugmentedSubmittable<(poolId: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
292
|
-
getManifests: AugmentedSubmittable<(poolId: Option<u32> | null | Uint8Array | u32 | AnyNumber, uploader: Option<AccountId32> | null | Uint8Array | AccountId32 | string, storer: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<AccountId32>, Option<AccountId32>]>;
|
|
293
|
-
getManifestsStorerData: AugmentedSubmittable<(poolId: Option<u32> | null | Uint8Array | u32 | AnyNumber, storer: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<AccountId32>]>;
|
|
294
|
-
mintLaborTokens: AugmentedSubmittable<(classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64, u128]>;
|
|
295
|
-
removeManifest: AugmentedSubmittable<(cid: Bytes | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;
|
|
296
|
-
removeStoredManifest: AugmentedSubmittable<(cid: Bytes | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;
|
|
297
|
-
storageManifest: AugmentedSubmittable<(cid: Bytes | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;
|
|
298
|
-
updateFileSize: AugmentedSubmittable<(cid: Bytes | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array, size: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32, u64]>;
|
|
299
|
-
updateFileSizes: AugmentedSubmittable<(cids: Vec<Bytes> | (Bytes | string | Uint8Array)[], poolId: u32 | AnyNumber | Uint8Array, sizes: Vec<u64> | (u64 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32, Vec<u64>]>;
|
|
300
|
-
/**
|
|
301
|
-
* Updates the values of the manifest storer data given the specific data
|
|
302
|
-
**/
|
|
303
|
-
updateManifest: AugmentedSubmittable<(cid: Bytes | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array, activeCycles: u16 | AnyNumber | Uint8Array, missedCycles: u16 | AnyNumber | Uint8Array, activeDays: i32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32, u16, u16, i32]>;
|
|
304
|
-
uploadManifest: AugmentedSubmittable<(manifest: Bytes | string | Uint8Array, cid: Bytes | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array, replicationFactor: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Bytes, u32, u16]>;
|
|
305
|
-
verifyChallenge: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, cids: Vec<Bytes> | (Bytes | string | Uint8Array)[], classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Vec<Bytes>, u64, u64]>;
|
|
306
|
-
verifyManifests: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
307
|
-
/**
|
|
308
|
-
* Generic tx
|
|
309
|
-
**/
|
|
310
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
311
|
-
};
|
|
312
|
-
grandpa: {
|
|
313
|
-
/**
|
|
314
|
-
* Note that the current authority set of the GRANDPA finality gadget has stalled.
|
|
315
|
-
*
|
|
316
|
-
* This will trigger a forced authority set change at the beginning of the next session, to
|
|
317
|
-
* be enacted `delay` blocks after that. The `delay` should be high enough to safely assume
|
|
318
|
-
* that the block signalling the forced change will not be re-orged e.g. 1000 blocks.
|
|
319
|
-
* The block production rate (which may be slowed down because of finality lagging) should
|
|
320
|
-
* be taken into account when choosing the `delay`. The GRANDPA voters based on the new
|
|
321
|
-
* authority will start voting on top of `best_finalized_block_number` for new finalized
|
|
322
|
-
* blocks. `best_finalized_block_number` should be the highest of the latest finalized
|
|
323
|
-
* block of all validators of the new authority set.
|
|
324
|
-
*
|
|
325
|
-
* Only callable by root.
|
|
326
|
-
**/
|
|
327
|
-
noteStalled: AugmentedSubmittable<(delay: u32 | AnyNumber | Uint8Array, bestFinalizedBlockNumber: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
328
|
-
/**
|
|
329
|
-
* Report voter equivocation/misbehavior. This method will verify the
|
|
330
|
-
* equivocation proof and validate the given key ownership proof
|
|
331
|
-
* against the extracted offender. If both are valid, the offence
|
|
332
|
-
* will be reported.
|
|
333
|
-
**/
|
|
334
|
-
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpCoreVoid | null) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpCoreVoid]>;
|
|
335
|
-
/**
|
|
336
|
-
* Report voter equivocation/misbehavior. This method will verify the
|
|
337
|
-
* equivocation proof and validate the given key ownership proof
|
|
338
|
-
* against the extracted offender. If both are valid, the offence
|
|
339
|
-
* will be reported.
|
|
340
|
-
*
|
|
341
|
-
* This extrinsic must be called unsigned and it is expected that only
|
|
342
|
-
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
343
|
-
* if the block author is defined it will be defined as the equivocation
|
|
344
|
-
* reporter.
|
|
345
|
-
**/
|
|
346
|
-
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpCoreVoid | null) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpCoreVoid]>;
|
|
347
|
-
/**
|
|
348
|
-
* Generic tx
|
|
349
|
-
**/
|
|
350
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
351
|
-
};
|
|
352
|
-
imOnline: {
|
|
353
|
-
/**
|
|
354
|
-
* ## Complexity:
|
|
355
|
-
* - `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of
|
|
356
|
-
* `heartbeat.network_state.external_address`
|
|
357
|
-
* - `O(K)`: decoding of length `K`
|
|
358
|
-
* - `O(E)`: decoding/encoding of length `E`
|
|
359
|
-
**/
|
|
360
|
-
heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | { blockNumber?: any; networkState?: any; sessionIndex?: any; authorityIndex?: any; validatorsLen?: any } | string | Uint8Array, signature: PalletImOnlineSr25519AppSr25519Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature]>;
|
|
361
|
-
/**
|
|
362
|
-
* Generic tx
|
|
363
|
-
**/
|
|
364
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
365
|
-
};
|
|
366
|
-
market: {
|
|
367
|
-
createMarket: AugmentedSubmittable<(marketId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
|
368
|
-
createMarketRate: AugmentedSubmittable<(marketId: u64 | AnyNumber | Uint8Array, marketRateId: u64 | AnyNumber | Uint8Array, rates: Vec<SugarfungeMarketAssetRate> | (SugarfungeMarketAssetRate | { classId?: any; assetId?: any; action?: any; from?: any; to?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u64, u64, Vec<SugarfungeMarketAssetRate>]>;
|
|
369
|
-
deposit: AugmentedSubmittable<(marketId: u64 | AnyNumber | Uint8Array, marketRateId: u64 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64, u128]>;
|
|
370
|
-
exchangeAssets: AugmentedSubmittable<(marketId: u64 | AnyNumber | Uint8Array, marketRateId: u64 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64, u128]>;
|
|
371
|
-
/**
|
|
372
|
-
* Generic tx
|
|
373
|
-
**/
|
|
374
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
375
|
-
};
|
|
376
|
-
pool: {
|
|
377
|
-
/**
|
|
378
|
-
* Cancel a `PoolRequest`, useful if a user decides to join another pool or they are stuck in
|
|
379
|
-
* the voting queue for too long.
|
|
380
|
-
**/
|
|
381
|
-
cancelJoin: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, targetAccount: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>]>;
|
|
382
|
-
/**
|
|
383
|
-
* Creates a new pool. `peer_id` is a libp2p peerID validated on the client-side.
|
|
384
|
-
*
|
|
385
|
-
* TODO: Deposit; check the current pool number. Currently we check the PoolId to retrieve
|
|
386
|
-
* the pool number, but if we want to delete empty pools - then we need to retrieve the
|
|
387
|
-
* actual pool number from storage, for which a CountedMap should be used.
|
|
388
|
-
**/
|
|
389
|
-
create: AugmentedSubmittable<(name: Bytes | string | Uint8Array, region: Bytes | string | Uint8Array, peerId: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Bytes, Bytes]>;
|
|
390
|
-
/**
|
|
391
|
-
* Open a `PoolRequest` to join the pool.
|
|
392
|
-
**/
|
|
393
|
-
join: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, peerId: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
394
|
-
/**
|
|
395
|
-
* Allows for the user to leave a pool.
|
|
396
|
-
**/
|
|
397
|
-
leavePool: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, targetAccount: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>]>;
|
|
398
|
-
/**
|
|
399
|
-
* Vote for a `PoolRequest`. If `positive` is set to `false` - that's voting against.
|
|
400
|
-
* This method also calculates votes each time it's called and takes action once the result
|
|
401
|
-
* is conclusive.
|
|
402
|
-
* TODO: Currently does not cover pool overflow scenario and simply fails then.
|
|
403
|
-
**/
|
|
404
|
-
vote: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array, positive: bool | boolean | Uint8Array, peerId: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32, bool, Bytes]>;
|
|
405
|
-
/**
|
|
406
|
-
* Generic tx
|
|
407
|
-
**/
|
|
408
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
409
|
-
};
|
|
410
|
-
scheduler: {
|
|
411
|
-
/**
|
|
412
|
-
* Cancel an anonymously scheduled task.
|
|
413
|
-
**/
|
|
414
|
-
cancel: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
415
|
-
/**
|
|
416
|
-
* Cancel a named scheduled task.
|
|
417
|
-
**/
|
|
418
|
-
cancelNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed]>;
|
|
419
|
-
/**
|
|
420
|
-
* Anonymously schedule a task.
|
|
421
|
-
**/
|
|
422
|
-
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
423
|
-
/**
|
|
424
|
-
* Anonymously schedule a task after a delay.
|
|
425
|
-
**/
|
|
426
|
-
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
427
|
-
/**
|
|
428
|
-
* Schedule a named task.
|
|
429
|
-
**/
|
|
430
|
-
scheduleNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
431
|
-
/**
|
|
432
|
-
* Schedule a named task after a delay.
|
|
433
|
-
**/
|
|
434
|
-
scheduleNamedAfter: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
435
|
-
/**
|
|
436
|
-
* Generic tx
|
|
437
|
-
**/
|
|
438
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
439
|
-
};
|
|
440
|
-
session: {
|
|
441
|
-
/**
|
|
442
|
-
* Removes any session key(s) of the function caller.
|
|
443
|
-
*
|
|
444
|
-
* This doesn't take effect until the next session.
|
|
445
|
-
*
|
|
446
|
-
* The dispatch origin of this function must be Signed and the account must be either be
|
|
447
|
-
* convertible to a validator ID using the chain's typical addressing system (this usually
|
|
448
|
-
* means being a controller account) or directly convertible into a validator ID (which
|
|
449
|
-
* usually means being a stash account).
|
|
450
|
-
*
|
|
451
|
-
* ## Complexity
|
|
452
|
-
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
453
|
-
* `T::Keys::key_ids()` which is fixed.
|
|
454
|
-
**/
|
|
455
|
-
purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
456
|
-
/**
|
|
457
|
-
* Sets the session key(s) of the function caller to `keys`.
|
|
458
|
-
* Allows an account to set its session key prior to becoming a validator.
|
|
459
|
-
* This doesn't take effect until the next session.
|
|
460
|
-
*
|
|
461
|
-
* The dispatch origin of this function must be signed.
|
|
462
|
-
*
|
|
463
|
-
* ## Complexity
|
|
464
|
-
* - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
|
|
465
|
-
* fixed.
|
|
466
|
-
**/
|
|
467
|
-
setKeys: AugmentedSubmittable<(keys: SugarfungeRuntimeOpaqueSessionKeys | { aura?: any; grandpa?: any; imOnline?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SugarfungeRuntimeOpaqueSessionKeys, Bytes]>;
|
|
468
|
-
/**
|
|
469
|
-
* Generic tx
|
|
470
|
-
**/
|
|
471
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
472
|
-
};
|
|
473
|
-
sudo: {
|
|
474
|
-
/**
|
|
475
|
-
* Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo
|
|
476
|
-
* key.
|
|
477
|
-
*
|
|
478
|
-
* The dispatch origin for this call must be _Signed_.
|
|
479
|
-
*
|
|
480
|
-
* ## Complexity
|
|
481
|
-
* - O(1).
|
|
482
|
-
**/
|
|
483
|
-
setKey: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
484
|
-
/**
|
|
485
|
-
* Authenticates the sudo key and dispatches a function call with `Root` origin.
|
|
486
|
-
*
|
|
487
|
-
* The dispatch origin for this call must be _Signed_.
|
|
488
|
-
*
|
|
489
|
-
* ## Complexity
|
|
490
|
-
* - O(1).
|
|
491
|
-
**/
|
|
492
|
-
sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
|
493
|
-
/**
|
|
494
|
-
* Authenticates the sudo key and dispatches a function call with `Signed` origin from
|
|
495
|
-
* a given account.
|
|
496
|
-
*
|
|
497
|
-
* The dispatch origin for this call must be _Signed_.
|
|
498
|
-
*
|
|
499
|
-
* ## Complexity
|
|
500
|
-
* - O(1).
|
|
501
|
-
**/
|
|
502
|
-
sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;
|
|
503
|
-
/**
|
|
504
|
-
* Authenticates the sudo key and dispatches a function call with `Root` origin.
|
|
505
|
-
* This function does not check the weight of the call, and instead allows the
|
|
506
|
-
* Sudo user to specify the weight of the call.
|
|
507
|
-
*
|
|
508
|
-
* The dispatch origin for this call must be _Signed_.
|
|
509
|
-
*
|
|
510
|
-
* ## Complexity
|
|
511
|
-
* - O(1).
|
|
512
|
-
**/
|
|
513
|
-
sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, SpWeightsWeightV2Weight]>;
|
|
514
|
-
/**
|
|
515
|
-
* Generic tx
|
|
516
|
-
**/
|
|
517
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
518
|
-
};
|
|
519
|
-
system: {
|
|
520
|
-
/**
|
|
521
|
-
* Kill all storage items with a key that starts with the given prefix.
|
|
522
|
-
*
|
|
523
|
-
* **NOTE:** We rely on the Root origin to provide us the number of subkeys under
|
|
524
|
-
* the prefix we are removing to accurately calculate the weight of this function.
|
|
525
|
-
**/
|
|
526
|
-
killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;
|
|
527
|
-
/**
|
|
528
|
-
* Kill some items from storage.
|
|
529
|
-
**/
|
|
530
|
-
killStorage: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;
|
|
531
|
-
/**
|
|
532
|
-
* Make some on-chain remark.
|
|
533
|
-
*
|
|
534
|
-
* - `O(1)`
|
|
535
|
-
**/
|
|
536
|
-
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
537
|
-
/**
|
|
538
|
-
* Make some on-chain remark and emit event.
|
|
539
|
-
**/
|
|
540
|
-
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
541
|
-
/**
|
|
542
|
-
* Set the new runtime code.
|
|
543
|
-
**/
|
|
544
|
-
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
545
|
-
/**
|
|
546
|
-
* Set the new runtime code without doing any checks of the given `code`.
|
|
547
|
-
**/
|
|
548
|
-
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
549
|
-
/**
|
|
550
|
-
* Set the number of pages in the WebAssembly environment's heap.
|
|
551
|
-
**/
|
|
552
|
-
setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
|
553
|
-
/**
|
|
554
|
-
* Set some items of storage.
|
|
555
|
-
**/
|
|
556
|
-
setStorage: AugmentedSubmittable<(items: Vec<ITuple<[Bytes, Bytes]>> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[Bytes, Bytes]>>]>;
|
|
557
|
-
/**
|
|
558
|
-
* Generic tx
|
|
559
|
-
**/
|
|
560
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
561
|
-
};
|
|
562
|
-
timestamp: {
|
|
563
|
-
/**
|
|
564
|
-
* Set the current time.
|
|
565
|
-
*
|
|
566
|
-
* This call should be invoked exactly once per block. It will panic at the finalization
|
|
567
|
-
* phase, if this call hasn't been invoked by that time.
|
|
568
|
-
*
|
|
569
|
-
* The timestamp should be greater than the previous one by the amount specified by
|
|
570
|
-
* `MinimumPeriod`.
|
|
571
|
-
*
|
|
572
|
-
* The dispatch origin for this call must be `Inherent`.
|
|
573
|
-
*
|
|
574
|
-
* ## Complexity
|
|
575
|
-
* - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
|
|
576
|
-
* - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in
|
|
577
|
-
* `on_finalize`)
|
|
578
|
-
* - 1 event handler `on_timestamp_set`. Must be `O(1)`.
|
|
579
|
-
**/
|
|
580
|
-
set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;
|
|
581
|
-
/**
|
|
582
|
-
* Generic tx
|
|
583
|
-
**/
|
|
584
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
585
|
-
};
|
|
586
|
-
utility: {
|
|
587
|
-
/**
|
|
588
|
-
* Send a call through an indexed pseudonym of the sender.
|
|
589
|
-
*
|
|
590
|
-
* Filter from origin are passed along. The call will be dispatched with an origin which
|
|
591
|
-
* use the same filter as the origin of this call.
|
|
592
|
-
*
|
|
593
|
-
* NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
|
|
594
|
-
* because you expect `proxy` to have been used prior in the call stack and you do not want
|
|
595
|
-
* the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
|
|
596
|
-
* in the Multisig pallet instead.
|
|
597
|
-
*
|
|
598
|
-
* NOTE: Prior to version *12, this was called `as_limited_sub`.
|
|
599
|
-
*
|
|
600
|
-
* The dispatch origin for this call must be _Signed_.
|
|
601
|
-
**/
|
|
602
|
-
asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
|
|
603
|
-
/**
|
|
604
|
-
* Send a batch of dispatch calls.
|
|
605
|
-
*
|
|
606
|
-
* May be called from any origin except `None`.
|
|
607
|
-
*
|
|
608
|
-
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
609
|
-
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
610
|
-
*
|
|
611
|
-
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
612
|
-
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
613
|
-
*
|
|
614
|
-
* ## Complexity
|
|
615
|
-
* - O(C) where C is the number of calls to be batched.
|
|
616
|
-
*
|
|
617
|
-
* This will return `Ok` in all circumstances. To determine the success of the batch, an
|
|
618
|
-
* event is deposited. If a call failed and the batch was interrupted, then the
|
|
619
|
-
* `BatchInterrupted` event is deposited, along with the number of successful calls made
|
|
620
|
-
* and the error of the failed call. If all were successful, then the `BatchCompleted`
|
|
621
|
-
* event is deposited.
|
|
622
|
-
**/
|
|
623
|
-
batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
624
|
-
/**
|
|
625
|
-
* Send a batch of dispatch calls and atomically execute them.
|
|
626
|
-
* The whole transaction will rollback and fail if any of the calls failed.
|
|
627
|
-
*
|
|
628
|
-
* May be called from any origin except `None`.
|
|
629
|
-
*
|
|
630
|
-
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
631
|
-
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
632
|
-
*
|
|
633
|
-
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
634
|
-
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
635
|
-
*
|
|
636
|
-
* ## Complexity
|
|
637
|
-
* - O(C) where C is the number of calls to be batched.
|
|
638
|
-
**/
|
|
639
|
-
batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
640
|
-
/**
|
|
641
|
-
* Dispatches a function call with a provided origin.
|
|
642
|
-
*
|
|
643
|
-
* The dispatch origin for this call must be _Root_.
|
|
644
|
-
*
|
|
645
|
-
* ## Complexity
|
|
646
|
-
* - O(1).
|
|
647
|
-
**/
|
|
648
|
-
dispatchAs: AugmentedSubmittable<(asOrigin: SugarfungeRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SugarfungeRuntimeOriginCaller, Call]>;
|
|
649
|
-
/**
|
|
650
|
-
* Send a batch of dispatch calls.
|
|
651
|
-
* Unlike `batch`, it allows errors and won't interrupt.
|
|
652
|
-
*
|
|
653
|
-
* May be called from any origin except `None`.
|
|
654
|
-
*
|
|
655
|
-
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
656
|
-
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
657
|
-
*
|
|
658
|
-
* If origin is root then the calls are dispatch without checking origin filter. (This
|
|
659
|
-
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
660
|
-
*
|
|
661
|
-
* ## Complexity
|
|
662
|
-
* - O(C) where C is the number of calls to be batched.
|
|
663
|
-
**/
|
|
664
|
-
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
665
|
-
/**
|
|
666
|
-
* Dispatch a function call with a specified weight.
|
|
667
|
-
*
|
|
668
|
-
* This function does not check the weight of the call, and instead allows the
|
|
669
|
-
* Root origin to specify the weight of the call.
|
|
670
|
-
*
|
|
671
|
-
* The dispatch origin for this call must be _Root_.
|
|
672
|
-
**/
|
|
673
|
-
withWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, SpWeightsWeightV2Weight]>;
|
|
674
|
-
/**
|
|
675
|
-
* Generic tx
|
|
676
|
-
**/
|
|
677
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
678
|
-
};
|
|
679
|
-
validatorSet: {
|
|
680
|
-
/**
|
|
681
|
-
* Add a new validator.
|
|
682
|
-
*
|
|
683
|
-
* New validator's session keys should be set in Session pallet before
|
|
684
|
-
* calling this.
|
|
685
|
-
*
|
|
686
|
-
* The origin can be configured using the `AddRemoveOrigin` type in the
|
|
687
|
-
* host runtime. Can also be set to sudo/root.
|
|
688
|
-
**/
|
|
689
|
-
addValidator: AugmentedSubmittable<(validatorId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
690
|
-
/**
|
|
691
|
-
* Add an approved validator again when it comes back online.
|
|
692
|
-
*
|
|
693
|
-
* For this call, the dispatch origin must be the validator itself.
|
|
694
|
-
**/
|
|
695
|
-
addValidatorAgain: AugmentedSubmittable<(validatorId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
696
|
-
/**
|
|
697
|
-
* Remove a validator.
|
|
698
|
-
*
|
|
699
|
-
* The origin can be configured using the `AddRemoveOrigin` type in the
|
|
700
|
-
* host runtime. Can also be set to sudo/root.
|
|
701
|
-
**/
|
|
702
|
-
removeValidator: AugmentedSubmittable<(validatorId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
703
|
-
/**
|
|
704
|
-
* Generic tx
|
|
705
|
-
**/
|
|
706
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
707
|
-
};
|
|
708
|
-
} // AugmentedSubmittables
|
|
709
|
-
} // declare module
|
|
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 { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
|
|
9
|
+
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, i32, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
10
|
+
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
11
|
+
import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';
|
|
12
|
+
import type { PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, SpConsensusGrandpaEquivocationProof, SpCoreVoid, SpWeightsWeightV2Weight, SugarfungeMarketAssetRate, SugarfungeRuntimeOpaqueSessionKeys, SugarfungeRuntimeOriginCaller } from '@polkadot/types/lookup';
|
|
13
|
+
|
|
14
|
+
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
15
|
+
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
16
|
+
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
17
|
+
|
|
18
|
+
declare module '@polkadot/api-base/types/submittable' {
|
|
19
|
+
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
20
|
+
asset: {
|
|
21
|
+
batchBurn: AugmentedSubmittable<(from: AccountId32 | string | Uint8Array, classId: u64 | AnyNumber | Uint8Array, assetIds: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], amounts: Vec<u128> | (u128 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, u64, Vec<u64>, Vec<u128>]>;
|
|
22
|
+
batchMint: AugmentedSubmittable<(to: AccountId32 | string | Uint8Array, classId: u64 | AnyNumber | Uint8Array, assetIds: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], amounts: Vec<u128> | (u128 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, u64, Vec<u64>, Vec<u128>]>;
|
|
23
|
+
batchTransferFrom: AugmentedSubmittable<(from: AccountId32 | string | Uint8Array, to: AccountId32 | string | Uint8Array, classId: u64 | AnyNumber | Uint8Array, assetIds: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], amounts: Vec<u128> | (u128 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, u64, Vec<u64>, Vec<u128>]>;
|
|
24
|
+
burn: AugmentedSubmittable<(from: AccountId32 | string | Uint8Array, classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u64, u64, u128]>;
|
|
25
|
+
createAsset: AugmentedSubmittable<(classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64, Bytes]>;
|
|
26
|
+
createClass: AugmentedSubmittable<(owner: AccountId32 | string | Uint8Array, classId: u64 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u64, Bytes]>;
|
|
27
|
+
mint: AugmentedSubmittable<(to: AccountId32 | string | Uint8Array, classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u64, u64, u128]>;
|
|
28
|
+
transferFrom: AugmentedSubmittable<(from: AccountId32 | string | Uint8Array, to: AccountId32 | string | Uint8Array, classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, u64, u64, u128]>;
|
|
29
|
+
updateAssetMetadata: AugmentedSubmittable<(classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64, Bytes]>;
|
|
30
|
+
updateClassMetadata: AugmentedSubmittable<(classId: u64 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Bytes]>;
|
|
31
|
+
/**
|
|
32
|
+
* Generic tx
|
|
33
|
+
**/
|
|
34
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
35
|
+
};
|
|
36
|
+
bag: {
|
|
37
|
+
create: AugmentedSubmittable<(classId: u64 | AnyNumber | Uint8Array, owners: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], shares: Vec<u128> | (u128 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u64, Vec<AccountId32>, Vec<u128>]>;
|
|
38
|
+
deposit: AugmentedSubmittable<(bag: AccountId32 | string | Uint8Array, classIds: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], assetIds: Vec<Vec<u64>>, amounts: Vec<Vec<u128>>) => SubmittableExtrinsic<ApiType>, [AccountId32, Vec<u64>, Vec<Vec<u64>>, Vec<Vec<u128>>]>;
|
|
39
|
+
register: AugmentedSubmittable<(classId: u64 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Bytes]>;
|
|
40
|
+
sweep: AugmentedSubmittable<(to: AccountId32 | string | Uint8Array, bag: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
|
41
|
+
/**
|
|
42
|
+
* Generic tx
|
|
43
|
+
**/
|
|
44
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
45
|
+
};
|
|
46
|
+
balances: {
|
|
47
|
+
/**
|
|
48
|
+
* Set the regular balance of a given account.
|
|
49
|
+
*
|
|
50
|
+
* The dispatch origin for this call is `root`.
|
|
51
|
+
**/
|
|
52
|
+
forceSetBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
53
|
+
/**
|
|
54
|
+
* Exactly as `transfer_allow_death`, except the origin must be root and the source account
|
|
55
|
+
* may be specified.
|
|
56
|
+
**/
|
|
57
|
+
forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
|
|
58
|
+
/**
|
|
59
|
+
* Unreserve some balance from a user by force.
|
|
60
|
+
*
|
|
61
|
+
* Can only be called by ROOT.
|
|
62
|
+
**/
|
|
63
|
+
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
|
64
|
+
/**
|
|
65
|
+
* Set the regular balance of a given account; it also takes a reserved balance but this
|
|
66
|
+
* must be the same as the account's current reserved balance.
|
|
67
|
+
*
|
|
68
|
+
* The dispatch origin for this call is `root`.
|
|
69
|
+
*
|
|
70
|
+
* WARNING: This call is DEPRECATED! Use `force_set_balance` instead.
|
|
71
|
+
**/
|
|
72
|
+
setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
|
|
73
|
+
/**
|
|
74
|
+
* Alias for `transfer_allow_death`, provided only for name-wise compatibility.
|
|
75
|
+
*
|
|
76
|
+
* WARNING: DEPRECATED! Will be released in approximately 3 months.
|
|
77
|
+
**/
|
|
78
|
+
transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
79
|
+
/**
|
|
80
|
+
* Transfer the entire transferable balance from the caller account.
|
|
81
|
+
*
|
|
82
|
+
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
83
|
+
* any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
|
|
84
|
+
* transferred by this function. To ensure that this function results in a killed account,
|
|
85
|
+
* you might need to prepare the account by removing any reference counters, storage
|
|
86
|
+
* deposits, etc...
|
|
87
|
+
*
|
|
88
|
+
* The dispatch origin of this call must be Signed.
|
|
89
|
+
*
|
|
90
|
+
* - `dest`: The recipient of the transfer.
|
|
91
|
+
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
92
|
+
* of the funds the account has, causing the sender account to be killed (false), or
|
|
93
|
+
* transfer everything except at least the existential deposit, which will guarantee to
|
|
94
|
+
* keep the sender account alive (true).
|
|
95
|
+
**/
|
|
96
|
+
transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
|
97
|
+
/**
|
|
98
|
+
* Transfer some liquid free balance to another account.
|
|
99
|
+
*
|
|
100
|
+
* `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
|
|
101
|
+
* If the sender's account is below the existential deposit as a result
|
|
102
|
+
* of the transfer, the account will be reaped.
|
|
103
|
+
*
|
|
104
|
+
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
105
|
+
**/
|
|
106
|
+
transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
107
|
+
/**
|
|
108
|
+
* Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
|
|
109
|
+
* kill the origin account.
|
|
110
|
+
*
|
|
111
|
+
* 99% of the time you want [`transfer_allow_death`] instead.
|
|
112
|
+
*
|
|
113
|
+
* [`transfer_allow_death`]: struct.Pallet.html#method.transfer
|
|
114
|
+
**/
|
|
115
|
+
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
116
|
+
/**
|
|
117
|
+
* Upgrade a specified account.
|
|
118
|
+
*
|
|
119
|
+
* - `origin`: Must be `Signed`.
|
|
120
|
+
* - `who`: The account to be upgraded.
|
|
121
|
+
*
|
|
122
|
+
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
123
|
+
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
124
|
+
* possibililty of churn).
|
|
125
|
+
**/
|
|
126
|
+
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
|
127
|
+
/**
|
|
128
|
+
* Generic tx
|
|
129
|
+
**/
|
|
130
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
131
|
+
};
|
|
132
|
+
bundle: {
|
|
133
|
+
burnBundle: AugmentedSubmittable<(from: AccountId32 | string | Uint8Array, to: AccountId32 | string | Uint8Array, bundleId: H256 | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, H256, u128]>;
|
|
134
|
+
mintBundle: AugmentedSubmittable<(from: AccountId32 | string | Uint8Array, to: AccountId32 | string | Uint8Array, bundleId: H256 | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, H256, u128]>;
|
|
135
|
+
registerBundle: AugmentedSubmittable<(classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array, bundleId: H256 | string | Uint8Array, schema: ITuple<[Vec<u64>, Vec<Vec<u64>>, Vec<Vec<u128>>]> | [Vec<u64> | (u64 | AnyNumber | Uint8Array)[], Vec<Vec<u64>>, Vec<Vec<u128>>], metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64, H256, ITuple<[Vec<u64>, Vec<Vec<u64>>, Vec<Vec<u128>>]>, Bytes]>;
|
|
136
|
+
/**
|
|
137
|
+
* Generic tx
|
|
138
|
+
**/
|
|
139
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
140
|
+
};
|
|
141
|
+
council: {
|
|
142
|
+
/**
|
|
143
|
+
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
144
|
+
*
|
|
145
|
+
* May be called by any signed account in order to finish voting and close the proposal.
|
|
146
|
+
*
|
|
147
|
+
* If called before the end of the voting period it will only close the vote if it is
|
|
148
|
+
* has enough votes to be approved or disapproved.
|
|
149
|
+
*
|
|
150
|
+
* If called after the end of the voting period abstentions are counted as rejections
|
|
151
|
+
* unless there is a prime member set and the prime member cast an approval.
|
|
152
|
+
*
|
|
153
|
+
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
154
|
+
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
155
|
+
*
|
|
156
|
+
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
157
|
+
* proposal.
|
|
158
|
+
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
159
|
+
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
160
|
+
*
|
|
161
|
+
* ## Complexity
|
|
162
|
+
* - `O(B + M + P1 + P2)` where:
|
|
163
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
164
|
+
* - `M` is members-count (code- and governance-bounded)
|
|
165
|
+
* - `P1` is the complexity of `proposal` preimage.
|
|
166
|
+
* - `P2` is proposal-count (code-bounded)
|
|
167
|
+
**/
|
|
168
|
+
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
169
|
+
/**
|
|
170
|
+
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
171
|
+
* state.
|
|
172
|
+
*
|
|
173
|
+
* Must be called by the Root origin.
|
|
174
|
+
*
|
|
175
|
+
* Parameters:
|
|
176
|
+
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
177
|
+
*
|
|
178
|
+
* ## Complexity
|
|
179
|
+
* O(P) where P is the number of max proposals
|
|
180
|
+
**/
|
|
181
|
+
disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
182
|
+
/**
|
|
183
|
+
* Dispatch a proposal from a member using the `Member` origin.
|
|
184
|
+
*
|
|
185
|
+
* Origin must be a member of the collective.
|
|
186
|
+
*
|
|
187
|
+
* ## Complexity:
|
|
188
|
+
* - `O(B + M + P)` where:
|
|
189
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
190
|
+
* - `M` members-count (code-bounded)
|
|
191
|
+
* - `P` complexity of dispatching `proposal`
|
|
192
|
+
**/
|
|
193
|
+
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
194
|
+
/**
|
|
195
|
+
* Add a new proposal to either be voted on or executed directly.
|
|
196
|
+
*
|
|
197
|
+
* Requires the sender to be member.
|
|
198
|
+
*
|
|
199
|
+
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
200
|
+
* or put up for voting.
|
|
201
|
+
*
|
|
202
|
+
* ## Complexity
|
|
203
|
+
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
204
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
205
|
+
* - `M` is members-count (code- and governance-bounded)
|
|
206
|
+
* - branching is influenced by `threshold` where:
|
|
207
|
+
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
208
|
+
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
209
|
+
**/
|
|
210
|
+
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
211
|
+
/**
|
|
212
|
+
* Set the collective's membership.
|
|
213
|
+
*
|
|
214
|
+
* - `new_members`: The new member list. Be nice to the chain and provide it sorted.
|
|
215
|
+
* - `prime`: The prime member whose vote sets the default.
|
|
216
|
+
* - `old_count`: The upper bound for the previous number of members in storage. Used for
|
|
217
|
+
* weight estimation.
|
|
218
|
+
*
|
|
219
|
+
* The dispatch of this call must be `SetMembersOrigin`.
|
|
220
|
+
*
|
|
221
|
+
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
222
|
+
* the weight estimations rely on it to estimate dispatchable weight.
|
|
223
|
+
*
|
|
224
|
+
* # WARNING:
|
|
225
|
+
*
|
|
226
|
+
* The `pallet-collective` can also be managed by logic outside of the pallet through the
|
|
227
|
+
* implementation of the trait [`ChangeMembers`].
|
|
228
|
+
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
229
|
+
* with other logic managing the member set.
|
|
230
|
+
*
|
|
231
|
+
* ## Complexity:
|
|
232
|
+
* - `O(MP + N)` where:
|
|
233
|
+
* - `M` old-members-count (code- and governance-bounded)
|
|
234
|
+
* - `N` new-members-count (code- and governance-bounded)
|
|
235
|
+
* - `P` proposals-count (code-bounded)
|
|
236
|
+
**/
|
|
237
|
+
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
|
238
|
+
/**
|
|
239
|
+
* Add an aye or nay vote for the sender to the given proposal.
|
|
240
|
+
*
|
|
241
|
+
* Requires the sender to be a member.
|
|
242
|
+
*
|
|
243
|
+
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
244
|
+
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
245
|
+
* fee.
|
|
246
|
+
* ## Complexity
|
|
247
|
+
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
248
|
+
**/
|
|
249
|
+
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
|
250
|
+
/**
|
|
251
|
+
* Generic tx
|
|
252
|
+
**/
|
|
253
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
254
|
+
};
|
|
255
|
+
dao: {
|
|
256
|
+
/**
|
|
257
|
+
* An example dispatchable that may throw a custom error.
|
|
258
|
+
**/
|
|
259
|
+
causeError: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
260
|
+
/**
|
|
261
|
+
* An example dispatchable that takes a singles value as a parameter, writes the value to
|
|
262
|
+
* storage and emits an event. This function must be dispatched by a signed extrinsic.
|
|
263
|
+
**/
|
|
264
|
+
doSomething: AugmentedSubmittable<(something: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
265
|
+
/**
|
|
266
|
+
* Generic tx
|
|
267
|
+
**/
|
|
268
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
269
|
+
};
|
|
270
|
+
exgine: {
|
|
271
|
+
/**
|
|
272
|
+
* An example dispatchable that may throw a custom error.
|
|
273
|
+
**/
|
|
274
|
+
causeError: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
275
|
+
/**
|
|
276
|
+
* An example dispatchable that takes a singles value as a parameter, writes the value to
|
|
277
|
+
* storage and emits an event. This function must be dispatched by a signed extrinsic.
|
|
278
|
+
**/
|
|
279
|
+
doSomething: AugmentedSubmittable<(something: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
280
|
+
/**
|
|
281
|
+
* Generic tx
|
|
282
|
+
**/
|
|
283
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
284
|
+
};
|
|
285
|
+
fula: {
|
|
286
|
+
batchRemoveManifest: AugmentedSubmittable<(cids: Vec<Bytes> | (Bytes | string | Uint8Array)[], poolIds: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, Vec<u32>]>;
|
|
287
|
+
batchRemoveStoredManifest: AugmentedSubmittable<(cids: Vec<Bytes> | (Bytes | string | Uint8Array)[], poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;
|
|
288
|
+
batchStorageManifest: AugmentedSubmittable<(cids: Vec<Bytes> | (Bytes | string | Uint8Array)[], poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;
|
|
289
|
+
batchUploadManifest: AugmentedSubmittable<(manifest: Vec<Bytes> | (Bytes | string | Uint8Array)[], cids: Vec<Bytes> | (Bytes | string | Uint8Array)[], poolId: Vec<u32> | (u32 | AnyNumber | Uint8Array)[], replicationFactor: Vec<u16> | (u16 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, Vec<Bytes>, Vec<u32>, Vec<u16>]>;
|
|
290
|
+
generateChallenge: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
291
|
+
getAvailableManifests: AugmentedSubmittable<(poolId: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
292
|
+
getManifests: AugmentedSubmittable<(poolId: Option<u32> | null | Uint8Array | u32 | AnyNumber, uploader: Option<AccountId32> | null | Uint8Array | AccountId32 | string, storer: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<AccountId32>, Option<AccountId32>]>;
|
|
293
|
+
getManifestsStorerData: AugmentedSubmittable<(poolId: Option<u32> | null | Uint8Array | u32 | AnyNumber, storer: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<AccountId32>]>;
|
|
294
|
+
mintLaborTokens: AugmentedSubmittable<(classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64, u128]>;
|
|
295
|
+
removeManifest: AugmentedSubmittable<(cid: Bytes | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;
|
|
296
|
+
removeStoredManifest: AugmentedSubmittable<(cid: Bytes | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;
|
|
297
|
+
storageManifest: AugmentedSubmittable<(cid: Bytes | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;
|
|
298
|
+
updateFileSize: AugmentedSubmittable<(cid: Bytes | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array, size: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32, u64]>;
|
|
299
|
+
updateFileSizes: AugmentedSubmittable<(cids: Vec<Bytes> | (Bytes | string | Uint8Array)[], poolId: u32 | AnyNumber | Uint8Array, sizes: Vec<u64> | (u64 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32, Vec<u64>]>;
|
|
300
|
+
/**
|
|
301
|
+
* Updates the values of the manifest storer data given the specific data
|
|
302
|
+
**/
|
|
303
|
+
updateManifest: AugmentedSubmittable<(cid: Bytes | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array, activeCycles: u16 | AnyNumber | Uint8Array, missedCycles: u16 | AnyNumber | Uint8Array, activeDays: i32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32, u16, u16, i32]>;
|
|
304
|
+
uploadManifest: AugmentedSubmittable<(manifest: Bytes | string | Uint8Array, cid: Bytes | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array, replicationFactor: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Bytes, u32, u16]>;
|
|
305
|
+
verifyChallenge: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, cids: Vec<Bytes> | (Bytes | string | Uint8Array)[], classId: u64 | AnyNumber | Uint8Array, assetId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Vec<Bytes>, u64, u64]>;
|
|
306
|
+
verifyManifests: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
307
|
+
/**
|
|
308
|
+
* Generic tx
|
|
309
|
+
**/
|
|
310
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
311
|
+
};
|
|
312
|
+
grandpa: {
|
|
313
|
+
/**
|
|
314
|
+
* Note that the current authority set of the GRANDPA finality gadget has stalled.
|
|
315
|
+
*
|
|
316
|
+
* This will trigger a forced authority set change at the beginning of the next session, to
|
|
317
|
+
* be enacted `delay` blocks after that. The `delay` should be high enough to safely assume
|
|
318
|
+
* that the block signalling the forced change will not be re-orged e.g. 1000 blocks.
|
|
319
|
+
* The block production rate (which may be slowed down because of finality lagging) should
|
|
320
|
+
* be taken into account when choosing the `delay`. The GRANDPA voters based on the new
|
|
321
|
+
* authority will start voting on top of `best_finalized_block_number` for new finalized
|
|
322
|
+
* blocks. `best_finalized_block_number` should be the highest of the latest finalized
|
|
323
|
+
* block of all validators of the new authority set.
|
|
324
|
+
*
|
|
325
|
+
* Only callable by root.
|
|
326
|
+
**/
|
|
327
|
+
noteStalled: AugmentedSubmittable<(delay: u32 | AnyNumber | Uint8Array, bestFinalizedBlockNumber: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
328
|
+
/**
|
|
329
|
+
* Report voter equivocation/misbehavior. This method will verify the
|
|
330
|
+
* equivocation proof and validate the given key ownership proof
|
|
331
|
+
* against the extracted offender. If both are valid, the offence
|
|
332
|
+
* will be reported.
|
|
333
|
+
**/
|
|
334
|
+
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpCoreVoid | null) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpCoreVoid]>;
|
|
335
|
+
/**
|
|
336
|
+
* Report voter equivocation/misbehavior. This method will verify the
|
|
337
|
+
* equivocation proof and validate the given key ownership proof
|
|
338
|
+
* against the extracted offender. If both are valid, the offence
|
|
339
|
+
* will be reported.
|
|
340
|
+
*
|
|
341
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
342
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
343
|
+
* if the block author is defined it will be defined as the equivocation
|
|
344
|
+
* reporter.
|
|
345
|
+
**/
|
|
346
|
+
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpCoreVoid | null) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpCoreVoid]>;
|
|
347
|
+
/**
|
|
348
|
+
* Generic tx
|
|
349
|
+
**/
|
|
350
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
351
|
+
};
|
|
352
|
+
imOnline: {
|
|
353
|
+
/**
|
|
354
|
+
* ## Complexity:
|
|
355
|
+
* - `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of
|
|
356
|
+
* `heartbeat.network_state.external_address`
|
|
357
|
+
* - `O(K)`: decoding of length `K`
|
|
358
|
+
* - `O(E)`: decoding/encoding of length `E`
|
|
359
|
+
**/
|
|
360
|
+
heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | { blockNumber?: any; networkState?: any; sessionIndex?: any; authorityIndex?: any; validatorsLen?: any } | string | Uint8Array, signature: PalletImOnlineSr25519AppSr25519Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature]>;
|
|
361
|
+
/**
|
|
362
|
+
* Generic tx
|
|
363
|
+
**/
|
|
364
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
365
|
+
};
|
|
366
|
+
market: {
|
|
367
|
+
createMarket: AugmentedSubmittable<(marketId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
|
368
|
+
createMarketRate: AugmentedSubmittable<(marketId: u64 | AnyNumber | Uint8Array, marketRateId: u64 | AnyNumber | Uint8Array, rates: Vec<SugarfungeMarketAssetRate> | (SugarfungeMarketAssetRate | { classId?: any; assetId?: any; action?: any; from?: any; to?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u64, u64, Vec<SugarfungeMarketAssetRate>]>;
|
|
369
|
+
deposit: AugmentedSubmittable<(marketId: u64 | AnyNumber | Uint8Array, marketRateId: u64 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64, u128]>;
|
|
370
|
+
exchangeAssets: AugmentedSubmittable<(marketId: u64 | AnyNumber | Uint8Array, marketRateId: u64 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64, u128]>;
|
|
371
|
+
/**
|
|
372
|
+
* Generic tx
|
|
373
|
+
**/
|
|
374
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
375
|
+
};
|
|
376
|
+
pool: {
|
|
377
|
+
/**
|
|
378
|
+
* Cancel a `PoolRequest`, useful if a user decides to join another pool or they are stuck in
|
|
379
|
+
* the voting queue for too long.
|
|
380
|
+
**/
|
|
381
|
+
cancelJoin: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, targetAccount: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>]>;
|
|
382
|
+
/**
|
|
383
|
+
* Creates a new pool. `peer_id` is a libp2p peerID validated on the client-side.
|
|
384
|
+
*
|
|
385
|
+
* TODO: Deposit; check the current pool number. Currently we check the PoolId to retrieve
|
|
386
|
+
* the pool number, but if we want to delete empty pools - then we need to retrieve the
|
|
387
|
+
* actual pool number from storage, for which a CountedMap should be used.
|
|
388
|
+
**/
|
|
389
|
+
create: AugmentedSubmittable<(name: Bytes | string | Uint8Array, region: Bytes | string | Uint8Array, peerId: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Bytes, Bytes]>;
|
|
390
|
+
/**
|
|
391
|
+
* Open a `PoolRequest` to join the pool.
|
|
392
|
+
**/
|
|
393
|
+
join: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, peerId: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
394
|
+
/**
|
|
395
|
+
* Allows for the user to leave a pool.
|
|
396
|
+
**/
|
|
397
|
+
leavePool: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, targetAccount: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>]>;
|
|
398
|
+
/**
|
|
399
|
+
* Vote for a `PoolRequest`. If `positive` is set to `false` - that's voting against.
|
|
400
|
+
* This method also calculates votes each time it's called and takes action once the result
|
|
401
|
+
* is conclusive.
|
|
402
|
+
* TODO: Currently does not cover pool overflow scenario and simply fails then.
|
|
403
|
+
**/
|
|
404
|
+
vote: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array, positive: bool | boolean | Uint8Array, peerId: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32, bool, Bytes]>;
|
|
405
|
+
/**
|
|
406
|
+
* Generic tx
|
|
407
|
+
**/
|
|
408
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
409
|
+
};
|
|
410
|
+
scheduler: {
|
|
411
|
+
/**
|
|
412
|
+
* Cancel an anonymously scheduled task.
|
|
413
|
+
**/
|
|
414
|
+
cancel: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
415
|
+
/**
|
|
416
|
+
* Cancel a named scheduled task.
|
|
417
|
+
**/
|
|
418
|
+
cancelNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed]>;
|
|
419
|
+
/**
|
|
420
|
+
* Anonymously schedule a task.
|
|
421
|
+
**/
|
|
422
|
+
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
423
|
+
/**
|
|
424
|
+
* Anonymously schedule a task after a delay.
|
|
425
|
+
**/
|
|
426
|
+
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
427
|
+
/**
|
|
428
|
+
* Schedule a named task.
|
|
429
|
+
**/
|
|
430
|
+
scheduleNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
431
|
+
/**
|
|
432
|
+
* Schedule a named task after a delay.
|
|
433
|
+
**/
|
|
434
|
+
scheduleNamedAfter: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
435
|
+
/**
|
|
436
|
+
* Generic tx
|
|
437
|
+
**/
|
|
438
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
439
|
+
};
|
|
440
|
+
session: {
|
|
441
|
+
/**
|
|
442
|
+
* Removes any session key(s) of the function caller.
|
|
443
|
+
*
|
|
444
|
+
* This doesn't take effect until the next session.
|
|
445
|
+
*
|
|
446
|
+
* The dispatch origin of this function must be Signed and the account must be either be
|
|
447
|
+
* convertible to a validator ID using the chain's typical addressing system (this usually
|
|
448
|
+
* means being a controller account) or directly convertible into a validator ID (which
|
|
449
|
+
* usually means being a stash account).
|
|
450
|
+
*
|
|
451
|
+
* ## Complexity
|
|
452
|
+
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
453
|
+
* `T::Keys::key_ids()` which is fixed.
|
|
454
|
+
**/
|
|
455
|
+
purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
456
|
+
/**
|
|
457
|
+
* Sets the session key(s) of the function caller to `keys`.
|
|
458
|
+
* Allows an account to set its session key prior to becoming a validator.
|
|
459
|
+
* This doesn't take effect until the next session.
|
|
460
|
+
*
|
|
461
|
+
* The dispatch origin of this function must be signed.
|
|
462
|
+
*
|
|
463
|
+
* ## Complexity
|
|
464
|
+
* - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
|
|
465
|
+
* fixed.
|
|
466
|
+
**/
|
|
467
|
+
setKeys: AugmentedSubmittable<(keys: SugarfungeRuntimeOpaqueSessionKeys | { aura?: any; grandpa?: any; imOnline?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SugarfungeRuntimeOpaqueSessionKeys, Bytes]>;
|
|
468
|
+
/**
|
|
469
|
+
* Generic tx
|
|
470
|
+
**/
|
|
471
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
472
|
+
};
|
|
473
|
+
sudo: {
|
|
474
|
+
/**
|
|
475
|
+
* Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo
|
|
476
|
+
* key.
|
|
477
|
+
*
|
|
478
|
+
* The dispatch origin for this call must be _Signed_.
|
|
479
|
+
*
|
|
480
|
+
* ## Complexity
|
|
481
|
+
* - O(1).
|
|
482
|
+
**/
|
|
483
|
+
setKey: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
484
|
+
/**
|
|
485
|
+
* Authenticates the sudo key and dispatches a function call with `Root` origin.
|
|
486
|
+
*
|
|
487
|
+
* The dispatch origin for this call must be _Signed_.
|
|
488
|
+
*
|
|
489
|
+
* ## Complexity
|
|
490
|
+
* - O(1).
|
|
491
|
+
**/
|
|
492
|
+
sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
|
493
|
+
/**
|
|
494
|
+
* Authenticates the sudo key and dispatches a function call with `Signed` origin from
|
|
495
|
+
* a given account.
|
|
496
|
+
*
|
|
497
|
+
* The dispatch origin for this call must be _Signed_.
|
|
498
|
+
*
|
|
499
|
+
* ## Complexity
|
|
500
|
+
* - O(1).
|
|
501
|
+
**/
|
|
502
|
+
sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;
|
|
503
|
+
/**
|
|
504
|
+
* Authenticates the sudo key and dispatches a function call with `Root` origin.
|
|
505
|
+
* This function does not check the weight of the call, and instead allows the
|
|
506
|
+
* Sudo user to specify the weight of the call.
|
|
507
|
+
*
|
|
508
|
+
* The dispatch origin for this call must be _Signed_.
|
|
509
|
+
*
|
|
510
|
+
* ## Complexity
|
|
511
|
+
* - O(1).
|
|
512
|
+
**/
|
|
513
|
+
sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, SpWeightsWeightV2Weight]>;
|
|
514
|
+
/**
|
|
515
|
+
* Generic tx
|
|
516
|
+
**/
|
|
517
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
518
|
+
};
|
|
519
|
+
system: {
|
|
520
|
+
/**
|
|
521
|
+
* Kill all storage items with a key that starts with the given prefix.
|
|
522
|
+
*
|
|
523
|
+
* **NOTE:** We rely on the Root origin to provide us the number of subkeys under
|
|
524
|
+
* the prefix we are removing to accurately calculate the weight of this function.
|
|
525
|
+
**/
|
|
526
|
+
killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;
|
|
527
|
+
/**
|
|
528
|
+
* Kill some items from storage.
|
|
529
|
+
**/
|
|
530
|
+
killStorage: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;
|
|
531
|
+
/**
|
|
532
|
+
* Make some on-chain remark.
|
|
533
|
+
*
|
|
534
|
+
* - `O(1)`
|
|
535
|
+
**/
|
|
536
|
+
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
537
|
+
/**
|
|
538
|
+
* Make some on-chain remark and emit event.
|
|
539
|
+
**/
|
|
540
|
+
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
541
|
+
/**
|
|
542
|
+
* Set the new runtime code.
|
|
543
|
+
**/
|
|
544
|
+
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
545
|
+
/**
|
|
546
|
+
* Set the new runtime code without doing any checks of the given `code`.
|
|
547
|
+
**/
|
|
548
|
+
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
549
|
+
/**
|
|
550
|
+
* Set the number of pages in the WebAssembly environment's heap.
|
|
551
|
+
**/
|
|
552
|
+
setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
|
553
|
+
/**
|
|
554
|
+
* Set some items of storage.
|
|
555
|
+
**/
|
|
556
|
+
setStorage: AugmentedSubmittable<(items: Vec<ITuple<[Bytes, Bytes]>> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[Bytes, Bytes]>>]>;
|
|
557
|
+
/**
|
|
558
|
+
* Generic tx
|
|
559
|
+
**/
|
|
560
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
561
|
+
};
|
|
562
|
+
timestamp: {
|
|
563
|
+
/**
|
|
564
|
+
* Set the current time.
|
|
565
|
+
*
|
|
566
|
+
* This call should be invoked exactly once per block. It will panic at the finalization
|
|
567
|
+
* phase, if this call hasn't been invoked by that time.
|
|
568
|
+
*
|
|
569
|
+
* The timestamp should be greater than the previous one by the amount specified by
|
|
570
|
+
* `MinimumPeriod`.
|
|
571
|
+
*
|
|
572
|
+
* The dispatch origin for this call must be `Inherent`.
|
|
573
|
+
*
|
|
574
|
+
* ## Complexity
|
|
575
|
+
* - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
|
|
576
|
+
* - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in
|
|
577
|
+
* `on_finalize`)
|
|
578
|
+
* - 1 event handler `on_timestamp_set`. Must be `O(1)`.
|
|
579
|
+
**/
|
|
580
|
+
set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;
|
|
581
|
+
/**
|
|
582
|
+
* Generic tx
|
|
583
|
+
**/
|
|
584
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
585
|
+
};
|
|
586
|
+
utility: {
|
|
587
|
+
/**
|
|
588
|
+
* Send a call through an indexed pseudonym of the sender.
|
|
589
|
+
*
|
|
590
|
+
* Filter from origin are passed along. The call will be dispatched with an origin which
|
|
591
|
+
* use the same filter as the origin of this call.
|
|
592
|
+
*
|
|
593
|
+
* NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
|
|
594
|
+
* because you expect `proxy` to have been used prior in the call stack and you do not want
|
|
595
|
+
* the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
|
|
596
|
+
* in the Multisig pallet instead.
|
|
597
|
+
*
|
|
598
|
+
* NOTE: Prior to version *12, this was called `as_limited_sub`.
|
|
599
|
+
*
|
|
600
|
+
* The dispatch origin for this call must be _Signed_.
|
|
601
|
+
**/
|
|
602
|
+
asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
|
|
603
|
+
/**
|
|
604
|
+
* Send a batch of dispatch calls.
|
|
605
|
+
*
|
|
606
|
+
* May be called from any origin except `None`.
|
|
607
|
+
*
|
|
608
|
+
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
609
|
+
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
610
|
+
*
|
|
611
|
+
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
612
|
+
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
613
|
+
*
|
|
614
|
+
* ## Complexity
|
|
615
|
+
* - O(C) where C is the number of calls to be batched.
|
|
616
|
+
*
|
|
617
|
+
* This will return `Ok` in all circumstances. To determine the success of the batch, an
|
|
618
|
+
* event is deposited. If a call failed and the batch was interrupted, then the
|
|
619
|
+
* `BatchInterrupted` event is deposited, along with the number of successful calls made
|
|
620
|
+
* and the error of the failed call. If all were successful, then the `BatchCompleted`
|
|
621
|
+
* event is deposited.
|
|
622
|
+
**/
|
|
623
|
+
batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
624
|
+
/**
|
|
625
|
+
* Send a batch of dispatch calls and atomically execute them.
|
|
626
|
+
* The whole transaction will rollback and fail if any of the calls failed.
|
|
627
|
+
*
|
|
628
|
+
* May be called from any origin except `None`.
|
|
629
|
+
*
|
|
630
|
+
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
631
|
+
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
632
|
+
*
|
|
633
|
+
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
634
|
+
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
635
|
+
*
|
|
636
|
+
* ## Complexity
|
|
637
|
+
* - O(C) where C is the number of calls to be batched.
|
|
638
|
+
**/
|
|
639
|
+
batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
640
|
+
/**
|
|
641
|
+
* Dispatches a function call with a provided origin.
|
|
642
|
+
*
|
|
643
|
+
* The dispatch origin for this call must be _Root_.
|
|
644
|
+
*
|
|
645
|
+
* ## Complexity
|
|
646
|
+
* - O(1).
|
|
647
|
+
**/
|
|
648
|
+
dispatchAs: AugmentedSubmittable<(asOrigin: SugarfungeRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SugarfungeRuntimeOriginCaller, Call]>;
|
|
649
|
+
/**
|
|
650
|
+
* Send a batch of dispatch calls.
|
|
651
|
+
* Unlike `batch`, it allows errors and won't interrupt.
|
|
652
|
+
*
|
|
653
|
+
* May be called from any origin except `None`.
|
|
654
|
+
*
|
|
655
|
+
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
656
|
+
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
657
|
+
*
|
|
658
|
+
* If origin is root then the calls are dispatch without checking origin filter. (This
|
|
659
|
+
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
660
|
+
*
|
|
661
|
+
* ## Complexity
|
|
662
|
+
* - O(C) where C is the number of calls to be batched.
|
|
663
|
+
**/
|
|
664
|
+
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
665
|
+
/**
|
|
666
|
+
* Dispatch a function call with a specified weight.
|
|
667
|
+
*
|
|
668
|
+
* This function does not check the weight of the call, and instead allows the
|
|
669
|
+
* Root origin to specify the weight of the call.
|
|
670
|
+
*
|
|
671
|
+
* The dispatch origin for this call must be _Root_.
|
|
672
|
+
**/
|
|
673
|
+
withWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, SpWeightsWeightV2Weight]>;
|
|
674
|
+
/**
|
|
675
|
+
* Generic tx
|
|
676
|
+
**/
|
|
677
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
678
|
+
};
|
|
679
|
+
validatorSet: {
|
|
680
|
+
/**
|
|
681
|
+
* Add a new validator.
|
|
682
|
+
*
|
|
683
|
+
* New validator's session keys should be set in Session pallet before
|
|
684
|
+
* calling this.
|
|
685
|
+
*
|
|
686
|
+
* The origin can be configured using the `AddRemoveOrigin` type in the
|
|
687
|
+
* host runtime. Can also be set to sudo/root.
|
|
688
|
+
**/
|
|
689
|
+
addValidator: AugmentedSubmittable<(validatorId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
690
|
+
/**
|
|
691
|
+
* Add an approved validator again when it comes back online.
|
|
692
|
+
*
|
|
693
|
+
* For this call, the dispatch origin must be the validator itself.
|
|
694
|
+
**/
|
|
695
|
+
addValidatorAgain: AugmentedSubmittable<(validatorId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
696
|
+
/**
|
|
697
|
+
* Remove a validator.
|
|
698
|
+
*
|
|
699
|
+
* The origin can be configured using the `AddRemoveOrigin` type in the
|
|
700
|
+
* host runtime. Can also be set to sudo/root.
|
|
701
|
+
**/
|
|
702
|
+
removeValidator: AugmentedSubmittable<(validatorId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
703
|
+
/**
|
|
704
|
+
* Generic tx
|
|
705
|
+
**/
|
|
706
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
707
|
+
};
|
|
708
|
+
} // AugmentedSubmittables
|
|
709
|
+
} // declare module
|