@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.
- package/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +1 -0
- package/CHANGELOG.md +7 -2
- package/README.md +120 -0
- package/generated/types.d.ts +44 -9
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +38 -1
- package/generated/types.js.map +1 -1
- package/package.json +10 -6
- package/polkadot/augment-api-consts.d.ts +128 -91
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +191 -48
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +469 -128
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +267 -70
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-rpc.d.ts +4 -0
- package/polkadot/augment-api-rpc.d.ts.map +1 -1
- package/polkadot/augment-api-runtime.d.ts +180 -154
- package/polkadot/augment-api-runtime.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +477 -150
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/augment-types.d.ts +131 -9
- package/polkadot/augment-types.d.ts.map +1 -1
- package/polkadot/lookup.d.ts +1303 -665
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +1409 -699
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/polymesh/definitions.d.ts +4 -0
- package/polkadot/polymesh/definitions.d.ts.map +1 -1
- package/polkadot/polymesh/definitions.js +4 -0
- package/polkadot/polymesh/definitions.js.map +1 -1
- package/polkadot/polymesh/types.d.ts +13 -1
- package/polkadot/polymesh/types.d.ts.map +1 -1
- package/polkadot/registry.d.ts +66 -19
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/schema.d.ts +4 -0
- package/polkadot/schema.d.ts.map +1 -1
- package/polkadot/schema.js +4 -0
- package/polkadot/schema.js.map +1 -1
- package/polkadot/types-lookup.d.ts +1334 -726
- package/polkadot/types-lookup.d.ts.map +1 -1
- package/polkadot/types.d.ts +1 -0
- package/polkadot/types.d.ts.map +1 -1
- package/types/8.0.x.json +662 -0
- package/types/index.d.ts.map +1 -1
- package/types/index.js +2 -0
- package/types/index.js.map +1 -1
|
@@ -1,264 +1,286 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/calls';
|
|
2
|
-
import type {
|
|
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 {
|
|
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 {
|
|
15
|
-
import type {
|
|
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/
|
|
16
|
+
/** 0xbc9d89904f5b923f/ */
|
|
25
17
|
accountNonceApi: {
|
|
26
18
|
/**
|
|
27
|
-
*
|
|
19
|
+
* Get current account nonce of given `AccountId`.
|
|
28
20
|
**/
|
|
29
|
-
accountNonce: AugmentedCall<ApiType, (
|
|
21
|
+
accountNonce: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<u32>>;
|
|
30
22
|
};
|
|
31
|
-
/** 0xbb6ba9053c5c9d78/
|
|
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:
|
|
28
|
+
transferReport: AugmentedCall<ApiType, (sender_portfolio: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
37
29
|
did?: any;
|
|
38
30
|
kind?: any;
|
|
39
|
-
} | string | Uint8Array, receiver_portfolio:
|
|
31
|
+
} | string | Uint8Array, receiver_portfolio: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
40
32
|
did?: any;
|
|
41
33
|
kind?: any;
|
|
42
|
-
} | string | Uint8Array, asset_id:
|
|
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/
|
|
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<
|
|
41
|
+
authorities: AugmentedCall<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>>;
|
|
50
42
|
};
|
|
51
|
-
/** 0xcbca25e39f142387/
|
|
43
|
+
/** 0xcbca25e39f142387/ */
|
|
52
44
|
babeApi: {
|
|
53
45
|
/**
|
|
54
|
-
* Return the
|
|
46
|
+
* Return the configuration for BABE.
|
|
55
47
|
**/
|
|
56
|
-
configuration: AugmentedCall<ApiType, () => Observable<
|
|
48
|
+
configuration: AugmentedCall<ApiType, () => Observable<SpConsensusBabeBabeConfiguration>>;
|
|
57
49
|
/**
|
|
58
50
|
* Returns information regarding the current epoch.
|
|
59
51
|
**/
|
|
60
|
-
currentEpoch: AugmentedCall<ApiType, () => Observable<
|
|
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,
|
|
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<
|
|
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, (
|
|
68
|
+
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusSlotsEquivocationProof | {
|
|
77
69
|
offender?: any;
|
|
78
|
-
|
|
70
|
+
slot?: any;
|
|
79
71
|
firstHeader?: any;
|
|
80
72
|
secondHeader?: any;
|
|
81
|
-
} | string | Uint8Array,
|
|
73
|
+
} | string | Uint8Array, key_owner_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
|
82
74
|
};
|
|
83
|
-
/** 0x40fe3ad401f8959a/
|
|
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<
|
|
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:
|
|
84
|
+
checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
|
|
93
85
|
header?: any;
|
|
94
86
|
extrinsics?: any;
|
|
95
|
-
} | string | Uint8Array, data:
|
|
87
|
+
} | string | Uint8Array, data: SpInherentsInherentData | {
|
|
96
88
|
data?: any;
|
|
97
|
-
} | string | Uint8Array) => Observable<
|
|
89
|
+
} | string | Uint8Array) => Observable<SpInherentsCheckInherentsResult>>;
|
|
98
90
|
/**
|
|
99
91
|
* Finish the current block.
|
|
100
92
|
**/
|
|
101
|
-
finalizeBlock: AugmentedCall<ApiType, () => Observable<
|
|
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:
|
|
97
|
+
inherentExtrinsics: AugmentedCall<ApiType, (inherent: SpInherentsInherentData | {
|
|
106
98
|
data?: any;
|
|
107
|
-
} | string | Uint8Array) => Observable<Vec<
|
|
99
|
+
} | string | Uint8Array) => Observable<Vec<Bytes>>>;
|
|
108
100
|
};
|
|
109
|
-
/** 0x98cf18c375950e1f/
|
|
101
|
+
/** 0x98cf18c375950e1f/ */
|
|
110
102
|
complianceApi: {
|
|
111
103
|
/**
|
|
112
|
-
* Checks all compliance requirements for the given
|
|
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:
|
|
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/
|
|
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:
|
|
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,
|
|
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:
|
|
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:
|
|
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,
|
|
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<
|
|
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:
|
|
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/
|
|
144
|
+
/** 0xdf6acb689907609b/ */
|
|
146
145
|
core: {
|
|
147
146
|
/**
|
|
148
147
|
* Execute the given block.
|
|
149
148
|
**/
|
|
150
|
-
executeBlock: AugmentedCall<ApiType, (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:
|
|
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<
|
|
162
|
+
} | string | Uint8Array) => Observable<SpRuntimeExtrinsicInclusionMode>>;
|
|
164
163
|
/**
|
|
165
164
|
* Returns the version of the runtime.
|
|
166
165
|
**/
|
|
167
|
-
version: AugmentedCall<ApiType, () => Observable<
|
|
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/
|
|
183
|
+
/** 0xed99c5acb25eedf5/ */
|
|
170
184
|
grandpaApi: {
|
|
171
185
|
/**
|
|
172
186
|
* Get current GRANDPA authority set id.
|
|
173
187
|
**/
|
|
174
|
-
currentSetId: AugmentedCall<ApiType, () => Observable<
|
|
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, (
|
|
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<
|
|
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, (
|
|
200
|
+
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusGrandpaEquivocationProof | {
|
|
187
201
|
setId?: any;
|
|
188
202
|
equivocation?: any;
|
|
189
|
-
} | string | Uint8Array,
|
|
203
|
+
} | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
|
190
204
|
};
|
|
191
|
-
/** 0x595ac34c5ea1f5fe/
|
|
205
|
+
/** 0x595ac34c5ea1f5fe/ */
|
|
192
206
|
groupApi: {
|
|
193
207
|
/**
|
|
194
|
-
*
|
|
208
|
+
*
|
|
195
209
|
**/
|
|
196
|
-
getCddValidMembers: AugmentedCall<ApiType, () => Observable<Vec<
|
|
210
|
+
getCddValidMembers: AugmentedCall<ApiType, () => Observable<Vec<PalletGroupRpcRuntimeApiMember>>>;
|
|
197
211
|
/**
|
|
198
|
-
*
|
|
212
|
+
*
|
|
199
213
|
**/
|
|
200
|
-
getGcValidMembers: AugmentedCall<ApiType, () => Observable<Vec<
|
|
214
|
+
getGcValidMembers: AugmentedCall<ApiType, () => Observable<Vec<PalletGroupRpcRuntimeApiMember>>>;
|
|
201
215
|
};
|
|
202
|
-
/** 0xf28e8080b6e2dfd0/
|
|
216
|
+
/** 0xf28e8080b6e2dfd0/ */
|
|
203
217
|
identityApi: {
|
|
204
218
|
/**
|
|
205
|
-
*
|
|
219
|
+
* Retrieve DidRecord for a given `did`.
|
|
206
220
|
**/
|
|
207
|
-
getDidRecords: AugmentedCall<ApiType, (did:
|
|
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, (
|
|
225
|
+
getDidStatus: AugmentedCall<ApiType, (dids: Vec<PolymeshPrimitivesIdentityId> | (PolymeshPrimitivesIdentityId | string | Uint8Array)[]) => Observable<Vec<PalletIdentityDidStatus>>>;
|
|
212
226
|
/**
|
|
213
|
-
* Retrieve
|
|
227
|
+
* Retrieve list of a authorization for a given signatory
|
|
214
228
|
**/
|
|
215
|
-
getFilteredAuthorizations: AugmentedCall<ApiType, (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<
|
|
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
|
-
*
|
|
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:
|
|
237
|
+
getKeyIdentityData: AugmentedCall<ApiType, (acc: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityKeyIdentityData>>>;
|
|
224
238
|
/**
|
|
225
|
-
*
|
|
239
|
+
* Returns CDD status of an identity
|
|
226
240
|
**/
|
|
227
|
-
isIdentityHasValidCdd: AugmentedCall<ApiType, (did:
|
|
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:
|
|
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/
|
|
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/
|
|
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:
|
|
267
|
+
transferReport: AugmentedCall<ApiType, (sender_portfolio: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
246
268
|
did?: any;
|
|
247
269
|
kind?: any;
|
|
248
|
-
} | string | Uint8Array, receiver_portfolio:
|
|
270
|
+
} | string | Uint8Array, receiver_portfolio: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
249
271
|
did?: any;
|
|
250
272
|
kind?: any;
|
|
251
|
-
} | string | Uint8Array, 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<
|
|
276
|
+
} | string | Uint8Array, skip_locked_check: bool | boolean | Uint8Array) => Observable<Vec<SpRuntimeDispatchError>>>;
|
|
255
277
|
};
|
|
256
|
-
/** 0xf78b278be53f454c/
|
|
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:
|
|
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/
|
|
291
|
+
/** 0x329342994773047f/ */
|
|
270
292
|
pipsApi: {
|
|
271
293
|
/**
|
|
272
|
-
*
|
|
294
|
+
* Retrieve votes for a proposal for a given `id`.
|
|
273
295
|
**/
|
|
274
|
-
getVotes: AugmentedCall<ApiType, (
|
|
296
|
+
getVotes: AugmentedCall<ApiType, (id: PalletPipsPipId | AnyNumber | Uint8Array) => Observable<PalletPipsVoteCount>>;
|
|
275
297
|
/**
|
|
276
|
-
*
|
|
298
|
+
* Retrieve proposals started by `address`.
|
|
277
299
|
**/
|
|
278
|
-
proposedBy: AugmentedCall<ApiType, (address:
|
|
300
|
+
proposedBy: AugmentedCall<ApiType, (address: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>>;
|
|
279
301
|
/**
|
|
280
|
-
*
|
|
302
|
+
* Retrieve proposals `address` voted on.
|
|
281
303
|
**/
|
|
282
|
-
votedOn: AugmentedCall<ApiType, (address:
|
|
304
|
+
votedOn: AugmentedCall<ApiType, (address: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>>;
|
|
283
305
|
};
|
|
284
|
-
/** 0x001a0b29f17d01f4/
|
|
306
|
+
/** 0x001a0b29f17d01f4/ */
|
|
285
307
|
protocolFeeApi: {
|
|
286
308
|
/**
|
|
287
|
-
*
|
|
309
|
+
*
|
|
288
310
|
**/
|
|
289
|
-
computeFee: AugmentedCall<ApiType, (op:
|
|
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/
|
|
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,
|
|
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/
|
|
324
|
+
/** 0x53df5001418f3b46/ */
|
|
303
325
|
settlementApi: {
|
|
304
326
|
/**
|
|
305
|
-
* Returns an AffirmationCount instance containing the number of assets being sent/received from portfolios
|
|
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:
|
|
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<
|
|
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:
|
|
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:
|
|
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:
|
|
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<
|
|
350
|
+
} | string | Uint8Array, skip_locked_check: bool | boolean | Uint8Array) => Observable<Vec<SpRuntimeDispatchError>>>;
|
|
329
351
|
/**
|
|
330
|
-
* Returns the AssetCount for the given
|
|
352
|
+
* Returns the [`AssetCount`] for the given `instruction_id`.
|
|
331
353
|
**/
|
|
332
|
-
instructionAssetCount: AugmentedCall<ApiType, (instruction_id:
|
|
354
|
+
instructionAssetCount: AugmentedCall<ApiType, (instruction_id: PolymeshPrimitivesSettlementInstructionId | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSettlementAssetCount>>;
|
|
333
355
|
/**
|
|
334
|
-
* Returns the weight for
|
|
356
|
+
* Returns the weight for calling `lock_instruction` for the given `instruction_id`.
|
|
335
357
|
**/
|
|
336
|
-
lockInstructionWeight: AugmentedCall<ApiType, (instruction_id:
|
|
358
|
+
lockInstructionWeight: AugmentedCall<ApiType, (instruction_id: PolymeshPrimitivesSettlementInstructionId | AnyNumber | Uint8Array) => Observable<Result<SpWeightsWeightV2Weight, SpRuntimeDispatchError>>>;
|
|
337
359
|
};
|
|
338
|
-
/** 0x18ef58a3b67ba770/
|
|
360
|
+
/** 0x18ef58a3b67ba770/ */
|
|
339
361
|
stakingApi: {
|
|
340
362
|
/**
|
|
341
|
-
*
|
|
363
|
+
* Returns the page count of exposures for a validator `account` in a given era.
|
|
342
364
|
**/
|
|
343
|
-
|
|
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:
|
|
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/
|
|
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:
|
|
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/
|
|
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:
|
|
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/
|
|
389
|
+
/** 0x37c8bb1350a9a2a8/ */
|
|
364
390
|
transactionPaymentApi: {
|
|
365
391
|
/**
|
|
366
|
-
*
|
|
392
|
+
*
|
|
367
393
|
**/
|
|
368
|
-
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<
|
|
394
|
+
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
|
|
369
395
|
/**
|
|
370
|
-
*
|
|
396
|
+
*
|
|
371
397
|
**/
|
|
372
|
-
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<
|
|
398
|
+
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
|
|
373
399
|
};
|
|
374
|
-
/** 0xf3ff14d5ab527059/
|
|
400
|
+
/** 0xf3ff14d5ab527059/ */
|
|
375
401
|
transactionPaymentCallApi: {
|
|
376
402
|
/**
|
|
377
|
-
*
|
|
403
|
+
* Query fee details of a given encoded `Call`.
|
|
378
404
|
**/
|
|
379
|
-
queryCallFeeDetails: AugmentedCall<ApiType, (call:
|
|
405
|
+
queryCallFeeDetails: AugmentedCall<ApiType, (call: PolymeshRuntimeDevelopRuntimeRuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
|
|
380
406
|
/**
|
|
381
|
-
*
|
|
407
|
+
* Query information of a dispatch class, weight, and fee of a given encoded `Call`.
|
|
382
408
|
**/
|
|
383
|
-
queryCallInfo: AugmentedCall<ApiType, (call:
|
|
409
|
+
queryCallInfo: AugmentedCall<ApiType, (call: PolymeshRuntimeDevelopRuntimeRuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
|
|
384
410
|
};
|
|
385
411
|
}
|
|
386
412
|
}
|