@polkadot/api-augment 12.1.1 → 12.2.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/package.json +7 -7
- package/packageInfo.js +1 -1
- package/substrate/consts.d.ts +0 -13
- package/substrate/errors.d.ts +16 -4
- package/substrate/events.d.ts +9 -16
- package/substrate/query.d.ts +39 -4
- package/substrate/tx.d.ts +49 -75
package/cjs/packageInfo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageInfo = void 0;
|
|
4
|
-
exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '12.
|
|
4
|
+
exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '12.2.2' };
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/packageDetect.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "12.
|
|
21
|
+
"version": "12.2.2",
|
|
22
22
|
"main": "./cjs/index.js",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts",
|
|
@@ -211,12 +211,12 @@
|
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
"dependencies": {
|
|
214
|
-
"@polkadot/api-base": "12.
|
|
215
|
-
"@polkadot/rpc-augment": "12.
|
|
216
|
-
"@polkadot/types": "12.
|
|
217
|
-
"@polkadot/types-augment": "12.
|
|
218
|
-
"@polkadot/types-codec": "12.
|
|
219
|
-
"@polkadot/util": "^
|
|
214
|
+
"@polkadot/api-base": "12.2.2",
|
|
215
|
+
"@polkadot/rpc-augment": "12.2.2",
|
|
216
|
+
"@polkadot/types": "12.2.2",
|
|
217
|
+
"@polkadot/types-augment": "12.2.2",
|
|
218
|
+
"@polkadot/types-codec": "12.2.2",
|
|
219
|
+
"@polkadot/util": "^13.0.2",
|
|
220
220
|
"tslib": "^2.6.2"
|
|
221
221
|
}
|
|
222
222
|
}
|
package/packageInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '12.
|
|
1
|
+
export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '12.2.2' };
|
package/substrate/consts.d.ts
CHANGED
|
@@ -1621,19 +1621,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
1621
1621
|
* The period during which an approved treasury spend has to be claimed.
|
|
1622
1622
|
**/
|
|
1623
1623
|
payoutPeriod: u32 & AugmentedConst<ApiType>;
|
|
1624
|
-
/**
|
|
1625
|
-
* Fraction of a proposal's value that should be bonded in order to place the proposal.
|
|
1626
|
-
* An accepted proposal gets these back. A rejected proposal does not.
|
|
1627
|
-
**/
|
|
1628
|
-
proposalBond: Permill & AugmentedConst<ApiType>;
|
|
1629
|
-
/**
|
|
1630
|
-
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
|
1631
|
-
**/
|
|
1632
|
-
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
|
|
1633
|
-
/**
|
|
1634
|
-
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
|
1635
|
-
**/
|
|
1636
|
-
proposalBondMinimum: u128 & AugmentedConst<ApiType>;
|
|
1637
1624
|
/**
|
|
1638
1625
|
* Period between successive spends.
|
|
1639
1626
|
**/
|
package/substrate/errors.d.ts
CHANGED
|
@@ -306,6 +306,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
306
306
|
* The asset is not live, and likely being destroyed.
|
|
307
307
|
**/
|
|
308
308
|
AssetNotLive: AugmentedError<ApiType>;
|
|
309
|
+
/**
|
|
310
|
+
* The asset ID must be equal to the [`NextAssetId`].
|
|
311
|
+
**/
|
|
312
|
+
BadAssetId: AugmentedError<ApiType>;
|
|
309
313
|
/**
|
|
310
314
|
* Invalid metadata given.
|
|
311
315
|
**/
|
|
@@ -2071,6 +2075,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2071
2075
|
* The asset is not live, and likely being destroyed.
|
|
2072
2076
|
**/
|
|
2073
2077
|
AssetNotLive: AugmentedError<ApiType>;
|
|
2078
|
+
/**
|
|
2079
|
+
* The asset ID must be equal to the [`NextAssetId`].
|
|
2080
|
+
**/
|
|
2081
|
+
BadAssetId: AugmentedError<ApiType>;
|
|
2074
2082
|
/**
|
|
2075
2083
|
* Invalid metadata given.
|
|
2076
2084
|
**/
|
|
@@ -2156,6 +2164,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2156
2164
|
* Preimage has already been noted on-chain.
|
|
2157
2165
|
**/
|
|
2158
2166
|
AlreadyNoted: AugmentedError<ApiType>;
|
|
2167
|
+
/**
|
|
2168
|
+
* No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
|
|
2169
|
+
**/
|
|
2170
|
+
NoCost: AugmentedError<ApiType>;
|
|
2159
2171
|
/**
|
|
2160
2172
|
* The user is not authorized to perform this action.
|
|
2161
2173
|
**/
|
|
@@ -2268,6 +2280,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2268
2280
|
* The new member to exchange is the same as the old member
|
|
2269
2281
|
**/
|
|
2270
2282
|
SameMember: AugmentedError<ApiType>;
|
|
2283
|
+
/**
|
|
2284
|
+
* The max member count for the rank has been reached.
|
|
2285
|
+
**/
|
|
2286
|
+
TooManyMembers: AugmentedError<ApiType>;
|
|
2271
2287
|
/**
|
|
2272
2288
|
* Generic error
|
|
2273
2289
|
**/
|
|
@@ -3174,10 +3190,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
3174
3190
|
* amount to be spent.
|
|
3175
3191
|
**/
|
|
3176
3192
|
InsufficientPermission: AugmentedError<ApiType>;
|
|
3177
|
-
/**
|
|
3178
|
-
* Proposer's balance is too low.
|
|
3179
|
-
**/
|
|
3180
|
-
InsufficientProposersBalance: AugmentedError<ApiType>;
|
|
3181
3193
|
/**
|
|
3182
3194
|
* No proposal, bounty or spend at that index.
|
|
3183
3195
|
**/
|
package/substrate/events.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
|
3
3
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, H256, Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally,
|
|
6
|
+
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
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> {
|
|
@@ -1160,8 +1160,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1160
1160
|
/**
|
|
1161
1161
|
* Parameters for the pallet have changed.
|
|
1162
1162
|
**/
|
|
1163
|
-
ParamsChanged: AugmentedEvent<ApiType, [params:
|
|
1164
|
-
params:
|
|
1163
|
+
ParamsChanged: AugmentedEvent<ApiType, [params: PalletCoreFellowshipParamsTypeU128], {
|
|
1164
|
+
params: PalletCoreFellowshipParamsTypeU128;
|
|
1165
1165
|
}>;
|
|
1166
1166
|
/**
|
|
1167
1167
|
* Member has been promoted to the given rank.
|
|
@@ -1526,6 +1526,12 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1526
1526
|
[key: string]: AugmentedEvent<ApiType>;
|
|
1527
1527
|
};
|
|
1528
1528
|
glutton: {
|
|
1529
|
+
/**
|
|
1530
|
+
* The block length limit has been updated.
|
|
1531
|
+
**/
|
|
1532
|
+
BlockLengthLimitSet: AugmentedEvent<ApiType, [blockLength: u64], {
|
|
1533
|
+
blockLength: u64;
|
|
1534
|
+
}>;
|
|
1529
1535
|
/**
|
|
1530
1536
|
* The computation limit has been updated.
|
|
1531
1537
|
**/
|
|
@@ -3924,19 +3930,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
3924
3930
|
index: u32;
|
|
3925
3931
|
paymentId: Null;
|
|
3926
3932
|
}>;
|
|
3927
|
-
/**
|
|
3928
|
-
* New proposal.
|
|
3929
|
-
**/
|
|
3930
|
-
Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], {
|
|
3931
|
-
proposalIndex: u32;
|
|
3932
|
-
}>;
|
|
3933
|
-
/**
|
|
3934
|
-
* A proposal was rejected; funds were slashed.
|
|
3935
|
-
**/
|
|
3936
|
-
Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], {
|
|
3937
|
-
proposalIndex: u32;
|
|
3938
|
-
slashed: u128;
|
|
3939
|
-
}>;
|
|
3940
3933
|
/**
|
|
3941
3934
|
* Spending has finished; this is the amount that rolls over until next spend.
|
|
3942
3935
|
**/
|
package/substrate/query.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
|
|
|
4
4
|
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock,
|
|
7
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerOnDemandRevenueRecord, PalletBrokerPoolIoRecord, PalletBrokerPotentialRenewalId, PalletBrokerPotentialRenewalRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
|
8
8
|
import type { Observable } from '@polkadot/types/types';
|
|
9
9
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
10
10
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -132,6 +132,18 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
132
132
|
* Metadata of an asset.
|
|
133
133
|
**/
|
|
134
134
|
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletAssetsAssetMetadata>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
135
|
+
/**
|
|
136
|
+
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
137
|
+
* item has no effect.
|
|
138
|
+
*
|
|
139
|
+
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
|
140
|
+
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
|
141
|
+
* auto-increment model can be applied to all new asset IDs.
|
|
142
|
+
*
|
|
143
|
+
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
144
|
+
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
145
|
+
**/
|
|
146
|
+
nextAssetId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
135
147
|
/**
|
|
136
148
|
* Generic query
|
|
137
149
|
**/
|
|
@@ -305,11 +317,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
305
317
|
/**
|
|
306
318
|
* Freeze locks on account balances.
|
|
307
319
|
**/
|
|
308
|
-
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<
|
|
320
|
+
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
309
321
|
/**
|
|
310
322
|
* Holds on account balances.
|
|
311
323
|
**/
|
|
312
|
-
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<
|
|
324
|
+
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
313
325
|
/**
|
|
314
326
|
* The total units of outstanding deactivated balance in the system.
|
|
315
327
|
**/
|
|
@@ -445,6 +457,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
445
457
|
* The Polkadot Core reservations (generally tasked with the maintenance of System Chains).
|
|
446
458
|
**/
|
|
447
459
|
reservations: AugmentedQuery<ApiType, () => Observable<Vec<Vec<PalletBrokerScheduleItem>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
460
|
+
/**
|
|
461
|
+
* Received revenue info from the relay chain.
|
|
462
|
+
**/
|
|
463
|
+
revenueInbox: AugmentedQuery<ApiType, () => Observable<Option<PalletBrokerOnDemandRevenueRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
448
464
|
/**
|
|
449
465
|
* The details of the current sale, including its properties and status.
|
|
450
466
|
**/
|
|
@@ -584,7 +600,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
584
600
|
/**
|
|
585
601
|
* The overall status of the system.
|
|
586
602
|
**/
|
|
587
|
-
params: AugmentedQuery<ApiType, () => Observable<
|
|
603
|
+
params: AugmentedQuery<ApiType, () => Observable<PalletCoreFellowshipParamsTypeU128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
588
604
|
/**
|
|
589
605
|
* Generic query
|
|
590
606
|
**/
|
|
@@ -861,6 +877,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
861
877
|
* over `1.0` could stall the chain.
|
|
862
878
|
**/
|
|
863
879
|
compute: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
880
|
+
/**
|
|
881
|
+
* The proportion of the `block length` to consume on each block.
|
|
882
|
+
*
|
|
883
|
+
* `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to
|
|
884
|
+
* over `1.0` could stall the chain.
|
|
885
|
+
**/
|
|
886
|
+
length: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
864
887
|
/**
|
|
865
888
|
* The proportion of the remaining `proof_size` to consume during `on_idle`.
|
|
866
889
|
*
|
|
@@ -1467,6 +1490,18 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1467
1490
|
* Metadata of an asset.
|
|
1468
1491
|
**/
|
|
1469
1492
|
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletAssetsAssetMetadata>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1493
|
+
/**
|
|
1494
|
+
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
1495
|
+
* item has no effect.
|
|
1496
|
+
*
|
|
1497
|
+
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
|
1498
|
+
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
|
1499
|
+
* auto-increment model can be applied to all new asset IDs.
|
|
1500
|
+
*
|
|
1501
|
+
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
1502
|
+
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
1503
|
+
**/
|
|
1504
|
+
nextAssetId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1470
1505
|
/**
|
|
1471
1506
|
* Generic query
|
|
1472
1507
|
**/
|
package/substrate/tx.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ 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, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote,
|
|
7
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerOnDemandRevenueRecord, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsTypeOption, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
8
8
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
9
9
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
10
10
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -568,7 +568,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
568
568
|
*
|
|
569
569
|
* Parameters:
|
|
570
570
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
571
|
-
* an existing asset.
|
|
571
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
572
572
|
* - `admin`: The admin of this class of assets. The admin is the initial address of each
|
|
573
573
|
* member of the asset class's admin team.
|
|
574
574
|
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
@@ -757,7 +757,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
757
757
|
* Unlike `create`, no funds are reserved.
|
|
758
758
|
*
|
|
759
759
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
760
|
-
* an existing asset.
|
|
760
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
761
761
|
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
|
|
762
762
|
* over this asset, but may later change and configure the permissions using
|
|
763
763
|
* `transfer_ownership` and `set_team`.
|
|
@@ -1724,6 +1724,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1724
1724
|
mask?: any;
|
|
1725
1725
|
} | string | Uint8Array, pivot: PalletBrokerCoreMask | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBrokerRegionId, PalletBrokerCoreMask]>;
|
|
1726
1726
|
notifyCoreCount: AugmentedSubmittable<(coreCount: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
|
|
1727
|
+
notifyRevenue: AugmentedSubmittable<(revenue: PalletBrokerOnDemandRevenueRecord | {
|
|
1728
|
+
until?: any;
|
|
1729
|
+
amount?: any;
|
|
1730
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBrokerOnDemandRevenueRecord]>;
|
|
1727
1731
|
/**
|
|
1728
1732
|
* Split a Bulk Coretime Region into two non-overlapping Regions at a particular time into
|
|
1729
1733
|
* the region.
|
|
@@ -2419,6 +2423,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2419
2423
|
* - `to_rank`: One more than the current rank of `who`.
|
|
2420
2424
|
**/
|
|
2421
2425
|
promote: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, toRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u16]>;
|
|
2426
|
+
/**
|
|
2427
|
+
* Fast promotions can skip ranks and ignore the `min_promotion_period`.
|
|
2428
|
+
*
|
|
2429
|
+
* This is useful for out-of-band promotions, hence it has its own `FastPromoteOrigin` to
|
|
2430
|
+
* be (possibly) more restrictive than `PromoteOrigin`. Note that the member must already
|
|
2431
|
+
* be inducted.
|
|
2432
|
+
**/
|
|
2433
|
+
promoteFast: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, toRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u16]>;
|
|
2422
2434
|
/**
|
|
2423
2435
|
* Set whether a member is active or not.
|
|
2424
2436
|
*
|
|
@@ -2432,13 +2444,29 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2432
2444
|
* - `origin`: An origin complying with `ParamsOrigin` or root.
|
|
2433
2445
|
* - `params`: The new parameters for the pallet.
|
|
2434
2446
|
**/
|
|
2435
|
-
setParams: AugmentedSubmittable<(params:
|
|
2447
|
+
setParams: AugmentedSubmittable<(params: PalletCoreFellowshipParamsTypeU128 | {
|
|
2436
2448
|
activeSalary?: any;
|
|
2437
2449
|
passiveSalary?: any;
|
|
2438
2450
|
demotionPeriod?: any;
|
|
2439
2451
|
minPromotionPeriod?: any;
|
|
2440
2452
|
offboardTimeout?: any;
|
|
2441
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2453
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCoreFellowshipParamsTypeU128]>;
|
|
2454
|
+
/**
|
|
2455
|
+
* Set the parameters partially.
|
|
2456
|
+
*
|
|
2457
|
+
* - `origin`: An origin complying with `ParamsOrigin` or root.
|
|
2458
|
+
* - `partial_params`: The new parameters for the pallet.
|
|
2459
|
+
*
|
|
2460
|
+
* This update config with multiple arguments without duplicating
|
|
2461
|
+
* the fields that does not need to update (set to None).
|
|
2462
|
+
**/
|
|
2463
|
+
setPartialParams: AugmentedSubmittable<(partialParams: PalletCoreFellowshipParamsTypeOption | {
|
|
2464
|
+
activeSalary?: any;
|
|
2465
|
+
passiveSalary?: any;
|
|
2466
|
+
demotionPeriod?: any;
|
|
2467
|
+
minPromotionPeriod?: any;
|
|
2468
|
+
offboardTimeout?: any;
|
|
2469
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCoreFellowshipParamsTypeOption]>;
|
|
2442
2470
|
/**
|
|
2443
2471
|
* Provide evidence that a rank is deserved.
|
|
2444
2472
|
*
|
|
@@ -3190,6 +3218,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3190
3218
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3191
3219
|
};
|
|
3192
3220
|
glutton: {
|
|
3221
|
+
/**
|
|
3222
|
+
* Increase the block size by including the specified garbage bytes.
|
|
3223
|
+
**/
|
|
3224
|
+
bloat: AugmentedSubmittable<(garbage: Vec<U8aFixed>) => SubmittableExtrinsic<ApiType>, [Vec<U8aFixed>]>;
|
|
3193
3225
|
/**
|
|
3194
3226
|
* Initialize the pallet. Should be called once, if no genesis state was provided.
|
|
3195
3227
|
*
|
|
@@ -3199,6 +3231,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3199
3231
|
* Only callable by Root or `AdminOrigin`. A good default for `new_count` is `5_000`.
|
|
3200
3232
|
**/
|
|
3201
3233
|
initializePallet: AugmentedSubmittable<(newCount: u32 | AnyNumber | Uint8Array, witnessCount: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>]>;
|
|
3234
|
+
/**
|
|
3235
|
+
* Set how much of the block length should be filled with trash data on each block.
|
|
3236
|
+
*
|
|
3237
|
+
* `1.0` means that all block should be filled. If set to `1.0`, storage proof size will
|
|
3238
|
+
* be close to zero.
|
|
3239
|
+
*
|
|
3240
|
+
* Only callable by Root or `AdminOrigin`.
|
|
3241
|
+
**/
|
|
3242
|
+
setBlockLength: AugmentedSubmittable<(blockLength: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
|
3202
3243
|
/**
|
|
3203
3244
|
* Set how much of the remaining `ref_time` weight should be consumed by `on_idle`.
|
|
3204
3245
|
*
|
|
@@ -5713,7 +5754,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5713
5754
|
*
|
|
5714
5755
|
* Parameters:
|
|
5715
5756
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
5716
|
-
* an existing asset.
|
|
5757
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
5717
5758
|
* - `admin`: The admin of this class of assets. The admin is the initial address of each
|
|
5718
5759
|
* member of the asset class's admin team.
|
|
5719
5760
|
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
@@ -5902,7 +5943,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5902
5943
|
* Unlike `create`, no funds are reserved.
|
|
5903
5944
|
*
|
|
5904
5945
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
5905
|
-
* an existing asset.
|
|
5946
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
5906
5947
|
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
|
|
5907
5948
|
* over this asset, but may later change and configure the permissions using
|
|
5908
5949
|
* `transfer_ownership` and `set_team`.
|
|
@@ -8966,26 +9007,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
8966
9007
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
8967
9008
|
};
|
|
8968
9009
|
treasury: {
|
|
8969
|
-
/**
|
|
8970
|
-
* Approve a proposal.
|
|
8971
|
-
*
|
|
8972
|
-
* ## Dispatch Origin
|
|
8973
|
-
*
|
|
8974
|
-
* Must be [`Config::ApproveOrigin`].
|
|
8975
|
-
*
|
|
8976
|
-
* ## Details
|
|
8977
|
-
*
|
|
8978
|
-
* At a later time, the proposal will be allocated to the beneficiary and the original
|
|
8979
|
-
* deposit will be returned.
|
|
8980
|
-
*
|
|
8981
|
-
* ### Complexity
|
|
8982
|
-
* - O(1).
|
|
8983
|
-
*
|
|
8984
|
-
* ## Events
|
|
8985
|
-
*
|
|
8986
|
-
* No events are emitted from this dispatch.
|
|
8987
|
-
**/
|
|
8988
|
-
approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
8989
9010
|
/**
|
|
8990
9011
|
* Check the status of the spend and remove it from the storage if processed.
|
|
8991
9012
|
*
|
|
@@ -9013,7 +9034,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
9013
9034
|
*
|
|
9014
9035
|
* ## Dispatch Origin
|
|
9015
9036
|
*
|
|
9016
|
-
* Must be signed
|
|
9037
|
+
* Must be signed
|
|
9017
9038
|
*
|
|
9018
9039
|
* ## Details
|
|
9019
9040
|
*
|
|
@@ -9030,53 +9051,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
9030
9051
|
* Emits [`Event::Paid`] if successful.
|
|
9031
9052
|
**/
|
|
9032
9053
|
payout: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
9033
|
-
/**
|
|
9034
|
-
* Put forward a suggestion for spending.
|
|
9035
|
-
*
|
|
9036
|
-
* ## Dispatch Origin
|
|
9037
|
-
*
|
|
9038
|
-
* Must be signed.
|
|
9039
|
-
*
|
|
9040
|
-
* ## Details
|
|
9041
|
-
* A deposit proportional to the value is reserved and slashed if the proposal is rejected.
|
|
9042
|
-
* It is returned once the proposal is awarded.
|
|
9043
|
-
*
|
|
9044
|
-
* ### Complexity
|
|
9045
|
-
* - O(1)
|
|
9046
|
-
*
|
|
9047
|
-
* ## Events
|
|
9048
|
-
*
|
|
9049
|
-
* Emits [`Event::Proposed`] if successful.
|
|
9050
|
-
**/
|
|
9051
|
-
proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
|
|
9052
|
-
Id: any;
|
|
9053
|
-
} | {
|
|
9054
|
-
Index: any;
|
|
9055
|
-
} | {
|
|
9056
|
-
Raw: any;
|
|
9057
|
-
} | {
|
|
9058
|
-
Address32: any;
|
|
9059
|
-
} | {
|
|
9060
|
-
Address20: any;
|
|
9061
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;
|
|
9062
|
-
/**
|
|
9063
|
-
* Reject a proposed spend.
|
|
9064
|
-
*
|
|
9065
|
-
* ## Dispatch Origin
|
|
9066
|
-
*
|
|
9067
|
-
* Must be [`Config::RejectOrigin`].
|
|
9068
|
-
*
|
|
9069
|
-
* ## Details
|
|
9070
|
-
* The original deposit will be slashed.
|
|
9071
|
-
*
|
|
9072
|
-
* ### Complexity
|
|
9073
|
-
* - O(1)
|
|
9074
|
-
*
|
|
9075
|
-
* ## Events
|
|
9076
|
-
*
|
|
9077
|
-
* Emits [`Event::Rejected`] if successful.
|
|
9078
|
-
**/
|
|
9079
|
-
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
9080
9054
|
/**
|
|
9081
9055
|
* Force a previously approved proposal to be removed from the approval queue.
|
|
9082
9056
|
*
|