@polkadot/api-augment 10.7.3 → 10.8.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/cjs/packageInfo.js +1 -1
- package/kusama/consts.d.ts +29 -5
- package/kusama/errors.d.ts +38 -14
- package/kusama/events.d.ts +157 -118
- package/kusama/query.d.ts +35 -68
- package/kusama/tx.d.ts +382 -2741
- package/package.json +8 -8
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +28 -0
- package/polkadot/errors.d.ts +38 -14
- package/polkadot/events.d.ts +157 -118
- package/polkadot/query.d.ts +36 -69
- package/polkadot/tx.d.ts +380 -2866
- package/substrate/consts.d.ts +101 -6
- package/substrate/errors.d.ts +223 -0
- package/substrate/events.d.ts +283 -18
- package/substrate/query.d.ts +68 -7
- package/substrate/tx.d.ts +964 -4498
package/substrate/consts.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/consts';
|
|
2
2
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
3
|
-
import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
|
+
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights,
|
|
6
|
+
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
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> {
|
|
@@ -43,6 +43,40 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
43
43
|
**/
|
|
44
44
|
[key: string]: Codec;
|
|
45
45
|
};
|
|
46
|
+
assetConversion: {
|
|
47
|
+
/**
|
|
48
|
+
* A setting to allow creating pools with both non-native assets.
|
|
49
|
+
**/
|
|
50
|
+
allowMultiAssetPools: bool & AugmentedConst<ApiType>;
|
|
51
|
+
/**
|
|
52
|
+
* A fee to withdraw the liquidity.
|
|
53
|
+
**/
|
|
54
|
+
liquidityWithdrawalFee: Permill & AugmentedConst<ApiType>;
|
|
55
|
+
/**
|
|
56
|
+
* A % the liquidity providers will take of every swap. Represents 10ths of a percent.
|
|
57
|
+
**/
|
|
58
|
+
lpFee: u32 & AugmentedConst<ApiType>;
|
|
59
|
+
/**
|
|
60
|
+
* The max number of hops in a swap.
|
|
61
|
+
**/
|
|
62
|
+
maxSwapPathLength: u32 & AugmentedConst<ApiType>;
|
|
63
|
+
/**
|
|
64
|
+
* The minimum LP token amount that could be minted. Ameliorates rounding errors.
|
|
65
|
+
**/
|
|
66
|
+
mintMinLiquidity: u128 & AugmentedConst<ApiType>;
|
|
67
|
+
/**
|
|
68
|
+
* The pallet's id, used for deriving its sovereign account ID.
|
|
69
|
+
**/
|
|
70
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
71
|
+
/**
|
|
72
|
+
* A one-time fee to setup the pool.
|
|
73
|
+
**/
|
|
74
|
+
poolSetupFee: u128 & AugmentedConst<ApiType>;
|
|
75
|
+
/**
|
|
76
|
+
* Generic const
|
|
77
|
+
**/
|
|
78
|
+
[key: string]: Codec;
|
|
79
|
+
};
|
|
46
80
|
assets: {
|
|
47
81
|
/**
|
|
48
82
|
* The amount of funds that must be reserved when creating a new approval.
|
|
@@ -684,6 +718,33 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
684
718
|
**/
|
|
685
719
|
[key: string]: Codec;
|
|
686
720
|
};
|
|
721
|
+
nftFractionalization: {
|
|
722
|
+
/**
|
|
723
|
+
* The deposit paid by the user locking an NFT. The deposit is returned to the original NFT
|
|
724
|
+
* owner when the asset is unified and the NFT is unlocked.
|
|
725
|
+
**/
|
|
726
|
+
deposit: u128 & AugmentedConst<ApiType>;
|
|
727
|
+
/**
|
|
728
|
+
* The newly created asset's name.
|
|
729
|
+
**/
|
|
730
|
+
newAssetName: Bytes & AugmentedConst<ApiType>;
|
|
731
|
+
/**
|
|
732
|
+
* The newly created asset's symbol.
|
|
733
|
+
**/
|
|
734
|
+
newAssetSymbol: Bytes & AugmentedConst<ApiType>;
|
|
735
|
+
/**
|
|
736
|
+
* The pallet's id, used for deriving its sovereign account ID.
|
|
737
|
+
**/
|
|
738
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
739
|
+
/**
|
|
740
|
+
* The maximum length of a name or symbol stored on-chain.
|
|
741
|
+
**/
|
|
742
|
+
stringLimit: u32 & AugmentedConst<ApiType>;
|
|
743
|
+
/**
|
|
744
|
+
* Generic const
|
|
745
|
+
**/
|
|
746
|
+
[key: string]: Codec;
|
|
747
|
+
};
|
|
687
748
|
nfts: {
|
|
688
749
|
/**
|
|
689
750
|
* The maximum approvals an item could have.
|
|
@@ -759,10 +820,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
759
820
|
* Must be no greater than `MaxQueueLen`.
|
|
760
821
|
**/
|
|
761
822
|
fifoQueueLen: u32 & AugmentedConst<ApiType>;
|
|
762
|
-
/**
|
|
763
|
-
* The identifier of the hold reason.
|
|
764
|
-
**/
|
|
765
|
-
holdReason: KitchensinkRuntimeHoldReason & AugmentedConst<ApiType>;
|
|
766
823
|
/**
|
|
767
824
|
* The number of blocks between consecutive attempts to dequeue bids and create receipts.
|
|
768
825
|
*
|
|
@@ -839,6 +896,44 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
839
896
|
**/
|
|
840
897
|
[key: string]: Codec;
|
|
841
898
|
};
|
|
899
|
+
poolAssets: {
|
|
900
|
+
/**
|
|
901
|
+
* The amount of funds that must be reserved when creating a new approval.
|
|
902
|
+
**/
|
|
903
|
+
approvalDeposit: u128 & AugmentedConst<ApiType>;
|
|
904
|
+
/**
|
|
905
|
+
* The amount of funds that must be reserved for a non-provider asset account to be
|
|
906
|
+
* maintained.
|
|
907
|
+
**/
|
|
908
|
+
assetAccountDeposit: u128 & AugmentedConst<ApiType>;
|
|
909
|
+
/**
|
|
910
|
+
* The basic amount of funds that must be reserved for an asset.
|
|
911
|
+
**/
|
|
912
|
+
assetDeposit: u128 & AugmentedConst<ApiType>;
|
|
913
|
+
/**
|
|
914
|
+
* The basic amount of funds that must be reserved when adding metadata to your asset.
|
|
915
|
+
**/
|
|
916
|
+
metadataDepositBase: u128 & AugmentedConst<ApiType>;
|
|
917
|
+
/**
|
|
918
|
+
* The additional funds that must be reserved for the number of bytes you store in your
|
|
919
|
+
* metadata.
|
|
920
|
+
**/
|
|
921
|
+
metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
|
922
|
+
/**
|
|
923
|
+
* Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
|
|
924
|
+
*
|
|
925
|
+
* Must be configured to result in a weight that makes each call fit in a block.
|
|
926
|
+
**/
|
|
927
|
+
removeItemsLimit: u32 & AugmentedConst<ApiType>;
|
|
928
|
+
/**
|
|
929
|
+
* The maximum length of a name or symbol stored on-chain.
|
|
930
|
+
**/
|
|
931
|
+
stringLimit: u32 & AugmentedConst<ApiType>;
|
|
932
|
+
/**
|
|
933
|
+
* Generic const
|
|
934
|
+
**/
|
|
935
|
+
[key: string]: Codec;
|
|
936
|
+
};
|
|
842
937
|
proxy: {
|
|
843
938
|
/**
|
|
844
939
|
* The base amount of currency needed to reserve for creating an announcement.
|
package/substrate/errors.d.ts
CHANGED
|
@@ -152,6 +152,106 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
152
152
|
**/
|
|
153
153
|
[key: string]: AugmentedError<ApiType>;
|
|
154
154
|
};
|
|
155
|
+
assetConversion: {
|
|
156
|
+
/**
|
|
157
|
+
* Provided amount should be greater than or equal to the existential deposit/asset's
|
|
158
|
+
* minimal amount.
|
|
159
|
+
**/
|
|
160
|
+
AmountLessThanMinimal: AugmentedError<ApiType>;
|
|
161
|
+
/**
|
|
162
|
+
* Desired amount can't be equal to the pool reserve.
|
|
163
|
+
**/
|
|
164
|
+
AmountOutTooHigh: AugmentedError<ApiType>;
|
|
165
|
+
/**
|
|
166
|
+
* The minimal amount requirement for the first token in the pair wasn't met.
|
|
167
|
+
**/
|
|
168
|
+
AssetOneDepositDidNotMeetMinimum: AugmentedError<ApiType>;
|
|
169
|
+
/**
|
|
170
|
+
* The minimal amount requirement for the first token in the pair wasn't met.
|
|
171
|
+
**/
|
|
172
|
+
AssetOneWithdrawalDidNotMeetMinimum: AugmentedError<ApiType>;
|
|
173
|
+
/**
|
|
174
|
+
* The minimal amount requirement for the second token in the pair wasn't met.
|
|
175
|
+
**/
|
|
176
|
+
AssetTwoDepositDidNotMeetMinimum: AugmentedError<ApiType>;
|
|
177
|
+
/**
|
|
178
|
+
* The minimal amount requirement for the second token in the pair wasn't met.
|
|
179
|
+
**/
|
|
180
|
+
AssetTwoWithdrawalDidNotMeetMinimum: AugmentedError<ApiType>;
|
|
181
|
+
/**
|
|
182
|
+
* Provided assets are equal.
|
|
183
|
+
**/
|
|
184
|
+
EqualAssets: AugmentedError<ApiType>;
|
|
185
|
+
/**
|
|
186
|
+
* Insufficient liquidity in the pool.
|
|
187
|
+
**/
|
|
188
|
+
InsufficientLiquidity: AugmentedError<ApiType>;
|
|
189
|
+
/**
|
|
190
|
+
* Insufficient liquidity minted.
|
|
191
|
+
**/
|
|
192
|
+
InsufficientLiquidityMinted: AugmentedError<ApiType>;
|
|
193
|
+
/**
|
|
194
|
+
* The provided path must consists of 2 assets at least.
|
|
195
|
+
**/
|
|
196
|
+
InvalidPath: AugmentedError<ApiType>;
|
|
197
|
+
/**
|
|
198
|
+
* The provided path must consists of unique assets.
|
|
199
|
+
**/
|
|
200
|
+
NonUniquePath: AugmentedError<ApiType>;
|
|
201
|
+
/**
|
|
202
|
+
* Optimal calculated amount is less than desired.
|
|
203
|
+
**/
|
|
204
|
+
OptimalAmountLessThanDesired: AugmentedError<ApiType>;
|
|
205
|
+
/**
|
|
206
|
+
* An overflow happened.
|
|
207
|
+
**/
|
|
208
|
+
Overflow: AugmentedError<ApiType>;
|
|
209
|
+
/**
|
|
210
|
+
* It was not possible to calculate path data.
|
|
211
|
+
**/
|
|
212
|
+
PathError: AugmentedError<ApiType>;
|
|
213
|
+
/**
|
|
214
|
+
* Pool already exists.
|
|
215
|
+
**/
|
|
216
|
+
PoolExists: AugmentedError<ApiType>;
|
|
217
|
+
/**
|
|
218
|
+
* Only pools with native on one side are valid.
|
|
219
|
+
**/
|
|
220
|
+
PoolMustContainNativeCurrency: AugmentedError<ApiType>;
|
|
221
|
+
/**
|
|
222
|
+
* The pool doesn't exist.
|
|
223
|
+
**/
|
|
224
|
+
PoolNotFound: AugmentedError<ApiType>;
|
|
225
|
+
/**
|
|
226
|
+
* Provided maximum amount is not sufficient for swap.
|
|
227
|
+
**/
|
|
228
|
+
ProvidedMaximumNotSufficientForSwap: AugmentedError<ApiType>;
|
|
229
|
+
/**
|
|
230
|
+
* Calculated amount out is less than provided minimum amount.
|
|
231
|
+
**/
|
|
232
|
+
ProvidedMinimumNotSufficientForSwap: AugmentedError<ApiType>;
|
|
233
|
+
/**
|
|
234
|
+
* Reserve needs to always be greater than or equal to the existential deposit/asset's
|
|
235
|
+
* minimal amount.
|
|
236
|
+
**/
|
|
237
|
+
ReserveLeftLessThanMinimal: AugmentedError<ApiType>;
|
|
238
|
+
/**
|
|
239
|
+
* Desired amount can't be zero.
|
|
240
|
+
**/
|
|
241
|
+
WrongDesiredAmount: AugmentedError<ApiType>;
|
|
242
|
+
/**
|
|
243
|
+
* Amount can't be zero.
|
|
244
|
+
**/
|
|
245
|
+
ZeroAmount: AugmentedError<ApiType>;
|
|
246
|
+
/**
|
|
247
|
+
* Requested liquidity can't be zero.
|
|
248
|
+
**/
|
|
249
|
+
ZeroLiquidity: AugmentedError<ApiType>;
|
|
250
|
+
/**
|
|
251
|
+
* Generic error
|
|
252
|
+
**/
|
|
253
|
+
[key: string]: AugmentedError<ApiType>;
|
|
254
|
+
};
|
|
155
255
|
assetRate: {
|
|
156
256
|
/**
|
|
157
257
|
* The given asset ID already has an assigned conversion rate and cannot be re-created.
|
|
@@ -461,12 +561,20 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
461
561
|
* of what is specified in the schedule.
|
|
462
562
|
**/
|
|
463
563
|
MaxCallDepthReached: AugmentedError<ApiType>;
|
|
564
|
+
/**
|
|
565
|
+
* A pending migration needs to complete before the extrinsic can be called.
|
|
566
|
+
**/
|
|
567
|
+
MigrationInProgress: AugmentedError<ApiType>;
|
|
464
568
|
/**
|
|
465
569
|
* The chain does not provide a chain extension. Calling the chain extension results
|
|
466
570
|
* in this error. Note that this usually shouldn't happen as deploying such contracts
|
|
467
571
|
* is rejected.
|
|
468
572
|
**/
|
|
469
573
|
NoChainExtension: AugmentedError<ApiType>;
|
|
574
|
+
/**
|
|
575
|
+
* Migrate dispatch call was attempted but no migration was performed.
|
|
576
|
+
**/
|
|
577
|
+
NoMigrationPerformed: AugmentedError<ApiType>;
|
|
470
578
|
/**
|
|
471
579
|
* A buffer outside of sandbox memory was passed to a contract API function.
|
|
472
580
|
**/
|
|
@@ -1243,6 +1351,28 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1243
1351
|
**/
|
|
1244
1352
|
[key: string]: AugmentedError<ApiType>;
|
|
1245
1353
|
};
|
|
1354
|
+
nftFractionalization: {
|
|
1355
|
+
/**
|
|
1356
|
+
* Asset ID does not correspond to locked NFT.
|
|
1357
|
+
**/
|
|
1358
|
+
IncorrectAssetId: AugmentedError<ApiType>;
|
|
1359
|
+
/**
|
|
1360
|
+
* NFT doesn't exist.
|
|
1361
|
+
**/
|
|
1362
|
+
NftNotFound: AugmentedError<ApiType>;
|
|
1363
|
+
/**
|
|
1364
|
+
* NFT has not yet been fractionalised.
|
|
1365
|
+
**/
|
|
1366
|
+
NftNotFractionalized: AugmentedError<ApiType>;
|
|
1367
|
+
/**
|
|
1368
|
+
* The signing account has no permission to do the operation.
|
|
1369
|
+
**/
|
|
1370
|
+
NoPermission: AugmentedError<ApiType>;
|
|
1371
|
+
/**
|
|
1372
|
+
* Generic error
|
|
1373
|
+
**/
|
|
1374
|
+
[key: string]: AugmentedError<ApiType>;
|
|
1375
|
+
};
|
|
1246
1376
|
nfts: {
|
|
1247
1377
|
/**
|
|
1248
1378
|
* The provided Item was already used for claiming.
|
|
@@ -1392,6 +1522,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1392
1522
|
* Swap doesn't exist.
|
|
1393
1523
|
**/
|
|
1394
1524
|
UnknownSwap: AugmentedError<ApiType>;
|
|
1525
|
+
/**
|
|
1526
|
+
* The witness data should be provided.
|
|
1527
|
+
**/
|
|
1528
|
+
WitnessRequired: AugmentedError<ApiType>;
|
|
1395
1529
|
/**
|
|
1396
1530
|
* The delegate turned out to be different to what was expected.
|
|
1397
1531
|
**/
|
|
@@ -1626,6 +1760,95 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1626
1760
|
**/
|
|
1627
1761
|
[key: string]: AugmentedError<ApiType>;
|
|
1628
1762
|
};
|
|
1763
|
+
poolAssets: {
|
|
1764
|
+
/**
|
|
1765
|
+
* The asset-account already exists.
|
|
1766
|
+
**/
|
|
1767
|
+
AlreadyExists: AugmentedError<ApiType>;
|
|
1768
|
+
/**
|
|
1769
|
+
* The asset is not live, and likely being destroyed.
|
|
1770
|
+
**/
|
|
1771
|
+
AssetNotLive: AugmentedError<ApiType>;
|
|
1772
|
+
/**
|
|
1773
|
+
* Invalid metadata given.
|
|
1774
|
+
**/
|
|
1775
|
+
BadMetadata: AugmentedError<ApiType>;
|
|
1776
|
+
/**
|
|
1777
|
+
* Invalid witness data given.
|
|
1778
|
+
**/
|
|
1779
|
+
BadWitness: AugmentedError<ApiType>;
|
|
1780
|
+
/**
|
|
1781
|
+
* Account balance must be greater than or equal to the transfer amount.
|
|
1782
|
+
**/
|
|
1783
|
+
BalanceLow: AugmentedError<ApiType>;
|
|
1784
|
+
/**
|
|
1785
|
+
* Callback action resulted in error
|
|
1786
|
+
**/
|
|
1787
|
+
CallbackFailed: AugmentedError<ApiType>;
|
|
1788
|
+
/**
|
|
1789
|
+
* The origin account is frozen.
|
|
1790
|
+
**/
|
|
1791
|
+
Frozen: AugmentedError<ApiType>;
|
|
1792
|
+
/**
|
|
1793
|
+
* The asset status is not the expected status.
|
|
1794
|
+
**/
|
|
1795
|
+
IncorrectStatus: AugmentedError<ApiType>;
|
|
1796
|
+
/**
|
|
1797
|
+
* The asset ID is already taken.
|
|
1798
|
+
**/
|
|
1799
|
+
InUse: AugmentedError<ApiType>;
|
|
1800
|
+
/**
|
|
1801
|
+
* The asset is a live asset and is actively being used. Usually emit for operations such
|
|
1802
|
+
* as `start_destroy` which require the asset to be in a destroying state.
|
|
1803
|
+
**/
|
|
1804
|
+
LiveAsset: AugmentedError<ApiType>;
|
|
1805
|
+
/**
|
|
1806
|
+
* Minimum balance should be non-zero.
|
|
1807
|
+
**/
|
|
1808
|
+
MinBalanceZero: AugmentedError<ApiType>;
|
|
1809
|
+
/**
|
|
1810
|
+
* The account to alter does not exist.
|
|
1811
|
+
**/
|
|
1812
|
+
NoAccount: AugmentedError<ApiType>;
|
|
1813
|
+
/**
|
|
1814
|
+
* The asset-account doesn't have an associated deposit.
|
|
1815
|
+
**/
|
|
1816
|
+
NoDeposit: AugmentedError<ApiType>;
|
|
1817
|
+
/**
|
|
1818
|
+
* The signing account has no permission to do the operation.
|
|
1819
|
+
**/
|
|
1820
|
+
NoPermission: AugmentedError<ApiType>;
|
|
1821
|
+
/**
|
|
1822
|
+
* The asset should be frozen before the given operation.
|
|
1823
|
+
**/
|
|
1824
|
+
NotFrozen: AugmentedError<ApiType>;
|
|
1825
|
+
/**
|
|
1826
|
+
* No approval exists that would allow the transfer.
|
|
1827
|
+
**/
|
|
1828
|
+
Unapproved: AugmentedError<ApiType>;
|
|
1829
|
+
/**
|
|
1830
|
+
* Unable to increment the consumer reference counters on the account. Either no provider
|
|
1831
|
+
* reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
|
|
1832
|
+
* fewer then the maximum number of consumers has been reached.
|
|
1833
|
+
**/
|
|
1834
|
+
UnavailableConsumer: AugmentedError<ApiType>;
|
|
1835
|
+
/**
|
|
1836
|
+
* The given asset ID is unknown.
|
|
1837
|
+
**/
|
|
1838
|
+
Unknown: AugmentedError<ApiType>;
|
|
1839
|
+
/**
|
|
1840
|
+
* The operation would result in funds being burned.
|
|
1841
|
+
**/
|
|
1842
|
+
WouldBurn: AugmentedError<ApiType>;
|
|
1843
|
+
/**
|
|
1844
|
+
* The source account would not survive the transfer and it needs to stay alive.
|
|
1845
|
+
**/
|
|
1846
|
+
WouldDie: AugmentedError<ApiType>;
|
|
1847
|
+
/**
|
|
1848
|
+
* Generic error
|
|
1849
|
+
**/
|
|
1850
|
+
[key: string]: AugmentedError<ApiType>;
|
|
1851
|
+
};
|
|
1629
1852
|
preimage: {
|
|
1630
1853
|
/**
|
|
1631
1854
|
* Preimage has already been noted on-chain.
|