@polymeshassociation/polymesh-types 6.3.0 → 7.0.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.
@@ -1,284 +1,286 @@
1
1
  import '@polkadot/api-base/types/calls';
2
- import type { AffirmationCount, AssetCount, Authorization, AuthorizationType, CappedFee, CddStatus, ComplianceReport, DidStatus, ExecuteInstructionInfo, IdentityClaim, IdentityId, InstructionId, KeyIdentityData, Leg, Member, NFTs, PipId, PolymeshAssetId, PortfolioId, ProtocolOp, RpcDidRecords, Signatory, TransferCondition, VoteCount } from './polymesh';
2
+ import type { PalletPipsPipId, PalletProtocolFeeRpcRuntimeApiCappedFee, PolymeshPrimitivesSettlementInstructionId, PolymeshRuntimeDevelopRuntimeRuntimeCall } from './polymesh';
3
3
  import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
4
- import type { Bytes, Null, Option, Result, Vec, bool, u32, u64 } from '@polkadot/types-codec';
4
+ import type { Bytes, Null, Option, Result, Struct, Text, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
5
5
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
- import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
7
- import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
8
- import type { BlockHash } from '@polkadot/types/interfaces/chain';
9
- import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
10
- import type { CodeSource, CodeUploadResult, ContractExecResult, ContractInstantiateResult } from '@polkadot/types/interfaces/contracts';
6
+ import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
11
7
  import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
12
- import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
13
- import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
14
8
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
15
- import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
16
- import type { AccountId, Balance, Block, Call, ExtrinsicInclusionMode, Header, Index, KeyTypeId, Perbill, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
17
- import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
18
- import type { ApplyExtrinsicResult, DispatchError } from '@polkadot/types/interfaces/system';
19
- import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
9
+ import type { AccountId32, H256, Slot } from '@polkadot/types/interfaces/runtime';
10
+ import type { FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletGroupRpcRuntimeApiMember, PalletIdentityDidStatus, PalletIdentityKeyIdentityData, PalletIdentityRpcDidRecords, PalletPipsVoteCount, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAuthorization, PolymeshPrimitivesAuthorizationAuthorizationType, PolymeshPrimitivesComplianceManagerComplianceReport, PolymeshPrimitivesIdentityClaim, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationCount, PolymeshPrimitivesSettlementAssetCount, PolymeshPrimitivesSettlementExecuteInstructionInfo, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesTransferComplianceTransferCondition, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
20
11
  import type { IExtrinsic, Observable } from '@polkadot/types/types';
21
12
  export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
22
13
  export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
23
14
  declare module '@polkadot/api-base/types/calls' {
24
15
  interface AugmentedCalls<ApiType extends ApiTypes> {
25
- /** 0xbc9d89904f5b923f/1 */
16
+ /** 0xbc9d89904f5b923f/ */
26
17
  accountNonceApi: {
27
18
  /**
28
- * The API to query account nonce (aka transaction index)
19
+ * Get current account nonce of given `AccountId`.
29
20
  **/
30
- accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
21
+ accountNonce: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<u32>>;
31
22
  };
32
- /** 0xbb6ba9053c5c9d78/4 */
23
+ /** 0xbb6ba9053c5c9d78/ */
33
24
  assetApi: {
34
25
  /**
35
- * Returns a vector containing all errors for the transfer. An empty vec means there's no error.
26
+ * Returns a vector containing all errors for the transfer. An empty vec means there's no error.,, ```ignore, curl http://localhost:9933 -H "Content-Type: application/json" -d '{, "id":1,, "jsonrpc":"2.0",, "method": "asset_transferReport",, "params": [, { "did": "0x0100000000000000000000000000000000000000000000000000000000000000", "kind": "Default"},, { "did": "0x0100000000000000000000000000000000000000000000000000000000000000", "kind": "Default"},, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],, 1,, false, ], }', ```
36
27
  **/
37
- transferReport: AugmentedCall<ApiType, (sender_portfolio: PortfolioId | {
28
+ transferReport: AugmentedCall<ApiType, (sender_portfolio: PolymeshPrimitivesIdentityIdPortfolioId | {
38
29
  did?: any;
39
30
  kind?: any;
40
- } | string | Uint8Array, receiver_portfolio: PortfolioId | {
31
+ } | string | Uint8Array, receiver_portfolio: PolymeshPrimitivesIdentityIdPortfolioId | {
41
32
  did?: any;
42
33
  kind?: any;
43
- } | string | Uint8Array, asset_id: PolymeshAssetId | string | Uint8Array, transfer_value: Balance | AnyNumber | Uint8Array, skip_locked_check: bool | boolean | Uint8Array) => Observable<Vec<DispatchError>>>;
34
+ } | string | Uint8Array, asset_id: PolymeshPrimitivesAssetAssetId | string | Uint8Array, transfer_value: u128 | AnyNumber | Uint8Array, skip_locked_check: bool | boolean | Uint8Array) => Observable<Vec<SpRuntimeDispatchError>>>;
44
35
  };
45
- /** 0x687ad44ad37f03c2/1 */
36
+ /** 0x687ad44ad37f03c2/ */
46
37
  authorityDiscoveryApi: {
47
38
  /**
48
39
  * Retrieve authority identifiers of the current and next authority set.
49
40
  **/
50
- authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
41
+ authorities: AugmentedCall<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>>;
51
42
  };
52
- /** 0xcbca25e39f142387/2 */
43
+ /** 0xcbca25e39f142387/ */
53
44
  babeApi: {
54
45
  /**
55
- * Return the genesis configuration for BABE. The configuration is only read on genesis.
46
+ * Return the configuration for BABE.
56
47
  **/
57
- configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
48
+ configuration: AugmentedCall<ApiType, () => Observable<SpConsensusBabeBabeConfiguration>>;
58
49
  /**
59
50
  * Returns information regarding the current epoch.
60
51
  **/
61
- currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
52
+ currentEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
62
53
  /**
63
54
  * Returns the slot that started the current epoch.
64
55
  **/
65
56
  currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
66
57
  /**
67
- * Generates a proof of key ownership for the given authority in the current epoch.
58
+ * Generates a proof of key ownership for the given authority in the, current epoch. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `slot` as parameter the current, implementations ignores this parameter and instead relies on this, method being called at the correct block height, i.e. any point at, which the epoch for the given slot is live on-chain. Future, implementations will instead use indexed data through an offchain, worker, not requiring older states to be available.
68
59
  **/
69
- generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
60
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authority_id: SpConsensusBabeAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
70
61
  /**
71
- * Returns information regarding the next epoch (which was already previously announced).
62
+ * Returns information regarding the next epoch (which was already, previously announced).
72
63
  **/
73
- nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
64
+ nextEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
74
65
  /**
75
- * Submits an unsigned extrinsic to report an equivocation.
66
+ * Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
76
67
  **/
77
- submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | {
68
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusSlotsEquivocationProof | {
78
69
  offender?: any;
79
- slotNumber?: any;
70
+ slot?: any;
80
71
  firstHeader?: any;
81
72
  secondHeader?: any;
82
- } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
73
+ } | string | Uint8Array, key_owner_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
83
74
  };
84
- /** 0x40fe3ad401f8959a/6 */
75
+ /** 0x40fe3ad401f8959a/ */
85
76
  blockBuilder: {
86
77
  /**
87
- * Apply the given extrinsic.
78
+ * Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not.
88
79
  **/
89
- applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
80
+ applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
90
81
  /**
91
- * Check that the inherents are valid.
82
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
92
83
  **/
93
- checkInherents: AugmentedCall<ApiType, (block: Block | {
84
+ checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
94
85
  header?: any;
95
86
  extrinsics?: any;
96
- } | string | Uint8Array, data: InherentData | {
87
+ } | string | Uint8Array, data: SpInherentsInherentData | {
97
88
  data?: any;
98
- } | string | Uint8Array) => Observable<CheckInherentsResult>>;
89
+ } | string | Uint8Array) => Observable<SpInherentsCheckInherentsResult>>;
99
90
  /**
100
91
  * Finish the current block.
101
92
  **/
102
- finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
93
+ finalizeBlock: AugmentedCall<ApiType, () => Observable<SpRuntimeHeader>>;
103
94
  /**
104
- * Generate inherent extrinsics.
95
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
105
96
  **/
106
- inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | {
97
+ inherentExtrinsics: AugmentedCall<ApiType, (inherent: SpInherentsInherentData | {
107
98
  data?: any;
108
- } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
99
+ } | string | Uint8Array) => Observable<Vec<Bytes>>>;
109
100
  };
110
- /** 0x98cf18c375950e1f/2 */
101
+ /** 0x98cf18c375950e1f/ */
111
102
  complianceApi: {
112
103
  /**
113
- * Checks all compliance requirements for the given asset_id.
104
+ * Checks all compliance requirements for the given ticker,, ```ignore, curl http://localhost:9933 -H "Content-Type: application/json" -d '{, "id":1,, "jsonrpc":"2.0",, "method": "compliance_complianceReport",, "params":[, { "did": "0x0100000000000000000000000000000000000000000000000000000000000000", "kind": "Default"},, { "did": "0x0200000000000000000000000000000000000000000000000000000000000000", "kind": "Default"},, { "ticker": "0x5449434B4552303030303031", "ids": [1]}, ], }', ```
114
105
  **/
115
- complianceReport: AugmentedCall<ApiType, (asset_id: PolymeshAssetId | string | Uint8Array, sender_identity: IdentityId | string | Uint8Array, receiver_identity: IdentityId | string | Uint8Array) => Observable<Result<ComplianceReport, DispatchError>>>;
106
+ complianceReport: AugmentedCall<ApiType, (asset_id: PolymeshPrimitivesAssetAssetId | string | Uint8Array, sender_identity: PolymeshPrimitivesIdentityId | string | Uint8Array, receiver_identity: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Result<PolymeshPrimitivesComplianceManagerComplianceReport, SpRuntimeDispatchError>>>;
116
107
  };
117
- /** 0x68b66ba122c93fa7/2 */
108
+ /** 0x68b66ba122c93fa7/ */
118
109
  contractsApi: {
119
110
  /**
120
- * Perform a call from a specified account to a given contract.
111
+ * Perform a call from a specified account to a given contract.,, See [`crate::Pallet::bare_call`].
121
112
  **/
122
- call: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, dest: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: Option<WeightV2> | null | Uint8Array | WeightV2 | {
113
+ call: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, dest: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | {
123
114
  refTime?: any;
124
115
  proofSize?: any;
125
- } | string, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, inputData: Bytes | string | Uint8Array) => Observable<ContractExecResult>>;
116
+ } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, input_data: Bytes | string | Uint8Array) => Observable<{
117
+ readonly gasConsumed: SpWeightsWeightV2Weight;
118
+ readonly gasRequired: SpWeightsWeightV2Weight;
119
+ readonly storageDeposit: PalletContractsPrimitivesStorageDeposit;
120
+ readonly debugMessage: Bytes;
121
+ readonly result: Result<PalletContractsPrimitivesExecReturnValue, SpRuntimeDispatchError>;
122
+ readonly events: Option<Vec<FrameSystemEventRecord>>;
123
+ } & Struct>>;
126
124
  /**
127
- * Query a given storage key in a given contract.
125
+ * Query a given storage key in a given contract.,, Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the, specified account and `Ok(None)` if it doesn't. If the account specified by the address, doesn't exist, or doesn't have a contract then `Err` is returned.
128
126
  **/
129
- getStorage: AugmentedCall<ApiType, (address: AccountId | string | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
127
+ getStorage: AugmentedCall<ApiType, (address: AccountId32 | string | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Result<Option<Bytes>, PalletContractsPrimitivesContractAccessError>>>;
130
128
  /**
131
- * Instantiate a new contract.
129
+ * Instantiate a new contract.,, See `[crate::Pallet::bare_instantiate]`.
132
130
  **/
133
- instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: Option<WeightV2> | null | Uint8Array | WeightV2 | {
131
+ instantiate: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | {
134
132
  refTime?: any;
135
133
  proofSize?: any;
136
- } | string, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, code: CodeSource | {
134
+ } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, code: PalletContractsPrimitivesCode | {
137
135
  Upload: any;
138
136
  } | {
139
137
  Existing: any;
140
- } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<ContractInstantiateResult>>;
138
+ } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<PalletContractsPrimitivesContractResult>>;
141
139
  /**
142
- * Upload new code without instantiating a contract from it.
140
+ * Upload new code without instantiating a contract from it.,, See [`crate::Pallet::bare_upload_code`].
143
141
  **/
144
- uploadCode: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, code: Bytes | string | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber) => Observable<CodeUploadResult>>;
142
+ uploadCode: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, code: Bytes | string | Uint8Array, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, determinism: PalletContractsWasmDeterminism | 'Enforced' | 'Relaxed' | number | Uint8Array) => Observable<Result<PalletContractsPrimitivesCodeUploadReturnValue, SpRuntimeDispatchError>>>;
145
143
  };
146
- /** 0xdf6acb689907609b/5 */
144
+ /** 0xdf6acb689907609b/ */
147
145
  core: {
148
146
  /**
149
147
  * Execute the given block.
150
148
  **/
151
- executeBlock: AugmentedCall<ApiType, (block: Block | {
149
+ executeBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
152
150
  header?: any;
153
151
  extrinsics?: any;
154
152
  } | string | Uint8Array) => Observable<Null>>;
155
153
  /**
156
- * Initialize a block with the given header.
154
+ * Initialize a block with the given header and return the runtime executive mode.
157
155
  **/
158
- initializeBlock: AugmentedCall<ApiType, (header: Header | {
156
+ initializeBlock: AugmentedCall<ApiType, (header: SpRuntimeHeader | {
159
157
  parentHash?: any;
160
158
  number?: any;
161
159
  stateRoot?: any;
162
160
  extrinsicsRoot?: any;
163
161
  digest?: any;
164
- } | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
162
+ } | string | Uint8Array) => Observable<SpRuntimeExtrinsicInclusionMode>>;
165
163
  /**
166
164
  * Returns the version of the runtime.
167
165
  **/
168
- version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
166
+ version: AugmentedCall<ApiType, () => Observable<SpVersionRuntimeVersion>>;
169
167
  };
170
- /** 0xfbc577b9d747efd6/1 */
168
+ /** 0xfbc577b9d747efd6/ */
171
169
  genesisBuilder: {
172
170
  /**
173
- * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
171
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full, `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the, provided JSON blob is incorrect or incomplete or the deserialization fails, an error, is returned.,, Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no, defaults will be used.
174
172
  **/
175
- buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
173
+ buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
176
174
  /**
177
- * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
175
+ * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function should return JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
178
176
  **/
179
- createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
177
+ getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
178
+ /**
179
+ * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.,, The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If, no named presets are provided by the runtime the list is empty.
180
+ **/
181
+ presetNames: AugmentedCall<ApiType, () => Observable<Vec<Text>>>;
180
182
  };
181
- /** 0xed99c5acb25eedf5/3 */
183
+ /** 0xed99c5acb25eedf5/ */
182
184
  grandpaApi: {
183
185
  /**
184
186
  * Get current GRANDPA authority set id.
185
187
  **/
186
- currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
188
+ currentSetId: AugmentedCall<ApiType, () => Observable<u64>>;
187
189
  /**
188
- * Generates a proof of key ownership for the given authority in the given set.
190
+ * Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignore this parameter and instead rely on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
189
191
  **/
190
- generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
192
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusGrandpaAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
191
193
  /**
192
- * Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
194
+ * Get the current GRANDPA authorities and weights. This should not change except, for when changes are scheduled and the corresponding delay has passed.,, When called at block B, it will return the set of authorities that should be, used to finalize descendants of this block (B+1, B+2, ...). The block B itself, is finalized by the authorities from block B-1.
193
195
  **/
194
- grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
196
+ grandpaAuthorities: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>>;
195
197
  /**
196
- * Submits an unsigned extrinsic to report an equivocation.
198
+ * Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
197
199
  **/
198
- submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | {
200
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusGrandpaEquivocationProof | {
199
201
  setId?: any;
200
202
  equivocation?: any;
201
- } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
203
+ } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
202
204
  };
203
- /** 0x595ac34c5ea1f5fe/1 */
205
+ /** 0x595ac34c5ea1f5fe/ */
204
206
  groupApi: {
205
207
  /**
206
- * Get the CDD members
208
+ *
207
209
  **/
208
- getCddValidMembers: AugmentedCall<ApiType, () => Observable<Vec<Member>>>;
210
+ getCddValidMembers: AugmentedCall<ApiType, () => Observable<Vec<PalletGroupRpcRuntimeApiMember>>>;
209
211
  /**
210
- * Get the GC members
212
+ *
211
213
  **/
212
- getGcValidMembers: AugmentedCall<ApiType, () => Observable<Vec<Member>>>;
214
+ getGcValidMembers: AugmentedCall<ApiType, () => Observable<Vec<PalletGroupRpcRuntimeApiMember>>>;
213
215
  };
214
- /** 0xf28e8080b6e2dfd0/4 */
216
+ /** 0xf28e8080b6e2dfd0/ */
215
217
  identityApi: {
216
218
  /**
217
- * Used to get the did record values for a given DID
219
+ * Retrieve DidRecord for a given `did`.
218
220
  **/
219
- getDidRecords: AugmentedCall<ApiType, (did: IdentityId | string | Uint8Array) => Observable<RpcDidRecords>>;
221
+ getDidRecords: AugmentedCall<ApiType, (did: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<PalletIdentityRpcDidRecords>>;
220
222
  /**
221
- * Retrieve status of the DID
223
+ * Retrieve the status of the DID
222
224
  **/
223
- getDidStatus: AugmentedCall<ApiType, (did: Vec<IdentityId> | (IdentityId | string | Uint8Array)[]) => Observable<Vec<DidStatus>>>;
225
+ getDidStatus: AugmentedCall<ApiType, (dids: Vec<PolymeshPrimitivesIdentityId> | (PolymeshPrimitivesIdentityId | string | Uint8Array)[]) => Observable<Vec<PalletIdentityDidStatus>>>;
224
226
  /**
225
- * Retrieve authorizations data for a given signatory and filtered using the given authorization type
227
+ * Retrieve list of a authorization for a given signatory
226
228
  **/
227
- getFilteredAuthorizations: AugmentedCall<ApiType, (signatory: Signatory | {
229
+ getFilteredAuthorizations: AugmentedCall<ApiType, (signatory: PolymeshPrimitivesSecondaryKeySignatory | {
228
230
  Identity: any;
229
231
  } | {
230
232
  Account: any;
231
- } | string | Uint8Array, allow_expired: bool | boolean | Uint8Array, auth_type: Option<AuthorizationType> | null | Uint8Array | AuthorizationType | 'AttestPrimaryKeyRotation' | 'RotatePrimaryKey' | 'TransferTicker' | 'AddMultiSigSigner' | 'TransferAssetOwnership' | 'JoinIdentity' | 'PortfolioCustody' | 'BecomeAgent' | 'AddRelayerPayingKey' | 'RotatePrimaryKeyToSecondary' | number) => Observable<Vec<Authorization>>>;
233
+ } | string | Uint8Array, allow_expired: bool | boolean | Uint8Array, auth_type: Option<PolymeshPrimitivesAuthorizationAuthorizationType> | null | Uint8Array | PolymeshPrimitivesAuthorizationAuthorizationType | 'AttestPrimaryKeyRotation' | 'RotatePrimaryKey' | 'TransferTicker' | 'AddMultiSigSigner' | 'TransferAssetOwnership' | 'JoinIdentity' | 'PortfolioCustody' | 'BecomeAgent' | 'AddRelayerPayingKey' | 'RotatePrimaryKeyToSecondary' | number) => Observable<Vec<PolymeshPrimitivesAuthorization>>>;
232
234
  /**
233
- * Query relation between a signing key and a DID
235
+ * Provide the `KeyIdentityData` from a given `AccountId`, including:, - the corresponding DID,, - whether the `AccountId` is a primary or secondary key,, - any permissions related to the key.,, This is an aggregate call provided for UX convenience.
234
236
  **/
235
- getKeyIdentityData: AugmentedCall<ApiType, (acc: AccountId | string | Uint8Array) => Observable<Option<KeyIdentityData>>>;
237
+ getKeyIdentityData: AugmentedCall<ApiType, (acc: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityKeyIdentityData>>>;
236
238
  /**
237
- * use to tell whether the given did has valid cdd claim or not
239
+ * Returns CDD status of an identity
238
240
  **/
239
- isIdentityHasValidCdd: AugmentedCall<ApiType, (did: IdentityId | string | Uint8Array, buffer_time: Option<u64> | null | Uint8Array | u64 | AnyNumber) => Observable<CddStatus>>;
241
+ isIdentityHasValidCdd: AugmentedCall<ApiType, (did: PolymeshPrimitivesIdentityId | string | Uint8Array, buffer_time: Option<u64> | null | Uint8Array | u64 | AnyNumber) => Observable<Result<PolymeshPrimitivesIdentityId, Bytes>>>;
240
242
  /**
241
- * Returns all valid IdentityClaim of type CustomerDueDiligence for the given target_identity
243
+ * Returns all valid [`IdentityClaim`] of type `CustomerDueDiligence` for the given `target_identity`.,, ```ignore, curl http://localhost:9933 -H "Content-Type: application/json" -d '{, "id":1,, "jsonrpc":"2.0",, "method": "identity_validCDDClaims",, "params":[, "0x0100000000000000000000000000000000000000000000000000000000000000",, null, ], }', ```
242
244
  **/
243
- validCddClaims: AugmentedCall<ApiType, (target_identity: IdentityId | string | Uint8Array, cdd_checker_leeway: Option<u64> | null | Uint8Array | u64 | AnyNumber) => Observable<Vec<IdentityClaim>>>;
245
+ validCddClaims: AugmentedCall<ApiType, (target_identity: PolymeshPrimitivesIdentityId | string | Uint8Array, cdd_checker_leeway: Option<u64> | null | Uint8Array | u64 | AnyNumber) => Observable<Vec<PolymeshPrimitivesIdentityClaim>>>;
244
246
  };
245
- /** 0x37e397fc7c91f5e4/2 */
247
+ /** 0x37e397fc7c91f5e4/ */
246
248
  metadata: {
247
249
  /**
248
- * Returns the metadata of a runtime
250
+ * Returns the metadata of a runtime.
249
251
  **/
250
252
  metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
251
253
  /**
252
- * Returns the metadata at a given version.
254
+ * Returns the metadata at a given version.,, If the given `version` isn't supported, this will return `None`., Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
253
255
  **/
254
256
  metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
255
257
  /**
256
- * Returns the supported metadata versions.
258
+ * Returns the supported metadata versions.,, This can be used to call `metadata_at_version`.
257
259
  **/
258
260
  metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
259
261
  };
260
- /** 0x9ea061a615cee2fe/2 */
262
+ /** 0x9ea061a615cee2fe/ */
261
263
  nftApi: {
262
264
  /**
263
- * Returns a vector containing all errors for the transfer. An empty vec means there's no error.
265
+ * Returns a vector containing all errors for the transfer. An empty vec means there's no error.,, ```ignore, curl http://localhost:9933 -H "Content-Type: application/json" -d '{, "id":1,, "jsonrpc":"2.0",, "method": "nft_transferReport",, "params": [, { "did": "0x0100000000000000000000000000000000000000000000000000000000000000", "kind": "Default"},, { "did": "0x0100000000000000000000000000000000000000000000000000000000000000", "kind": "Default"},, { "asset_id": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "ids": [1]},, false, ], }', ```
264
266
  **/
265
- transferReport: AugmentedCall<ApiType, (sender_portfolio: PortfolioId | {
267
+ transferReport: AugmentedCall<ApiType, (sender_portfolio: PolymeshPrimitivesIdentityIdPortfolioId | {
266
268
  did?: any;
267
269
  kind?: any;
268
- } | string | Uint8Array, receiver_portfolio: PortfolioId | {
270
+ } | string | Uint8Array, receiver_portfolio: PolymeshPrimitivesIdentityIdPortfolioId | {
269
271
  did?: any;
270
272
  kind?: any;
271
- } | string | Uint8Array, nfts: NFTs | {
273
+ } | string | Uint8Array, nfts: PolymeshPrimitivesNftNfTs | {
272
274
  assetId?: any;
273
275
  ids?: any;
274
- } | string | Uint8Array, skip_locked_check: bool | boolean | Uint8Array) => Observable<Vec<DispatchError>>>;
276
+ } | string | Uint8Array, skip_locked_check: bool | boolean | Uint8Array) => Observable<Vec<SpRuntimeDispatchError>>>;
275
277
  };
276
- /** 0xf78b278be53f454c/2 */
278
+ /** 0xf78b278be53f454c/ */
277
279
  offchainWorkerApi: {
278
280
  /**
279
281
  * Starts the off-chain task for given block header.
280
282
  **/
281
- offchainWorker: AugmentedCall<ApiType, (header: Header | {
283
+ offchainWorker: AugmentedCall<ApiType, (header: SpRuntimeHeader | {
282
284
  parentHash?: any;
283
285
  number?: any;
284
286
  stateRoot?: any;
@@ -286,121 +288,125 @@ declare module '@polkadot/api-base/types/calls' {
286
288
  digest?: any;
287
289
  } | string | Uint8Array) => Observable<Null>>;
288
290
  };
289
- /** 0x329342994773047f/1 */
291
+ /** 0x329342994773047f/ */
290
292
  pipsApi: {
291
293
  /**
292
- * Summary of votes of a proposal given by index
294
+ * Retrieve votes for a proposal for a given `id`.
293
295
  **/
294
- getVotes: AugmentedCall<ApiType, (index: PipId | AnyNumber | Uint8Array) => Observable<VoteCount>>;
296
+ getVotes: AugmentedCall<ApiType, (id: PalletPipsPipId | AnyNumber | Uint8Array) => Observable<PalletPipsVoteCount>>;
295
297
  /**
296
- * Retrieves proposal indices started by address
298
+ * Retrieve proposals started by `address`.
297
299
  **/
298
- proposedBy: AugmentedCall<ApiType, (address: AccountId | string | Uint8Array) => Observable<Vec<PipId>>>;
300
+ proposedBy: AugmentedCall<ApiType, (address: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>>;
299
301
  /**
300
- * Retrieves proposal address indices voted on
302
+ * Retrieve proposals `address` voted on.
301
303
  **/
302
- votedOn: AugmentedCall<ApiType, (address: AccountId | string | Uint8Array) => Observable<Vec<PipId>>>;
304
+ votedOn: AugmentedCall<ApiType, (address: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>>;
303
305
  };
304
- /** 0x001a0b29f17d01f4/1 */
306
+ /** 0x001a0b29f17d01f4/ */
305
307
  protocolFeeApi: {
306
308
  /**
307
- * Gets the fee of a chargeable extrinsic operation
309
+ *
308
310
  **/
309
- computeFee: AugmentedCall<ApiType, (op: ProtocolOp | 'AssetRegisterTicker' | 'AssetIssue' | 'AssetAddDocuments' | 'AssetCreateAsset' | 'CheckpointCreateSchedule' | 'ComplianceManagerAddComplianceRequirement' | 'IdentityCddRegisterDid' | 'IdentityAddClaim' | 'IdentityAddSecondaryKeysWithAuthorization' | 'PipsPropose' | 'ContractsPutCode' | 'CorporateBallotAttachBallot' | 'CapitalDistributionDistribute' | 'NFTCreateCollection' | 'NFTMint' | 'IdentityCreateChildIdentity' | number | Uint8Array) => Observable<CappedFee>>;
311
+ computeFee: AugmentedCall<ApiType, (op: PolymeshCommonUtilitiesProtocolFeeProtocolOp | 'AssetRegisterTicker' | 'AssetIssue' | 'AssetAddDocuments' | 'AssetCreateAsset' | 'CheckpointCreateSchedule' | 'ComplianceManagerAddComplianceRequirement' | 'IdentityCddRegisterDid' | 'IdentityAddClaim' | 'IdentityAddSecondaryKeysWithAuthorization' | 'PipsPropose' | 'ContractsPutCode' | 'CorporateBallotAttachBallot' | 'CapitalDistributionDistribute' | 'NFTCreateCollection' | 'NFTMint' | 'IdentityCreateChildIdentity' | number | Uint8Array) => Observable<PalletProtocolFeeRpcRuntimeApiCappedFee>>;
310
312
  };
311
- /** 0xab3c0572291feb8b/1 */
313
+ /** 0xab3c0572291feb8b/ */
312
314
  sessionKeys: {
313
315
  /**
314
- * Decode the given public session keys.
316
+ * Decode the given public session keys.,, Returns the list of public raw public keys + key type.
315
317
  **/
316
- decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
318
+ decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, SpCoreCryptoKeyTypeId]>>>>>;
317
319
  /**
318
- * Generate a set of session keys with optionally using the given seed.
320
+ * Generate a set of session keys with optionally using the given seed., The keys should be stored within the keystore exposed via runtime, externalities.,, The seed needs to be a valid `utf8` string.,, Returns the concatenated SCALE encoded public keys.
319
321
  **/
320
322
  generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
321
323
  };
322
- /** 0x53df5001418f3b46/2 */
324
+ /** 0x53df5001418f3b46/ */
323
325
  settlementApi: {
324
326
  /**
325
- * Returns an AffirmationCount instance containing the number of assets being sent/received from portfolios, and the number of off-chain assets in the instruction.
327
+ * Returns an [`AffirmationCount`] instance containing the number of assets being sent/received from `portfolios`,, and the number of off-chain assets in the instruction.,, ```ignore, curl http://localhost:9933 -H "Content-Type: application/json" -d '{, "id":1,, "jsonrpc":"2.0",, "method": "settlement_getAffirmationCount",, "params": [1, [{ "did": "0x0100000000000000000000000000000000000000000000000000000000000000", "kind": "Default"}]], }', ```
326
328
  **/
327
- getAffirmationCount: AugmentedCall<ApiType, (instruction_id: InstructionId | AnyNumber | Uint8Array, portfolios: Vec<PortfolioId> | (PortfolioId | {
329
+ getAffirmationCount: AugmentedCall<ApiType, (instruction_id: PolymeshPrimitivesSettlementInstructionId | AnyNumber | Uint8Array, portfolios: Vec<PolymeshPrimitivesIdentityIdPortfolioId> | (PolymeshPrimitivesIdentityIdPortfolioId | {
328
330
  did?: any;
329
331
  kind?: any;
330
- } | string | Uint8Array)[]) => Observable<AffirmationCount>>;
332
+ } | string | Uint8Array)[]) => Observable<PolymeshPrimitivesSettlementAffirmationCount>>;
331
333
  /**
332
- * Returns an ExecuteInstructionInfo instance containing the consumed weight and the number of tokens in the instruction.
334
+ * Returns an [`ExecuteInstructionInfo`] instance containing the consumed weight and the number of fungible and non fungible, tokens in the instruction. Executing an instruction includes verifying the compliance and transfer restrictions of all assets, in the instruction, unlocking all assets, pruning the instruction, updating the statistics for each asset and more.,, ```ignore, curl http://localhost:9933 -H "Content-Type: application/json" -d '{, "id":1,, "jsonrpc":"2.0",, "method": "settlement_getExecuteInstructionInfo",, "params": [1], }', ```
333
335
  **/
334
- getExecuteInstructionInfo: AugmentedCall<ApiType, (instruction_id: InstructionId | AnyNumber | Uint8Array) => Observable<Option<ExecuteInstructionInfo>>>;
336
+ getExecuteInstructionInfo: AugmentedCall<ApiType, (instruction_id: PolymeshPrimitivesSettlementInstructionId | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesSettlementExecuteInstructionInfo>>>;
335
337
  /**
336
- * Returns a vector containing all errors for the execution. An empty vec means there's no error.
338
+ * Returns a vector containing all errors for the execution. An empty vec means there's no error.,, ```ignore, curl http://localhost:9933 -H "Content-Type: application/json" -d '{, "id":1,, "jsonrpc":"2.0",, "method": "settlement_getExecuteIntructionReport",, "params": [1], }', ```
337
339
  **/
338
- getExecuteInstructionReport: AugmentedCall<ApiType, (instruction_id: InstructionId | AnyNumber | Uint8Array) => Observable<Vec<DispatchError>>>;
340
+ getExecuteInstructionReport: AugmentedCall<ApiType, (instruction_id: PolymeshPrimitivesSettlementInstructionId | AnyNumber | Uint8Array) => Observable<Vec<SpRuntimeDispatchError>>>;
339
341
  /**
340
- * Returns a vector containing all errors for the transfer. An empty vec means there's no error.
342
+ * Returns a vector containing all errors for the transfer. An empty vec means there's no error.,, ```ignore, curl http://localhost:9933 -H "Content-Type: application/json" -d '{, "id":1,, "jsonrpc":"2.0",, "method": "settlement_getTransferReport",, "params": [, {, "NonFungible":, {, "sender": { "did": "0x0100000000000000000000000000000000000000000000000000000000000000", "kind": "Default"},, "receiver": { "did": "0x0100000000000000000000000000000000000000000000000000000000000000", "kind": "Default"},, "nfts": { "ticker": "0x5449434B4552303030303031", "ids": [1]}, }, },, false, ], }', ```
341
343
  **/
342
- getTransferReport: AugmentedCall<ApiType, (leg: Leg | {
344
+ getTransferReport: AugmentedCall<ApiType, (leg: PolymeshPrimitivesSettlementLeg | {
343
345
  Fungible: any;
344
346
  } | {
345
347
  NonFungible: any;
346
348
  } | {
347
349
  OffChain: any;
348
- } | string | Uint8Array, skip_locked_check: bool | boolean | Uint8Array) => Observable<Vec<DispatchError>>>;
350
+ } | string | Uint8Array, skip_locked_check: bool | boolean | Uint8Array) => Observable<Vec<SpRuntimeDispatchError>>>;
349
351
  /**
350
- * Returns the AssetCount for the given instruction.
352
+ * Returns the [`AssetCount`] for the given `instruction_id`.
351
353
  **/
352
- instructionAssetCount: AugmentedCall<ApiType, (instruction_id: InstructionId | AnyNumber | Uint8Array) => Observable<AssetCount>>;
354
+ instructionAssetCount: AugmentedCall<ApiType, (instruction_id: PolymeshPrimitivesSettlementInstructionId | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSettlementAssetCount>>;
353
355
  /**
354
- * Returns the weight for executing lock_instruction.
356
+ * Returns the weight for calling `lock_instruction` for the given `instruction_id`.
355
357
  **/
356
- lockInstructionWeight: AugmentedCall<ApiType, (instruction_id: InstructionId | AnyNumber | Uint8Array) => Observable<Result<Weight, DispatchError>>>;
358
+ lockInstructionWeight: AugmentedCall<ApiType, (instruction_id: PolymeshPrimitivesSettlementInstructionId | AnyNumber | Uint8Array) => Observable<Result<SpWeightsWeightV2Weight, SpRuntimeDispatchError>>>;
357
359
  };
358
- /** 0x18ef58a3b67ba770/1 */
360
+ /** 0x18ef58a3b67ba770/ */
359
361
  stakingApi: {
360
362
  /**
361
- * Retrieves curves parameters
363
+ * Returns the page count of exposures for a validator `account` in a given era.
362
364
  **/
363
- getCurve: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[Perbill, Perbill]>>>>;
365
+ erasStakersPageCount: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<u32>>;
364
366
  /**
365
367
  * Returns the nominations quota for a nominator with a given balance.
366
368
  **/
367
- nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
369
+ nominationsQuota: AugmentedCall<ApiType, (balance: u128 | AnyNumber | Uint8Array) => Observable<u32>>;
370
+ /**
371
+ * Returns true if validator `account` has pages to be claimed for the given era.
372
+ **/
373
+ pendingRewards: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<bool>>;
368
374
  };
369
- /** 0x608339ce0e76adf3/0 */
375
+ /** 0x608339ce0e76adf3/ */
370
376
  statisticsApi: {
371
377
  /**
372
- * Returns a vector containing all TransferCondition that are not being respected for the transfer. An empty vec means there's no error.
378
+ * Returns a vector containing all [`TransferCondition`] that are not being respected for the transfer. An empty vec means there's no error.
373
379
  **/
374
- transferRestrictionsReport: AugmentedCall<ApiType, (asset_id: PolymeshAssetId | string | Uint8Array, sender_did: IdentityId | string | Uint8Array, receiver_did: IdentityId | string | Uint8Array, transfer_amount: Balance | AnyNumber | Uint8Array) => Observable<Result<Vec<TransferCondition>, DispatchError>>>;
380
+ transferRestrictionsReport: AugmentedCall<ApiType, (asset_id: PolymeshPrimitivesAssetAssetId | string | Uint8Array, sender_did: PolymeshPrimitivesIdentityId | string | Uint8Array, receiver_did: PolymeshPrimitivesIdentityId | string | Uint8Array, transfer_amount: u128 | AnyNumber | Uint8Array) => Observable<Result<Vec<PolymeshPrimitivesTransferComplianceTransferCondition>, SpRuntimeDispatchError>>>;
375
381
  };
376
- /** 0xd2bc9897eed08f15/3 */
382
+ /** 0xd2bc9897eed08f15/ */
377
383
  taggedTransactionQueue: {
378
384
  /**
379
- * Validate the transaction.
385
+ * Validate the transaction.,, This method is invoked by the transaction pool to learn details about given transaction., The implementation should make sure to verify the correctness of the transaction, against current state. The given `block_hash` corresponds to the hash of the block, that is used as current state.,, Note that this call may be performed by the pool multiple times and transactions, might be verified in any possible order.
380
386
  **/
381
- validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
387
+ validateTransaction: AugmentedCall<ApiType, (source: SpRuntimeTransactionValidityTransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, block_hash: H256 | string | Uint8Array) => Observable<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
382
388
  };
383
- /** 0x37c8bb1350a9a2a8/2 */
389
+ /** 0x37c8bb1350a9a2a8/ */
384
390
  transactionPaymentApi: {
385
391
  /**
386
- * The transaction fee details
392
+ *
387
393
  **/
388
- queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
394
+ queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
389
395
  /**
390
- * The transaction info
396
+ *
391
397
  **/
392
- queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
398
+ queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
393
399
  };
394
- /** 0xf3ff14d5ab527059/2 */
400
+ /** 0xf3ff14d5ab527059/ */
395
401
  transactionPaymentCallApi: {
396
402
  /**
397
- * The call fee details
403
+ * Query fee details of a given encoded `Call`.
398
404
  **/
399
- queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
405
+ queryCallFeeDetails: AugmentedCall<ApiType, (call: PolymeshRuntimeDevelopRuntimeRuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
400
406
  /**
401
- * The call info
407
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
402
408
  **/
403
- queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
409
+ queryCallInfo: AugmentedCall<ApiType, (call: PolymeshRuntimeDevelopRuntimeRuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
404
410
  };
405
411
  }
406
412
  }