@polkadot/api-augment 10.3.4 → 10.5.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/events.d.ts +28 -0
- package/kusama/query.d.ts +8 -9
- package/kusama/tx.d.ts +11 -10
- package/package.json +8 -8
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +20 -0
- package/polkadot/events.d.ts +14 -0
- package/polkadot/query.d.ts +8 -9
- package/polkadot/tx.d.ts +11 -10
- package/substrate/consts.d.ts +34 -0
- package/substrate/errors.d.ts +14 -0
- package/substrate/events.d.ts +32 -0
- package/substrate/query.d.ts +14 -9
- package/substrate/tx.d.ts +27 -0
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: '10.
|
|
4
|
+
exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.5.1' };
|
package/kusama/events.d.ts
CHANGED
|
@@ -108,6 +108,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
108
108
|
account: AccountId32;
|
|
109
109
|
freeBalance: u128;
|
|
110
110
|
}>;
|
|
111
|
+
/**
|
|
112
|
+
* Some balance was frozen.
|
|
113
|
+
**/
|
|
114
|
+
Frozen: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
115
|
+
who: AccountId32;
|
|
116
|
+
amount: u128;
|
|
117
|
+
}>;
|
|
111
118
|
/**
|
|
112
119
|
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
|
113
120
|
**/
|
|
@@ -172,6 +179,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
172
179
|
who: AccountId32;
|
|
173
180
|
amount: u128;
|
|
174
181
|
}>;
|
|
182
|
+
/**
|
|
183
|
+
* Some balance was thawed.
|
|
184
|
+
**/
|
|
185
|
+
Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
186
|
+
who: AccountId32;
|
|
187
|
+
amount: u128;
|
|
188
|
+
}>;
|
|
175
189
|
/**
|
|
176
190
|
* Transfer succeeded.
|
|
177
191
|
**/
|
|
@@ -966,6 +980,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
966
980
|
account: AccountId32;
|
|
967
981
|
freeBalance: u128;
|
|
968
982
|
}>;
|
|
983
|
+
/**
|
|
984
|
+
* Some balance was frozen.
|
|
985
|
+
**/
|
|
986
|
+
Frozen: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
987
|
+
who: AccountId32;
|
|
988
|
+
amount: u128;
|
|
989
|
+
}>;
|
|
969
990
|
/**
|
|
970
991
|
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
|
971
992
|
**/
|
|
@@ -1030,6 +1051,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1030
1051
|
who: AccountId32;
|
|
1031
1052
|
amount: u128;
|
|
1032
1053
|
}>;
|
|
1054
|
+
/**
|
|
1055
|
+
* Some balance was thawed.
|
|
1056
|
+
**/
|
|
1057
|
+
Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
1058
|
+
who: AccountId32;
|
|
1059
|
+
amount: u128;
|
|
1060
|
+
}>;
|
|
1033
1061
|
/**
|
|
1034
1062
|
* Transfer succeeded.
|
|
1035
1063
|
**/
|
package/kusama/query.d.ts
CHANGED
|
@@ -362,6 +362,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
362
362
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
363
363
|
};
|
|
364
364
|
dmp: {
|
|
365
|
+
/**
|
|
366
|
+
* The number to multiply the base delivery fee by.
|
|
367
|
+
**/
|
|
368
|
+
deliveryFeeFactor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
365
369
|
/**
|
|
366
370
|
* A mapping that stores the downward message queue MQC head for each para.
|
|
367
371
|
*
|
|
@@ -998,15 +1002,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
998
1002
|
* The primary structure that holds all offence records keyed by report identifiers.
|
|
999
1003
|
**/
|
|
1000
1004
|
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1001
|
-
/**
|
|
1002
|
-
* Enumerates all reports of a kind along with the time they happened.
|
|
1003
|
-
*
|
|
1004
|
-
* All reports are sorted by the time of offence.
|
|
1005
|
-
*
|
|
1006
|
-
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
|
|
1007
|
-
* different types are not supported at the moment so we are doing the manual serialization.
|
|
1008
|
-
**/
|
|
1009
|
-
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
|
1010
1005
|
/**
|
|
1011
1006
|
* Generic query
|
|
1012
1007
|
**/
|
|
@@ -2129,6 +2124,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2129
2124
|
} | {
|
|
2130
2125
|
V3: any;
|
|
2131
2126
|
} | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
|
2127
|
+
/**
|
|
2128
|
+
* Global suspension state of the XCM executor.
|
|
2129
|
+
**/
|
|
2130
|
+
xcmExecutionSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2132
2131
|
/**
|
|
2133
2132
|
* Generic query
|
|
2134
2133
|
**/
|
package/kusama/tx.d.ts
CHANGED
|
@@ -1163,12 +1163,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1163
1163
|
**/
|
|
1164
1164
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1165
1165
|
};
|
|
1166
|
-
dmp: {
|
|
1167
|
-
/**
|
|
1168
|
-
* Generic tx
|
|
1169
|
-
**/
|
|
1170
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1171
|
-
};
|
|
1172
1166
|
electionProviderMultiPhase: {
|
|
1173
1167
|
/**
|
|
1174
1168
|
* Trigger the governance fallback.
|
|
@@ -5095,14 +5089,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5095
5089
|
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
|
5096
5090
|
* version a destination can accept is unknown).
|
|
5097
5091
|
*
|
|
5098
|
-
* - `origin`: Must be
|
|
5092
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
5099
5093
|
* - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
|
|
5100
5094
|
**/
|
|
5101
5095
|
forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
5102
5096
|
/**
|
|
5103
5097
|
* Ask a location to notify us regarding their XCM version and any changes to it.
|
|
5104
5098
|
*
|
|
5105
|
-
* - `origin`: Must be
|
|
5099
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
5106
5100
|
* - `location`: The location to which we should subscribe for XCM version notifications.
|
|
5107
5101
|
**/
|
|
5108
5102
|
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | {
|
|
@@ -5110,11 +5104,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5110
5104
|
} | {
|
|
5111
5105
|
V3: any;
|
|
5112
5106
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
|
5107
|
+
/**
|
|
5108
|
+
* Set or unset the global suspension state of the XCM executor.
|
|
5109
|
+
*
|
|
5110
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
5111
|
+
* - `suspended`: `true` to suspend, `false` to resume.
|
|
5112
|
+
**/
|
|
5113
|
+
forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
|
|
5113
5114
|
/**
|
|
5114
5115
|
* Require that a particular destination should no longer notify us regarding any XCM
|
|
5115
5116
|
* version changes.
|
|
5116
5117
|
*
|
|
5117
|
-
* - `origin`: Must be
|
|
5118
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
5118
5119
|
* - `location`: The location to which we are currently subscribed for XCM version
|
|
5119
5120
|
* notifications which we no longer desire.
|
|
5120
5121
|
**/
|
|
@@ -5127,7 +5128,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5127
5128
|
* Extoll that a particular destination can be communicated with through a particular
|
|
5128
5129
|
* version of XCM.
|
|
5129
5130
|
*
|
|
5130
|
-
* - `origin`: Must be
|
|
5131
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
5131
5132
|
* - `location`: The destination that is being described.
|
|
5132
5133
|
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
5133
5134
|
**/
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
|
4
4
|
"description": "API generated augmentation",
|
|
5
5
|
"engines": {
|
|
6
|
-
"node": ">=
|
|
6
|
+
"node": ">=16"
|
|
7
7
|
},
|
|
8
8
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-augment#readme",
|
|
9
9
|
"license": "Apache-2.0",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/detectPackage.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "10.
|
|
21
|
+
"version": "10.5.1",
|
|
22
22
|
"main": "./cjs/index.js",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts",
|
|
@@ -186,12 +186,12 @@
|
|
|
186
186
|
}
|
|
187
187
|
},
|
|
188
188
|
"dependencies": {
|
|
189
|
-
"@polkadot/api-base": "10.
|
|
190
|
-
"@polkadot/rpc-augment": "10.
|
|
191
|
-
"@polkadot/types": "10.
|
|
192
|
-
"@polkadot/types-augment": "10.
|
|
193
|
-
"@polkadot/types-codec": "10.
|
|
194
|
-
"@polkadot/util": "^
|
|
189
|
+
"@polkadot/api-base": "10.5.1",
|
|
190
|
+
"@polkadot/rpc-augment": "10.5.1",
|
|
191
|
+
"@polkadot/types": "10.5.1",
|
|
192
|
+
"@polkadot/types-augment": "10.5.1",
|
|
193
|
+
"@polkadot/types-codec": "10.5.1",
|
|
194
|
+
"@polkadot/util": "^12.1.1",
|
|
195
195
|
"tslib": "^2.5.0"
|
|
196
196
|
}
|
|
197
197
|
}
|
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: '10.
|
|
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: '10.5.1' };
|
package/polkadot/consts.d.ts
CHANGED
|
@@ -171,6 +171,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
171
171
|
**/
|
|
172
172
|
[key: string]: Codec;
|
|
173
173
|
};
|
|
174
|
+
council: {
|
|
175
|
+
/**
|
|
176
|
+
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
177
|
+
**/
|
|
178
|
+
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
179
|
+
/**
|
|
180
|
+
* Generic const
|
|
181
|
+
**/
|
|
182
|
+
[key: string]: Codec;
|
|
183
|
+
};
|
|
174
184
|
crowdloan: {
|
|
175
185
|
/**
|
|
176
186
|
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be at
|
|
@@ -779,6 +789,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
779
789
|
**/
|
|
780
790
|
[key: string]: Codec;
|
|
781
791
|
};
|
|
792
|
+
technicalCommittee: {
|
|
793
|
+
/**
|
|
794
|
+
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
795
|
+
**/
|
|
796
|
+
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
797
|
+
/**
|
|
798
|
+
* Generic const
|
|
799
|
+
**/
|
|
800
|
+
[key: string]: Codec;
|
|
801
|
+
};
|
|
782
802
|
timestamp: {
|
|
783
803
|
/**
|
|
784
804
|
* The minimum period between blocks. Beware that this is different to the *expected*
|
package/polkadot/events.d.ts
CHANGED
|
@@ -108,6 +108,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
108
108
|
account: AccountId32;
|
|
109
109
|
freeBalance: u128;
|
|
110
110
|
}>;
|
|
111
|
+
/**
|
|
112
|
+
* Some balance was frozen.
|
|
113
|
+
**/
|
|
114
|
+
Frozen: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
115
|
+
who: AccountId32;
|
|
116
|
+
amount: u128;
|
|
117
|
+
}>;
|
|
111
118
|
/**
|
|
112
119
|
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
|
113
120
|
**/
|
|
@@ -172,6 +179,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
172
179
|
who: AccountId32;
|
|
173
180
|
amount: u128;
|
|
174
181
|
}>;
|
|
182
|
+
/**
|
|
183
|
+
* Some balance was thawed.
|
|
184
|
+
**/
|
|
185
|
+
Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
186
|
+
who: AccountId32;
|
|
187
|
+
amount: u128;
|
|
188
|
+
}>;
|
|
175
189
|
/**
|
|
176
190
|
* Transfer succeeded.
|
|
177
191
|
**/
|
package/polkadot/query.d.ts
CHANGED
|
@@ -467,6 +467,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
467
467
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
468
468
|
};
|
|
469
469
|
dmp: {
|
|
470
|
+
/**
|
|
471
|
+
* The number to multiply the base delivery fee by.
|
|
472
|
+
**/
|
|
473
|
+
deliveryFeeFactor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
470
474
|
/**
|
|
471
475
|
* A mapping that stores the downward message queue MQC head for each para.
|
|
472
476
|
*
|
|
@@ -956,15 +960,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
956
960
|
* The primary structure that holds all offence records keyed by report identifiers.
|
|
957
961
|
**/
|
|
958
962
|
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
959
|
-
/**
|
|
960
|
-
* Enumerates all reports of a kind along with the time they happened.
|
|
961
|
-
*
|
|
962
|
-
* All reports are sorted by the time of offence.
|
|
963
|
-
*
|
|
964
|
-
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
|
|
965
|
-
* different types are not supported at the moment so we are doing the manual serialization.
|
|
966
|
-
**/
|
|
967
|
-
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
|
968
963
|
/**
|
|
969
964
|
* Generic query
|
|
970
965
|
**/
|
|
@@ -2078,6 +2073,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2078
2073
|
} | {
|
|
2079
2074
|
V3: any;
|
|
2080
2075
|
} | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
|
2076
|
+
/**
|
|
2077
|
+
* Global suspension state of the XCM executor.
|
|
2078
|
+
**/
|
|
2079
|
+
xcmExecutionSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2081
2080
|
/**
|
|
2082
2081
|
* Generic query
|
|
2083
2082
|
**/
|
package/polkadot/tx.d.ts
CHANGED
|
@@ -1620,12 +1620,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1620
1620
|
**/
|
|
1621
1621
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1622
1622
|
};
|
|
1623
|
-
dmp: {
|
|
1624
|
-
/**
|
|
1625
|
-
* Generic tx
|
|
1626
|
-
**/
|
|
1627
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1628
|
-
};
|
|
1629
1623
|
electionProviderMultiPhase: {
|
|
1630
1624
|
/**
|
|
1631
1625
|
* Trigger the governance fallback.
|
|
@@ -5082,14 +5076,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5082
5076
|
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
|
5083
5077
|
* version a destination can accept is unknown).
|
|
5084
5078
|
*
|
|
5085
|
-
* - `origin`: Must be
|
|
5079
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
5086
5080
|
* - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
|
|
5087
5081
|
**/
|
|
5088
5082
|
forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
5089
5083
|
/**
|
|
5090
5084
|
* Ask a location to notify us regarding their XCM version and any changes to it.
|
|
5091
5085
|
*
|
|
5092
|
-
* - `origin`: Must be
|
|
5086
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
5093
5087
|
* - `location`: The location to which we should subscribe for XCM version notifications.
|
|
5094
5088
|
**/
|
|
5095
5089
|
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | {
|
|
@@ -5097,11 +5091,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5097
5091
|
} | {
|
|
5098
5092
|
V3: any;
|
|
5099
5093
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
|
5094
|
+
/**
|
|
5095
|
+
* Set or unset the global suspension state of the XCM executor.
|
|
5096
|
+
*
|
|
5097
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
5098
|
+
* - `suspended`: `true` to suspend, `false` to resume.
|
|
5099
|
+
**/
|
|
5100
|
+
forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
|
|
5100
5101
|
/**
|
|
5101
5102
|
* Require that a particular destination should no longer notify us regarding any XCM
|
|
5102
5103
|
* version changes.
|
|
5103
5104
|
*
|
|
5104
|
-
* - `origin`: Must be
|
|
5105
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
5105
5106
|
* - `location`: The location to which we are currently subscribed for XCM version
|
|
5106
5107
|
* notifications which we no longer desire.
|
|
5107
5108
|
**/
|
|
@@ -5114,7 +5115,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5114
5115
|
* Extoll that a particular destination can be communicated with through a particular
|
|
5115
5116
|
* version of XCM.
|
|
5116
5117
|
*
|
|
5117
|
-
* - `origin`: Must be
|
|
5118
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
5118
5119
|
* - `location`: The destination that is being described.
|
|
5119
5120
|
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
5120
5121
|
**/
|
package/substrate/consts.d.ts
CHANGED
|
@@ -33,6 +33,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
33
33
|
**/
|
|
34
34
|
[key: string]: Codec;
|
|
35
35
|
};
|
|
36
|
+
allianceMotion: {
|
|
37
|
+
/**
|
|
38
|
+
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
39
|
+
**/
|
|
40
|
+
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
41
|
+
/**
|
|
42
|
+
* Generic const
|
|
43
|
+
**/
|
|
44
|
+
[key: string]: Codec;
|
|
45
|
+
};
|
|
36
46
|
assets: {
|
|
37
47
|
/**
|
|
38
48
|
* The amount of funds that must be reserved when creating a new approval.
|
|
@@ -191,6 +201,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
191
201
|
[key: string]: Codec;
|
|
192
202
|
};
|
|
193
203
|
contracts: {
|
|
204
|
+
/**
|
|
205
|
+
* Fallback value to limit the storage deposit if it's not being set by the caller.
|
|
206
|
+
**/
|
|
207
|
+
defaultDepositLimit: u128 & AugmentedConst<ApiType>;
|
|
194
208
|
/**
|
|
195
209
|
* The amount of balance a caller has to pay for each byte of storage.
|
|
196
210
|
*
|
|
@@ -276,6 +290,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
276
290
|
**/
|
|
277
291
|
[key: string]: Codec;
|
|
278
292
|
};
|
|
293
|
+
council: {
|
|
294
|
+
/**
|
|
295
|
+
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
296
|
+
**/
|
|
297
|
+
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
298
|
+
/**
|
|
299
|
+
* Generic const
|
|
300
|
+
**/
|
|
301
|
+
[key: string]: Codec;
|
|
302
|
+
};
|
|
279
303
|
democracy: {
|
|
280
304
|
/**
|
|
281
305
|
* Period in blocks where an external proposal may not be re-submitted after being vetoed.
|
|
@@ -1177,6 +1201,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
1177
1201
|
**/
|
|
1178
1202
|
[key: string]: Codec;
|
|
1179
1203
|
};
|
|
1204
|
+
technicalCommittee: {
|
|
1205
|
+
/**
|
|
1206
|
+
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
1207
|
+
**/
|
|
1208
|
+
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
1209
|
+
/**
|
|
1210
|
+
* Generic const
|
|
1211
|
+
**/
|
|
1212
|
+
[key: string]: Codec;
|
|
1213
|
+
};
|
|
1180
1214
|
timestamp: {
|
|
1181
1215
|
/**
|
|
1182
1216
|
* The minimum period between blocks. Beware that this is different to the *expected*
|
package/substrate/errors.d.ts
CHANGED
|
@@ -152,6 +152,20 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
152
152
|
**/
|
|
153
153
|
[key: string]: AugmentedError<ApiType>;
|
|
154
154
|
};
|
|
155
|
+
assetRate: {
|
|
156
|
+
/**
|
|
157
|
+
* The given asset ID already has an assigned conversion rate and cannot be re-created.
|
|
158
|
+
**/
|
|
159
|
+
AlreadyExists: AugmentedError<ApiType>;
|
|
160
|
+
/**
|
|
161
|
+
* The given asset ID is unknown.
|
|
162
|
+
**/
|
|
163
|
+
UnknownAssetId: AugmentedError<ApiType>;
|
|
164
|
+
/**
|
|
165
|
+
* Generic error
|
|
166
|
+
**/
|
|
167
|
+
[key: string]: AugmentedError<ApiType>;
|
|
168
|
+
};
|
|
155
169
|
assets: {
|
|
156
170
|
/**
|
|
157
171
|
* The asset-account already exists.
|
package/substrate/events.d.ts
CHANGED
|
@@ -159,6 +159,24 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
159
159
|
**/
|
|
160
160
|
[key: string]: AugmentedEvent<ApiType>;
|
|
161
161
|
};
|
|
162
|
+
assetRate: {
|
|
163
|
+
AssetRateCreated: AugmentedEvent<ApiType, [assetId: u32, rate: u128], {
|
|
164
|
+
assetId: u32;
|
|
165
|
+
rate: u128;
|
|
166
|
+
}>;
|
|
167
|
+
AssetRateRemoved: AugmentedEvent<ApiType, [assetId: u32], {
|
|
168
|
+
assetId: u32;
|
|
169
|
+
}>;
|
|
170
|
+
AssetRateUpdated: AugmentedEvent<ApiType, [assetId: u32, old: u128, new_: u128], {
|
|
171
|
+
assetId: u32;
|
|
172
|
+
old: u128;
|
|
173
|
+
new_: u128;
|
|
174
|
+
}>;
|
|
175
|
+
/**
|
|
176
|
+
* Generic event
|
|
177
|
+
**/
|
|
178
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
179
|
+
};
|
|
162
180
|
assets: {
|
|
163
181
|
/**
|
|
164
182
|
* Accounts were destroyed for given asset.
|
|
@@ -385,6 +403,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
385
403
|
account: AccountId32;
|
|
386
404
|
freeBalance: u128;
|
|
387
405
|
}>;
|
|
406
|
+
/**
|
|
407
|
+
* Some balance was frozen.
|
|
408
|
+
**/
|
|
409
|
+
Frozen: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
410
|
+
who: AccountId32;
|
|
411
|
+
amount: u128;
|
|
412
|
+
}>;
|
|
388
413
|
/**
|
|
389
414
|
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
|
390
415
|
**/
|
|
@@ -449,6 +474,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
449
474
|
who: AccountId32;
|
|
450
475
|
amount: u128;
|
|
451
476
|
}>;
|
|
477
|
+
/**
|
|
478
|
+
* Some balance was thawed.
|
|
479
|
+
**/
|
|
480
|
+
Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
481
|
+
who: AccountId32;
|
|
482
|
+
amount: u128;
|
|
483
|
+
}>;
|
|
452
484
|
/**
|
|
453
485
|
* Transfer succeeded.
|
|
454
486
|
**/
|
package/substrate/query.d.ts
CHANGED
|
@@ -77,6 +77,18 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
77
77
|
**/
|
|
78
78
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
79
79
|
};
|
|
80
|
+
assetRate: {
|
|
81
|
+
/**
|
|
82
|
+
* Maps an asset to its fixed point representation in the native balance.
|
|
83
|
+
*
|
|
84
|
+
* E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_id)`
|
|
85
|
+
**/
|
|
86
|
+
conversionRateToNative: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
87
|
+
/**
|
|
88
|
+
* Generic query
|
|
89
|
+
**/
|
|
90
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
91
|
+
};
|
|
80
92
|
assets: {
|
|
81
93
|
/**
|
|
82
94
|
* The holdings of a specific account for a specific asset.
|
|
@@ -572,6 +584,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
572
584
|
minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
573
585
|
/**
|
|
574
586
|
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
|
|
587
|
+
*
|
|
588
|
+
* Always sorted by score.
|
|
575
589
|
**/
|
|
576
590
|
queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
577
591
|
/**
|
|
@@ -1144,15 +1158,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1144
1158
|
* The primary structure that holds all offence records keyed by report identifiers.
|
|
1145
1159
|
**/
|
|
1146
1160
|
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1147
|
-
/**
|
|
1148
|
-
* Enumerates all reports of a kind along with the time they happened.
|
|
1149
|
-
*
|
|
1150
|
-
* All reports are sorted by the time of offence.
|
|
1151
|
-
*
|
|
1152
|
-
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
|
|
1153
|
-
* different types are not supported at the moment so we are doing the manual serialization.
|
|
1154
|
-
**/
|
|
1155
|
-
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
|
1156
1161
|
/**
|
|
1157
1162
|
* Generic query
|
|
1158
1163
|
**/
|
package/substrate/tx.d.ts
CHANGED
|
@@ -276,6 +276,33 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
276
276
|
**/
|
|
277
277
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
278
278
|
};
|
|
279
|
+
assetRate: {
|
|
280
|
+
/**
|
|
281
|
+
* Initialize a conversion rate to native balance for the given asset.
|
|
282
|
+
*
|
|
283
|
+
* ## Complexity
|
|
284
|
+
* - O(1)
|
|
285
|
+
**/
|
|
286
|
+
create: AugmentedSubmittable<(assetId: u32 | AnyNumber | Uint8Array, rate: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u128]>;
|
|
287
|
+
/**
|
|
288
|
+
* Remove an existing conversion rate to native balance for the given asset.
|
|
289
|
+
*
|
|
290
|
+
* ## Complexity
|
|
291
|
+
* - O(1)
|
|
292
|
+
**/
|
|
293
|
+
remove: AugmentedSubmittable<(assetId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
294
|
+
/**
|
|
295
|
+
* Update the conversion rate to native balance for the given asset.
|
|
296
|
+
*
|
|
297
|
+
* ## Complexity
|
|
298
|
+
* - O(1)
|
|
299
|
+
**/
|
|
300
|
+
update: AugmentedSubmittable<(assetId: u32 | AnyNumber | Uint8Array, rate: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u128]>;
|
|
301
|
+
/**
|
|
302
|
+
* Generic tx
|
|
303
|
+
**/
|
|
304
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
305
|
+
};
|
|
279
306
|
assets: {
|
|
280
307
|
/**
|
|
281
308
|
* Approve an amount of asset for transfer by a delegated third-party account.
|