@polymeshassociation/polymesh-types 6.2.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.
Files changed (49) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/.yarnrc.yml +1 -0
  3. package/CHANGELOG.md +7 -2
  4. package/README.md +120 -0
  5. package/generated/types.d.ts +44 -9
  6. package/generated/types.d.ts.map +1 -1
  7. package/generated/types.js +38 -1
  8. package/generated/types.js.map +1 -1
  9. package/package.json +10 -6
  10. package/polkadot/augment-api-consts.d.ts +128 -91
  11. package/polkadot/augment-api-consts.d.ts.map +1 -1
  12. package/polkadot/augment-api-errors.d.ts +191 -48
  13. package/polkadot/augment-api-errors.d.ts.map +1 -1
  14. package/polkadot/augment-api-events.d.ts +469 -128
  15. package/polkadot/augment-api-events.d.ts.map +1 -1
  16. package/polkadot/augment-api-query.d.ts +267 -70
  17. package/polkadot/augment-api-query.d.ts.map +1 -1
  18. package/polkadot/augment-api-rpc.d.ts +4 -0
  19. package/polkadot/augment-api-rpc.d.ts.map +1 -1
  20. package/polkadot/augment-api-runtime.d.ts +180 -154
  21. package/polkadot/augment-api-runtime.d.ts.map +1 -1
  22. package/polkadot/augment-api-tx.d.ts +477 -150
  23. package/polkadot/augment-api-tx.d.ts.map +1 -1
  24. package/polkadot/augment-types.d.ts +131 -9
  25. package/polkadot/augment-types.d.ts.map +1 -1
  26. package/polkadot/lookup.d.ts +1303 -665
  27. package/polkadot/lookup.d.ts.map +1 -1
  28. package/polkadot/lookup.js +1409 -699
  29. package/polkadot/lookup.js.map +1 -1
  30. package/polkadot/polymesh/definitions.d.ts +4 -0
  31. package/polkadot/polymesh/definitions.d.ts.map +1 -1
  32. package/polkadot/polymesh/definitions.js +4 -0
  33. package/polkadot/polymesh/definitions.js.map +1 -1
  34. package/polkadot/polymesh/types.d.ts +13 -1
  35. package/polkadot/polymesh/types.d.ts.map +1 -1
  36. package/polkadot/registry.d.ts +66 -19
  37. package/polkadot/registry.d.ts.map +1 -1
  38. package/polkadot/schema.d.ts +4 -0
  39. package/polkadot/schema.d.ts.map +1 -1
  40. package/polkadot/schema.js +4 -0
  41. package/polkadot/schema.js.map +1 -1
  42. package/polkadot/types-lookup.d.ts +1334 -726
  43. package/polkadot/types-lookup.d.ts.map +1 -1
  44. package/polkadot/types.d.ts +1 -0
  45. package/polkadot/types.d.ts.map +1 -1
  46. package/types/8.0.x.json +662 -0
  47. package/types/index.d.ts.map +1 -1
  48. package/types/index.js +2 -0
  49. package/types/index.js.map +1 -1
@@ -1,264 +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 { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
13
8
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
14
- import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
15
- import type { AccountId, Balance, Block, Call, Header, Index, KeyTypeId, Perbill, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
16
- import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
17
- import type { ApplyExtrinsicResult, DispatchError } from '@polkadot/types/interfaces/system';
18
- 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';
19
11
  import type { IExtrinsic, Observable } from '@polkadot/types/types';
20
12
  export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
21
13
  export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
22
14
  declare module '@polkadot/api-base/types/calls' {
23
15
  interface AugmentedCalls<ApiType extends ApiTypes> {
24
- /** 0xbc9d89904f5b923f/1 */
16
+ /** 0xbc9d89904f5b923f/ */
25
17
  accountNonceApi: {
26
18
  /**
27
- * The API to query account nonce (aka transaction index)
19
+ * Get current account nonce of given `AccountId`.
28
20
  **/
29
- accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
21
+ accountNonce: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<u32>>;
30
22
  };
31
- /** 0xbb6ba9053c5c9d78/4 */
23
+ /** 0xbb6ba9053c5c9d78/ */
32
24
  assetApi: {
33
25
  /**
34
- * 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, ], }', ```
35
27
  **/
36
- transferReport: AugmentedCall<ApiType, (sender_portfolio: PortfolioId | {
28
+ transferReport: AugmentedCall<ApiType, (sender_portfolio: PolymeshPrimitivesIdentityIdPortfolioId | {
37
29
  did?: any;
38
30
  kind?: any;
39
- } | string | Uint8Array, receiver_portfolio: PortfolioId | {
31
+ } | string | Uint8Array, receiver_portfolio: PolymeshPrimitivesIdentityIdPortfolioId | {
40
32
  did?: any;
41
33
  kind?: any;
42
- } | 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>>>;
43
35
  };
44
- /** 0x687ad44ad37f03c2/1 */
36
+ /** 0x687ad44ad37f03c2/ */
45
37
  authorityDiscoveryApi: {
46
38
  /**
47
39
  * Retrieve authority identifiers of the current and next authority set.
48
40
  **/
49
- authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
41
+ authorities: AugmentedCall<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>>;
50
42
  };
51
- /** 0xcbca25e39f142387/2 */
43
+ /** 0xcbca25e39f142387/ */
52
44
  babeApi: {
53
45
  /**
54
- * Return the genesis configuration for BABE. The configuration is only read on genesis.
46
+ * Return the configuration for BABE.
55
47
  **/
56
- configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
48
+ configuration: AugmentedCall<ApiType, () => Observable<SpConsensusBabeBabeConfiguration>>;
57
49
  /**
58
50
  * Returns information regarding the current epoch.
59
51
  **/
60
- currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
52
+ currentEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
61
53
  /**
62
54
  * Returns the slot that started the current epoch.
63
55
  **/
64
56
  currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
65
57
  /**
66
- * 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.
67
59
  **/
68
- 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>>>;
69
61
  /**
70
- * Returns information regarding the next epoch (which was already previously announced).
62
+ * Returns information regarding the next epoch (which was already, previously announced).
71
63
  **/
72
- nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
64
+ nextEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
73
65
  /**
74
- * 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.
75
67
  **/
76
- submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | {
68
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusSlotsEquivocationProof | {
77
69
  offender?: any;
78
- slotNumber?: any;
70
+ slot?: any;
79
71
  firstHeader?: any;
80
72
  secondHeader?: any;
81
- } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
73
+ } | string | Uint8Array, key_owner_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
82
74
  };
83
- /** 0x40fe3ad401f8959a/6 */
75
+ /** 0x40fe3ad401f8959a/ */
84
76
  blockBuilder: {
85
77
  /**
86
- * 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.
87
79
  **/
88
- 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>>>;
89
81
  /**
90
- * Check that the inherents are valid.
82
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
91
83
  **/
92
- checkInherents: AugmentedCall<ApiType, (block: Block | {
84
+ checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
93
85
  header?: any;
94
86
  extrinsics?: any;
95
- } | string | Uint8Array, data: InherentData | {
87
+ } | string | Uint8Array, data: SpInherentsInherentData | {
96
88
  data?: any;
97
- } | string | Uint8Array) => Observable<CheckInherentsResult>>;
89
+ } | string | Uint8Array) => Observable<SpInherentsCheckInherentsResult>>;
98
90
  /**
99
91
  * Finish the current block.
100
92
  **/
101
- finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
93
+ finalizeBlock: AugmentedCall<ApiType, () => Observable<SpRuntimeHeader>>;
102
94
  /**
103
- * Generate inherent extrinsics.
95
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
104
96
  **/
105
- inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | {
97
+ inherentExtrinsics: AugmentedCall<ApiType, (inherent: SpInherentsInherentData | {
106
98
  data?: any;
107
- } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
99
+ } | string | Uint8Array) => Observable<Vec<Bytes>>>;
108
100
  };
109
- /** 0x98cf18c375950e1f/2 */
101
+ /** 0x98cf18c375950e1f/ */
110
102
  complianceApi: {
111
103
  /**
112
- * 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]}, ], }', ```
113
105
  **/
114
- 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>>>;
115
107
  };
116
- /** 0x68b66ba122c93fa7/2 */
108
+ /** 0x68b66ba122c93fa7/ */
117
109
  contractsApi: {
118
110
  /**
119
- * 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`].
120
112
  **/
121
- 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 | {
122
114
  refTime?: any;
123
115
  proofSize?: any;
124
- } | 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>>;
125
124
  /**
126
- * 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.
127
126
  **/
128
- 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>>>;
129
128
  /**
130
- * Instantiate a new contract.
129
+ * Instantiate a new contract.,, See `[crate::Pallet::bare_instantiate]`.
131
130
  **/
132
- 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 | {
133
132
  refTime?: any;
134
133
  proofSize?: any;
135
- } | string, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, code: CodeSource | {
134
+ } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, code: PalletContractsPrimitivesCode | {
136
135
  Upload: any;
137
136
  } | {
138
137
  Existing: any;
139
- } | 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>>;
140
139
  /**
141
- * 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`].
142
141
  **/
143
- 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>>>;
144
143
  };
145
- /** 0xdf6acb689907609b/4 */
144
+ /** 0xdf6acb689907609b/ */
146
145
  core: {
147
146
  /**
148
147
  * Execute the given block.
149
148
  **/
150
- executeBlock: AugmentedCall<ApiType, (block: Block | {
149
+ executeBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
151
150
  header?: any;
152
151
  extrinsics?: any;
153
152
  } | string | Uint8Array) => Observable<Null>>;
154
153
  /**
155
- * Initialize a block with the given header.
154
+ * Initialize a block with the given header and return the runtime executive mode.
156
155
  **/
157
- initializeBlock: AugmentedCall<ApiType, (header: Header | {
156
+ initializeBlock: AugmentedCall<ApiType, (header: SpRuntimeHeader | {
158
157
  parentHash?: any;
159
158
  number?: any;
160
159
  stateRoot?: any;
161
160
  extrinsicsRoot?: any;
162
161
  digest?: any;
163
- } | string | Uint8Array) => Observable<Null>>;
162
+ } | string | Uint8Array) => Observable<SpRuntimeExtrinsicInclusionMode>>;
164
163
  /**
165
164
  * Returns the version of the runtime.
166
165
  **/
167
- version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
166
+ version: AugmentedCall<ApiType, () => Observable<SpVersionRuntimeVersion>>;
167
+ };
168
+ /** 0xfbc577b9d747efd6/ */
169
+ genesisBuilder: {
170
+ /**
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.
172
+ **/
173
+ buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
174
+ /**
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.
176
+ **/
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>>>;
168
182
  };
169
- /** 0xed99c5acb25eedf5/3 */
183
+ /** 0xed99c5acb25eedf5/ */
170
184
  grandpaApi: {
171
185
  /**
172
186
  * Get current GRANDPA authority set id.
173
187
  **/
174
- currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
188
+ currentSetId: AugmentedCall<ApiType, () => Observable<u64>>;
175
189
  /**
176
- * 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.
177
191
  **/
178
- 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>>>;
179
193
  /**
180
- * 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.
181
195
  **/
182
- grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
196
+ grandpaAuthorities: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>>;
183
197
  /**
184
- * 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.
185
199
  **/
186
- submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | {
200
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusGrandpaEquivocationProof | {
187
201
  setId?: any;
188
202
  equivocation?: any;
189
- } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
203
+ } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
190
204
  };
191
- /** 0x595ac34c5ea1f5fe/1 */
205
+ /** 0x595ac34c5ea1f5fe/ */
192
206
  groupApi: {
193
207
  /**
194
- * Get the CDD members
208
+ *
195
209
  **/
196
- getCddValidMembers: AugmentedCall<ApiType, () => Observable<Vec<Member>>>;
210
+ getCddValidMembers: AugmentedCall<ApiType, () => Observable<Vec<PalletGroupRpcRuntimeApiMember>>>;
197
211
  /**
198
- * Get the GC members
212
+ *
199
213
  **/
200
- getGcValidMembers: AugmentedCall<ApiType, () => Observable<Vec<Member>>>;
214
+ getGcValidMembers: AugmentedCall<ApiType, () => Observable<Vec<PalletGroupRpcRuntimeApiMember>>>;
201
215
  };
202
- /** 0xf28e8080b6e2dfd0/4 */
216
+ /** 0xf28e8080b6e2dfd0/ */
203
217
  identityApi: {
204
218
  /**
205
- * Used to get the did record values for a given DID
219
+ * Retrieve DidRecord for a given `did`.
206
220
  **/
207
- getDidRecords: AugmentedCall<ApiType, (did: IdentityId | string | Uint8Array) => Observable<RpcDidRecords>>;
221
+ getDidRecords: AugmentedCall<ApiType, (did: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<PalletIdentityRpcDidRecords>>;
208
222
  /**
209
- * Retrieve status of the DID
223
+ * Retrieve the status of the DID
210
224
  **/
211
- 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>>>;
212
226
  /**
213
- * Retrieve authorizations data for a given signatory and filtered using the given authorization type
227
+ * Retrieve list of a authorization for a given signatory
214
228
  **/
215
- getFilteredAuthorizations: AugmentedCall<ApiType, (signatory: Signatory | {
229
+ getFilteredAuthorizations: AugmentedCall<ApiType, (signatory: PolymeshPrimitivesSecondaryKeySignatory | {
216
230
  Identity: any;
217
231
  } | {
218
232
  Account: any;
219
- } | 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>>>;
220
234
  /**
221
- * 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.
222
236
  **/
223
- getKeyIdentityData: AugmentedCall<ApiType, (acc: AccountId | string | Uint8Array) => Observable<Option<KeyIdentityData>>>;
237
+ getKeyIdentityData: AugmentedCall<ApiType, (acc: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityKeyIdentityData>>>;
224
238
  /**
225
- * use to tell whether the given did has valid cdd claim or not
239
+ * Returns CDD status of an identity
226
240
  **/
227
- 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>>>;
228
242
  /**
229
- * 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, ], }', ```
230
244
  **/
231
- 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>>>;
232
246
  };
233
- /** 0x37e397fc7c91f5e4/1 */
247
+ /** 0x37e397fc7c91f5e4/ */
234
248
  metadata: {
235
249
  /**
236
- * Returns the metadata of a runtime
250
+ * Returns the metadata of a runtime.
237
251
  **/
238
252
  metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
253
+ /**
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.
255
+ **/
256
+ metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
257
+ /**
258
+ * Returns the supported metadata versions.,, This can be used to call `metadata_at_version`.
259
+ **/
260
+ metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
239
261
  };
240
- /** 0x9ea061a615cee2fe/2 */
262
+ /** 0x9ea061a615cee2fe/ */
241
263
  nftApi: {
242
264
  /**
243
- * 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, ], }', ```
244
266
  **/
245
- transferReport: AugmentedCall<ApiType, (sender_portfolio: PortfolioId | {
267
+ transferReport: AugmentedCall<ApiType, (sender_portfolio: PolymeshPrimitivesIdentityIdPortfolioId | {
246
268
  did?: any;
247
269
  kind?: any;
248
- } | string | Uint8Array, receiver_portfolio: PortfolioId | {
270
+ } | string | Uint8Array, receiver_portfolio: PolymeshPrimitivesIdentityIdPortfolioId | {
249
271
  did?: any;
250
272
  kind?: any;
251
- } | string | Uint8Array, nfts: NFTs | {
273
+ } | string | Uint8Array, nfts: PolymeshPrimitivesNftNfTs | {
252
274
  assetId?: any;
253
275
  ids?: any;
254
- } | string | Uint8Array, skip_locked_check: bool | boolean | Uint8Array) => Observable<Vec<DispatchError>>>;
276
+ } | string | Uint8Array, skip_locked_check: bool | boolean | Uint8Array) => Observable<Vec<SpRuntimeDispatchError>>>;
255
277
  };
256
- /** 0xf78b278be53f454c/2 */
278
+ /** 0xf78b278be53f454c/ */
257
279
  offchainWorkerApi: {
258
280
  /**
259
281
  * Starts the off-chain task for given block header.
260
282
  **/
261
- offchainWorker: AugmentedCall<ApiType, (header: Header | {
283
+ offchainWorker: AugmentedCall<ApiType, (header: SpRuntimeHeader | {
262
284
  parentHash?: any;
263
285
  number?: any;
264
286
  stateRoot?: any;
@@ -266,121 +288,125 @@ declare module '@polkadot/api-base/types/calls' {
266
288
  digest?: any;
267
289
  } | string | Uint8Array) => Observable<Null>>;
268
290
  };
269
- /** 0x329342994773047f/1 */
291
+ /** 0x329342994773047f/ */
270
292
  pipsApi: {
271
293
  /**
272
- * Summary of votes of a proposal given by index
294
+ * Retrieve votes for a proposal for a given `id`.
273
295
  **/
274
- getVotes: AugmentedCall<ApiType, (index: PipId | AnyNumber | Uint8Array) => Observable<VoteCount>>;
296
+ getVotes: AugmentedCall<ApiType, (id: PalletPipsPipId | AnyNumber | Uint8Array) => Observable<PalletPipsVoteCount>>;
275
297
  /**
276
- * Retrieves proposal indices started by address
298
+ * Retrieve proposals started by `address`.
277
299
  **/
278
- proposedBy: AugmentedCall<ApiType, (address: AccountId | string | Uint8Array) => Observable<Vec<PipId>>>;
300
+ proposedBy: AugmentedCall<ApiType, (address: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>>;
279
301
  /**
280
- * Retrieves proposal address indices voted on
302
+ * Retrieve proposals `address` voted on.
281
303
  **/
282
- votedOn: AugmentedCall<ApiType, (address: AccountId | string | Uint8Array) => Observable<Vec<PipId>>>;
304
+ votedOn: AugmentedCall<ApiType, (address: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>>;
283
305
  };
284
- /** 0x001a0b29f17d01f4/1 */
306
+ /** 0x001a0b29f17d01f4/ */
285
307
  protocolFeeApi: {
286
308
  /**
287
- * Gets the fee of a chargeable extrinsic operation
309
+ *
288
310
  **/
289
- 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>>;
290
312
  };
291
- /** 0xab3c0572291feb8b/1 */
313
+ /** 0xab3c0572291feb8b/ */
292
314
  sessionKeys: {
293
315
  /**
294
- * Decode the given public session keys.
316
+ * Decode the given public session keys.,, Returns the list of public raw public keys + key type.
295
317
  **/
296
- 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]>>>>>;
297
319
  /**
298
- * 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.
299
321
  **/
300
322
  generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
301
323
  };
302
- /** 0x53df5001418f3b46/2 */
324
+ /** 0x53df5001418f3b46/ */
303
325
  settlementApi: {
304
326
  /**
305
- * 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"}]], }', ```
306
328
  **/
307
- 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 | {
308
330
  did?: any;
309
331
  kind?: any;
310
- } | string | Uint8Array)[]) => Observable<AffirmationCount>>;
332
+ } | string | Uint8Array)[]) => Observable<PolymeshPrimitivesSettlementAffirmationCount>>;
311
333
  /**
312
- * 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], }', ```
313
335
  **/
314
- getExecuteInstructionInfo: AugmentedCall<ApiType, (instruction_id: InstructionId | AnyNumber | Uint8Array) => Observable<Option<ExecuteInstructionInfo>>>;
336
+ getExecuteInstructionInfo: AugmentedCall<ApiType, (instruction_id: PolymeshPrimitivesSettlementInstructionId | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesSettlementExecuteInstructionInfo>>>;
315
337
  /**
316
- * 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], }', ```
317
339
  **/
318
- getExecuteInstructionReport: AugmentedCall<ApiType, (instruction_id: InstructionId | AnyNumber | Uint8Array) => Observable<Vec<DispatchError>>>;
340
+ getExecuteInstructionReport: AugmentedCall<ApiType, (instruction_id: PolymeshPrimitivesSettlementInstructionId | AnyNumber | Uint8Array) => Observable<Vec<SpRuntimeDispatchError>>>;
319
341
  /**
320
- * 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, ], }', ```
321
343
  **/
322
- getTransferReport: AugmentedCall<ApiType, (leg: Leg | {
344
+ getTransferReport: AugmentedCall<ApiType, (leg: PolymeshPrimitivesSettlementLeg | {
323
345
  Fungible: any;
324
346
  } | {
325
347
  NonFungible: any;
326
348
  } | {
327
349
  OffChain: any;
328
- } | string | Uint8Array, skip_locked_check: bool | boolean | Uint8Array) => Observable<Vec<DispatchError>>>;
350
+ } | string | Uint8Array, skip_locked_check: bool | boolean | Uint8Array) => Observable<Vec<SpRuntimeDispatchError>>>;
329
351
  /**
330
- * Returns the AssetCount for the given instruction.
352
+ * Returns the [`AssetCount`] for the given `instruction_id`.
331
353
  **/
332
- instructionAssetCount: AugmentedCall<ApiType, (instruction_id: InstructionId | AnyNumber | Uint8Array) => Observable<AssetCount>>;
354
+ instructionAssetCount: AugmentedCall<ApiType, (instruction_id: PolymeshPrimitivesSettlementInstructionId | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSettlementAssetCount>>;
333
355
  /**
334
- * Returns the weight for executing lock_instruction.
356
+ * Returns the weight for calling `lock_instruction` for the given `instruction_id`.
335
357
  **/
336
- 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>>>;
337
359
  };
338
- /** 0x18ef58a3b67ba770/1 */
360
+ /** 0x18ef58a3b67ba770/ */
339
361
  stakingApi: {
340
362
  /**
341
- * Retrieves curves parameters
363
+ * Returns the page count of exposures for a validator `account` in a given era.
342
364
  **/
343
- getCurve: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[Perbill, Perbill]>>>>;
365
+ erasStakersPageCount: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<u32>>;
344
366
  /**
345
367
  * Returns the nominations quota for a nominator with a given balance.
346
368
  **/
347
- 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>>;
348
374
  };
349
- /** 0x608339ce0e76adf3/0 */
375
+ /** 0x608339ce0e76adf3/ */
350
376
  statisticsApi: {
351
377
  /**
352
- * 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.
353
379
  **/
354
- 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>>>;
355
381
  };
356
- /** 0xd2bc9897eed08f15/3 */
382
+ /** 0xd2bc9897eed08f15/ */
357
383
  taggedTransactionQueue: {
358
384
  /**
359
- * 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.
360
386
  **/
361
- 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>>>;
362
388
  };
363
- /** 0x37c8bb1350a9a2a8/2 */
389
+ /** 0x37c8bb1350a9a2a8/ */
364
390
  transactionPaymentApi: {
365
391
  /**
366
- * The transaction fee details
392
+ *
367
393
  **/
368
- 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>>;
369
395
  /**
370
- * The transaction info
396
+ *
371
397
  **/
372
- 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>>;
373
399
  };
374
- /** 0xf3ff14d5ab527059/2 */
400
+ /** 0xf3ff14d5ab527059/ */
375
401
  transactionPaymentCallApi: {
376
402
  /**
377
- * The call fee details
403
+ * Query fee details of a given encoded `Call`.
378
404
  **/
379
- 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>>;
380
406
  /**
381
- * The call info
407
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
382
408
  **/
383
- 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>>;
384
410
  };
385
411
  }
386
412
  }