@polkadot/api-augment 9.8.2 → 9.9.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/packageInfo.js +1 -1
- package/kusama/consts.d.ts +12 -1
- package/kusama/errors.d.ts +2 -2
- package/kusama/events.d.ts +1 -8
- package/kusama/query.d.ts +2 -2
- package/kusama/runtime.d.ts +2 -2
- package/kusama/tx.d.ts +4 -8
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +12 -1
- package/polkadot/errors.d.ts +2 -2
- package/polkadot/events.d.ts +1 -8
- package/polkadot/query.d.ts +2 -2
- package/polkadot/runtime.d.ts +2 -2
- package/polkadot/tx.d.ts +4 -8
- package/substrate/consts.d.ts +19 -3
- package/substrate/errors.d.ts +26 -12
- package/substrate/events.d.ts +33 -13
- package/substrate/query.d.ts +4 -6
- package/substrate/runtime.d.ts +2 -2
- package/substrate/tx.d.ts +85 -47
package/cjs/packageInfo.js
CHANGED
package/kusama/consts.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from
|
|
|
4
4
|
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
6
|
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
|
-
export
|
|
7
|
+
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/consts' {
|
|
9
9
|
interface AugmentedConsts<ApiType extends ApiTypes> {
|
|
10
10
|
auctions: {
|
|
@@ -346,6 +346,17 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
346
346
|
**/
|
|
347
347
|
[key: string]: Codec;
|
|
348
348
|
};
|
|
349
|
+
fastUnstake: {
|
|
350
|
+
/**
|
|
351
|
+
* Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
|
|
352
|
+
* the costs of resources on unsuccessful unstake.
|
|
353
|
+
**/
|
|
354
|
+
deposit: u128 & AugmentedConst<ApiType>;
|
|
355
|
+
/**
|
|
356
|
+
* Generic const
|
|
357
|
+
**/
|
|
358
|
+
[key: string]: Codec;
|
|
359
|
+
};
|
|
349
360
|
fellowshipReferenda: {
|
|
350
361
|
/**
|
|
351
362
|
* Quantization level for the referendum wakeup scheduler. A higher number will result in
|
package/kusama/errors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/errors';
|
|
2
2
|
import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
|
|
3
|
-
export
|
|
3
|
+
export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
|
|
4
4
|
declare module '@polkadot/api-base/types/errors' {
|
|
5
5
|
interface AugmentedErrors<ApiType extends ApiTypes> {
|
|
6
6
|
auctions: {
|
|
@@ -107,7 +107,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
107
107
|
**/
|
|
108
108
|
ExistingVestingSchedule: AugmentedError<ApiType>;
|
|
109
109
|
/**
|
|
110
|
-
* Balance too low to send value
|
|
110
|
+
* Balance too low to send value.
|
|
111
111
|
**/
|
|
112
112
|
InsufficientBalance: AugmentedError<ApiType>;
|
|
113
113
|
/**
|
package/kusama/events.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { ITuple } from '@polkadot/types-codec/types';
|
|
|
5
5
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
6
6
|
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
7
7
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
8
|
-
export
|
|
8
|
+
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
9
9
|
declare module '@polkadot/api-base/types/events' {
|
|
10
10
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
11
11
|
auctions: {
|
|
@@ -573,13 +573,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
573
573
|
* of the batch. A new batch will be created upon next block.
|
|
574
574
|
**/
|
|
575
575
|
BatchFinished: AugmentedEvent<ApiType, []>;
|
|
576
|
-
/**
|
|
577
|
-
* Some internal error happened while migrating stash. They are removed as head as a
|
|
578
|
-
* consequence.
|
|
579
|
-
**/
|
|
580
|
-
Errored: AugmentedEvent<ApiType, [stash: AccountId32], {
|
|
581
|
-
stash: AccountId32;
|
|
582
|
-
}>;
|
|
583
576
|
/**
|
|
584
577
|
* An internal error happened. Operations will be paused now.
|
|
585
578
|
**/
|
package/kusama/query.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
|
7
7
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
8
8
|
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
9
9
|
import type { Observable } from '@polkadot/types/types';
|
|
10
|
-
export
|
|
11
|
-
export
|
|
10
|
+
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
11
|
+
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
12
12
|
declare module '@polkadot/api-base/types/storage' {
|
|
13
13
|
interface AugmentedQueries<ApiType extends ApiTypes> {
|
|
14
14
|
auctions: {
|
package/kusama/runtime.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
|
19
19
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
|
20
20
|
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
|
21
21
|
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
|
22
|
-
export
|
|
23
|
-
export
|
|
22
|
+
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
|
23
|
+
export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
|
|
24
24
|
declare module '@polkadot/api-base/types/calls' {
|
|
25
25
|
interface AugmentedCalls<ApiType extends ApiTypes> {
|
|
26
26
|
/** 0xbc9d89904f5b923f/1 */
|
package/kusama/tx.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ import type { Data } from '@polkadot/types';
|
|
|
4
4
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
|
-
import type { AccountId32, Call, H256, MultiAddress,
|
|
7
|
+
import type { AccountId32, Call, H256, MultiAddress, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
8
8
|
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, 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, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
9
|
+
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
10
|
+
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
11
|
+
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
12
12
|
declare module '@polkadot/api-base/types/submittable' {
|
|
13
13
|
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
14
14
|
auctions: {
|
|
@@ -5136,10 +5136,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5136
5136
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
5137
5137
|
};
|
|
5138
5138
|
system: {
|
|
5139
|
-
/**
|
|
5140
|
-
* A dispatch that will fill the block weight up to the given ratio.
|
|
5141
|
-
**/
|
|
5142
|
-
fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
|
5143
5139
|
/**
|
|
5144
5140
|
* Kill all storage items with a key that starts with the given prefix.
|
|
5145
5141
|
*
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "9.
|
|
23
|
+
"version": "9.9.2",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -186,11 +186,11 @@
|
|
|
186
186
|
},
|
|
187
187
|
"dependencies": {
|
|
188
188
|
"@babel/runtime": "^7.20.1",
|
|
189
|
-
"@polkadot/api-base": "9.
|
|
190
|
-
"@polkadot/rpc-augment": "9.
|
|
191
|
-
"@polkadot/types": "9.
|
|
192
|
-
"@polkadot/types-augment": "9.
|
|
193
|
-
"@polkadot/types-codec": "9.
|
|
194
|
-
"@polkadot/util": "^10.1.
|
|
189
|
+
"@polkadot/api-base": "9.9.2",
|
|
190
|
+
"@polkadot/rpc-augment": "9.9.2",
|
|
191
|
+
"@polkadot/types": "9.9.2",
|
|
192
|
+
"@polkadot/types-augment": "9.9.2",
|
|
193
|
+
"@polkadot/types-codec": "9.9.2",
|
|
194
|
+
"@polkadot/util": "^10.1.14"
|
|
195
195
|
}
|
|
196
196
|
}
|
package/packageInfo.js
CHANGED
|
@@ -7,5 +7,5 @@ export const packageInfo = {
|
|
|
7
7
|
name: '@polkadot/api-augment',
|
|
8
8
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
9
9
|
type: 'esm',
|
|
10
|
-
version: '9.
|
|
10
|
+
version: '9.9.2'
|
|
11
11
|
};
|
package/polkadot/consts.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from
|
|
|
4
4
|
import type { Codec } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
6
|
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
|
-
export
|
|
7
|
+
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/consts' {
|
|
9
9
|
interface AugmentedConsts<ApiType extends ApiTypes> {
|
|
10
10
|
auctions: {
|
|
@@ -326,6 +326,17 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
326
326
|
**/
|
|
327
327
|
[key: string]: Codec;
|
|
328
328
|
};
|
|
329
|
+
fastUnstake: {
|
|
330
|
+
/**
|
|
331
|
+
* Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
|
|
332
|
+
* the costs of resources on unsuccessful unstake.
|
|
333
|
+
**/
|
|
334
|
+
deposit: u128 & AugmentedConst<ApiType>;
|
|
335
|
+
/**
|
|
336
|
+
* Generic const
|
|
337
|
+
**/
|
|
338
|
+
[key: string]: Codec;
|
|
339
|
+
};
|
|
329
340
|
grandpa: {
|
|
330
341
|
/**
|
|
331
342
|
* Max Authorities in use
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/errors';
|
|
2
2
|
import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
|
|
3
|
-
export
|
|
3
|
+
export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
|
|
4
4
|
declare module '@polkadot/api-base/types/errors' {
|
|
5
5
|
interface AugmentedErrors<ApiType extends ApiTypes> {
|
|
6
6
|
auctions: {
|
|
@@ -107,7 +107,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
107
107
|
**/
|
|
108
108
|
ExistingVestingSchedule: AugmentedError<ApiType>;
|
|
109
109
|
/**
|
|
110
|
-
* Balance too low to send value
|
|
110
|
+
* Balance too low to send value.
|
|
111
111
|
**/
|
|
112
112
|
InsufficientBalance: AugmentedError<ApiType>;
|
|
113
113
|
/**
|
package/polkadot/events.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { ITuple } from '@polkadot/types-codec/types';
|
|
|
5
5
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
6
6
|
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
7
7
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
8
|
-
export
|
|
8
|
+
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
9
9
|
declare module '@polkadot/api-base/types/events' {
|
|
10
10
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
11
11
|
auctions: {
|
|
@@ -559,13 +559,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
559
559
|
* of the batch. A new batch will be created upon next block.
|
|
560
560
|
**/
|
|
561
561
|
BatchFinished: AugmentedEvent<ApiType, []>;
|
|
562
|
-
/**
|
|
563
|
-
* Some internal error happened while migrating stash. They are removed as head as a
|
|
564
|
-
* consequence.
|
|
565
|
-
**/
|
|
566
|
-
Errored: AugmentedEvent<ApiType, [stash: AccountId32], {
|
|
567
|
-
stash: AccountId32;
|
|
568
|
-
}>;
|
|
569
562
|
/**
|
|
570
563
|
* An internal error happened. Operations will be paused now.
|
|
571
564
|
**/
|
package/polkadot/query.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
|
7
7
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
8
8
|
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
9
9
|
import type { Observable } from '@polkadot/types/types';
|
|
10
|
-
export
|
|
11
|
-
export
|
|
10
|
+
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
11
|
+
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
12
12
|
declare module '@polkadot/api-base/types/storage' {
|
|
13
13
|
interface AugmentedQueries<ApiType extends ApiTypes> {
|
|
14
14
|
auctions: {
|
package/polkadot/runtime.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
|
19
19
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
|
20
20
|
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
|
21
21
|
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
|
22
|
-
export
|
|
23
|
-
export
|
|
22
|
+
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
|
23
|
+
export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
|
|
24
24
|
declare module '@polkadot/api-base/types/calls' {
|
|
25
25
|
interface AugmentedCalls<ApiType extends ApiTypes> {
|
|
26
26
|
/** 0xbc9d89904f5b923f/1 */
|
package/polkadot/tx.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ import type { Data } from '@polkadot/types';
|
|
|
4
4
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
|
-
import type { AccountId32, Call, H256, MultiAddress,
|
|
7
|
+
import type { AccountId32, Call, H256, MultiAddress, Percent } from '@polkadot/types/interfaces/runtime';
|
|
8
8
|
import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
9
|
+
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
10
|
+
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
11
|
+
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
12
12
|
declare module '@polkadot/api-base/types/submittable' {
|
|
13
13
|
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
14
14
|
auctions: {
|
|
@@ -4022,10 +4022,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4022
4022
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4023
4023
|
};
|
|
4024
4024
|
system: {
|
|
4025
|
-
/**
|
|
4026
|
-
* A dispatch that will fill the block weight up to the given ratio.
|
|
4027
|
-
**/
|
|
4028
|
-
fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
|
4029
4025
|
/**
|
|
4030
4026
|
* Kill all storage items with a key that starts with the given prefix.
|
|
4031
4027
|
*
|
package/substrate/consts.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polk
|
|
|
4
4
|
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
6
|
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
|
-
export
|
|
7
|
+
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/consts' {
|
|
9
9
|
interface AugmentedConsts<ApiType extends ApiTypes> {
|
|
10
10
|
alliance: {
|
|
@@ -17,8 +17,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
17
17
|
**/
|
|
18
18
|
maxAnnouncementsCount: u32 & AugmentedConst<ApiType>;
|
|
19
19
|
/**
|
|
20
|
-
* The maximum number of members per member role.
|
|
21
|
-
* `MaxFounders` and `MaxFellows`.
|
|
20
|
+
* The maximum number of members per member role.
|
|
22
21
|
**/
|
|
23
22
|
maxMembersCount: u32 & AugmentedConst<ApiType>;
|
|
24
23
|
/**
|
|
@@ -57,6 +56,12 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
57
56
|
* metadata.
|
|
58
57
|
**/
|
|
59
58
|
metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
|
59
|
+
/**
|
|
60
|
+
* Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
|
|
61
|
+
*
|
|
62
|
+
* Must be configured to result in a weight that makes each call fit in a block.
|
|
63
|
+
**/
|
|
64
|
+
removeItemsLimit: u32 & AugmentedConst<ApiType>;
|
|
60
65
|
/**
|
|
61
66
|
* The maximum length of a name or symbol stored on-chain.
|
|
62
67
|
**/
|
|
@@ -468,6 +473,17 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
468
473
|
**/
|
|
469
474
|
[key: string]: Codec;
|
|
470
475
|
};
|
|
476
|
+
fastUnstake: {
|
|
477
|
+
/**
|
|
478
|
+
* Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
|
|
479
|
+
* the costs of resources on unsuccessful unstake.
|
|
480
|
+
**/
|
|
481
|
+
deposit: u128 & AugmentedConst<ApiType>;
|
|
482
|
+
/**
|
|
483
|
+
* Generic const
|
|
484
|
+
**/
|
|
485
|
+
[key: string]: Codec;
|
|
486
|
+
};
|
|
471
487
|
gilt: {
|
|
472
488
|
/**
|
|
473
489
|
* Portion of the queue which is free from ordering and just a FIFO.
|
package/substrate/errors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/errors';
|
|
2
2
|
import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
|
|
3
|
-
export
|
|
3
|
+
export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
|
|
4
4
|
declare module '@polkadot/api-base/types/errors' {
|
|
5
5
|
interface AugmentedErrors<ApiType extends ApiTypes> {
|
|
6
6
|
alliance: {
|
|
@@ -38,9 +38,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
38
38
|
**/
|
|
39
39
|
BadWitness: AugmentedError<ApiType>;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Fellows must be provided to initialize the Alliance.
|
|
42
42
|
**/
|
|
43
|
-
|
|
43
|
+
FellowsMissing: AugmentedError<ApiType>;
|
|
44
44
|
/**
|
|
45
45
|
* Balance is insufficient for the required deposit.
|
|
46
46
|
**/
|
|
@@ -57,10 +57,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
57
57
|
* Account is not an ally.
|
|
58
58
|
**/
|
|
59
59
|
NotAlly: AugmentedError<ApiType>;
|
|
60
|
-
/**
|
|
61
|
-
* Account is not a founder.
|
|
62
|
-
**/
|
|
63
|
-
NotFounder: AugmentedError<ApiType>;
|
|
64
60
|
/**
|
|
65
61
|
* Item has not been deemed unscrupulous.
|
|
66
62
|
**/
|
|
@@ -69,10 +65,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
69
65
|
* Account is not a member.
|
|
70
66
|
**/
|
|
71
67
|
NotMember: AugmentedError<ApiType>;
|
|
72
|
-
/**
|
|
73
|
-
* The proposal is not vetoable.
|
|
74
|
-
**/
|
|
75
|
-
NotVetoableProposal: AugmentedError<ApiType>;
|
|
76
68
|
/**
|
|
77
69
|
* Account does not have voting rights.
|
|
78
70
|
**/
|
|
@@ -165,6 +157,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
165
157
|
* The asset-account already exists.
|
|
166
158
|
**/
|
|
167
159
|
AlreadyExists: AugmentedError<ApiType>;
|
|
160
|
+
/**
|
|
161
|
+
* The asset is not live, and likely being destroyed.
|
|
162
|
+
**/
|
|
163
|
+
AssetNotLive: AugmentedError<ApiType>;
|
|
168
164
|
/**
|
|
169
165
|
* Invalid metadata given.
|
|
170
166
|
**/
|
|
@@ -181,10 +177,19 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
181
177
|
* The origin account is frozen.
|
|
182
178
|
**/
|
|
183
179
|
Frozen: AugmentedError<ApiType>;
|
|
180
|
+
/**
|
|
181
|
+
* The asset status is not the expected status.
|
|
182
|
+
**/
|
|
183
|
+
IncorrectStatus: AugmentedError<ApiType>;
|
|
184
184
|
/**
|
|
185
185
|
* The asset ID is already taken.
|
|
186
186
|
**/
|
|
187
187
|
InUse: AugmentedError<ApiType>;
|
|
188
|
+
/**
|
|
189
|
+
* The asset is a live asset and is actively being used. Usually emit for operations such
|
|
190
|
+
* as `start_destroy` which require the asset to be in a destroying state.
|
|
191
|
+
**/
|
|
192
|
+
LiveAsset: AugmentedError<ApiType>;
|
|
188
193
|
/**
|
|
189
194
|
* Minimum balance should be non-zero.
|
|
190
195
|
**/
|
|
@@ -207,6 +212,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
207
212
|
* maximum number of consumers has been reached.
|
|
208
213
|
**/
|
|
209
214
|
NoProvider: AugmentedError<ApiType>;
|
|
215
|
+
/**
|
|
216
|
+
* The asset should be frozen before the given operation.
|
|
217
|
+
**/
|
|
218
|
+
NotFrozen: AugmentedError<ApiType>;
|
|
210
219
|
/**
|
|
211
220
|
* No approval exists that would allow the transfer.
|
|
212
221
|
**/
|
|
@@ -402,8 +411,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
402
411
|
CodeNotFound: AugmentedError<ApiType>;
|
|
403
412
|
/**
|
|
404
413
|
* The contract's code was found to be invalid during validation or instrumentation.
|
|
414
|
+
*
|
|
415
|
+
* The most likely cause of this is that an API was used which is not supported by the
|
|
416
|
+
* node. This hapens if an older node is used with a new version of ink!. Try updating
|
|
417
|
+
* your node to the newest available version.
|
|
418
|
+
*
|
|
405
419
|
* A more detailed error can be found on the node console if debug messages are enabled
|
|
406
|
-
*
|
|
420
|
+
* by supplying `-lruntime::contracts=debug`.
|
|
407
421
|
**/
|
|
408
422
|
CodeRejected: AugmentedError<ApiType>;
|
|
409
423
|
/**
|
package/substrate/events.d.ts
CHANGED
|
@@ -4,15 +4,15 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
|
|
4
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
6
6
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
|
7
|
-
export
|
|
7
|
+
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/events' {
|
|
9
9
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
10
10
|
alliance: {
|
|
11
11
|
/**
|
|
12
12
|
* Alliance disbanded. Includes number deleted members and unreserved deposits.
|
|
13
13
|
**/
|
|
14
|
-
AllianceDisbanded: AugmentedEvent<ApiType, [
|
|
15
|
-
|
|
14
|
+
AllianceDisbanded: AugmentedEvent<ApiType, [fellowMembers: u32, allyMembers: u32, unreserved: u32], {
|
|
15
|
+
fellowMembers: u32;
|
|
16
16
|
allyMembers: u32;
|
|
17
17
|
unreserved: u32;
|
|
18
18
|
}>;
|
|
@@ -34,6 +34,12 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
34
34
|
AnnouncementRemoved: AugmentedEvent<ApiType, [announcement: PalletAllianceCid], {
|
|
35
35
|
announcement: PalletAllianceCid;
|
|
36
36
|
}>;
|
|
37
|
+
/**
|
|
38
|
+
* A Fellow abdicated their voting rights. They are now an Ally.
|
|
39
|
+
**/
|
|
40
|
+
FellowAbdicated: AugmentedEvent<ApiType, [fellow: AccountId32], {
|
|
41
|
+
fellow: AccountId32;
|
|
42
|
+
}>;
|
|
37
43
|
/**
|
|
38
44
|
* A member has been kicked out with its deposit slashed.
|
|
39
45
|
**/
|
|
@@ -55,10 +61,9 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
55
61
|
member: AccountId32;
|
|
56
62
|
}>;
|
|
57
63
|
/**
|
|
58
|
-
* Some accounts have been initialized as members (
|
|
64
|
+
* Some accounts have been initialized as members (fellows/allies).
|
|
59
65
|
**/
|
|
60
|
-
MembersInitialized: AugmentedEvent<ApiType, [
|
|
61
|
-
founders: Vec<AccountId32>;
|
|
66
|
+
MembersInitialized: AugmentedEvent<ApiType, [fellows: Vec<AccountId32>, allies: Vec<AccountId32>], {
|
|
62
67
|
fellows: Vec<AccountId32>;
|
|
63
68
|
allies: Vec<AccountId32>;
|
|
64
69
|
}>;
|
|
@@ -155,6 +160,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
155
160
|
[key: string]: AugmentedEvent<ApiType>;
|
|
156
161
|
};
|
|
157
162
|
assets: {
|
|
163
|
+
/**
|
|
164
|
+
* Accounts were destroyed for given asset.
|
|
165
|
+
**/
|
|
166
|
+
AccountsDestroyed: AugmentedEvent<ApiType, [assetId: u32, accountsDestroyed: u32, accountsRemaining: u32], {
|
|
167
|
+
assetId: u32;
|
|
168
|
+
accountsDestroyed: u32;
|
|
169
|
+
accountsRemaining: u32;
|
|
170
|
+
}>;
|
|
158
171
|
/**
|
|
159
172
|
* An approval for account `delegate` was cancelled by `owner`.
|
|
160
173
|
**/
|
|
@@ -163,6 +176,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
163
176
|
owner: AccountId32;
|
|
164
177
|
delegate: AccountId32;
|
|
165
178
|
}>;
|
|
179
|
+
/**
|
|
180
|
+
* Approvals were destroyed for given asset.
|
|
181
|
+
**/
|
|
182
|
+
ApprovalsDestroyed: AugmentedEvent<ApiType, [assetId: u32, approvalsDestroyed: u32, approvalsRemaining: u32], {
|
|
183
|
+
assetId: u32;
|
|
184
|
+
approvalsDestroyed: u32;
|
|
185
|
+
approvalsRemaining: u32;
|
|
186
|
+
}>;
|
|
166
187
|
/**
|
|
167
188
|
* (Additional) funds have been approved for transfer to a destination account.
|
|
168
189
|
**/
|
|
@@ -212,6 +233,12 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
212
233
|
Destroyed: AugmentedEvent<ApiType, [assetId: u32], {
|
|
213
234
|
assetId: u32;
|
|
214
235
|
}>;
|
|
236
|
+
/**
|
|
237
|
+
* An asset class is in the process of being destroyed.
|
|
238
|
+
**/
|
|
239
|
+
DestructionStarted: AugmentedEvent<ApiType, [assetId: u32], {
|
|
240
|
+
assetId: u32;
|
|
241
|
+
}>;
|
|
215
242
|
/**
|
|
216
243
|
* Some asset class was force-created.
|
|
217
244
|
**/
|
|
@@ -861,13 +888,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
861
888
|
* of the batch. A new batch will be created upon next block.
|
|
862
889
|
**/
|
|
863
890
|
BatchFinished: AugmentedEvent<ApiType, []>;
|
|
864
|
-
/**
|
|
865
|
-
* Some internal error happened while migrating stash. They are removed as head as a
|
|
866
|
-
* consequence.
|
|
867
|
-
**/
|
|
868
|
-
Errored: AugmentedEvent<ApiType, [stash: AccountId32], {
|
|
869
|
-
stash: AccountId32;
|
|
870
|
-
}>;
|
|
871
891
|
/**
|
|
872
892
|
* An internal error happened. Operations will be paused now.
|
|
873
893
|
**/
|
package/substrate/query.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
|
6
6
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
7
7
|
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
|
8
8
|
import type { Observable } from '@polkadot/types/types';
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
10
|
+
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
11
11
|
declare module '@polkadot/api-base/types/storage' {
|
|
12
12
|
interface AugmentedQueries<ApiType extends ApiTypes> {
|
|
13
13
|
alliance: {
|
|
@@ -22,7 +22,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
22
22
|
/**
|
|
23
23
|
* Maps member type to members of each type.
|
|
24
24
|
**/
|
|
25
|
-
members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | '
|
|
25
|
+
members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | 'Fellow' | 'Ally' | 'Retiring' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
|
|
26
26
|
/**
|
|
27
27
|
* A set of members who gave a retirement notice. They can retire after the end of retirement
|
|
28
28
|
* period stored as a future block number.
|
|
@@ -30,9 +30,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
30
30
|
retiringMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
31
31
|
/**
|
|
32
32
|
* The IPFS CID of the alliance rule.
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* Any founder has a special one-vote veto right to the rule setting.
|
|
33
|
+
* Fellows can propose a new rule with a super-majority.
|
|
36
34
|
**/
|
|
37
35
|
rule: AugmentedQuery<ApiType, () => Observable<Option<PalletAllianceCid>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
38
36
|
/**
|
package/substrate/runtime.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
|
17
17
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
|
18
18
|
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
|
19
19
|
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
|
20
|
-
export
|
|
21
|
-
export
|
|
20
|
+
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
|
21
|
+
export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
|
|
22
22
|
declare module '@polkadot/api-base/types/calls' {
|
|
23
23
|
interface AugmentedCalls<ApiType extends ApiTypes> {
|
|
24
24
|
/** 0xbc9d89904f5b923f/1 */
|
package/substrate/tx.d.ts
CHANGED
|
@@ -4,13 +4,19 @@ import type { Data } from '@polkadot/types';
|
|
|
4
4
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem,
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
7
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, 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, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
8
|
+
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
9
|
+
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
10
|
+
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
11
11
|
declare module '@polkadot/api-base/types/submittable' {
|
|
12
12
|
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
13
13
|
alliance: {
|
|
14
|
+
/**
|
|
15
|
+
* Abdicate one's position as a voting member and just be an Ally. May be used by Fellows
|
|
16
|
+
* who do not want to leave the Alliance but do not have the capacity to participate
|
|
17
|
+
* operationally for some time.
|
|
18
|
+
**/
|
|
19
|
+
abdicateFellowStatus: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
14
20
|
/**
|
|
15
21
|
* Add accounts or websites to the list of unscrupulous items.
|
|
16
22
|
**/
|
|
@@ -30,7 +36,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
30
36
|
/**
|
|
31
37
|
* Close a vote that is either approved, disapproved, or whose voting period has ended.
|
|
32
38
|
*
|
|
33
|
-
*
|
|
39
|
+
* Must be called by a Fellow.
|
|
34
40
|
**/
|
|
35
41
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
|
|
36
42
|
refTime?: any;
|
|
@@ -39,7 +45,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
39
45
|
/**
|
|
40
46
|
* Close a vote that is either approved, disapproved, or whose voting period has ended.
|
|
41
47
|
*
|
|
42
|
-
*
|
|
48
|
+
* Must be called by a Fellow.
|
|
43
49
|
**/
|
|
44
50
|
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
45
51
|
/**
|
|
@@ -48,11 +54,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
48
54
|
* Witness data must be set.
|
|
49
55
|
**/
|
|
50
56
|
disband: AugmentedSubmittable<(witness: PalletAllianceDisbandWitness | {
|
|
51
|
-
|
|
57
|
+
fellowMembers?: any;
|
|
52
58
|
allyMembers?: any;
|
|
53
59
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceDisbandWitness]>;
|
|
54
60
|
/**
|
|
55
|
-
* Elevate an
|
|
61
|
+
* Elevate an Ally to Fellow.
|
|
56
62
|
**/
|
|
57
63
|
elevateAlly: AugmentedSubmittable<(ally: MultiAddress | {
|
|
58
64
|
Id: any;
|
|
@@ -71,19 +77,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
71
77
|
**/
|
|
72
78
|
giveRetirementNotice: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
73
79
|
/**
|
|
74
|
-
* Initialize the Alliance, onboard
|
|
80
|
+
* Initialize the Alliance, onboard fellows and allies.
|
|
81
|
+
*
|
|
82
|
+
* The Alliance must be empty, and the call must provide some founding members.
|
|
75
83
|
*
|
|
76
|
-
* Founders must be not empty.
|
|
77
|
-
* The Alliance must be empty.
|
|
78
84
|
* Must be called by the Root origin.
|
|
79
85
|
**/
|
|
80
|
-
initMembers: AugmentedSubmittable<(
|
|
86
|
+
initMembers: AugmentedSubmittable<(fellows: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], allies: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Vec<AccountId32>]>;
|
|
81
87
|
/**
|
|
82
88
|
* Submit oneself for candidacy. A fixed deposit is reserved.
|
|
83
89
|
**/
|
|
84
90
|
joinAlliance: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
85
91
|
/**
|
|
86
|
-
* Kick a member from the
|
|
92
|
+
* Kick a member from the Alliance and slash its deposit.
|
|
87
93
|
**/
|
|
88
94
|
kickMember: AugmentedSubmittable<(who: MultiAddress | {
|
|
89
95
|
Id: any;
|
|
@@ -97,8 +103,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
97
103
|
Address20: any;
|
|
98
104
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
99
105
|
/**
|
|
100
|
-
* A
|
|
101
|
-
*
|
|
106
|
+
* A Fellow can nominate someone to join the alliance as an Ally. There is no deposit
|
|
107
|
+
* required from the nominator or nominee.
|
|
102
108
|
**/
|
|
103
109
|
nominateAlly: AugmentedSubmittable<(who: MultiAddress | {
|
|
104
110
|
Id: any;
|
|
@@ -114,7 +120,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
114
120
|
/**
|
|
115
121
|
* Add a new proposal to be voted on.
|
|
116
122
|
*
|
|
117
|
-
*
|
|
123
|
+
* Must be called by a Fellow.
|
|
118
124
|
**/
|
|
119
125
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
120
126
|
/**
|
|
@@ -126,7 +132,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
126
132
|
hash_?: any;
|
|
127
133
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceCid]>;
|
|
128
134
|
/**
|
|
129
|
-
* Deem
|
|
135
|
+
* Deem some items no longer unscrupulous.
|
|
130
136
|
**/
|
|
131
137
|
removeUnscrupulousItems: AugmentedSubmittable<(items: Vec<PalletAllianceUnscrupulousItem> | (PalletAllianceUnscrupulousItem | {
|
|
132
138
|
AccountId: any;
|
|
@@ -134,8 +140,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
134
140
|
Website: any;
|
|
135
141
|
} | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<PalletAllianceUnscrupulousItem>]>;
|
|
136
142
|
/**
|
|
137
|
-
* As a member, retire from the
|
|
138
|
-
*
|
|
143
|
+
* As a member, retire from the Alliance and unreserve the deposit.
|
|
144
|
+
*
|
|
145
|
+
* This can only be done once you have called `give_retirement_notice` and the
|
|
146
|
+
* `RetirementPeriod` has passed.
|
|
139
147
|
**/
|
|
140
148
|
retire: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
141
149
|
/**
|
|
@@ -146,17 +154,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
146
154
|
codec?: any;
|
|
147
155
|
hash_?: any;
|
|
148
156
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceCid]>;
|
|
149
|
-
/**
|
|
150
|
-
* Veto a proposal about `set_rule` and `elevate_ally`, close, and remove it from the
|
|
151
|
-
* system, regardless of its current state.
|
|
152
|
-
*
|
|
153
|
-
* Must be called by a founder.
|
|
154
|
-
**/
|
|
155
|
-
veto: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
156
157
|
/**
|
|
157
158
|
* Add an aye or nay vote for the sender to the given proposal.
|
|
158
159
|
*
|
|
159
|
-
*
|
|
160
|
+
* Must be called by a Fellow.
|
|
160
161
|
**/
|
|
161
162
|
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
|
162
163
|
/**
|
|
@@ -492,30 +493,47 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
492
493
|
Address20: any;
|
|
493
494
|
} | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, u128]>;
|
|
494
495
|
/**
|
|
495
|
-
* Destroy
|
|
496
|
+
* Destroy all accounts associated with a given asset.
|
|
497
|
+
* `destroy_accounts` should only be called after `start_destroy` has been called, and the
|
|
498
|
+
* asset is in a `Destroying` state
|
|
496
499
|
*
|
|
497
|
-
*
|
|
498
|
-
*
|
|
500
|
+
* Due to weight restrictions, this function may need to be called multiple
|
|
501
|
+
* times to fully destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a
|
|
502
|
+
* time.
|
|
499
503
|
*
|
|
500
504
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
501
505
|
* asset.
|
|
502
506
|
*
|
|
503
|
-
* Emits `
|
|
507
|
+
* Each call Emits the `Event::DestroyedAccounts` event.
|
|
508
|
+
**/
|
|
509
|
+
destroyAccounts: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
510
|
+
/**
|
|
511
|
+
* Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit),
|
|
512
|
+
* `destroy_approvals` should only be called after `start_destroy` has been called, and the
|
|
513
|
+
* asset is in a `Destroying` state
|
|
514
|
+
*
|
|
515
|
+
* Due to weight restrictions, this function may need to be called multiple
|
|
516
|
+
* times to fully destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a
|
|
517
|
+
* time.
|
|
504
518
|
*
|
|
505
|
-
*
|
|
506
|
-
*
|
|
507
|
-
* in a way that can make it harder to destroy.
|
|
519
|
+
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
520
|
+
* asset.
|
|
508
521
|
*
|
|
509
|
-
*
|
|
510
|
-
* - `c = (witness.accounts - witness.sufficients)`
|
|
511
|
-
* - `s = witness.sufficients`
|
|
512
|
-
* - `a = witness.approvals`
|
|
522
|
+
* Each call Emits the `Event::DestroyedApprovals` event.
|
|
513
523
|
**/
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
524
|
+
destroyApprovals: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
525
|
+
/**
|
|
526
|
+
* Complete destroying asset and unreserve currency.
|
|
527
|
+
* `finish_destroy` should only be called after `start_destroy` has been called, and the
|
|
528
|
+
* asset is in a `Destroying` state. All accounts or approvals should be destroyed before
|
|
529
|
+
* hand.
|
|
530
|
+
*
|
|
531
|
+
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
532
|
+
* asset.
|
|
533
|
+
*
|
|
534
|
+
* Each successful call Emits the `Event::Destroyed` event.
|
|
535
|
+
**/
|
|
536
|
+
finishDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
519
537
|
/**
|
|
520
538
|
* Alter the attributes of a given asset.
|
|
521
539
|
*
|
|
@@ -857,6 +875,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
857
875
|
} | {
|
|
858
876
|
Address20: any;
|
|
859
877
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, MultiAddress, MultiAddress]>;
|
|
878
|
+
/**
|
|
879
|
+
* Start the process of destroying a class of fungible asset
|
|
880
|
+
* start_destroy is the first in a series of extrinsics that should be called, to allow
|
|
881
|
+
* destroying an asset.
|
|
882
|
+
*
|
|
883
|
+
* The origin must conform to `ForceOrigin` or must be Signed and the sender must be the
|
|
884
|
+
* owner of the asset `id`.
|
|
885
|
+
*
|
|
886
|
+
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
887
|
+
* asset.
|
|
888
|
+
*
|
|
889
|
+
* Assets must be freezed before calling start_destroy.
|
|
890
|
+
**/
|
|
891
|
+
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
860
892
|
/**
|
|
861
893
|
* Allow unprivileged transfers from an account again.
|
|
862
894
|
*
|
|
@@ -4664,6 +4696,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4664
4696
|
**/
|
|
4665
4697
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4666
4698
|
};
|
|
4699
|
+
rootTesting: {
|
|
4700
|
+
/**
|
|
4701
|
+
* A dispatch that will fill the block weight up to the given ratio.
|
|
4702
|
+
**/
|
|
4703
|
+
fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
|
4704
|
+
/**
|
|
4705
|
+
* Generic tx
|
|
4706
|
+
**/
|
|
4707
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4708
|
+
};
|
|
4667
4709
|
scheduler: {
|
|
4668
4710
|
/**
|
|
4669
4711
|
* Cancel an anonymously scheduled task.
|
|
@@ -5783,10 +5825,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5783
5825
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
5784
5826
|
};
|
|
5785
5827
|
system: {
|
|
5786
|
-
/**
|
|
5787
|
-
* A dispatch that will fill the block weight up to the given ratio.
|
|
5788
|
-
**/
|
|
5789
|
-
fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
|
5790
5828
|
/**
|
|
5791
5829
|
* Kill all storage items with a key that starts with the given prefix.
|
|
5792
5830
|
*
|