@polkadot/api-augment 8.11.3 → 8.13.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/kusama/consts.js +3 -1
- package/cjs/kusama/errors.js +3 -1
- package/cjs/kusama/events.js +3 -1
- package/cjs/kusama/query.js +3 -1
- package/cjs/kusama/runtime.js +3 -1
- package/cjs/kusama/tx.js +3 -1
- package/cjs/package.json +1 -1
- package/cjs/packageInfo.js +1 -1
- package/cjs/polkadot/consts.js +3 -1
- package/cjs/polkadot/errors.js +3 -1
- package/cjs/polkadot/events.js +3 -1
- package/cjs/polkadot/query.js +3 -1
- package/cjs/polkadot/runtime.js +3 -1
- package/cjs/polkadot/tx.js +3 -1
- package/cjs/substrate/consts.js +3 -1
- package/cjs/substrate/errors.js +3 -1
- package/cjs/substrate/events.js +3 -1
- package/cjs/substrate/query.js +3 -1
- package/cjs/substrate/runtime.js +3 -1
- package/cjs/substrate/tx.js +3 -1
- package/kusama/consts.d.ts +10 -2
- package/kusama/consts.js +6 -1
- package/kusama/errors.d.ts +5 -4
- package/kusama/errors.js +6 -1
- package/kusama/events.d.ts +1 -0
- package/kusama/events.js +6 -1
- package/kusama/query.d.ts +1 -0
- package/kusama/query.js +6 -1
- package/kusama/runtime.d.ts +2 -1
- package/kusama/runtime.js +6 -1
- package/kusama/tx.d.ts +73 -26
- package/kusama/tx.js +6 -1
- package/package.json +8 -8
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +1 -0
- package/polkadot/consts.js +6 -1
- package/polkadot/errors.d.ts +5 -4
- package/polkadot/errors.js +6 -1
- package/polkadot/events.d.ts +1 -0
- package/polkadot/events.js +6 -1
- package/polkadot/query.d.ts +1 -0
- package/polkadot/query.js +6 -1
- package/polkadot/runtime.d.ts +2 -1
- package/polkadot/runtime.js +6 -1
- package/polkadot/tx.d.ts +63 -24
- package/polkadot/tx.js +6 -1
- package/substrate/consts.d.ts +10 -2
- package/substrate/consts.js +6 -1
- package/substrate/errors.d.ts +21 -13
- package/substrate/errors.js +6 -1
- package/substrate/events.d.ts +27 -0
- package/substrate/events.js +6 -1
- package/substrate/query.d.ts +6 -1
- package/substrate/query.js +6 -1
- package/substrate/runtime.d.ts +5 -4
- package/substrate/runtime.js +6 -1
- package/substrate/tx.d.ts +111 -29
- package/substrate/tx.js +6 -1
package/polkadot/errors.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
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/errors'; // declare module
|
package/polkadot/events.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/events';
|
|
1
2
|
import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
package/polkadot/events.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
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'; // declare module
|
package/polkadot/query.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/storage';
|
|
1
2
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Data } from '@polkadot/types';
|
|
3
4
|
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
package/polkadot/query.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
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'; // declare module
|
package/polkadot/runtime.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/calls';
|
|
1
2
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
|
3
4
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
@@ -354,7 +355,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
354
355
|
/**
|
|
355
356
|
* Generate a set of session keys with optionally using the given seed.
|
|
356
357
|
**/
|
|
357
|
-
generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null |
|
|
358
|
+
generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
|
|
358
359
|
/**
|
|
359
360
|
* Generic call
|
|
360
361
|
**/
|
package/polkadot/runtime.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
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'; // declare module
|
package/polkadot/tx.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/submittable';
|
|
1
2
|
import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Data } from '@polkadot/types';
|
|
3
4
|
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
@@ -704,8 +705,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
704
705
|
* Total Complexity: O(1)
|
|
705
706
|
* </weight>
|
|
706
707
|
**/
|
|
707
|
-
mintClaim: AugmentedSubmittable<(who: EthereumAddress | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, vestingSchedule: Option<ITuple<[u128, u128, u32]>> | null |
|
|
708
|
-
moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option<AccountId32> | null |
|
|
708
|
+
mintClaim: AugmentedSubmittable<(who: EthereumAddress | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, vestingSchedule: Option<ITuple<[u128, u128, u32]>> | null | Uint8Array | ITuple<[u128, u128, u32]> | [u128 | AnyNumber | Uint8Array, u128 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], statement: Option<PolkadotRuntimeCommonClaimsStatementKind> | null | Uint8Array | PolkadotRuntimeCommonClaimsStatementKind | 'Regular' | 'Saft' | number) => SubmittableExtrinsic<ApiType>, [EthereumAddress, u128, Option<ITuple<[u128, u128, u32]>>, Option<PolkadotRuntimeCommonClaimsStatementKind>]>;
|
|
709
|
+
moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [EthereumAddress, EthereumAddress, Option<AccountId32>]>;
|
|
709
710
|
/**
|
|
710
711
|
* Generic tx
|
|
711
712
|
**/
|
|
@@ -825,11 +826,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
825
826
|
/**
|
|
826
827
|
* Set the maximum number of validators to use in parachain consensus.
|
|
827
828
|
**/
|
|
828
|
-
setMaxValidators: AugmentedSubmittable<(updated: Option<u32> | null |
|
|
829
|
+
setMaxValidators: AugmentedSubmittable<(updated: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
829
830
|
/**
|
|
830
831
|
* Set the maximum number of validators to assign to any core.
|
|
831
832
|
**/
|
|
832
|
-
setMaxValidatorsPerCore: AugmentedSubmittable<(updated: Option<u32> | null |
|
|
833
|
+
setMaxValidatorsPerCore: AugmentedSubmittable<(updated: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
833
834
|
/**
|
|
834
835
|
* Sets the minimum delay between announcing the upgrade block for a parachain until the
|
|
835
836
|
* upgrade taking place.
|
|
@@ -1034,7 +1035,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1034
1035
|
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
1035
1036
|
* # </weight>
|
|
1036
1037
|
**/
|
|
1037
|
-
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null |
|
|
1038
|
+
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
|
1038
1039
|
/**
|
|
1039
1040
|
* Add an aye or nay vote for the sender to the given proposal.
|
|
1040
1041
|
*
|
|
@@ -1069,19 +1070,37 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1069
1070
|
* Contribute to a crowd sale. This will transfer some balance over to fund a parachain
|
|
1070
1071
|
* slot. It will be withdrawable when the crowdloan has ended and the funds are unused.
|
|
1071
1072
|
**/
|
|
1072
|
-
contribute: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null |
|
|
1073
|
+
contribute: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null | Uint8Array | SpRuntimeMultiSignature | {
|
|
1074
|
+
Ed25519: any;
|
|
1075
|
+
} | {
|
|
1076
|
+
Sr25519: any;
|
|
1077
|
+
} | {
|
|
1078
|
+
Ecdsa: any;
|
|
1079
|
+
} | string) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>, Option<SpRuntimeMultiSignature>]>;
|
|
1073
1080
|
/**
|
|
1074
1081
|
* Contribute your entire balance to a crowd sale. This will transfer the entire balance of a user over to fund a parachain
|
|
1075
1082
|
* slot. It will be withdrawable when the crowdloan has ended and the funds are unused.
|
|
1076
1083
|
**/
|
|
1077
|
-
contributeAll: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null |
|
|
1084
|
+
contributeAll: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null | Uint8Array | SpRuntimeMultiSignature | {
|
|
1085
|
+
Ed25519: any;
|
|
1086
|
+
} | {
|
|
1087
|
+
Sr25519: any;
|
|
1088
|
+
} | {
|
|
1089
|
+
Ecdsa: any;
|
|
1090
|
+
} | string) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<SpRuntimeMultiSignature>]>;
|
|
1078
1091
|
/**
|
|
1079
1092
|
* Create a new crowdloaning campaign for a parachain slot with the given lease period range.
|
|
1080
1093
|
*
|
|
1081
1094
|
* This applies a lock to your parachain configuration, ensuring that it cannot be changed
|
|
1082
1095
|
* by the parachain manager.
|
|
1083
1096
|
**/
|
|
1084
|
-
create: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, cap: Compact<u128> | AnyNumber | Uint8Array, firstPeriod: Compact<u32> | AnyNumber | Uint8Array, lastPeriod: Compact<u32> | AnyNumber | Uint8Array, end: Compact<u32> | AnyNumber | Uint8Array, verifier: Option<SpRuntimeMultiSigner> | null |
|
|
1097
|
+
create: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, cap: Compact<u128> | AnyNumber | Uint8Array, firstPeriod: Compact<u32> | AnyNumber | Uint8Array, lastPeriod: Compact<u32> | AnyNumber | Uint8Array, end: Compact<u32> | AnyNumber | Uint8Array, verifier: Option<SpRuntimeMultiSigner> | null | Uint8Array | SpRuntimeMultiSigner | {
|
|
1098
|
+
Ed25519: any;
|
|
1099
|
+
} | {
|
|
1100
|
+
Sr25519: any;
|
|
1101
|
+
} | {
|
|
1102
|
+
Ecdsa: any;
|
|
1103
|
+
} | string) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>, Compact<u32>, Compact<u32>, Compact<u32>, Option<SpRuntimeMultiSigner>]>;
|
|
1085
1104
|
/**
|
|
1086
1105
|
* Remove a fund after the retirement period has ended and all funds have been returned.
|
|
1087
1106
|
**/
|
|
@@ -1091,7 +1110,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1091
1110
|
*
|
|
1092
1111
|
* Can only be called by Root origin.
|
|
1093
1112
|
**/
|
|
1094
|
-
edit: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, cap: Compact<u128> | AnyNumber | Uint8Array, firstPeriod: Compact<u32> | AnyNumber | Uint8Array, lastPeriod: Compact<u32> | AnyNumber | Uint8Array, end: Compact<u32> | AnyNumber | Uint8Array, verifier: Option<SpRuntimeMultiSigner> | null |
|
|
1113
|
+
edit: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, cap: Compact<u128> | AnyNumber | Uint8Array, firstPeriod: Compact<u32> | AnyNumber | Uint8Array, lastPeriod: Compact<u32> | AnyNumber | Uint8Array, end: Compact<u32> | AnyNumber | Uint8Array, verifier: Option<SpRuntimeMultiSigner> | null | Uint8Array | SpRuntimeMultiSigner | {
|
|
1114
|
+
Ed25519: any;
|
|
1115
|
+
} | {
|
|
1116
|
+
Sr25519: any;
|
|
1117
|
+
} | {
|
|
1118
|
+
Ecdsa: any;
|
|
1119
|
+
} | string) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>, Compact<u32>, Compact<u32>, Compact<u32>, Option<SpRuntimeMultiSigner>]>;
|
|
1095
1120
|
/**
|
|
1096
1121
|
* Poke the fund into `NewRaise`
|
|
1097
1122
|
*
|
|
@@ -1149,7 +1174,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1149
1174
|
* Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a
|
|
1150
1175
|
* reasonable value).
|
|
1151
1176
|
**/
|
|
1152
|
-
blacklist: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, maybeRefIndex: Option<u32> | null |
|
|
1177
|
+
blacklist: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, maybeRefIndex: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [H256, Option<u32>]>;
|
|
1153
1178
|
/**
|
|
1154
1179
|
* Remove a proposal.
|
|
1155
1180
|
*
|
|
@@ -1485,7 +1510,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1485
1510
|
* This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
|
|
1486
1511
|
* calling [`Call::set_emergency_election_result`].
|
|
1487
1512
|
**/
|
|
1488
|
-
governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null |
|
|
1513
|
+
governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null | Uint8Array | u32 | AnyNumber, maybeMaxTargets: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<u32>]>;
|
|
1489
1514
|
/**
|
|
1490
1515
|
* Set a solution in the queue, to be handed out to the client of this pallet in the next
|
|
1491
1516
|
* call to `ElectionProvider::elect`.
|
|
@@ -1507,7 +1532,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1507
1532
|
*
|
|
1508
1533
|
* This check can be turned off by setting the value to `None`.
|
|
1509
1534
|
**/
|
|
1510
|
-
setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<SpNposElectionsElectionScore> | null |
|
|
1535
|
+
setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<SpNposElectionsElectionScore> | null | Uint8Array | SpNposElectionsElectionScore | {
|
|
1536
|
+
minimalStake?: any;
|
|
1537
|
+
sumStake?: any;
|
|
1538
|
+
sumStakeSquared?: any;
|
|
1539
|
+
} | string) => SubmittableExtrinsic<ApiType>, [Option<SpNposElectionsElectionScore>]>;
|
|
1511
1540
|
/**
|
|
1512
1541
|
* Submit a solution for the signed phase.
|
|
1513
1542
|
*
|
|
@@ -2251,7 +2280,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2251
2280
|
* - Write: Multisig Storage, [Caller Account]
|
|
2252
2281
|
* # </weight>
|
|
2253
2282
|
**/
|
|
2254
|
-
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null |
|
|
2283
|
+
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
|
|
2284
|
+
height?: any;
|
|
2285
|
+
index?: any;
|
|
2286
|
+
} | string, callHash: U8aFixed | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, u64]>;
|
|
2255
2287
|
/**
|
|
2256
2288
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
2257
2289
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
@@ -2299,7 +2331,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2299
2331
|
* - Plus Call Weight
|
|
2300
2332
|
* # </weight>
|
|
2301
2333
|
**/
|
|
2302
|
-
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null |
|
|
2334
|
+
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
|
|
2335
|
+
height?: any;
|
|
2336
|
+
index?: any;
|
|
2337
|
+
} | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, u64]>;
|
|
2303
2338
|
/**
|
|
2304
2339
|
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
|
2305
2340
|
*
|
|
@@ -2471,7 +2506,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2471
2506
|
* the outgoing member is slashed.
|
|
2472
2507
|
*
|
|
2473
2508
|
* If a runner-up is available, then the best runner-up will be removed and replaces the
|
|
2474
|
-
* outgoing member. Otherwise, a new phragmen election is
|
|
2509
|
+
* outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is
|
|
2510
|
+
* started, else, nothing happens.
|
|
2511
|
+
*
|
|
2512
|
+
* If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,
|
|
2513
|
+
* it is returned.
|
|
2475
2514
|
*
|
|
2476
2515
|
* The dispatch origin of this call must be root.
|
|
2477
2516
|
*
|
|
@@ -2492,7 +2531,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2492
2531
|
Address32: any;
|
|
2493
2532
|
} | {
|
|
2494
2533
|
Address20: any;
|
|
2495
|
-
} | string | Uint8Array,
|
|
2534
|
+
} | string | Uint8Array, slashBond: bool | boolean | Uint8Array, rerunElection: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool, bool]>;
|
|
2496
2535
|
/**
|
|
2497
2536
|
* Remove `origin` as a voter.
|
|
2498
2537
|
*
|
|
@@ -2714,7 +2753,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2714
2753
|
* Weight is a function of the number of proxies the user has (P).
|
|
2715
2754
|
* # </weight>
|
|
2716
2755
|
**/
|
|
2717
|
-
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null |
|
|
2756
|
+
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
2718
2757
|
/**
|
|
2719
2758
|
* Dispatch the given `call` from an account that the sender is authorized for through
|
|
2720
2759
|
* `add_proxy`.
|
|
@@ -2734,7 +2773,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2734
2773
|
* - P: the number of proxies the user has.
|
|
2735
2774
|
* # </weight>
|
|
2736
2775
|
**/
|
|
2737
|
-
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null |
|
|
2776
|
+
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
2738
2777
|
/**
|
|
2739
2778
|
* Remove the given announcement of a delegate.
|
|
2740
2779
|
*
|
|
@@ -2893,7 +2932,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2893
2932
|
/**
|
|
2894
2933
|
* Anonymously schedule a task.
|
|
2895
2934
|
**/
|
|
2896
|
-
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null |
|
|
2935
|
+
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
2897
2936
|
Value: any;
|
|
2898
2937
|
} | {
|
|
2899
2938
|
Hash: any;
|
|
@@ -2905,7 +2944,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2905
2944
|
* Same as [`schedule`].
|
|
2906
2945
|
* # </weight>
|
|
2907
2946
|
**/
|
|
2908
|
-
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null |
|
|
2947
|
+
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
2909
2948
|
Value: any;
|
|
2910
2949
|
} | {
|
|
2911
2950
|
Hash: any;
|
|
@@ -2913,7 +2952,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2913
2952
|
/**
|
|
2914
2953
|
* Schedule a named task.
|
|
2915
2954
|
**/
|
|
2916
|
-
scheduleNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null |
|
|
2955
|
+
scheduleNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
2917
2956
|
Value: any;
|
|
2918
2957
|
} | {
|
|
2919
2958
|
Hash: any;
|
|
@@ -2925,7 +2964,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2925
2964
|
* Same as [`schedule_named`](Self::schedule_named).
|
|
2926
2965
|
* # </weight>
|
|
2927
2966
|
**/
|
|
2928
|
-
scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null |
|
|
2967
|
+
scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
2929
2968
|
Value: any;
|
|
2930
2969
|
} | {
|
|
2931
2970
|
Hash: any;
|
|
@@ -3714,7 +3753,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3714
3753
|
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
3715
3754
|
* # </weight>
|
|
3716
3755
|
**/
|
|
3717
|
-
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null |
|
|
3756
|
+
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
|
3718
3757
|
/**
|
|
3719
3758
|
* Add an aye or nay vote for the sender to the given proposal.
|
|
3720
3759
|
*
|
|
@@ -4379,7 +4418,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4379
4418
|
* - `origin`: Must be Root.
|
|
4380
4419
|
* - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
|
|
4381
4420
|
**/
|
|
4382
|
-
forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null |
|
|
4421
|
+
forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
4383
4422
|
/**
|
|
4384
4423
|
* Ask a location to notify us regarding their XCM version and any changes to it.
|
|
4385
4424
|
*
|
package/polkadot/tx.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
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/submittable'; // declare module
|
package/substrate/consts.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/consts';
|
|
1
2
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
4
|
import type { Codec } from '@polkadot/types-codec/types';
|
|
@@ -674,13 +675,20 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
674
675
|
};
|
|
675
676
|
nominationPools: {
|
|
676
677
|
/**
|
|
677
|
-
* The
|
|
678
|
+
* The maximum pool points-to-balance ratio that an `open` pool can have.
|
|
679
|
+
*
|
|
678
680
|
* This is important in the event slashing takes place and the pool's points-to-balance
|
|
679
681
|
* ratio becomes disproportional.
|
|
682
|
+
*
|
|
683
|
+
* Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
|
|
684
|
+
* are a function of number of points, and by setting this value to e.g. 10, you ensure
|
|
685
|
+
* that the total number of points in the system are at most 10 times the total_issuance of
|
|
686
|
+
* the chain, in the absolute worse case.
|
|
687
|
+
*
|
|
680
688
|
* For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
|
|
681
689
|
* Such a scenario would also be the equivalent of the pool being 90% slashed.
|
|
682
690
|
**/
|
|
683
|
-
|
|
691
|
+
maxPointsToBalance: u8 & AugmentedConst<ApiType>;
|
|
684
692
|
/**
|
|
685
693
|
* The nomination pool's pallet id.
|
|
686
694
|
**/
|
package/substrate/consts.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
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/consts'; // declare module
|
package/substrate/errors.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/errors';
|
|
1
2
|
import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
|
|
2
3
|
export declare type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
|
|
3
4
|
declare module '@polkadot/api-base/types/errors' {
|
|
@@ -846,14 +847,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
846
847
|
* Must vote for at least one candidate.
|
|
847
848
|
**/
|
|
848
849
|
NoVotes: AugmentedError<ApiType>;
|
|
849
|
-
/**
|
|
850
|
-
* Cannot report self.
|
|
851
|
-
**/
|
|
852
|
-
ReportSelf: AugmentedError<ApiType>;
|
|
853
850
|
/**
|
|
854
851
|
* Runner cannot re-submit candidacy.
|
|
855
852
|
**/
|
|
856
853
|
RunnerUpSubmit: AugmentedError<ApiType>;
|
|
854
|
+
/**
|
|
855
|
+
* Too many candidates have been created.
|
|
856
|
+
**/
|
|
857
|
+
TooManyCandidates: AugmentedError<ApiType>;
|
|
857
858
|
/**
|
|
858
859
|
* Cannot vote more than candidates.
|
|
859
860
|
**/
|
|
@@ -1198,6 +1199,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1198
1199
|
MetadataExceedsMaxLen: AugmentedError<ApiType>;
|
|
1199
1200
|
/**
|
|
1200
1201
|
* The amount does not meet the minimum bond to either join or create a pool.
|
|
1202
|
+
*
|
|
1203
|
+
* The depositor can never unbond to a value less than
|
|
1204
|
+
* `Pallet::depositor_min_bond`. The caller does not have nominating
|
|
1205
|
+
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
|
|
1201
1206
|
**/
|
|
1202
1207
|
MinimumBondNotMet: AugmentedError<ApiType>;
|
|
1203
1208
|
/**
|
|
@@ -1205,10 +1210,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1205
1210
|
* other members to be permissionlessly unbonded.
|
|
1206
1211
|
**/
|
|
1207
1212
|
NotDestroying: AugmentedError<ApiType>;
|
|
1208
|
-
/**
|
|
1209
|
-
* Not enough points. Ty unbonding less.
|
|
1210
|
-
**/
|
|
1211
|
-
NotEnoughPointsToUnbond: AugmentedError<ApiType>;
|
|
1212
1213
|
/**
|
|
1213
1214
|
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
|
|
1214
1215
|
**/
|
|
@@ -1217,11 +1218,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1217
1218
|
* The caller does not have nominating permissions for the pool.
|
|
1218
1219
|
**/
|
|
1219
1220
|
NotNominator: AugmentedError<ApiType>;
|
|
1220
|
-
/**
|
|
1221
|
-
* The depositor must be the only member in the bonded pool in order to unbond. And the
|
|
1222
|
-
* depositor must be the only member in the sub pools in order to withdraw unbonded.
|
|
1223
|
-
**/
|
|
1224
|
-
NotOnlyPoolMember: AugmentedError<ApiType>;
|
|
1225
1221
|
/**
|
|
1226
1222
|
* The pool is not open to join
|
|
1227
1223
|
**/
|
|
@@ -2049,6 +2045,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2049
2045
|
* Invalid witness data given.
|
|
2050
2046
|
**/
|
|
2051
2047
|
BadWitness: AugmentedError<ApiType>;
|
|
2048
|
+
/**
|
|
2049
|
+
* The provided bid is too low.
|
|
2050
|
+
**/
|
|
2051
|
+
BidTooLow: AugmentedError<ApiType>;
|
|
2052
2052
|
/**
|
|
2053
2053
|
* The item or collection is frozen.
|
|
2054
2054
|
**/
|
|
@@ -2081,6 +2081,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2081
2081
|
* The signing account has no permission to do the operation.
|
|
2082
2082
|
**/
|
|
2083
2083
|
NoPermission: AugmentedError<ApiType>;
|
|
2084
|
+
/**
|
|
2085
|
+
* Item is not for sale.
|
|
2086
|
+
**/
|
|
2087
|
+
NotForSale: AugmentedError<ApiType>;
|
|
2084
2088
|
/**
|
|
2085
2089
|
* The named owner has not signed ownership of the collection is acceptable.
|
|
2086
2090
|
**/
|
|
@@ -2093,6 +2097,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2093
2097
|
* The given item ID is unknown.
|
|
2094
2098
|
**/
|
|
2095
2099
|
UnknownCollection: AugmentedError<ApiType>;
|
|
2100
|
+
/**
|
|
2101
|
+
* The given item ID is unknown.
|
|
2102
|
+
**/
|
|
2103
|
+
UnknownItem: AugmentedError<ApiType>;
|
|
2096
2104
|
/**
|
|
2097
2105
|
* The delegate turned out to be different to what was expected.
|
|
2098
2106
|
**/
|
package/substrate/errors.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
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/errors'; // declare module
|
package/substrate/events.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/events';
|
|
1
2
|
import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
@@ -2253,6 +2254,32 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2253
2254
|
item: u32;
|
|
2254
2255
|
owner: AccountId32;
|
|
2255
2256
|
}>;
|
|
2257
|
+
/**
|
|
2258
|
+
* An item was bought.
|
|
2259
|
+
**/
|
|
2260
|
+
ItemBought: AugmentedEvent<ApiType, [collection: u32, item: u32, price: u128, seller: AccountId32, buyer: AccountId32], {
|
|
2261
|
+
collection: u32;
|
|
2262
|
+
item: u32;
|
|
2263
|
+
price: u128;
|
|
2264
|
+
seller: AccountId32;
|
|
2265
|
+
buyer: AccountId32;
|
|
2266
|
+
}>;
|
|
2267
|
+
/**
|
|
2268
|
+
* The price for the instance was removed.
|
|
2269
|
+
**/
|
|
2270
|
+
ItemPriceRemoved: AugmentedEvent<ApiType, [collection: u32, item: u32], {
|
|
2271
|
+
collection: u32;
|
|
2272
|
+
item: u32;
|
|
2273
|
+
}>;
|
|
2274
|
+
/**
|
|
2275
|
+
* The price was set for the instance.
|
|
2276
|
+
**/
|
|
2277
|
+
ItemPriceSet: AugmentedEvent<ApiType, [collection: u32, item: u32, price: u128, whitelistedBuyer: Option<AccountId32>], {
|
|
2278
|
+
collection: u32;
|
|
2279
|
+
item: u32;
|
|
2280
|
+
price: u128;
|
|
2281
|
+
whitelistedBuyer: Option<AccountId32>;
|
|
2282
|
+
}>;
|
|
2256
2283
|
/**
|
|
2257
2284
|
* A `collection` has had its attributes changed by the `Force` origin.
|
|
2258
2285
|
**/
|
package/substrate/events.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
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'; // declare module
|
package/substrate/query.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/storage';
|
|
1
2
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Data } from '@polkadot/types';
|
|
3
4
|
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
@@ -1748,7 +1749,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1748
1749
|
/**
|
|
1749
1750
|
* Attributes of a collection.
|
|
1750
1751
|
**/
|
|
1751
|
-
attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null |
|
|
1752
|
+
attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, u128]>>>, [u32, Option<u32>, Bytes]> & QueryableStorageEntry<ApiType, [u32, Option<u32>, Bytes]>;
|
|
1752
1753
|
/**
|
|
1753
1754
|
* Details of a collection.
|
|
1754
1755
|
**/
|
|
@@ -1770,6 +1771,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1770
1771
|
* Metadata of an item.
|
|
1771
1772
|
**/
|
|
1772
1773
|
instanceMetadataOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletUniquesItemMetadata>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
1774
|
+
/**
|
|
1775
|
+
* Price of an asset instance.
|
|
1776
|
+
**/
|
|
1777
|
+
itemPriceOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u128, Option<AccountId32>]>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
1773
1778
|
/**
|
|
1774
1779
|
* The collection, if any, of which an account is willing to take ownership.
|
|
1775
1780
|
**/
|
package/substrate/query.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
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'; // declare module
|
package/substrate/runtime.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/calls';
|
|
1
2
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Bytes, Null, Option, Result, Vec, u32, u64 } from '@polkadot/types-codec';
|
|
3
4
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
@@ -113,7 +114,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
113
114
|
/**
|
|
114
115
|
* Perform a call from a specified account to a given contract.
|
|
115
116
|
**/
|
|
116
|
-
call: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, dest: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<Balance> | null |
|
|
117
|
+
call: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, dest: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, inputData: Bytes | string | Uint8Array) => Observable<ContractExecResult>>;
|
|
117
118
|
/**
|
|
118
119
|
* Query a given storage key in a given contract.
|
|
119
120
|
**/
|
|
@@ -121,11 +122,11 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
121
122
|
/**
|
|
122
123
|
* Instantiate a new contract.
|
|
123
124
|
**/
|
|
124
|
-
instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<Balance> | null |
|
|
125
|
+
instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<ContractInstantiateResult>>;
|
|
125
126
|
/**
|
|
126
127
|
* Upload new code without instantiating a contract from it.
|
|
127
128
|
**/
|
|
128
|
-
uploadCode: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, code: Bytes | string | Uint8Array, storageDepositLimit: Option<Balance> | null |
|
|
129
|
+
uploadCode: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, code: Bytes | string | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber) => Observable<CodeUploadResult>>;
|
|
129
130
|
/**
|
|
130
131
|
* Generic call
|
|
131
132
|
**/
|
|
@@ -273,7 +274,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
273
274
|
/**
|
|
274
275
|
* Generate a set of session keys with optionally using the given seed.
|
|
275
276
|
**/
|
|
276
|
-
generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null |
|
|
277
|
+
generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
|
|
277
278
|
/**
|
|
278
279
|
* Generic call
|
|
279
280
|
**/
|
package/substrate/runtime.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
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'; // declare module
|