@polkadot/api-augment 9.14.2 → 10.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.js +0 -4
- package/bundle.d.ts +2 -2
- package/bundle.js +2 -5
- package/cjs/base.js +1 -1
- package/cjs/bundle.js +5 -12
- package/cjs/detectOther.js +5 -12
- package/cjs/detectPackage.js +6 -11
- package/cjs/index.js +4 -16
- package/cjs/kusama/consts.js +2 -1
- package/cjs/kusama/errors.js +2 -1
- package/cjs/kusama/events.js +2 -1
- package/cjs/kusama/index.js +9 -9
- package/cjs/kusama/query.js +2 -1
- package/cjs/kusama/registry.js +1 -1
- package/cjs/kusama/runtime.js +2 -1
- package/cjs/kusama/tx.js +2 -1
- package/cjs/packageInfo.js +2 -16
- package/cjs/polkadot/consts.js +2 -1
- package/cjs/polkadot/errors.js +2 -1
- package/cjs/polkadot/events.js +2 -1
- package/cjs/polkadot/index.js +9 -9
- package/cjs/polkadot/query.js +2 -1
- package/cjs/polkadot/registry.js +1 -1
- package/cjs/polkadot/runtime.js +2 -1
- package/cjs/polkadot/tx.js +2 -1
- package/cjs/substrate/consts.js +2 -1
- package/cjs/substrate/errors.js +2 -1
- package/cjs/substrate/events.js +2 -1
- package/cjs/substrate/index.js +9 -9
- package/cjs/substrate/query.js +2 -1
- package/cjs/substrate/registry.js +1 -1
- package/cjs/substrate/runtime.js +2 -1
- package/cjs/substrate/tx.js +2 -1
- package/detectOther.js +0 -3
- package/detectPackage.js +2 -7
- package/index.d.ts +2 -2
- package/index.js +2 -5
- package/kusama/consts.js +1 -7
- package/kusama/errors.d.ts +4 -0
- package/kusama/errors.js +1 -7
- package/kusama/events.d.ts +5 -5
- package/kusama/events.js +1 -7
- package/kusama/index.d.ts +8 -8
- package/kusama/index.js +8 -11
- package/kusama/query.d.ts +16 -1
- package/kusama/query.js +1 -7
- package/kusama/registry.js +0 -3
- package/kusama/runtime.d.ts +39 -4
- package/kusama/runtime.js +1 -7
- package/kusama/tx.d.ts +65 -14
- package/kusama/tx.js +1 -7
- package/package.json +12 -9
- package/packageInfo.js +1 -11
- package/polkadot/consts.js +1 -7
- package/polkadot/errors.d.ts +4 -0
- package/polkadot/errors.js +1 -7
- package/polkadot/events.d.ts +5 -5
- package/polkadot/events.js +1 -7
- package/polkadot/index.d.ts +8 -8
- package/polkadot/index.js +8 -11
- package/polkadot/query.d.ts +16 -1
- package/polkadot/query.js +1 -7
- package/polkadot/registry.js +0 -3
- package/polkadot/runtime.d.ts +39 -4
- package/polkadot/runtime.js +1 -7
- package/polkadot/tx.d.ts +65 -14
- package/polkadot/tx.js +1 -7
- package/substrate/consts.d.ts +27 -0
- package/substrate/consts.js +1 -7
- package/substrate/errors.d.ts +89 -0
- package/substrate/errors.js +1 -7
- package/substrate/events.d.ts +100 -17
- package/substrate/events.js +1 -7
- package/substrate/index.d.ts +8 -8
- package/substrate/index.js +8 -11
- package/substrate/query.d.ts +56 -18
- package/substrate/query.js +1 -7
- package/substrate/registry.js +0 -3
- package/substrate/runtime.d.ts +65 -1
- package/substrate/runtime.js +1 -7
- package/substrate/tx.d.ts +207 -36
- package/substrate/tx.js +1 -7
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, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded,
|
|
6
|
+
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, 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> {
|
|
@@ -199,6 +199,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
199
199
|
AssetFrozen: AugmentedEvent<ApiType, [assetId: u32], {
|
|
200
200
|
assetId: u32;
|
|
201
201
|
}>;
|
|
202
|
+
/**
|
|
203
|
+
* The min_balance of an asset has been updated by the asset owner.
|
|
204
|
+
**/
|
|
205
|
+
AssetMinBalanceChanged: AugmentedEvent<ApiType, [assetId: u32, newMinBalance: u128], {
|
|
206
|
+
assetId: u32;
|
|
207
|
+
newMinBalance: u128;
|
|
208
|
+
}>;
|
|
202
209
|
/**
|
|
203
210
|
* An asset has had its attributes changed by the `Force` origin.
|
|
204
211
|
**/
|
|
@@ -933,12 +940,36 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
933
940
|
**/
|
|
934
941
|
[key: string]: AugmentedEvent<ApiType>;
|
|
935
942
|
};
|
|
943
|
+
glutton: {
|
|
944
|
+
/**
|
|
945
|
+
* The computation limit has been updated by root.
|
|
946
|
+
**/
|
|
947
|
+
ComputationLimitSet: AugmentedEvent<ApiType, [compute: Perbill], {
|
|
948
|
+
compute: Perbill;
|
|
949
|
+
}>;
|
|
950
|
+
/**
|
|
951
|
+
* The pallet has been (re)initialized by root.
|
|
952
|
+
**/
|
|
953
|
+
PalletInitialized: AugmentedEvent<ApiType, [reinit: bool], {
|
|
954
|
+
reinit: bool;
|
|
955
|
+
}>;
|
|
956
|
+
/**
|
|
957
|
+
* The storage limit has been updated by root.
|
|
958
|
+
**/
|
|
959
|
+
StorageLimitSet: AugmentedEvent<ApiType, [storage: Perbill], {
|
|
960
|
+
storage: Perbill;
|
|
961
|
+
}>;
|
|
962
|
+
/**
|
|
963
|
+
* Generic event
|
|
964
|
+
**/
|
|
965
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
966
|
+
};
|
|
936
967
|
grandpa: {
|
|
937
968
|
/**
|
|
938
969
|
* New authority set has been applied.
|
|
939
970
|
**/
|
|
940
|
-
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[
|
|
941
|
-
authoritySet: Vec<ITuple<[
|
|
971
|
+
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>], {
|
|
972
|
+
authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>;
|
|
942
973
|
}>;
|
|
943
974
|
/**
|
|
944
975
|
* Current authority set has been paused.
|
|
@@ -1118,34 +1149,34 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1118
1149
|
/**
|
|
1119
1150
|
* Message placed in overweight queue.
|
|
1120
1151
|
**/
|
|
1121
|
-
OverweightEnqueued: AugmentedEvent<ApiType, [hash_: H256, origin:
|
|
1152
|
+
OverweightEnqueued: AugmentedEvent<ApiType, [hash_: H256, origin: u32, pageIndex: u32, messageIndex: u32], {
|
|
1122
1153
|
hash_: H256;
|
|
1123
|
-
origin:
|
|
1154
|
+
origin: u32;
|
|
1124
1155
|
pageIndex: u32;
|
|
1125
1156
|
messageIndex: u32;
|
|
1126
1157
|
}>;
|
|
1127
1158
|
/**
|
|
1128
1159
|
* This page was reaped.
|
|
1129
1160
|
**/
|
|
1130
|
-
PageReaped: AugmentedEvent<ApiType, [origin:
|
|
1131
|
-
origin:
|
|
1161
|
+
PageReaped: AugmentedEvent<ApiType, [origin: u32, index: u32], {
|
|
1162
|
+
origin: u32;
|
|
1132
1163
|
index: u32;
|
|
1133
1164
|
}>;
|
|
1134
1165
|
/**
|
|
1135
1166
|
* Message is processed.
|
|
1136
1167
|
**/
|
|
1137
|
-
Processed: AugmentedEvent<ApiType, [hash_: H256, origin:
|
|
1168
|
+
Processed: AugmentedEvent<ApiType, [hash_: H256, origin: u32, weightUsed: SpWeightsWeightV2Weight, success: bool], {
|
|
1138
1169
|
hash_: H256;
|
|
1139
|
-
origin:
|
|
1170
|
+
origin: u32;
|
|
1140
1171
|
weightUsed: SpWeightsWeightV2Weight;
|
|
1141
1172
|
success: bool;
|
|
1142
1173
|
}>;
|
|
1143
1174
|
/**
|
|
1144
1175
|
* Message discarded due to an error in the `MessageProcessor` (usually a format error).
|
|
1145
1176
|
**/
|
|
1146
|
-
ProcessingFailed: AugmentedEvent<ApiType, [hash_: H256, origin:
|
|
1177
|
+
ProcessingFailed: AugmentedEvent<ApiType, [hash_: H256, origin: u32, error: FrameSupportMessagesProcessMessageError], {
|
|
1147
1178
|
hash_: H256;
|
|
1148
|
-
origin:
|
|
1179
|
+
origin: u32;
|
|
1149
1180
|
error: FrameSupportMessagesProcessMessageError;
|
|
1150
1181
|
}>;
|
|
1151
1182
|
/**
|
|
@@ -1217,21 +1248,21 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1217
1248
|
/**
|
|
1218
1249
|
* Attribute metadata has been cleared for a `collection` or `item`.
|
|
1219
1250
|
**/
|
|
1220
|
-
AttributeCleared: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, namespace:
|
|
1251
|
+
AttributeCleared: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: PalletNftsAttributeNamespace], {
|
|
1221
1252
|
collection: u32;
|
|
1222
1253
|
maybeItem: Option<u32>;
|
|
1223
1254
|
key: Bytes;
|
|
1224
|
-
namespace:
|
|
1255
|
+
namespace: PalletNftsAttributeNamespace;
|
|
1225
1256
|
}>;
|
|
1226
1257
|
/**
|
|
1227
1258
|
* New attribute metadata has been set for a `collection` or `item`.
|
|
1228
1259
|
**/
|
|
1229
|
-
AttributeSet: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace:
|
|
1260
|
+
AttributeSet: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: PalletNftsAttributeNamespace], {
|
|
1230
1261
|
collection: u32;
|
|
1231
1262
|
maybeItem: Option<u32>;
|
|
1232
1263
|
key: Bytes;
|
|
1233
1264
|
value: Bytes;
|
|
1234
|
-
namespace:
|
|
1265
|
+
namespace: PalletNftsAttributeNamespace;
|
|
1235
1266
|
}>;
|
|
1236
1267
|
/**
|
|
1237
1268
|
* An `item` was destroyed.
|
|
@@ -1408,6 +1439,24 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1408
1439
|
who: AccountId32;
|
|
1409
1440
|
maybeCollection: Option<u32>;
|
|
1410
1441
|
}>;
|
|
1442
|
+
/**
|
|
1443
|
+
* A new attribute in the `Pallet` namespace was set for the `collection` or an `item`
|
|
1444
|
+
* within that `collection`.
|
|
1445
|
+
**/
|
|
1446
|
+
PalletAttributeSet: AugmentedEvent<ApiType, [collection: u32, item: Option<u32>, attribute: PalletNftsPalletAttributes, value: Bytes], {
|
|
1447
|
+
collection: u32;
|
|
1448
|
+
item: Option<u32>;
|
|
1449
|
+
attribute: PalletNftsPalletAttributes;
|
|
1450
|
+
value: Bytes;
|
|
1451
|
+
}>;
|
|
1452
|
+
/**
|
|
1453
|
+
* New attributes have been set for an `item` of the `collection`.
|
|
1454
|
+
**/
|
|
1455
|
+
PreSignedAttributesSet: AugmentedEvent<ApiType, [collection: u32, item: u32, namespace: PalletNftsAttributeNamespace], {
|
|
1456
|
+
collection: u32;
|
|
1457
|
+
item: u32;
|
|
1458
|
+
namespace: PalletNftsAttributeNamespace;
|
|
1459
|
+
}>;
|
|
1411
1460
|
/**
|
|
1412
1461
|
* The deposit for a set of `item`s within a `collection` has been updated.
|
|
1413
1462
|
**/
|
|
@@ -1609,9 +1658,9 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1609
1658
|
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
|
1610
1659
|
* can never change.
|
|
1611
1660
|
**/
|
|
1612
|
-
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>,
|
|
1661
|
+
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32>], {
|
|
1613
1662
|
root: Option<AccountId32>;
|
|
1614
|
-
|
|
1663
|
+
bouncer: Option<AccountId32>;
|
|
1615
1664
|
nominator: Option<AccountId32>;
|
|
1616
1665
|
}>;
|
|
1617
1666
|
/**
|
|
@@ -2088,6 +2137,40 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2088
2137
|
**/
|
|
2089
2138
|
[key: string]: AugmentedEvent<ApiType>;
|
|
2090
2139
|
};
|
|
2140
|
+
salary: {
|
|
2141
|
+
/**
|
|
2142
|
+
* The next cycle begins.
|
|
2143
|
+
**/
|
|
2144
|
+
CycleStarted: AugmentedEvent<ApiType, [index: u32], {
|
|
2145
|
+
index: u32;
|
|
2146
|
+
}>;
|
|
2147
|
+
/**
|
|
2148
|
+
* A member is inducted into the payroll.
|
|
2149
|
+
**/
|
|
2150
|
+
Inducted: AugmentedEvent<ApiType, [who: AccountId32], {
|
|
2151
|
+
who: AccountId32;
|
|
2152
|
+
}>;
|
|
2153
|
+
/**
|
|
2154
|
+
* A payment happened.
|
|
2155
|
+
**/
|
|
2156
|
+
Paid: AugmentedEvent<ApiType, [who: AccountId32, beneficiary: AccountId32, amount: u128, id: Null], {
|
|
2157
|
+
who: AccountId32;
|
|
2158
|
+
beneficiary: AccountId32;
|
|
2159
|
+
amount: u128;
|
|
2160
|
+
id: Null;
|
|
2161
|
+
}>;
|
|
2162
|
+
/**
|
|
2163
|
+
* A member registered for a payout.
|
|
2164
|
+
**/
|
|
2165
|
+
Registered: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
2166
|
+
who: AccountId32;
|
|
2167
|
+
amount: u128;
|
|
2168
|
+
}>;
|
|
2169
|
+
/**
|
|
2170
|
+
* Generic event
|
|
2171
|
+
**/
|
|
2172
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
2173
|
+
};
|
|
2091
2174
|
scheduler: {
|
|
2092
2175
|
/**
|
|
2093
2176
|
* The call for the provided hash was not found so the task has been aborted.
|
package/substrate/events.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/events';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/events';
|
package/substrate/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../base';
|
|
2
|
-
import './consts';
|
|
3
|
-
import './errors';
|
|
4
|
-
import './events';
|
|
5
|
-
import './query';
|
|
6
|
-
import './registry';
|
|
7
|
-
import './runtime';
|
|
8
|
-
import './tx';
|
|
1
|
+
import '../base.js';
|
|
2
|
+
import './consts.js';
|
|
3
|
+
import './errors.js';
|
|
4
|
+
import './events.js';
|
|
5
|
+
import './query.js';
|
|
6
|
+
import './registry.js';
|
|
7
|
+
import './runtime.js';
|
|
8
|
+
import './tx.js';
|
package/substrate/index.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import "./registry.js";
|
|
10
|
-
import "./runtime.js";
|
|
11
|
-
import "./tx.js";
|
|
1
|
+
import '../base.js';
|
|
2
|
+
import './consts.js';
|
|
3
|
+
import './errors.js';
|
|
4
|
+
import './events.js';
|
|
5
|
+
import './query.js';
|
|
6
|
+
import './registry.js';
|
|
7
|
+
import './runtime.js';
|
|
8
|
+
import './tx.js';
|
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, WrapperOpaque, 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,
|
|
7
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, 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
9
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
10
10
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -666,6 +666,37 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
666
666
|
**/
|
|
667
667
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
668
668
|
};
|
|
669
|
+
glutton: {
|
|
670
|
+
/**
|
|
671
|
+
* Storage value used to specify what percentage of the left over `ref_time`
|
|
672
|
+
* to consume during `on_idle`.
|
|
673
|
+
**/
|
|
674
|
+
compute: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
|
675
|
+
/**
|
|
676
|
+
* Storage value used the specify what percentage of left over `proof_size`
|
|
677
|
+
* to consume during `on_idle`.
|
|
678
|
+
**/
|
|
679
|
+
storage: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
|
680
|
+
/**
|
|
681
|
+
* Storage map used for wasting proof size.
|
|
682
|
+
*
|
|
683
|
+
* It contains no meaningful data - hence the name "Trash". The maximal number of entries is
|
|
684
|
+
* set to 65k, which is just below the next jump at 16^4. This is important to reduce the proof
|
|
685
|
+
* size benchmarking overestimate. The assumption here is that we won't have more than 65k *
|
|
686
|
+
* 1KiB = 65MiB of proof size wasting in practice. However, this limit is not enforced, so the
|
|
687
|
+
* pallet would also work out of the box with more entries, but its benchmarked proof weight
|
|
688
|
+
* would possibly be underestimated in that case.
|
|
689
|
+
**/
|
|
690
|
+
trashData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<U8aFixed>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
691
|
+
/**
|
|
692
|
+
* The current number of entries in `TrashData`.
|
|
693
|
+
**/
|
|
694
|
+
trashDataCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
695
|
+
/**
|
|
696
|
+
* Generic query
|
|
697
|
+
**/
|
|
698
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
699
|
+
};
|
|
669
700
|
grandpa: {
|
|
670
701
|
/**
|
|
671
702
|
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
|
@@ -817,27 +848,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
817
848
|
/**
|
|
818
849
|
* The index of the first and last (non-empty) pages.
|
|
819
850
|
**/
|
|
820
|
-
bookStateFor: AugmentedQuery<ApiType, (arg:
|
|
821
|
-
Here: any;
|
|
822
|
-
} | {
|
|
823
|
-
There: any;
|
|
824
|
-
} | {
|
|
825
|
-
Everywhere: any;
|
|
826
|
-
} | string | Uint8Array) => Observable<PalletMessageQueueBookState>, [PalletMessageQueueMockHelpersMessageOrigin]> & QueryableStorageEntry<ApiType, [PalletMessageQueueMockHelpersMessageOrigin]>;
|
|
851
|
+
bookStateFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletMessageQueueBookState>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
827
852
|
/**
|
|
828
853
|
* The map of page indices to pages.
|
|
829
854
|
**/
|
|
830
|
-
pages: AugmentedQuery<ApiType, (arg1:
|
|
831
|
-
Here: any;
|
|
832
|
-
} | {
|
|
833
|
-
There: any;
|
|
834
|
-
} | {
|
|
835
|
-
Everywhere: any;
|
|
836
|
-
} | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMessageQueuePage>>, [PalletMessageQueueMockHelpersMessageOrigin, u32]> & QueryableStorageEntry<ApiType, [PalletMessageQueueMockHelpersMessageOrigin, u32]>;
|
|
855
|
+
pages: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMessageQueuePage>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
837
856
|
/**
|
|
838
857
|
* The origin at which we should begin servicing.
|
|
839
858
|
**/
|
|
840
|
-
serviceHead: AugmentedQuery<ApiType, () => Observable<Option<
|
|
859
|
+
serviceHead: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
841
860
|
/**
|
|
842
861
|
* Generic query
|
|
843
862
|
**/
|
|
@@ -883,7 +902,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
883
902
|
/**
|
|
884
903
|
* Attributes of a collection.
|
|
885
904
|
**/
|
|
886
|
-
attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3:
|
|
905
|
+
attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3: PalletNftsAttributeNamespace | {
|
|
887
906
|
Pallet: any;
|
|
888
907
|
} | {
|
|
889
908
|
CollectionOwner: any;
|
|
@@ -891,7 +910,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
891
910
|
ItemOwner: any;
|
|
892
911
|
} | {
|
|
893
912
|
Account: any;
|
|
894
|
-
} | string | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, PalletNftsAttributeDeposit]>>>, [u32, Option<u32>,
|
|
913
|
+
} | string | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, PalletNftsAttributeDeposit]>>>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]> & QueryableStorageEntry<ApiType, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]>;
|
|
895
914
|
/**
|
|
896
915
|
* Details of a collection.
|
|
897
916
|
**/
|
|
@@ -983,6 +1002,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
983
1002
|
* Storage for bonded pools.
|
|
984
1003
|
**/
|
|
985
1004
|
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1005
|
+
/**
|
|
1006
|
+
* Map from a pool member account to their opted claim permission.
|
|
1007
|
+
**/
|
|
1008
|
+
claimPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletNominationPoolsClaimPermission>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
986
1009
|
/**
|
|
987
1010
|
* Counter for the related counted storage map
|
|
988
1011
|
**/
|
|
@@ -1116,6 +1139,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1116
1139
|
map1M: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1117
1140
|
unboundedMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1118
1141
|
unboundedMap2: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1142
|
+
unboundedMapTwox: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1119
1143
|
/**
|
|
1120
1144
|
* A value without a MEL bound.
|
|
1121
1145
|
**/
|
|
@@ -1285,6 +1309,20 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1285
1309
|
**/
|
|
1286
1310
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1287
1311
|
};
|
|
1312
|
+
salary: {
|
|
1313
|
+
/**
|
|
1314
|
+
* The status of a claimant.
|
|
1315
|
+
**/
|
|
1316
|
+
claimant: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSalaryClaimantStatus>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1317
|
+
/**
|
|
1318
|
+
* The overall status of the system.
|
|
1319
|
+
**/
|
|
1320
|
+
status: AugmentedQuery<ApiType, () => Observable<Option<PalletSalaryStatusType>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1321
|
+
/**
|
|
1322
|
+
* Generic query
|
|
1323
|
+
**/
|
|
1324
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1325
|
+
};
|
|
1288
1326
|
scheduler: {
|
|
1289
1327
|
/**
|
|
1290
1328
|
* Items to be executed, indexed by the block number that they should be executed on.
|
package/substrate/query.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/storage';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/storage';
|
package/substrate/registry.js
CHANGED
package/substrate/runtime.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import '@polkadot/api-base/types/calls';
|
|
|
2
2
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
|
3
3
|
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
|
+
import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
|
|
5
6
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
|
6
7
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
|
7
8
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
@@ -11,6 +12,8 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
|
11
12
|
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
|
12
13
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
|
13
14
|
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
|
15
|
+
import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
|
|
16
|
+
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
|
14
17
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
|
15
18
|
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
|
16
19
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
@@ -32,6 +35,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
32
35
|
**/
|
|
33
36
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
34
37
|
};
|
|
38
|
+
/** 0x8453b50b22293977/1 */
|
|
39
|
+
assetsApi: {
|
|
40
|
+
/**
|
|
41
|
+
* Return the current set of authorities.
|
|
42
|
+
**/
|
|
43
|
+
accountBalances: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array) => Observable<Vec<ITuple<[u32, TAssetBalance]>>>>;
|
|
44
|
+
/**
|
|
45
|
+
* Generic call
|
|
46
|
+
**/
|
|
47
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
48
|
+
};
|
|
35
49
|
/** 0x687ad44ad37f03c2/1 */
|
|
36
50
|
authorityDiscoveryApi: {
|
|
37
51
|
/**
|
|
@@ -207,7 +221,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
207
221
|
**/
|
|
208
222
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
209
223
|
};
|
|
210
|
-
/** 0x91d5df18b0d2cf58/
|
|
224
|
+
/** 0x91d5df18b0d2cf58/2 */
|
|
211
225
|
mmrApi: {
|
|
212
226
|
/**
|
|
213
227
|
* Generate MMR proof for a series of leaves under given indices.
|
|
@@ -258,12 +272,51 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
258
272
|
**/
|
|
259
273
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
260
274
|
};
|
|
275
|
+
/** 0x899a250cbe84f250/1 */
|
|
276
|
+
nftsApi: {
|
|
277
|
+
/**
|
|
278
|
+
* An attribute
|
|
279
|
+
**/
|
|
280
|
+
attribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
281
|
+
/**
|
|
282
|
+
* A collection attribute
|
|
283
|
+
**/
|
|
284
|
+
collectionAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
285
|
+
/**
|
|
286
|
+
* A collection owner
|
|
287
|
+
**/
|
|
288
|
+
collectionOwner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
|
|
289
|
+
/**
|
|
290
|
+
* A custom attribute
|
|
291
|
+
**/
|
|
292
|
+
customAttribute: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array, collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
293
|
+
/**
|
|
294
|
+
* Collection owner
|
|
295
|
+
**/
|
|
296
|
+
owner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
|
|
297
|
+
/**
|
|
298
|
+
* System attribute
|
|
299
|
+
**/
|
|
300
|
+
systemAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
301
|
+
/**
|
|
302
|
+
* Generic call
|
|
303
|
+
**/
|
|
304
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
305
|
+
};
|
|
261
306
|
/** 0x17a6bc0d0062aeb3/1 */
|
|
262
307
|
nominationPoolsApi: {
|
|
308
|
+
/**
|
|
309
|
+
* Returns the equivalent points of `new_funds` for a given pool.
|
|
310
|
+
**/
|
|
311
|
+
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
|
263
312
|
/**
|
|
264
313
|
* Returns the pending rewards for the given member.
|
|
265
314
|
**/
|
|
266
315
|
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
|
316
|
+
/**
|
|
317
|
+
* Returns the equivalent balance of `points` for a given pool.
|
|
318
|
+
**/
|
|
319
|
+
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
|
267
320
|
/**
|
|
268
321
|
* Generic call
|
|
269
322
|
**/
|
|
@@ -301,6 +354,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
301
354
|
**/
|
|
302
355
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
303
356
|
};
|
|
357
|
+
/** 0x18ef58a3b67ba770/1 */
|
|
358
|
+
stakingApi: {
|
|
359
|
+
/**
|
|
360
|
+
* Returns the nominations quota for a nominator with a given balance.
|
|
361
|
+
**/
|
|
362
|
+
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
|
363
|
+
/**
|
|
364
|
+
* Generic call
|
|
365
|
+
**/
|
|
366
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
367
|
+
};
|
|
304
368
|
/** 0xd2bc9897eed08f15/3 */
|
|
305
369
|
taggedTransactionQueue: {
|
|
306
370
|
/**
|
package/substrate/runtime.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/calls';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/calls';
|