@polkadot/api-augment 8.11.2 → 8.12.2
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/cjs/kusama/consts.js +3 -1
- package/cjs/kusama/errors.js +3 -1
- package/cjs/kusama/events.js +3 -1
- package/cjs/kusama/query.js +3 -1
- package/cjs/kusama/runtime.js +3 -1
- package/cjs/kusama/tx.js +3 -1
- package/cjs/packageInfo.js +1 -1
- package/cjs/polkadot/consts.js +3 -1
- package/cjs/polkadot/errors.js +3 -1
- package/cjs/polkadot/events.js +3 -1
- package/cjs/polkadot/query.js +3 -1
- package/cjs/polkadot/runtime.js +3 -1
- package/cjs/polkadot/tx.js +3 -1
- package/cjs/substrate/consts.js +3 -1
- package/cjs/substrate/errors.js +3 -1
- package/cjs/substrate/events.js +3 -1
- package/cjs/substrate/query.js +3 -1
- package/cjs/substrate/runtime.js +3 -1
- package/cjs/substrate/tx.js +3 -1
- package/kusama/consts.d.ts +3 -1
- package/kusama/consts.js +6 -1
- package/kusama/errors.d.ts +3 -1
- package/kusama/errors.js +6 -1
- package/kusama/events.d.ts +3 -1
- package/kusama/events.js +6 -1
- package/kusama/query.d.ts +4 -1
- package/kusama/query.js +6 -1
- package/kusama/runtime.d.ts +5 -2
- package/kusama/runtime.js +6 -1
- package/kusama/tx.d.ts +61 -23
- package/kusama/tx.js +6 -1
- package/package.json +7 -8
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +3 -1
- package/polkadot/consts.js +6 -1
- package/polkadot/errors.d.ts +3 -1
- package/polkadot/errors.js +6 -1
- package/polkadot/events.d.ts +3 -1
- package/polkadot/events.js +6 -1
- package/polkadot/query.d.ts +4 -1
- package/polkadot/query.js +6 -1
- package/polkadot/runtime.d.ts +5 -2
- package/polkadot/runtime.js +6 -1
- package/polkadot/tx.d.ts +61 -23
- package/polkadot/tx.js +6 -1
- package/substrate/consts.d.ts +3 -1
- package/substrate/consts.js +6 -1
- package/substrate/errors.d.ts +3 -1
- package/substrate/errors.js +6 -1
- package/substrate/events.d.ts +3 -1
- package/substrate/events.js +6 -1
- package/substrate/query.d.ts +5 -2
- package/substrate/query.js +6 -1
- package/substrate/runtime.d.ts +8 -5
- package/substrate/runtime.js +6 -1
- package/substrate/tx.d.ts +63 -26
- package/substrate/tx.js +6 -1
- package/mod.d.ts +0 -1
package/substrate/tx.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import '@polkadot/api-base/types/submittable';
|
|
2
|
+
import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Data } from '@polkadot/types';
|
|
3
4
|
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
6
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
6
7
|
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
|
8
|
+
export declare type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
9
|
+
export declare type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
10
|
+
export declare type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
7
11
|
declare module '@polkadot/api-base/types/submittable' {
|
|
8
12
|
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
9
13
|
alliance: {
|
|
@@ -265,7 +269,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
265
269
|
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
266
270
|
* # </weight>
|
|
267
271
|
**/
|
|
268
|
-
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null |
|
|
272
|
+
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]>;
|
|
269
273
|
/**
|
|
270
274
|
* Add an aye or nay vote for the sender to the given proposal.
|
|
271
275
|
*
|
|
@@ -1587,7 +1591,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1587
1591
|
Address32: any;
|
|
1588
1592
|
} | {
|
|
1589
1593
|
Address20: any;
|
|
1590
|
-
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null |
|
|
1594
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u64>, Option<Compact<u128>>, Bytes]>;
|
|
1591
1595
|
/**
|
|
1592
1596
|
* Instantiates a contract from a previously deployed wasm binary.
|
|
1593
1597
|
*
|
|
@@ -1595,7 +1599,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1595
1599
|
* code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
|
|
1596
1600
|
* must be supplied.
|
|
1597
1601
|
**/
|
|
1598
|
-
instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null |
|
|
1602
|
+
instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<u64>, Option<Compact<u128>>, H256, Bytes, Bytes]>;
|
|
1599
1603
|
/**
|
|
1600
1604
|
* Instantiates a new contract from the supplied `code` optionally transferring
|
|
1601
1605
|
* some balance.
|
|
@@ -1624,7 +1628,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1624
1628
|
* - The `value` is transferred to the new account.
|
|
1625
1629
|
* - The `deploy` function is executed in the context of the newly-created account.
|
|
1626
1630
|
**/
|
|
1627
|
-
instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null |
|
|
1631
|
+
instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<u64>, Option<Compact<u128>>, Bytes, Bytes, Bytes]>;
|
|
1628
1632
|
/**
|
|
1629
1633
|
* Remove the code stored under `code_hash` and refund the deposit to its owner.
|
|
1630
1634
|
*
|
|
@@ -1673,7 +1677,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1673
1677
|
* only be instantiated by permissioned entities. The same is true when uploading
|
|
1674
1678
|
* through [`Self::instantiate_with_code`].
|
|
1675
1679
|
**/
|
|
1676
|
-
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null |
|
|
1680
|
+
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber) => SubmittableExtrinsic<ApiType>, [Bytes, Option<Compact<u128>>]>;
|
|
1677
1681
|
/**
|
|
1678
1682
|
* Generic tx
|
|
1679
1683
|
**/
|
|
@@ -1756,7 +1760,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1756
1760
|
* Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
|
|
1757
1761
|
* Weight is calculated for the maximum number of vote.
|
|
1758
1762
|
**/
|
|
1759
|
-
removeVote: AugmentedSubmittable<(clazz: Option<u16> | null |
|
|
1763
|
+
removeVote: AugmentedSubmittable<(clazz: Option<u16> | null | Uint8Array | u16 | AnyNumber, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u16>, u32]>;
|
|
1760
1764
|
/**
|
|
1761
1765
|
* Undelegate the voting power of the sending account for a particular class of polls.
|
|
1762
1766
|
*
|
|
@@ -1938,7 +1942,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1938
1942
|
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
1939
1943
|
* # </weight>
|
|
1940
1944
|
**/
|
|
1941
|
-
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null |
|
|
1945
|
+
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]>;
|
|
1942
1946
|
/**
|
|
1943
1947
|
* Add an aye or nay vote for the sender to the given proposal.
|
|
1944
1948
|
*
|
|
@@ -1980,7 +1984,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1980
1984
|
* Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a
|
|
1981
1985
|
* reasonable value).
|
|
1982
1986
|
**/
|
|
1983
|
-
blacklist: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, maybeRefIndex: Option<u32> | null |
|
|
1987
|
+
blacklist: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, maybeRefIndex: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [H256, Option<u32>]>;
|
|
1984
1988
|
/**
|
|
1985
1989
|
* Remove a proposal.
|
|
1986
1990
|
*
|
|
@@ -2310,7 +2314,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2310
2314
|
* This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
|
|
2311
2315
|
* calling [`Call::set_emergency_election_result`].
|
|
2312
2316
|
**/
|
|
2313
|
-
governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null |
|
|
2317
|
+
governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null | Uint8Array | u32 | AnyNumber, maybeMaxTargets: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<u32>]>;
|
|
2314
2318
|
/**
|
|
2315
2319
|
* Set a solution in the queue, to be handed out to the client of this pallet in the next
|
|
2316
2320
|
* call to `ElectionProvider::elect`.
|
|
@@ -2332,7 +2336,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2332
2336
|
*
|
|
2333
2337
|
* This check can be turned off by setting the value to `None`.
|
|
2334
2338
|
**/
|
|
2335
|
-
setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<SpNposElectionsElectionScore> | null |
|
|
2339
|
+
setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<SpNposElectionsElectionScore> | null | Uint8Array | SpNposElectionsElectionScore | {
|
|
2340
|
+
minimalStake?: any;
|
|
2341
|
+
sumStake?: any;
|
|
2342
|
+
sumStakeSquared?: any;
|
|
2343
|
+
} | string) => SubmittableExtrinsic<ApiType>, [Option<SpNposElectionsElectionScore>]>;
|
|
2336
2344
|
/**
|
|
2337
2345
|
* Submit a solution for the signed phase.
|
|
2338
2346
|
*
|
|
@@ -3212,7 +3220,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3212
3220
|
* - Write: Multisig Storage, [Caller Account]
|
|
3213
3221
|
* # </weight>
|
|
3214
3222
|
**/
|
|
3215
|
-
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null |
|
|
3223
|
+
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
|
|
3224
|
+
height?: any;
|
|
3225
|
+
index?: any;
|
|
3226
|
+
} | string, callHash: U8aFixed | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, u64]>;
|
|
3216
3227
|
/**
|
|
3217
3228
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
3218
3229
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
@@ -3260,7 +3271,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3260
3271
|
* - Plus Call Weight
|
|
3261
3272
|
* # </weight>
|
|
3262
3273
|
**/
|
|
3263
|
-
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null |
|
|
3274
|
+
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
|
|
3275
|
+
height?: any;
|
|
3276
|
+
index?: any;
|
|
3277
|
+
} | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, u64]>;
|
|
3264
3278
|
/**
|
|
3265
3279
|
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
|
3266
3280
|
*
|
|
@@ -3680,7 +3694,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3680
3694
|
* Weight is a function of the number of proxies the user has (P).
|
|
3681
3695
|
* # </weight>
|
|
3682
3696
|
**/
|
|
3683
|
-
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null |
|
|
3697
|
+
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | Uint8Array | NodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<NodeRuntimeProxyType>, Call]>;
|
|
3684
3698
|
/**
|
|
3685
3699
|
* Dispatch the given `call` from an account that the sender is authorized for through
|
|
3686
3700
|
* `add_proxy`.
|
|
@@ -3700,7 +3714,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3700
3714
|
* - P: the number of proxies the user has.
|
|
3701
3715
|
* # </weight>
|
|
3702
3716
|
**/
|
|
3703
|
-
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null |
|
|
3717
|
+
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | Uint8Array | NodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<NodeRuntimeProxyType>, Call]>;
|
|
3704
3718
|
/**
|
|
3705
3719
|
* Remove the given announcement of a delegate.
|
|
3706
3720
|
*
|
|
@@ -4171,7 +4185,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4171
4185
|
/**
|
|
4172
4186
|
* Anonymously schedule a task.
|
|
4173
4187
|
**/
|
|
4174
|
-
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null |
|
|
4188
|
+
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: FrameSupportScheduleMaybeHashed | {
|
|
4175
4189
|
Value: any;
|
|
4176
4190
|
} | {
|
|
4177
4191
|
Hash: any;
|
|
@@ -4183,7 +4197,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4183
4197
|
* Same as [`schedule`].
|
|
4184
4198
|
* # </weight>
|
|
4185
4199
|
**/
|
|
4186
|
-
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null |
|
|
4200
|
+
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: FrameSupportScheduleMaybeHashed | {
|
|
4187
4201
|
Value: any;
|
|
4188
4202
|
} | {
|
|
4189
4203
|
Hash: any;
|
|
@@ -4191,7 +4205,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4191
4205
|
/**
|
|
4192
4206
|
* Schedule a named task.
|
|
4193
4207
|
**/
|
|
4194
|
-
scheduleNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null |
|
|
4208
|
+
scheduleNamed: AugmentedSubmittable<(id: Bytes | 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: FrameSupportScheduleMaybeHashed | {
|
|
4195
4209
|
Value: any;
|
|
4196
4210
|
} | {
|
|
4197
4211
|
Hash: any;
|
|
@@ -4203,7 +4217,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4203
4217
|
* Same as [`schedule_named`](Self::schedule_named).
|
|
4204
4218
|
* # </weight>
|
|
4205
4219
|
**/
|
|
4206
|
-
scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null |
|
|
4220
|
+
scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | 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: FrameSupportScheduleMaybeHashed | {
|
|
4207
4221
|
Value: any;
|
|
4208
4222
|
} | {
|
|
4209
4223
|
Hash: any;
|
|
@@ -5138,7 +5152,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5138
5152
|
*
|
|
5139
5153
|
* The dispatch origin of this call must be [`Config::ControlOrigin`].
|
|
5140
5154
|
**/
|
|
5141
|
-
controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null |
|
|
5155
|
+
controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | Uint8Array | PalletStateTrieMigrationMigrationLimits | {
|
|
5156
|
+
size_?: any;
|
|
5157
|
+
item?: any;
|
|
5158
|
+
} | string) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;
|
|
5142
5159
|
/**
|
|
5143
5160
|
* Forcefully set the progress the running migration.
|
|
5144
5161
|
*
|
|
@@ -5469,7 +5486,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5469
5486
|
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
5470
5487
|
* # </weight>
|
|
5471
5488
|
**/
|
|
5472
|
-
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null |
|
|
5489
|
+
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]>;
|
|
5473
5490
|
/**
|
|
5474
5491
|
* Add an aye or nay vote for the sender to the given proposal.
|
|
5475
5492
|
*
|
|
@@ -5878,7 +5895,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5878
5895
|
* Weight: `O(1)`
|
|
5879
5896
|
* Modes: `check_owner.is_some()`.
|
|
5880
5897
|
**/
|
|
5881
|
-
burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | null |
|
|
5898
|
+
burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | null | Uint8Array | MultiAddress | {
|
|
5899
|
+
Id: any;
|
|
5900
|
+
} | {
|
|
5901
|
+
Index: any;
|
|
5902
|
+
} | {
|
|
5903
|
+
Raw: any;
|
|
5904
|
+
} | {
|
|
5905
|
+
Address32: any;
|
|
5906
|
+
} | {
|
|
5907
|
+
Address20: any;
|
|
5908
|
+
} | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
|
5882
5909
|
/**
|
|
5883
5910
|
* Cancel the prior approval for the transfer of an item by a delegate.
|
|
5884
5911
|
*
|
|
@@ -5897,7 +5924,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5897
5924
|
*
|
|
5898
5925
|
* Weight: `O(1)`
|
|
5899
5926
|
**/
|
|
5900
|
-
cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option<MultiAddress> | null |
|
|
5927
|
+
cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option<MultiAddress> | null | Uint8Array | MultiAddress | {
|
|
5928
|
+
Id: any;
|
|
5929
|
+
} | {
|
|
5930
|
+
Index: any;
|
|
5931
|
+
} | {
|
|
5932
|
+
Raw: any;
|
|
5933
|
+
} | {
|
|
5934
|
+
Address32: any;
|
|
5935
|
+
} | {
|
|
5936
|
+
Address20: any;
|
|
5937
|
+
} | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
|
5901
5938
|
/**
|
|
5902
5939
|
* Clear an attribute for a collection or item.
|
|
5903
5940
|
*
|
|
@@ -5914,7 +5951,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5914
5951
|
*
|
|
5915
5952
|
* Weight: `O(1)`
|
|
5916
5953
|
**/
|
|
5917
|
-
clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null |
|
|
5954
|
+
clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, Bytes]>;
|
|
5918
5955
|
/**
|
|
5919
5956
|
* Clear the metadata for a collection.
|
|
5920
5957
|
*
|
|
@@ -6167,7 +6204,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6167
6204
|
*
|
|
6168
6205
|
* Emits `OwnershipAcceptanceChanged`.
|
|
6169
6206
|
**/
|
|
6170
|
-
setAcceptOwnership: AugmentedSubmittable<(maybeCollection: Option<u32> | null |
|
|
6207
|
+
setAcceptOwnership: AugmentedSubmittable<(maybeCollection: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
6171
6208
|
/**
|
|
6172
6209
|
* Set an attribute for a collection or item.
|
|
6173
6210
|
*
|
|
@@ -6187,7 +6224,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6187
6224
|
*
|
|
6188
6225
|
* Weight: `O(1)`
|
|
6189
6226
|
**/
|
|
6190
|
-
setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null |
|
|
6227
|
+
setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, Bytes, Bytes]>;
|
|
6191
6228
|
/**
|
|
6192
6229
|
* Set the maximum amount of items a collection could have.
|
|
6193
6230
|
*
|
package/substrate/tx.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
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'; // declare module
|
package/mod.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './index';
|