@polymeshassociation/polymesh-sdk 15.2.0 → 15.3.0
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/CHANGELOG.md +2 -7
- package/README.md +1 -1
- package/api/procedures/inviteExternalAgent.d.ts.map +1 -1
- package/api/procedures/inviteExternalAgent.js +3 -1
- package/api/procedures/inviteExternalAgent.js.map +1 -1
- package/generated/types.d.ts +43 -10
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +35 -1
- package/generated/types.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-15.3.0.tgz +0 -0
- package/package.json +57 -56
- package/polkadot/augment-api-consts.d.ts +34 -11
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +226 -23
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +223 -16
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +148 -19
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-rpc.d.ts +42 -10
- package/polkadot/augment-api-rpc.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +883 -250
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/augment-types.d.ts +101 -27
- package/polkadot/augment-types.d.ts.map +1 -1
- package/polkadot/definitions.d.ts +2 -0
- package/polkadot/definitions.d.ts.map +1 -1
- package/polkadot/definitions.js +5 -1
- package/polkadot/definitions.js.map +1 -1
- package/polkadot/group/definitions.d.ts +25 -0
- package/polkadot/group/definitions.d.ts.map +1 -0
- package/polkadot/group/definitions.js +31 -0
- package/polkadot/group/definitions.js.map +1 -0
- package/polkadot/group/index.d.ts +2 -0
- package/polkadot/group/index.d.ts.map +1 -0
- package/polkadot/group/index.js +20 -0
- package/polkadot/group/index.js.map +1 -0
- package/polkadot/group/types.d.ts +2 -0
- package/polkadot/group/types.d.ts.map +1 -0
- package/polkadot/group/types.js +5 -0
- package/polkadot/group/types.js.map +1 -0
- package/polkadot/lookup.d.ts +807 -460
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +934 -539
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/nft/definitions.d.ts +16 -0
- package/polkadot/nft/definitions.d.ts.map +1 -0
- package/polkadot/nft/definitions.js +35 -0
- package/polkadot/nft/definitions.js.map +1 -0
- package/polkadot/nft/index.d.ts +2 -0
- package/polkadot/nft/index.d.ts.map +1 -0
- package/polkadot/nft/index.js +20 -0
- package/polkadot/nft/index.js.map +1 -0
- package/polkadot/nft/types.d.ts +2 -0
- package/polkadot/nft/types.d.ts.map +1 -0
- package/polkadot/nft/types.js +5 -0
- package/polkadot/nft/types.js.map +1 -0
- package/polkadot/polymesh/definitions.d.ts +60 -41
- package/polkadot/polymesh/definitions.d.ts.map +1 -1
- package/polkadot/polymesh/definitions.js +61 -42
- package/polkadot/polymesh/definitions.js.map +1 -1
- package/polkadot/polymesh/types.d.ts +84 -61
- package/polkadot/polymesh/types.d.ts.map +1 -1
- package/polkadot/registry.d.ts +38 -23
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/schema.d.ts +97 -41
- package/polkadot/schema.d.ts.map +1 -1
- package/polkadot/schema.js +119 -42
- package/polkadot/schema.js.map +1 -1
- package/polkadot/types-lookup.d.ts +1003 -551
- package/polkadot/types-lookup.d.ts.map +1 -1
- package/polkadot/types.d.ts +2 -0
- package/polkadot/types.d.ts.map +1 -1
- package/polkadot/types.js +2 -0
- package/polkadot/types.js.map +1 -1
- package/utils/conversion.d.ts +3 -3
- package/utils/conversion.d.ts.map +1 -1
- package/utils/conversion.js +2 -2
- package/utils/conversion.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-15.2.0.tgz +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
|
-
import type { Vec, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
|
2
|
+
import type { Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
3
|
import type { Perbill, Permill } from '@polkadot/types/interfaces/runtime';
|
|
4
|
-
import type {
|
|
4
|
+
import type { FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightToFeeCoefficient, SpWeightsWeightV2Weight } from "./types-lookup.ts";
|
|
5
5
|
declare module '@polkadot/api-base/types/consts' {
|
|
6
6
|
interface AugmentedConsts<ApiType extends ApiTypes> {
|
|
7
7
|
asset: {
|
|
@@ -10,7 +10,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
10
10
|
assetMetadataValueMaxLength: u32 & AugmentedConst<ApiType>;
|
|
11
11
|
assetNameMaxLength: u32 & AugmentedConst<ApiType>;
|
|
12
12
|
fundingRoundNameMaxLength: u32 & AugmentedConst<ApiType>;
|
|
13
|
-
maxNumberOfTMExtensionForAsset: u32 & AugmentedConst<ApiType>;
|
|
14
13
|
};
|
|
15
14
|
authorship: {
|
|
16
15
|
/**
|
|
@@ -79,7 +78,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
79
78
|
* weight that is left for transactions. See [`Self::DeletionQueueDepth`] for more
|
|
80
79
|
* information about the deletion queue.
|
|
81
80
|
**/
|
|
82
|
-
deletionWeightLimit:
|
|
81
|
+
deletionWeightLimit: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
83
82
|
/**
|
|
84
83
|
* The amount of balance a caller has to pay for each byte of storage.
|
|
85
84
|
*
|
|
@@ -96,10 +95,32 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
96
95
|
* Changing this value for an existing chain might need a storage migration.
|
|
97
96
|
**/
|
|
98
97
|
depositPerItem: u128 & AugmentedConst<ApiType>;
|
|
98
|
+
/**
|
|
99
|
+
* The maximum length of a contract code in bytes. This limit applies to the instrumented
|
|
100
|
+
* version of the code. Therefore `instantiate_with_code` can fail even when supplying
|
|
101
|
+
* a wasm binary below this maximum size.
|
|
102
|
+
**/
|
|
103
|
+
maxCodeLen: u32 & AugmentedConst<ApiType>;
|
|
104
|
+
/**
|
|
105
|
+
* The maximum allowable length in bytes for storage keys.
|
|
106
|
+
**/
|
|
107
|
+
maxStorageKeyLen: u32 & AugmentedConst<ApiType>;
|
|
99
108
|
/**
|
|
100
109
|
* Cost schedule and limits.
|
|
101
110
|
**/
|
|
102
111
|
schedule: PalletContractsSchedule & AugmentedConst<ApiType>;
|
|
112
|
+
/**
|
|
113
|
+
* Make contract callable functions marked as `#[unstable]` available.
|
|
114
|
+
*
|
|
115
|
+
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
|
|
116
|
+
* this is set to `true`. This is only meant for testnets and dev nodes in order to
|
|
117
|
+
* experiment with new features.
|
|
118
|
+
*
|
|
119
|
+
* # Warning
|
|
120
|
+
*
|
|
121
|
+
* Do **not** set to `true` on productions chains.
|
|
122
|
+
**/
|
|
123
|
+
unsafeUnstableInterface: bool & AugmentedConst<ApiType>;
|
|
103
124
|
};
|
|
104
125
|
corporateAction: {
|
|
105
126
|
maxDidWhts: u32 & AugmentedConst<ApiType>;
|
|
@@ -129,15 +150,17 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
129
150
|
**/
|
|
130
151
|
deposit: u128 & AugmentedConst<ApiType>;
|
|
131
152
|
};
|
|
153
|
+
nft: {
|
|
154
|
+
maxNumberOfCollectionKeys: u8 & AugmentedConst<ApiType>;
|
|
155
|
+
maxNumberOfNFTsCount: u32 & AugmentedConst<ApiType>;
|
|
156
|
+
};
|
|
132
157
|
scheduler: {
|
|
133
158
|
/**
|
|
134
|
-
* The maximum weight that may be scheduled per block for any dispatchables
|
|
135
|
-
* priority than `schedule::HARD_DEADLINE`.
|
|
159
|
+
* The maximum weight that may be scheduled per block for any dispatchables.
|
|
136
160
|
**/
|
|
137
|
-
maximumWeight:
|
|
161
|
+
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
138
162
|
/**
|
|
139
163
|
* The maximum number of scheduled calls in the queue for a single block.
|
|
140
|
-
* Not strictly enforced, but used for weight estimation.
|
|
141
164
|
**/
|
|
142
165
|
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
|
143
166
|
};
|
|
@@ -224,9 +247,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
224
247
|
/**
|
|
225
248
|
* The weight of runtime database operations the runtime can invoke.
|
|
226
249
|
**/
|
|
227
|
-
dbWeight:
|
|
250
|
+
dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
|
228
251
|
/**
|
|
229
|
-
* The designated
|
|
252
|
+
* The designated SS58 prefix of this chain.
|
|
230
253
|
*
|
|
231
254
|
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
232
255
|
* that the runtime should know about the prefix in order to make use of it as
|
|
@@ -255,7 +278,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
255
278
|
/**
|
|
256
279
|
* The polynomial that is applied in order to derive fee from weight.
|
|
257
280
|
**/
|
|
258
|
-
weightToFee: Vec<
|
|
281
|
+
weightToFee: Vec<SpWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;
|
|
259
282
|
};
|
|
260
283
|
}
|
|
261
284
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"augment-api-consts.d.ts","sourceRoot":"","sources":["../../src/polkadot/augment-api-consts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"augment-api-consts.d.ts","sourceRoot":"","sources":["../../src/polkadot/augment-api-consts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MA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base/types';
|
|
|
2
2
|
declare module '@polkadot/api-base/types/errors' {
|
|
3
3
|
interface AugmentedErrors<ApiType extends ApiTypes> {
|
|
4
4
|
asset: {
|
|
5
|
-
/**
|
|
6
|
-
* When extension already archived.
|
|
7
|
-
**/
|
|
8
|
-
AlreadyArchived: AugmentedError<ApiType>;
|
|
9
5
|
/**
|
|
10
6
|
* The token is already frozen.
|
|
11
7
|
**/
|
|
12
8
|
AlreadyFrozen: AugmentedError<ApiType>;
|
|
13
|
-
/**
|
|
14
|
-
* When extension already un-archived.
|
|
15
|
-
**/
|
|
16
|
-
AlreadyUnArchived: AugmentedError<ApiType>;
|
|
17
9
|
/**
|
|
18
10
|
* The token has already been created.
|
|
19
11
|
**/
|
|
@@ -26,6 +18,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
26
18
|
* Asset Metadata Global type already exists.
|
|
27
19
|
**/
|
|
28
20
|
AssetMetadataGlobalKeyAlreadyExists: AugmentedError<ApiType>;
|
|
21
|
+
/**
|
|
22
|
+
* Attempt to delete a key that is needed for an NFT collection.
|
|
23
|
+
**/
|
|
24
|
+
AssetMetadataKeyBelongsToNFTCollection: AugmentedError<ApiType>;
|
|
29
25
|
/**
|
|
30
26
|
* Asset Metadata key is missing.
|
|
31
27
|
**/
|
|
@@ -42,6 +38,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
42
38
|
* Maximum length of the asset metadata type definition has been exceeded.
|
|
43
39
|
**/
|
|
44
40
|
AssetMetadataTypeDefMaxLengthExceeded: AugmentedError<ApiType>;
|
|
41
|
+
/**
|
|
42
|
+
* Attempt to lock a metadata value that is empty.
|
|
43
|
+
**/
|
|
44
|
+
AssetMetadataValueIsEmpty: AugmentedError<ApiType>;
|
|
45
45
|
/**
|
|
46
46
|
* Asset Metadata value is locked.
|
|
47
47
|
**/
|
|
@@ -54,18 +54,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
54
54
|
* An overflow while calculating the balance.
|
|
55
55
|
**/
|
|
56
56
|
BalanceOverflow: AugmentedError<ApiType>;
|
|
57
|
-
/**
|
|
58
|
-
* When extension is already added.
|
|
59
|
-
**/
|
|
60
|
-
ExtensionAlreadyPresent: AugmentedError<ApiType>;
|
|
61
57
|
/**
|
|
62
58
|
* Maximum length of the funding round name has been exceeded.
|
|
63
59
|
**/
|
|
64
60
|
FundingRoundNameMaxLengthExceeded: AugmentedError<ApiType>;
|
|
65
61
|
/**
|
|
66
|
-
*
|
|
62
|
+
* Attempt to update the type of a non fungible token to a fungible token or the other way around.
|
|
67
63
|
**/
|
|
68
|
-
|
|
64
|
+
IncompatibleAssetTypeUpdate: AugmentedError<ApiType>;
|
|
69
65
|
/**
|
|
70
66
|
* The sender balance is not sufficient.
|
|
71
67
|
**/
|
|
@@ -95,9 +91,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
95
91
|
**/
|
|
96
92
|
InvestorUniquenessClaimNotAllowed: AugmentedError<ApiType>;
|
|
97
93
|
/**
|
|
98
|
-
*
|
|
94
|
+
* Investor Uniqueness not allowed.
|
|
99
95
|
**/
|
|
100
|
-
|
|
96
|
+
InvestorUniquenessNotAllowed: AugmentedError<ApiType>;
|
|
101
97
|
/**
|
|
102
98
|
* Maximum length of asset name has been exceeded.
|
|
103
99
|
**/
|
|
@@ -131,9 +127,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
131
127
|
**/
|
|
132
128
|
TickerAlreadyRegistered: AugmentedError<ApiType>;
|
|
133
129
|
/**
|
|
134
|
-
*
|
|
130
|
+
* Tickers should start with at least one valid byte.
|
|
131
|
+
**/
|
|
132
|
+
TickerFirstByteNotValid: AugmentedError<ApiType>;
|
|
133
|
+
/**
|
|
134
|
+
* The ticker has non-alphanumeric parts.
|
|
135
135
|
**/
|
|
136
|
-
|
|
136
|
+
TickerNotAlphanumeric: AugmentedError<ApiType>;
|
|
137
137
|
/**
|
|
138
138
|
* Registration of ticker has expired.
|
|
139
139
|
**/
|
|
@@ -154,6 +154,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
154
154
|
* The user is not authorized.
|
|
155
155
|
**/
|
|
156
156
|
Unauthorized: AugmentedError<ApiType>;
|
|
157
|
+
/**
|
|
158
|
+
* Attempt to call an extrinsic that is only permitted for fungible tokens.
|
|
159
|
+
**/
|
|
160
|
+
UnexpectedNonFungibleToken: AugmentedError<ApiType>;
|
|
157
161
|
};
|
|
158
162
|
authorship: {
|
|
159
163
|
/**
|
|
@@ -190,6 +194,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
190
194
|
* A given equivocation report is valid but already previously reported.
|
|
191
195
|
**/
|
|
192
196
|
DuplicateOffenceReport: AugmentedError<ApiType>;
|
|
197
|
+
/**
|
|
198
|
+
* Submitted configuration is invalid.
|
|
199
|
+
**/
|
|
200
|
+
InvalidConfiguration: AugmentedError<ApiType>;
|
|
193
201
|
/**
|
|
194
202
|
* An equivocation proof provided as part of an equivocation report is invalid.
|
|
195
203
|
**/
|
|
@@ -475,8 +483,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
475
483
|
CodeNotFound: AugmentedError<ApiType>;
|
|
476
484
|
/**
|
|
477
485
|
* The contract's code was found to be invalid during validation or instrumentation.
|
|
486
|
+
*
|
|
487
|
+
* The most likely cause of this is that an API was used which is not supported by the
|
|
488
|
+
* node. This hapens if an older node is used with a new version of ink!. Try updating
|
|
489
|
+
* your node to the newest available version.
|
|
490
|
+
*
|
|
478
491
|
* A more detailed error can be found on the node console if debug messages are enabled
|
|
479
|
-
*
|
|
492
|
+
* by supplying `-lruntime::contracts=debug`.
|
|
480
493
|
**/
|
|
481
494
|
CodeRejected: AugmentedError<ApiType>;
|
|
482
495
|
/**
|
|
@@ -523,6 +536,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
523
536
|
* The topics passed to `seal_deposit_events` contains at least one duplicate.
|
|
524
537
|
**/
|
|
525
538
|
DuplicateTopics: AugmentedError<ApiType>;
|
|
539
|
+
/**
|
|
540
|
+
* An indetermistic code was used in a context where this is not permitted.
|
|
541
|
+
**/
|
|
542
|
+
Indeterministic: AugmentedError<ApiType>;
|
|
526
543
|
/**
|
|
527
544
|
* `seal_call` forwarded this contracts input. It therefore is no longer available.
|
|
528
545
|
**/
|
|
@@ -802,6 +819,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
802
819
|
* Claim and Proof versions are different.
|
|
803
820
|
**/
|
|
804
821
|
ClaimAndProofVersionsDoNotMatch: AugmentedError<ApiType>;
|
|
822
|
+
/**
|
|
823
|
+
* Claim does not exist.
|
|
824
|
+
**/
|
|
825
|
+
ClaimDoesNotExist: AugmentedError<ApiType>;
|
|
805
826
|
/**
|
|
806
827
|
* Try to add a claim variant using un-designated extrinsic.
|
|
807
828
|
**/
|
|
@@ -814,6 +835,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
814
835
|
* Current identity cannot be forwarded, it is not a secondary key of target identity.
|
|
815
836
|
**/
|
|
816
837
|
CurrentIdentityCannotBeForwarded: AugmentedError<ApiType>;
|
|
838
|
+
/**
|
|
839
|
+
* The custom claim type trying to be registered already exists.
|
|
840
|
+
**/
|
|
841
|
+
CustomClaimTypeAlreadyExists: AugmentedError<ApiType>;
|
|
842
|
+
/**
|
|
843
|
+
* The custom claim type does not exist.
|
|
844
|
+
**/
|
|
845
|
+
CustomClaimTypeDoesNotExist: AugmentedError<ApiType>;
|
|
817
846
|
/**
|
|
818
847
|
* A custom scope is too long.
|
|
819
848
|
* It can at most be `32` characters long.
|
|
@@ -1038,6 +1067,88 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1038
1067
|
**/
|
|
1039
1068
|
TooManySigners: AugmentedError<ApiType>;
|
|
1040
1069
|
};
|
|
1070
|
+
nft: {
|
|
1071
|
+
/**
|
|
1072
|
+
* An overflow while calculating the balance.
|
|
1073
|
+
**/
|
|
1074
|
+
BalanceOverflow: AugmentedError<ApiType>;
|
|
1075
|
+
/**
|
|
1076
|
+
* An underflow while calculating the balance.
|
|
1077
|
+
**/
|
|
1078
|
+
BalanceUnderflow: AugmentedError<ApiType>;
|
|
1079
|
+
/**
|
|
1080
|
+
* The ticker is already associated to an NFT collection.
|
|
1081
|
+
**/
|
|
1082
|
+
CollectionAlredyRegistered: AugmentedError<ApiType>;
|
|
1083
|
+
/**
|
|
1084
|
+
* The NFT collection does not exist.
|
|
1085
|
+
**/
|
|
1086
|
+
CollectionNotFound: AugmentedError<ApiType>;
|
|
1087
|
+
/**
|
|
1088
|
+
* Duplicate ids are not allowed.
|
|
1089
|
+
**/
|
|
1090
|
+
DuplicatedNFTId: AugmentedError<ApiType>;
|
|
1091
|
+
/**
|
|
1092
|
+
* A duplicate metadata key has been passed as parameter.
|
|
1093
|
+
**/
|
|
1094
|
+
DuplicateMetadataKey: AugmentedError<ApiType>;
|
|
1095
|
+
/**
|
|
1096
|
+
* The asset must be of type non-fungible.
|
|
1097
|
+
**/
|
|
1098
|
+
InvalidAssetType: AugmentedError<ApiType>;
|
|
1099
|
+
/**
|
|
1100
|
+
* Either the number of keys or the key identifier does not match the keys defined for the collection.
|
|
1101
|
+
**/
|
|
1102
|
+
InvalidMetadataAttribute: AugmentedError<ApiType>;
|
|
1103
|
+
/**
|
|
1104
|
+
* Failed to transfer an NFT - NFT collection not found.
|
|
1105
|
+
**/
|
|
1106
|
+
InvalidNFTTransferCollectionNotFound: AugmentedError<ApiType>;
|
|
1107
|
+
/**
|
|
1108
|
+
* Failed to transfer an NFT - compliance failed.
|
|
1109
|
+
**/
|
|
1110
|
+
InvalidNFTTransferComplianceFailure: AugmentedError<ApiType>;
|
|
1111
|
+
/**
|
|
1112
|
+
* Failed to transfer an NFT - identity count would overflow.
|
|
1113
|
+
**/
|
|
1114
|
+
InvalidNFTTransferCountOverflow: AugmentedError<ApiType>;
|
|
1115
|
+
/**
|
|
1116
|
+
* Failed to transfer an NFT - asset is frozen.
|
|
1117
|
+
**/
|
|
1118
|
+
InvalidNFTTransferFrozenAsset: AugmentedError<ApiType>;
|
|
1119
|
+
/**
|
|
1120
|
+
* Failed to transfer an NFT - the number of nfts in the identity is insufficient.
|
|
1121
|
+
**/
|
|
1122
|
+
InvalidNFTTransferInsufficientCount: AugmentedError<ApiType>;
|
|
1123
|
+
/**
|
|
1124
|
+
* Failed to transfer an NFT - NFT not found in portfolio.
|
|
1125
|
+
**/
|
|
1126
|
+
InvalidNFTTransferNFTNotOwned: AugmentedError<ApiType>;
|
|
1127
|
+
/**
|
|
1128
|
+
* Failed to transfer an NFT - attempt to move to the same portfolio.
|
|
1129
|
+
**/
|
|
1130
|
+
InvalidNFTTransferSamePortfolio: AugmentedError<ApiType>;
|
|
1131
|
+
/**
|
|
1132
|
+
* The maximum number of metadata keys was exceeded.
|
|
1133
|
+
**/
|
|
1134
|
+
MaxNumberOfKeysExceeded: AugmentedError<ApiType>;
|
|
1135
|
+
/**
|
|
1136
|
+
* The maximum number of nfts being transferred in one leg was exceeded.
|
|
1137
|
+
**/
|
|
1138
|
+
MaxNumberOfNFTsPerLegExceeded: AugmentedError<ApiType>;
|
|
1139
|
+
/**
|
|
1140
|
+
* The NFT does not exist.
|
|
1141
|
+
**/
|
|
1142
|
+
NFTNotFound: AugmentedError<ApiType>;
|
|
1143
|
+
/**
|
|
1144
|
+
* At least one of the metadata keys has not been registered.
|
|
1145
|
+
**/
|
|
1146
|
+
UnregisteredMetadataKey: AugmentedError<ApiType>;
|
|
1147
|
+
/**
|
|
1148
|
+
* It is not possible to transferr zero nft.
|
|
1149
|
+
**/
|
|
1150
|
+
ZeroCount: AugmentedError<ApiType>;
|
|
1151
|
+
};
|
|
1041
1152
|
permissions: {
|
|
1042
1153
|
/**
|
|
1043
1154
|
* The caller is not authorized to call the current extrinsic.
|
|
@@ -1168,7 +1279,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1168
1279
|
**/
|
|
1169
1280
|
DataLeftAfterDecoding: AugmentedError<ApiType>;
|
|
1170
1281
|
/**
|
|
1171
|
-
* Input data that a contract passed when
|
|
1282
|
+
* Input data that a contract passed when using the ChainExtension was too large.
|
|
1172
1283
|
**/
|
|
1173
1284
|
InLenTooLarge: AugmentedError<ApiType>;
|
|
1174
1285
|
/**
|
|
@@ -1177,9 +1288,25 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1177
1288
|
**/
|
|
1178
1289
|
InstantiatorWithNoIdentity: AugmentedError<ApiType>;
|
|
1179
1290
|
/**
|
|
1180
|
-
*
|
|
1291
|
+
* Invalid `func_id` provided from contract.
|
|
1292
|
+
**/
|
|
1293
|
+
InvalidFuncId: AugmentedError<ApiType>;
|
|
1294
|
+
/**
|
|
1295
|
+
* Failed to decode a valid `RuntimeCall`.
|
|
1296
|
+
**/
|
|
1297
|
+
InvalidRuntimeCall: AugmentedError<ApiType>;
|
|
1298
|
+
/**
|
|
1299
|
+
* Output data returned from the ChainExtension was too large.
|
|
1181
1300
|
**/
|
|
1182
|
-
|
|
1301
|
+
OutLenTooLarge: AugmentedError<ApiType>;
|
|
1302
|
+
/**
|
|
1303
|
+
* `ReadStorage` failed to write value into the contract's buffer.
|
|
1304
|
+
**/
|
|
1305
|
+
ReadStorageFailed: AugmentedError<ApiType>;
|
|
1306
|
+
/**
|
|
1307
|
+
* Extrinsic is not allowed to be called by contracts.
|
|
1308
|
+
**/
|
|
1309
|
+
RuntimeCallDenied: AugmentedError<ApiType>;
|
|
1183
1310
|
};
|
|
1184
1311
|
portfolio: {
|
|
1185
1312
|
/**
|
|
@@ -1198,6 +1325,30 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1198
1325
|
* Can not unlock more tokens than what are locked
|
|
1199
1326
|
**/
|
|
1200
1327
|
InsufficientTokensLocked: AugmentedError<ApiType>;
|
|
1328
|
+
/**
|
|
1329
|
+
* Locked NFTs can not be moved between portfolios.
|
|
1330
|
+
**/
|
|
1331
|
+
InvalidTransferNFTIsLocked: AugmentedError<ApiType>;
|
|
1332
|
+
/**
|
|
1333
|
+
* Only owned NFTs can be moved between portfolios.
|
|
1334
|
+
**/
|
|
1335
|
+
InvalidTransferNFTNotOwned: AugmentedError<ApiType>;
|
|
1336
|
+
/**
|
|
1337
|
+
* The NFT is already locked.
|
|
1338
|
+
**/
|
|
1339
|
+
NFTAlreadyLocked: AugmentedError<ApiType>;
|
|
1340
|
+
/**
|
|
1341
|
+
* The NFT does not exist in the portfolio.
|
|
1342
|
+
**/
|
|
1343
|
+
NFTNotFoundInPortfolio: AugmentedError<ApiType>;
|
|
1344
|
+
/**
|
|
1345
|
+
* The NFT has never been locked.
|
|
1346
|
+
**/
|
|
1347
|
+
NFTNotLocked: AugmentedError<ApiType>;
|
|
1348
|
+
/**
|
|
1349
|
+
* Duplicate asset among the items.
|
|
1350
|
+
**/
|
|
1351
|
+
NoDuplicateAssetsAllowed: AugmentedError<ApiType>;
|
|
1201
1352
|
/**
|
|
1202
1353
|
* The portfolio doesn't exist.
|
|
1203
1354
|
**/
|
|
@@ -1243,7 +1394,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1243
1394
|
/**
|
|
1244
1395
|
* Preimage is too large to store on-chain.
|
|
1245
1396
|
**/
|
|
1246
|
-
|
|
1397
|
+
TooBig: AugmentedError<ApiType>;
|
|
1247
1398
|
};
|
|
1248
1399
|
protocolFee: {
|
|
1249
1400
|
/**
|
|
@@ -1312,6 +1463,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1312
1463
|
* Failed to schedule a call
|
|
1313
1464
|
**/
|
|
1314
1465
|
FailedToSchedule: AugmentedError<ApiType>;
|
|
1466
|
+
/**
|
|
1467
|
+
* Attempt to use a non-named function on a named task.
|
|
1468
|
+
**/
|
|
1469
|
+
Named: AugmentedError<ApiType>;
|
|
1315
1470
|
/**
|
|
1316
1471
|
* Cannot find the scheduled call.
|
|
1317
1472
|
**/
|
|
@@ -1348,6 +1503,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1348
1503
|
NoKeys: AugmentedError<ApiType>;
|
|
1349
1504
|
};
|
|
1350
1505
|
settlement: {
|
|
1506
|
+
/**
|
|
1507
|
+
* The caller is not a party of this instruction.
|
|
1508
|
+
**/
|
|
1509
|
+
CallerIsNotAParty: AugmentedError<ApiType>;
|
|
1510
|
+
/**
|
|
1511
|
+
* Deprecated function has been called on a v2 instruction.
|
|
1512
|
+
**/
|
|
1513
|
+
DeprecatedCallOnV2Instruction: AugmentedError<ApiType>;
|
|
1351
1514
|
/**
|
|
1352
1515
|
* While affirming the transfer, system failed to lock the assets involved.
|
|
1353
1516
|
**/
|
|
@@ -1380,10 +1543,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1380
1543
|
* Provided instruction is not pending execution.
|
|
1381
1544
|
**/
|
|
1382
1545
|
InstructionNotPending: AugmentedError<ApiType>;
|
|
1546
|
+
/**
|
|
1547
|
+
* Instruction settlement block has not yet been reached.
|
|
1548
|
+
**/
|
|
1549
|
+
InstructionSettleBlockNotReached: AugmentedError<ApiType>;
|
|
1383
1550
|
/**
|
|
1384
1551
|
* Instruction's target settle block reached.
|
|
1385
1552
|
**/
|
|
1386
1553
|
InstructionSettleBlockPassed: AugmentedError<ApiType>;
|
|
1554
|
+
/**
|
|
1555
|
+
* Expected a different type of asset in a leg.
|
|
1556
|
+
**/
|
|
1557
|
+
InvalidLegAsset: AugmentedError<ApiType>;
|
|
1387
1558
|
/**
|
|
1388
1559
|
* Offchain signature is invalid.
|
|
1389
1560
|
**/
|
|
@@ -1400,6 +1571,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1400
1571
|
* Provided leg is not pending execution.
|
|
1401
1572
|
**/
|
|
1402
1573
|
LegNotPending: AugmentedError<ApiType>;
|
|
1574
|
+
/**
|
|
1575
|
+
* The number of nfts being transferred in the instruction was exceeded.
|
|
1576
|
+
**/
|
|
1577
|
+
MaxNumberOfNFTsExceeded: AugmentedError<ApiType>;
|
|
1578
|
+
/**
|
|
1579
|
+
* The maximum number of nfts being transferred in one leg was exceeded.
|
|
1580
|
+
**/
|
|
1581
|
+
MaxNumberOfNFTsPerLegExceeded: AugmentedError<ApiType>;
|
|
1403
1582
|
/**
|
|
1404
1583
|
* No pending affirmation for the provided instruction.
|
|
1405
1584
|
**/
|
|
@@ -1408,6 +1587,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1408
1587
|
* Portfolio based actions require at least one portfolio to be provided as input.
|
|
1409
1588
|
**/
|
|
1410
1589
|
NoPortfolioProvided: AugmentedError<ApiType>;
|
|
1590
|
+
/**
|
|
1591
|
+
* The given number of nfts being transferred was underestimated.
|
|
1592
|
+
**/
|
|
1593
|
+
NumberOfTransferredNFTsUnderestimated: AugmentedError<ApiType>;
|
|
1411
1594
|
/**
|
|
1412
1595
|
* Portfolio in receipt does not match with portfolios provided by the user.
|
|
1413
1596
|
**/
|
|
@@ -1416,6 +1599,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1416
1599
|
* Receipt already used.
|
|
1417
1600
|
**/
|
|
1418
1601
|
ReceiptAlreadyClaimed: AugmentedError<ApiType>;
|
|
1602
|
+
/**
|
|
1603
|
+
* Off-chain receipts are not accepted for non-fungible tokens.
|
|
1604
|
+
**/
|
|
1605
|
+
ReceiptForNonFungibleAsset: AugmentedError<ApiType>;
|
|
1419
1606
|
/**
|
|
1420
1607
|
* Receipt not used yet.
|
|
1421
1608
|
**/
|
|
@@ -1428,6 +1615,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1428
1615
|
* The provided settlement block number is in the past and cannot be used by the scheduler.
|
|
1429
1616
|
**/
|
|
1430
1617
|
SettleOnPastBlock: AugmentedError<ApiType>;
|
|
1618
|
+
/**
|
|
1619
|
+
* Signer is already added to venue.
|
|
1620
|
+
**/
|
|
1621
|
+
SignerAlreadyExists: AugmentedError<ApiType>;
|
|
1622
|
+
/**
|
|
1623
|
+
* Signer is not added to venue.
|
|
1624
|
+
**/
|
|
1625
|
+
SignerDoesNotExist: AugmentedError<ApiType>;
|
|
1431
1626
|
/**
|
|
1432
1627
|
* Sender does not have required permissions.
|
|
1433
1628
|
**/
|
|
@@ -1448,6 +1643,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1448
1643
|
* Instruction status is unknown
|
|
1449
1644
|
**/
|
|
1450
1645
|
UnknownInstruction: AugmentedError<ApiType>;
|
|
1646
|
+
/**
|
|
1647
|
+
* Instruction leg amount can't be zero.
|
|
1648
|
+
**/
|
|
1649
|
+
ZeroAmount: AugmentedError<ApiType>;
|
|
1451
1650
|
};
|
|
1452
1651
|
staking: {
|
|
1453
1652
|
/**
|
|
@@ -1522,6 +1721,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1522
1721
|
* Given potential validator identity is invalid.
|
|
1523
1722
|
**/
|
|
1524
1723
|
InvalidValidatorIdentity: AugmentedError<ApiType>;
|
|
1724
|
+
/**
|
|
1725
|
+
* Validator should have minimum 50k POLYX bonded.
|
|
1726
|
+
**/
|
|
1727
|
+
InvalidValidatorUnbondAmount: AugmentedError<ApiType>;
|
|
1525
1728
|
/**
|
|
1526
1729
|
* Updates with same value.
|
|
1527
1730
|
**/
|