@polymeshassociation/polymesh-types 5.15.0 → 6.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 (228) hide show
  1. package/CHANGELOG.md +8 -116
  2. package/generated/types.d.ts +897 -0
  3. package/generated/types.d.ts.map +1 -0
  4. package/generated/types.js +950 -0
  5. package/generated/types.js.map +1 -0
  6. package/package.json +20 -5
  7. package/polkadot/asset/definitions.d.ts +16 -0
  8. package/polkadot/asset/definitions.d.ts.map +1 -0
  9. package/polkadot/asset/definitions.js +44 -0
  10. package/polkadot/asset/definitions.js.map +1 -0
  11. package/polkadot/asset/index.d.ts +2 -0
  12. package/polkadot/asset/index.d.ts.map +1 -0
  13. package/polkadot/asset/index.js +20 -0
  14. package/polkadot/asset/index.js.map +1 -0
  15. package/polkadot/asset/types.d.ts +2 -0
  16. package/polkadot/asset/types.d.ts.map +1 -0
  17. package/polkadot/asset/types.js +5 -0
  18. package/polkadot/asset/types.js.map +1 -0
  19. package/polkadot/augment-api-consts.d.ts +509 -0
  20. package/polkadot/augment-api-consts.d.ts.map +1 -0
  21. package/polkadot/augment-api-consts.js +8 -0
  22. package/polkadot/augment-api-consts.js.map +1 -0
  23. package/polkadot/augment-api-errors.d.ts +2235 -0
  24. package/polkadot/augment-api-errors.d.ts.map +1 -0
  25. package/polkadot/augment-api-errors.js +8 -0
  26. package/polkadot/augment-api-errors.js.map +1 -0
  27. package/polkadot/augment-api-events.d.ts +3070 -0
  28. package/polkadot/augment-api-events.d.ts.map +1 -0
  29. package/polkadot/augment-api-events.js +8 -0
  30. package/polkadot/augment-api-events.js.map +1 -0
  31. package/polkadot/augment-api-query.d.ts +2536 -0
  32. package/polkadot/augment-api-query.d.ts.map +1 -0
  33. package/polkadot/augment-api-query.js +8 -0
  34. package/polkadot/augment-api-query.js.map +1 -0
  35. package/polkadot/augment-api-rpc.d.ts +807 -0
  36. package/polkadot/augment-api-rpc.d.ts.map +1 -0
  37. package/polkadot/augment-api-rpc.js +8 -0
  38. package/polkadot/augment-api-rpc.js.map +1 -0
  39. package/polkadot/augment-api-runtime.d.ts +379 -0
  40. package/polkadot/augment-api-runtime.d.ts.map +1 -0
  41. package/polkadot/augment-api-runtime.js +8 -0
  42. package/polkadot/augment-api-runtime.js.map +1 -0
  43. package/polkadot/augment-api-tx.d.ts +6527 -0
  44. package/polkadot/augment-api-tx.d.ts.map +1 -0
  45. package/polkadot/augment-api-tx.js +8 -0
  46. package/polkadot/augment-api-tx.js.map +1 -0
  47. package/polkadot/augment-api.d.ts +8 -0
  48. package/polkadot/augment-api.d.ts.map +1 -0
  49. package/polkadot/augment-api.js +12 -0
  50. package/polkadot/augment-api.js.map +1 -0
  51. package/polkadot/augment-types.d.ts +1246 -0
  52. package/polkadot/augment-types.d.ts.map +1 -0
  53. package/polkadot/augment-types.js +8 -0
  54. package/polkadot/augment-types.js.map +1 -0
  55. package/polkadot/compliance/definitions.d.ts +15 -0
  56. package/polkadot/compliance/definitions.d.ts.map +1 -0
  57. package/polkadot/compliance/definitions.js +26 -0
  58. package/polkadot/compliance/definitions.js.map +1 -0
  59. package/polkadot/compliance/index.d.ts +2 -0
  60. package/polkadot/compliance/index.d.ts.map +1 -0
  61. package/polkadot/compliance/index.js +20 -0
  62. package/polkadot/compliance/index.js.map +1 -0
  63. package/polkadot/compliance/types.d.ts +2 -0
  64. package/polkadot/compliance/types.d.ts.map +1 -0
  65. package/polkadot/compliance/types.js +5 -0
  66. package/polkadot/compliance/types.js.map +1 -0
  67. package/polkadot/definitions.d.ts +11 -0
  68. package/polkadot/definitions.d.ts.map +1 -0
  69. package/polkadot/definitions.js +27 -0
  70. package/polkadot/definitions.js.map +1 -0
  71. package/polkadot/group/definitions.d.ts +25 -0
  72. package/polkadot/group/definitions.d.ts.map +1 -0
  73. package/polkadot/group/definitions.js +30 -0
  74. package/polkadot/group/definitions.js.map +1 -0
  75. package/polkadot/group/index.d.ts +2 -0
  76. package/polkadot/group/index.d.ts.map +1 -0
  77. package/polkadot/group/index.js +20 -0
  78. package/polkadot/group/index.js.map +1 -0
  79. package/polkadot/group/types.d.ts +2 -0
  80. package/polkadot/group/types.d.ts.map +1 -0
  81. package/polkadot/group/types.js +5 -0
  82. package/polkadot/group/types.js.map +1 -0
  83. package/polkadot/identity/definitions.d.ts +61 -0
  84. package/polkadot/identity/definitions.d.ts.map +1 -0
  85. package/polkadot/identity/definitions.js +124 -0
  86. package/polkadot/identity/definitions.js.map +1 -0
  87. package/polkadot/identity/index.d.ts +2 -0
  88. package/polkadot/identity/index.d.ts.map +1 -0
  89. package/polkadot/identity/index.js +20 -0
  90. package/polkadot/identity/index.js.map +1 -0
  91. package/polkadot/identity/types.d.ts +2 -0
  92. package/polkadot/identity/types.d.ts.map +1 -0
  93. package/polkadot/identity/types.js +5 -0
  94. package/polkadot/identity/types.js.map +1 -0
  95. package/polkadot/index.d.ts +2 -0
  96. package/polkadot/index.d.ts.map +1 -0
  97. package/polkadot/index.js +20 -0
  98. package/polkadot/index.js.map +1 -0
  99. package/polkadot/lookup.d.ts +4788 -0
  100. package/polkadot/lookup.d.ts.map +1 -0
  101. package/polkadot/lookup.js +5559 -0
  102. package/polkadot/lookup.js.map +1 -0
  103. package/polkadot/nft/definitions.d.ts +16 -0
  104. package/polkadot/nft/definitions.d.ts.map +1 -0
  105. package/polkadot/nft/definitions.js +39 -0
  106. package/polkadot/nft/definitions.js.map +1 -0
  107. package/polkadot/nft/index.d.ts +2 -0
  108. package/polkadot/nft/index.d.ts.map +1 -0
  109. package/polkadot/nft/index.js +20 -0
  110. package/polkadot/nft/index.js.map +1 -0
  111. package/polkadot/nft/types.d.ts +2 -0
  112. package/polkadot/nft/types.d.ts.map +1 -0
  113. package/polkadot/nft/types.js +5 -0
  114. package/polkadot/nft/types.js.map +1 -0
  115. package/polkadot/pips/definitions.d.ts +34 -0
  116. package/polkadot/pips/definitions.d.ts.map +1 -0
  117. package/polkadot/pips/definitions.js +56 -0
  118. package/polkadot/pips/definitions.js.map +1 -0
  119. package/polkadot/pips/index.d.ts +2 -0
  120. package/polkadot/pips/index.d.ts.map +1 -0
  121. package/polkadot/pips/index.js +20 -0
  122. package/polkadot/pips/index.js.map +1 -0
  123. package/polkadot/pips/types.d.ts +2 -0
  124. package/polkadot/pips/types.d.ts.map +1 -0
  125. package/polkadot/pips/types.js +5 -0
  126. package/polkadot/pips/types.js.map +1 -0
  127. package/polkadot/polymesh/definitions.d.ts +701 -0
  128. package/polkadot/polymesh/definitions.d.ts.map +1 -0
  129. package/polkadot/polymesh/definitions.js +1234 -0
  130. package/polkadot/polymesh/definitions.js.map +1 -0
  131. package/polkadot/polymesh/index.d.ts +2 -0
  132. package/polkadot/polymesh/index.d.ts.map +1 -0
  133. package/polkadot/polymesh/index.js +20 -0
  134. package/polkadot/polymesh/index.js.map +1 -0
  135. package/polkadot/polymesh/types.d.ts +790 -0
  136. package/polkadot/polymesh/types.d.ts.map +1 -0
  137. package/polkadot/polymesh/types.js +5 -0
  138. package/polkadot/polymesh/types.js.map +1 -0
  139. package/polkadot/protocolFee/definitions.d.ts +16 -0
  140. package/polkadot/protocolFee/definitions.d.ts.map +1 -0
  141. package/polkadot/protocolFee/definitions.js +24 -0
  142. package/polkadot/protocolFee/definitions.js.map +1 -0
  143. package/polkadot/protocolFee/index.d.ts +2 -0
  144. package/polkadot/protocolFee/index.d.ts.map +1 -0
  145. package/polkadot/protocolFee/index.js +20 -0
  146. package/polkadot/protocolFee/index.js.map +1 -0
  147. package/polkadot/protocolFee/types.d.ts +2 -0
  148. package/polkadot/protocolFee/types.d.ts.map +1 -0
  149. package/polkadot/protocolFee/types.js +5 -0
  150. package/polkadot/protocolFee/types.js.map +1 -0
  151. package/polkadot/registry.d.ts +366 -0
  152. package/polkadot/registry.d.ts.map +1 -0
  153. package/polkadot/registry.js +8 -0
  154. package/polkadot/registry.js.map +1 -0
  155. package/polkadot/schema.d.ts +897 -0
  156. package/polkadot/schema.d.ts.map +1 -0
  157. package/polkadot/schema.js +1612 -0
  158. package/polkadot/schema.js.map +1 -0
  159. package/polkadot/settlement/definitions.d.ts +41 -0
  160. package/polkadot/settlement/definitions.d.ts.map +1 -0
  161. package/polkadot/settlement/definitions.js +69 -0
  162. package/polkadot/settlement/definitions.js.map +1 -0
  163. package/polkadot/settlement/index.d.ts +2 -0
  164. package/polkadot/settlement/index.d.ts.map +1 -0
  165. package/polkadot/settlement/index.js +20 -0
  166. package/polkadot/settlement/index.js.map +1 -0
  167. package/polkadot/settlement/types.d.ts +2 -0
  168. package/polkadot/settlement/types.d.ts.map +1 -0
  169. package/polkadot/settlement/types.js +5 -0
  170. package/polkadot/settlement/types.js.map +1 -0
  171. package/polkadot/staking/definitions.d.ts +16 -0
  172. package/polkadot/staking/definitions.d.ts.map +1 -0
  173. package/polkadot/staking/definitions.js +19 -0
  174. package/polkadot/staking/definitions.js.map +1 -0
  175. package/polkadot/staking/index.d.ts +2 -0
  176. package/polkadot/staking/index.d.ts.map +1 -0
  177. package/polkadot/staking/index.js +20 -0
  178. package/polkadot/staking/index.js.map +1 -0
  179. package/polkadot/staking/types.d.ts +2 -0
  180. package/polkadot/staking/types.d.ts.map +1 -0
  181. package/polkadot/staking/types.js +5 -0
  182. package/polkadot/staking/types.js.map +1 -0
  183. package/polkadot/types-lookup.d.ts +5930 -0
  184. package/polkadot/types-lookup.d.ts.map +1 -0
  185. package/polkadot/types-lookup.js +8 -0
  186. package/polkadot/types-lookup.js.map +1 -0
  187. package/polkadot/types.d.ts +11 -0
  188. package/polkadot/types.d.ts.map +1 -0
  189. package/polkadot/types.js +29 -0
  190. package/polkadot/types.js.map +1 -0
  191. package/rpc/index.js +2 -2
  192. package/rpc/index.js.map +1 -1
  193. package/runtime/assetApi/v4.d.ts.map +1 -1
  194. package/runtime/assetApi/v4.js +20 -5
  195. package/runtime/assetApi/v4.js.map +1 -1
  196. package/runtime/complianceApi/v2.d.ts.map +1 -1
  197. package/runtime/complianceApi/v2.js +12 -3
  198. package/runtime/complianceApi/v2.js.map +1 -1
  199. package/runtime/identityApi/v4.d.ts.map +1 -1
  200. package/runtime/identityApi/v4.js +46 -10
  201. package/runtime/identityApi/v4.js.map +1 -1
  202. package/runtime/index.js +2 -2
  203. package/runtime/index.js.map +1 -1
  204. package/runtime/nftApi/v2.d.ts.map +1 -1
  205. package/runtime/nftApi/v2.js +16 -4
  206. package/runtime/nftApi/v2.js.map +1 -1
  207. package/runtime/pipsApi/v1.d.ts.map +1 -1
  208. package/runtime/pipsApi/v1.js +18 -3
  209. package/runtime/pipsApi/v1.js.map +1 -1
  210. package/runtime/protocolFeeApi/v1.d.ts +3 -0
  211. package/runtime/protocolFeeApi/v1.d.ts.map +1 -0
  212. package/runtime/protocolFeeApi/v1.js +16 -0
  213. package/runtime/protocolFeeApi/v1.js.map +1 -0
  214. package/runtime/settlementApi/v2.d.ts.map +1 -1
  215. package/runtime/settlementApi/v2.js +28 -6
  216. package/runtime/settlementApi/v2.js.map +1 -1
  217. package/runtime/statisticsApi/v0.js +1 -1
  218. package/runtime/statisticsApi/v0.js.map +1 -1
  219. package/types/7.0.x.json +2 -1
  220. package/types/7.3.x.json +658 -0
  221. package/types/index.d.ts +393 -0
  222. package/types/index.d.ts.map +1 -1
  223. package/types/index.js +3 -1
  224. package/types/index.js.map +1 -1
  225. package/runtime/protocolApi/v1.d.ts +0 -3
  226. package/runtime/protocolApi/v1.d.ts.map +0 -1
  227. package/runtime/protocolApi/v1.js +0 -11
  228. package/runtime/protocolApi/v1.js.map +0 -1
@@ -0,0 +1,807 @@
1
+ import '@polkadot/rpc-core/types/jsonrpc';
2
+ import type { AffirmationCount, Authorization, AuthorizationType, CappedFee, CddStatus, ComplianceReport, DidStatus, ExecuteInstructionInfo, IdentityClaim, IdentityId, InstructionId, KeyIdentityData, Leg, Member, NFTs, PipId, PolymeshAssetId, PortfolioId, ProtocolOp, RpcDidRecords, Signatory, VoteCount } from './polymesh';
3
+ import type { AugmentedRpc } from '@polkadot/rpc-core/types';
4
+ import type { Metadata, StorageKey } from '@polkadot/types';
5
+ import type { Bytes, HashMap, Json, Null, Option, Result, Text, U256, U64, Vec, bool, f64, u32, u64 } from '@polkadot/types-codec';
6
+ import type { AnyNumber, Codec, ITuple } from '@polkadot/types-codec/types';
7
+ import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
8
+ import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
9
+ import type { BeefyVersionedFinalityProof } from '@polkadot/types/interfaces/beefy';
10
+ import type { BlockHash } from '@polkadot/types/interfaces/chain';
11
+ import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
12
+ import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
13
+ import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequestV1 } from '@polkadot/types/interfaces/contracts';
14
+ import type { BlockStats } from '@polkadot/types/interfaces/dev';
15
+ import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
16
+ import type { EthAccount, EthCallRequest, EthFeeHistory, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
17
+ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
18
+ import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
19
+ import type { MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
20
+ import type { StorageKind } from '@polkadot/types/interfaces/offchain';
21
+ import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment';
22
+ import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
23
+ import type { AccountId, Balance, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, Perbill, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';
24
+ import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';
25
+ import type { ApplyExtrinsicResult, ChainProperties, ChainType, DispatchError, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';
26
+ import type { IExtrinsic, Observable } from '@polkadot/types/types';
27
+ export type __AugmentedRpc = AugmentedRpc<() => unknown>;
28
+ declare module '@polkadot/rpc-core/types/jsonrpc' {
29
+ interface RpcInterface {
30
+ asset: {
31
+ /**
32
+ * Returns a vector containing all errors for the transfer. An empty vec means there's no error.
33
+ **/
34
+ transferReport: AugmentedRpc<(sender_portfolio: PortfolioId | {
35
+ did?: any;
36
+ kind?: any;
37
+ } | string | Uint8Array, receiver_portfolio: PortfolioId | {
38
+ did?: any;
39
+ kind?: any;
40
+ } | string | Uint8Array, asset_id: PolymeshAssetId | string | Uint8Array, transfer_value: Balance | AnyNumber | Uint8Array, skip_locked_check: bool | boolean | Uint8Array, blockHash?: Hash | string | Uint8Array) => Observable<Vec<DispatchError>>>;
41
+ };
42
+ author: {
43
+ /**
44
+ * Returns true if the keystore has private keys for the given public key and key type.
45
+ **/
46
+ hasKey: AugmentedRpc<(publicKey: Bytes | string | Uint8Array, keyType: Text | string) => Observable<bool>>;
47
+ /**
48
+ * Returns true if the keystore has private keys for the given session public keys.
49
+ **/
50
+ hasSessionKeys: AugmentedRpc<(sessionKeys: Bytes | string | Uint8Array) => Observable<bool>>;
51
+ /**
52
+ * Insert a key into the keystore.
53
+ **/
54
+ insertKey: AugmentedRpc<(keyType: Text | string, suri: Text | string, publicKey: Bytes | string | Uint8Array) => Observable<Bytes>>;
55
+ /**
56
+ * Returns all pending extrinsics, potentially grouped by sender
57
+ **/
58
+ pendingExtrinsics: AugmentedRpc<() => Observable<Vec<Extrinsic>>>;
59
+ /**
60
+ * Remove given extrinsic from the pool and temporarily ban it to prevent reimporting
61
+ **/
62
+ removeExtrinsic: AugmentedRpc<(bytesOrHash: Vec<ExtrinsicOrHash> | (ExtrinsicOrHash | {
63
+ Hash: any;
64
+ } | {
65
+ Extrinsic: any;
66
+ } | string | Uint8Array)[]) => Observable<Vec<Hash>>>;
67
+ /**
68
+ * Generate new session keys and returns the corresponding public keys
69
+ **/
70
+ rotateKeys: AugmentedRpc<() => Observable<Bytes>>;
71
+ /**
72
+ * Submit and subscribe to watch an extrinsic until unsubscribed
73
+ **/
74
+ submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ExtrinsicStatus>>;
75
+ /**
76
+ * Submit a fully formatted extrinsic for block inclusion
77
+ **/
78
+ submitExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Hash>>;
79
+ };
80
+ babe: {
81
+ /**
82
+ * Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore
83
+ **/
84
+ epochAuthorship: AugmentedRpc<() => Observable<HashMap<AuthorityId, EpochAuthorship>>>;
85
+ };
86
+ beefy: {
87
+ /**
88
+ * Returns hash of the latest BEEFY finalized block as seen by this client.
89
+ **/
90
+ getFinalizedHead: AugmentedRpc<() => Observable<H256>>;
91
+ /**
92
+ * Returns the block most recently finalized by BEEFY, alongside its justification.
93
+ **/
94
+ subscribeJustifications: AugmentedRpc<() => Observable<BeefyVersionedFinalityProof>>;
95
+ };
96
+ chain: {
97
+ /**
98
+ * Get header and body of a relay chain block
99
+ **/
100
+ getBlock: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<SignedBlock>>;
101
+ /**
102
+ * Get the block hash for a specific block
103
+ **/
104
+ getBlockHash: AugmentedRpc<(blockNumber?: BlockNumber | AnyNumber | Uint8Array) => Observable<BlockHash>>;
105
+ /**
106
+ * Get hash of the last finalized block in the canon chain
107
+ **/
108
+ getFinalizedHead: AugmentedRpc<() => Observable<BlockHash>>;
109
+ /**
110
+ * Retrieves the header for a specific block
111
+ **/
112
+ getHeader: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<Header>>;
113
+ /**
114
+ * Retrieves the newest header via subscription
115
+ **/
116
+ subscribeAllHeads: AugmentedRpc<() => Observable<Header>>;
117
+ /**
118
+ * Retrieves the best finalized header via subscription
119
+ **/
120
+ subscribeFinalizedHeads: AugmentedRpc<() => Observable<Header>>;
121
+ /**
122
+ * Retrieves the best header via subscription
123
+ **/
124
+ subscribeNewHeads: AugmentedRpc<() => Observable<Header>>;
125
+ };
126
+ childstate: {
127
+ /**
128
+ * Returns the keys with prefix from a child storage, leave empty to get all the keys
129
+ **/
130
+ getKeys: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
131
+ /**
132
+ * Returns the keys with prefix from a child storage with pagination support
133
+ **/
134
+ getKeysPaged: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
135
+ /**
136
+ * Returns a child storage entry at a specific block state
137
+ **/
138
+ getStorage: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<StorageData>>>;
139
+ /**
140
+ * Returns child storage entries for multiple keys at a specific block state
141
+ **/
142
+ getStorageEntries: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | string | Uint8Array) => Observable<Vec<Option<StorageData>>>>;
143
+ /**
144
+ * Returns the hash of a child storage entry at a block state
145
+ **/
146
+ getStorageHash: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<Hash>>>;
147
+ /**
148
+ * Returns the size of a child storage entry at a block state
149
+ **/
150
+ getStorageSize: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<u64>>>;
151
+ };
152
+ compliance: {
153
+ /**
154
+ * Checks all compliance requirements for the given asset.
155
+ **/
156
+ complianceReport: AugmentedRpc<(asset_id: PolymeshAssetId | string | Uint8Array, sender_identity: IdentityId | string | Uint8Array, receiver_identity: IdentityId | string | Uint8Array) => Observable<Result<ComplianceReport, DispatchError>>>;
157
+ };
158
+ contracts: {
159
+ /**
160
+ * @deprecated Use the runtime interface `api.call.contractsApi.call` instead
161
+ * Executes a call to a contract
162
+ **/
163
+ call: AugmentedRpc<(callRequest: ContractCallRequest | {
164
+ origin?: any;
165
+ dest?: any;
166
+ value?: any;
167
+ gasLimit?: any;
168
+ storageDepositLimit?: any;
169
+ inputData?: any;
170
+ } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractExecResult>>;
171
+ /**
172
+ * @deprecated Use the runtime interface `api.call.contractsApi.getStorage` instead
173
+ * Returns the value under a specified storage key in a contract
174
+ **/
175
+ getStorage: AugmentedRpc<(address: AccountId | string | Uint8Array, key: H256 | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<Bytes>>>;
176
+ /**
177
+ * @deprecated Use the runtime interface `api.call.contractsApi.instantiate` instead
178
+ * Instantiate a new contract
179
+ **/
180
+ instantiate: AugmentedRpc<(request: InstantiateRequestV1 | {
181
+ origin?: any;
182
+ value?: any;
183
+ gasLimit?: any;
184
+ code?: any;
185
+ data?: any;
186
+ salt?: any;
187
+ } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;
188
+ /**
189
+ * @deprecated Not available in newer versions of the contracts interfaces
190
+ * Returns the projected time a given contract will be able to sustain paying its rent
191
+ **/
192
+ rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;
193
+ /**
194
+ * @deprecated Use the runtime interface `api.call.contractsApi.uploadCode` instead
195
+ * Upload new code without instantiating a contract from it
196
+ **/
197
+ uploadCode: AugmentedRpc<(uploadRequest: CodeUploadRequest | {
198
+ origin?: any;
199
+ code?: any;
200
+ storageDepositLimit?: any;
201
+ } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<CodeUploadResult>>;
202
+ };
203
+ dev: {
204
+ /**
205
+ * Reexecute the specified `block_hash` and gather statistics while doing so
206
+ **/
207
+ getBlockStats: AugmentedRpc<(at: Hash | string | Uint8Array) => Observable<Option<BlockStats>>>;
208
+ };
209
+ engine: {
210
+ /**
211
+ * Instructs the manual-seal authorship task to create a new block
212
+ **/
213
+ createBlock: AugmentedRpc<(createEmpty: bool | boolean | Uint8Array, finalize: bool | boolean | Uint8Array, parentHash?: BlockHash | string | Uint8Array) => Observable<CreatedBlock>>;
214
+ /**
215
+ * Instructs the manual-seal authorship task to finalize a block
216
+ **/
217
+ finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable<bool>>;
218
+ };
219
+ eth: {
220
+ /**
221
+ * Returns accounts list.
222
+ **/
223
+ accounts: AugmentedRpc<() => Observable<Vec<H160>>>;
224
+ /**
225
+ * Returns the blockNumber
226
+ **/
227
+ blockNumber: AugmentedRpc<() => Observable<U256>>;
228
+ /**
229
+ * Call contract, returning the output data.
230
+ **/
231
+ call: AugmentedRpc<(request: EthCallRequest | {
232
+ from?: any;
233
+ to?: any;
234
+ gasPrice?: any;
235
+ gas?: any;
236
+ value?: any;
237
+ data?: any;
238
+ nonce?: any;
239
+ } | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;
240
+ /**
241
+ * Returns the chain ID used for transaction signing at the current best block. None is returned if not available.
242
+ **/
243
+ chainId: AugmentedRpc<() => Observable<U64>>;
244
+ /**
245
+ * Returns block author.
246
+ **/
247
+ coinbase: AugmentedRpc<() => Observable<H160>>;
248
+ /**
249
+ * Estimate gas needed for execution of given contract.
250
+ **/
251
+ estimateGas: AugmentedRpc<(request: EthCallRequest | {
252
+ from?: any;
253
+ to?: any;
254
+ gasPrice?: any;
255
+ gas?: any;
256
+ value?: any;
257
+ data?: any;
258
+ nonce?: any;
259
+ } | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
260
+ /**
261
+ * Returns fee history for given block count & reward percentiles
262
+ **/
263
+ feeHistory: AugmentedRpc<(blockCount: U256 | AnyNumber | Uint8Array, newestBlock: BlockNumber | AnyNumber | Uint8Array, rewardPercentiles: Option<Vec<f64>> | null | Uint8Array | Vec<f64> | f64[]) => Observable<EthFeeHistory>>;
264
+ /**
265
+ * Returns current gas price.
266
+ **/
267
+ gasPrice: AugmentedRpc<() => Observable<U256>>;
268
+ /**
269
+ * Returns balance of the given account.
270
+ **/
271
+ getBalance: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
272
+ /**
273
+ * Returns block with given hash.
274
+ **/
275
+ getBlockByHash: AugmentedRpc<(hash: H256 | string | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;
276
+ /**
277
+ * Returns block with given number.
278
+ **/
279
+ getBlockByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;
280
+ /**
281
+ * Returns the number of transactions in a block with given hash.
282
+ **/
283
+ getBlockTransactionCountByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;
284
+ /**
285
+ * Returns the number of transactions in a block with given block number.
286
+ **/
287
+ getBlockTransactionCountByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
288
+ /**
289
+ * Returns the code at given address at given time (block number).
290
+ **/
291
+ getCode: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;
292
+ /**
293
+ * Returns filter changes since last poll.
294
+ **/
295
+ getFilterChanges: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<EthFilterChanges>>;
296
+ /**
297
+ * Returns all logs matching given filter (in a range 'from' - 'to').
298
+ **/
299
+ getFilterLogs: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<Vec<EthLog>>>;
300
+ /**
301
+ * Returns logs matching given filter object.
302
+ **/
303
+ getLogs: AugmentedRpc<(filter: EthFilter | {
304
+ fromBlock?: any;
305
+ toBlock?: any;
306
+ blockHash?: any;
307
+ address?: any;
308
+ topics?: any;
309
+ } | string | Uint8Array) => Observable<Vec<EthLog>>>;
310
+ /**
311
+ * Returns proof for account and storage.
312
+ **/
313
+ getProof: AugmentedRpc<(address: H160 | string | Uint8Array, storageKeys: Vec<H256> | (H256 | string | Uint8Array)[], number: BlockNumber | AnyNumber | Uint8Array) => Observable<EthAccount>>;
314
+ /**
315
+ * Returns content of the storage at given address.
316
+ **/
317
+ getStorageAt: AugmentedRpc<(address: H160 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<H256>>;
318
+ /**
319
+ * Returns transaction at given block hash and index.
320
+ **/
321
+ getTransactionByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;
322
+ /**
323
+ * Returns transaction by given block number and index.
324
+ **/
325
+ getTransactionByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;
326
+ /**
327
+ * Get transaction by its hash.
328
+ **/
329
+ getTransactionByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthTransaction>>;
330
+ /**
331
+ * Returns the number of transactions sent from given address at given time (block number).
332
+ **/
333
+ getTransactionCount: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
334
+ /**
335
+ * Returns transaction receipt by transaction hash.
336
+ **/
337
+ getTransactionReceipt: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthReceipt>>;
338
+ /**
339
+ * Returns an uncles at given block and index.
340
+ **/
341
+ getUncleByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;
342
+ /**
343
+ * Returns an uncles at given block and index.
344
+ **/
345
+ getUncleByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;
346
+ /**
347
+ * Returns the number of uncles in a block with given hash.
348
+ **/
349
+ getUncleCountByBlockHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;
350
+ /**
351
+ * Returns the number of uncles in a block with given block number.
352
+ **/
353
+ getUncleCountByBlockNumber: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
354
+ /**
355
+ * Returns the hash of the current block, the seedHash, and the boundary condition to be met.
356
+ **/
357
+ getWork: AugmentedRpc<() => Observable<EthWork>>;
358
+ /**
359
+ * Returns the number of hashes per second that the node is mining with.
360
+ **/
361
+ hashrate: AugmentedRpc<() => Observable<U256>>;
362
+ /**
363
+ * Returns max priority fee per gas
364
+ **/
365
+ maxPriorityFeePerGas: AugmentedRpc<() => Observable<U256>>;
366
+ /**
367
+ * Returns true if client is actively mining new blocks.
368
+ **/
369
+ mining: AugmentedRpc<() => Observable<bool>>;
370
+ /**
371
+ * Returns id of new block filter.
372
+ **/
373
+ newBlockFilter: AugmentedRpc<() => Observable<U256>>;
374
+ /**
375
+ * Returns id of new filter.
376
+ **/
377
+ newFilter: AugmentedRpc<(filter: EthFilter | {
378
+ fromBlock?: any;
379
+ toBlock?: any;
380
+ blockHash?: any;
381
+ address?: any;
382
+ topics?: any;
383
+ } | string | Uint8Array) => Observable<U256>>;
384
+ /**
385
+ * Returns id of new block filter.
386
+ **/
387
+ newPendingTransactionFilter: AugmentedRpc<() => Observable<U256>>;
388
+ /**
389
+ * Returns protocol version encoded as a string (quotes are necessary).
390
+ **/
391
+ protocolVersion: AugmentedRpc<() => Observable<u64>>;
392
+ /**
393
+ * Sends signed transaction, returning its hash.
394
+ **/
395
+ sendRawTransaction: AugmentedRpc<(bytes: Bytes | string | Uint8Array) => Observable<H256>>;
396
+ /**
397
+ * Sends transaction; will block waiting for signer to return the transaction hash
398
+ **/
399
+ sendTransaction: AugmentedRpc<(tx: EthTransactionRequest | {
400
+ from?: any;
401
+ to?: any;
402
+ gasPrice?: any;
403
+ gas?: any;
404
+ value?: any;
405
+ data?: any;
406
+ nonce?: any;
407
+ } | string | Uint8Array) => Observable<H256>>;
408
+ /**
409
+ * Used for submitting mining hashrate.
410
+ **/
411
+ submitHashrate: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => Observable<bool>>;
412
+ /**
413
+ * Used for submitting a proof-of-work solution.
414
+ **/
415
+ submitWork: AugmentedRpc<(nonce: H64 | string | Uint8Array, headerHash: H256 | string | Uint8Array, mixDigest: H256 | string | Uint8Array) => Observable<bool>>;
416
+ /**
417
+ * Subscribe to Eth subscription.
418
+ **/
419
+ subscribe: AugmentedRpc<(kind: EthSubKind | 'newHeads' | 'logs' | 'newPendingTransactions' | 'syncing' | number | Uint8Array, params?: EthSubParams | {
420
+ None: any;
421
+ } | {
422
+ Logs: any;
423
+ } | string | Uint8Array) => Observable<Null>>;
424
+ /**
425
+ * Returns an object with data about the sync status or false.
426
+ **/
427
+ syncing: AugmentedRpc<() => Observable<EthSyncStatus>>;
428
+ /**
429
+ * Uninstalls filter.
430
+ **/
431
+ uninstallFilter: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<bool>>;
432
+ };
433
+ grandpa: {
434
+ /**
435
+ * Prove finality for the given block number, returning the Justification for the last block in the set.
436
+ **/
437
+ proveFinality: AugmentedRpc<(blockNumber: BlockNumber | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>;
438
+ /**
439
+ * Returns the state of the current best round state as well as the ongoing background rounds
440
+ **/
441
+ roundState: AugmentedRpc<() => Observable<ReportedRoundStates>>;
442
+ /**
443
+ * Subscribes to grandpa justifications
444
+ **/
445
+ subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;
446
+ };
447
+ group: {
448
+ /**
449
+ * Get the CDD members
450
+ **/
451
+ getCDDValidMembers: AugmentedRpc<(blockHash?: Hash | string | Uint8Array) => Observable<Vec<Member>>>;
452
+ /**
453
+ * Get the GC members
454
+ **/
455
+ getGCValidMembers: AugmentedRpc<(blockHash?: Hash | string | Uint8Array) => Observable<Vec<Member>>>;
456
+ };
457
+ identity: {
458
+ /**
459
+ * Used to get the did record values for a given DID
460
+ **/
461
+ getDidRecords: AugmentedRpc<(did: IdentityId | string | Uint8Array, blockHash?: Hash | string | Uint8Array) => Observable<RpcDidRecords>>;
462
+ /**
463
+ * Retrieve status of the DID
464
+ **/
465
+ getDidStatus: AugmentedRpc<(did: Vec<IdentityId> | (IdentityId | string | Uint8Array)[], blockHash?: Hash | string | Uint8Array) => Observable<Vec<DidStatus>>>;
466
+ /**
467
+ * Retrieve authorizations data for a given signatory and filtered using the given authorization type
468
+ **/
469
+ getFilteredAuthorizations: AugmentedRpc<(signatory: Signatory | {
470
+ Identity: any;
471
+ } | {
472
+ Account: any;
473
+ } | string | Uint8Array, allow_expired: bool | boolean | Uint8Array, auth_type?: AuthorizationType | 'AttestPrimaryKeyRotation' | 'RotatePrimaryKey' | 'TransferTicker' | 'AddMultiSigSigner' | 'TransferAssetOwnership' | 'JoinIdentity' | 'PortfolioCustody' | 'BecomeAgent' | 'AddRelayerPayingKey' | 'RotatePrimaryKeyToSecondary' | number | Uint8Array, blockHash?: Hash | string | Uint8Array) => Observable<Vec<Authorization>>>;
474
+ /**
475
+ * Query relation between a signing key and a DID
476
+ **/
477
+ getKeyIdentityData: AugmentedRpc<(acc: AccountId | string | Uint8Array, blockHash?: Hash | string | Uint8Array) => Observable<Option<KeyIdentityData>>>;
478
+ /**
479
+ * use to tell whether the given did has valid cdd claim or not
480
+ **/
481
+ isIdentityHasValidCdd: AugmentedRpc<(did: IdentityId | string | Uint8Array, buffer_time?: u64 | AnyNumber | Uint8Array, blockHash?: Hash | string | Uint8Array) => Observable<CddStatus>>;
482
+ /**
483
+ * Returns all valid IdentityClaim of type CustomerDueDiligence for the given target_identity
484
+ **/
485
+ validCDDClaims: AugmentedRpc<(target_identity: IdentityId | string | Uint8Array, cdd_checker_leeway?: u64 | AnyNumber | Uint8Array, blockHash?: Hash | string | Uint8Array) => Observable<Vec<IdentityClaim>>>;
486
+ };
487
+ mmr: {
488
+ /**
489
+ * Generate MMR proof for the given block numbers.
490
+ **/
491
+ generateProof: AugmentedRpc<(blockNumbers: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafBatchProof>>;
492
+ /**
493
+ * Get the MMR root hash for the current best block.
494
+ **/
495
+ root: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MmrHash>>;
496
+ /**
497
+ * Verify an MMR proof
498
+ **/
499
+ verifyProof: AugmentedRpc<(proof: MmrLeafBatchProof | {
500
+ blockHash?: any;
501
+ leaves?: any;
502
+ proof?: any;
503
+ } | string | Uint8Array) => Observable<bool>>;
504
+ /**
505
+ * Verify an MMR proof statelessly given an mmr_root
506
+ **/
507
+ verifyProofStateless: AugmentedRpc<(root: MmrHash | string | Uint8Array, proof: MmrLeafBatchProof | {
508
+ blockHash?: any;
509
+ leaves?: any;
510
+ proof?: any;
511
+ } | string | Uint8Array) => Observable<bool>>;
512
+ };
513
+ net: {
514
+ /**
515
+ * Returns true if client is actively listening for network connections. Otherwise false.
516
+ **/
517
+ listening: AugmentedRpc<() => Observable<bool>>;
518
+ /**
519
+ * Returns number of peers connected to node.
520
+ **/
521
+ peerCount: AugmentedRpc<() => Observable<Text>>;
522
+ /**
523
+ * Returns protocol version.
524
+ **/
525
+ version: AugmentedRpc<() => Observable<Text>>;
526
+ };
527
+ nft: {
528
+ /**
529
+ * Returns a vector containing all errors for the transfer. An empty vec means there's no error.
530
+ **/
531
+ transferReport: AugmentedRpc<(sender_portfolio: PortfolioId | {
532
+ did?: any;
533
+ kind?: any;
534
+ } | string | Uint8Array, receiver_portfolio: PortfolioId | {
535
+ did?: any;
536
+ kind?: any;
537
+ } | string | Uint8Array, nfts: NFTs | {
538
+ assetId?: any;
539
+ ids?: any;
540
+ } | string | Uint8Array, skip_locked_check: bool | boolean | Uint8Array, blockHash?: Hash | string | Uint8Array) => Observable<Vec<DispatchError>>>;
541
+ };
542
+ offchain: {
543
+ /**
544
+ * Get offchain local storage under given key and prefix
545
+ **/
546
+ localStorageGet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
547
+ /**
548
+ * Set offchain local storage under given key and prefix
549
+ **/
550
+ localStorageSet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => Observable<Null>>;
551
+ };
552
+ payment: {
553
+ /**
554
+ * @deprecated Use `api.call.transactionPaymentApi.queryFeeDetails` instead
555
+ * Query the detailed fee of a given encoded extrinsic
556
+ **/
557
+ queryFeeDetails: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<FeeDetails>>;
558
+ /**
559
+ * @deprecated Use `api.call.transactionPaymentApi.queryInfo` instead
560
+ * Retrieves the fee information for an encoded extrinsic
561
+ **/
562
+ queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfoV1>>;
563
+ };
564
+ pips: {
565
+ /**
566
+ * Summary of votes of a proposal given by index
567
+ **/
568
+ getVotes: AugmentedRpc<(index: PipId | AnyNumber | Uint8Array, blockHash?: Hash | string | Uint8Array) => Observable<VoteCount>>;
569
+ /**
570
+ * Retrieves proposal indices started by address
571
+ **/
572
+ proposedBy: AugmentedRpc<(address: AccountId | string | Uint8Array, blockHash?: Hash | string | Uint8Array) => Observable<Vec<PipId>>>;
573
+ /**
574
+ * Retrieves proposal address indices voted on
575
+ **/
576
+ votedOn: AugmentedRpc<(address: AccountId | string | Uint8Array, blockHash?: Hash | string | Uint8Array) => Observable<Vec<PipId>>>;
577
+ };
578
+ protocolFee: {
579
+ /**
580
+ * Gets the fee of a chargeable extrinsic operation
581
+ **/
582
+ computeFee: AugmentedRpc<(op: ProtocolOp | 'AssetRegisterTicker' | 'AssetIssue' | 'AssetAddDocuments' | 'AssetCreateAsset' | 'CheckpointCreateSchedule' | 'ComplianceManagerAddComplianceRequirement' | 'IdentityCddRegisterDid' | 'IdentityAddClaim' | 'IdentityAddSecondaryKeysWithAuthorization' | 'PipsPropose' | 'ContractsPutCode' | 'CorporateBallotAttachBallot' | 'CapitalDistributionDistribute' | 'NFTCreateCollection' | 'NFTMint' | 'IdentityCreateChildIdentity' | number | Uint8Array, blockHash?: Hash | string | Uint8Array) => Observable<CappedFee>>;
583
+ };
584
+ rpc: {
585
+ /**
586
+ * Retrieves the list of RPC methods that are exposed by the node
587
+ **/
588
+ methods: AugmentedRpc<() => Observable<RpcMethods>>;
589
+ };
590
+ settlement: {
591
+ /**
592
+ * Returns an instance of AffirmationCount, which holds the asset count for both the sender and receiver and the number of offchain assets in the instruction
593
+ **/
594
+ getAffirmationCount: AugmentedRpc<(instruction_id: InstructionId | AnyNumber | Uint8Array, portfolios: Vec<PortfolioId> | (PortfolioId | {
595
+ did?: any;
596
+ kind?: any;
597
+ } | string | Uint8Array)[], blockHash?: Hash | string | Uint8Array) => Observable<AffirmationCount>>;
598
+ /**
599
+ * Returns an ExecuteInstructionInfo instance, containing the consumed weight and the number of tokens in the instruction.
600
+ **/
601
+ getExecuteInstructionInfo: AugmentedRpc<(instruction_id: InstructionId | AnyNumber | Uint8Array, blockHash?: Hash | string | Uint8Array) => Observable<Option<ExecuteInstructionInfo>>>;
602
+ /**
603
+ * Returns a vector containing all errors for the execution. An empty vec means there's no error.
604
+ **/
605
+ getExecuteInstructionReport: AugmentedRpc<(instruction_id: InstructionId | AnyNumber | Uint8Array) => Observable<Vec<DispatchError>>>;
606
+ /**
607
+ * Returns a vector containing all errors for the transfer. An empty vec means there's no error.
608
+ **/
609
+ getTransferReport: AugmentedRpc<(leg: Leg | {
610
+ Fungible: any;
611
+ } | {
612
+ NonFungible: any;
613
+ } | {
614
+ OffChain: any;
615
+ } | string | Uint8Array, skip_locked_check: bool | boolean | Uint8Array) => Observable<Vec<DispatchError>>>;
616
+ };
617
+ staking: {
618
+ /**
619
+ * Retrieves curves parameters
620
+ **/
621
+ getCurve: AugmentedRpc<(blockHash?: Hash | string | Uint8Array) => Observable<Vec<ITuple<[Perbill, Perbill]>>>>;
622
+ };
623
+ state: {
624
+ /**
625
+ * Perform a call to a builtin on the chain
626
+ **/
627
+ call: AugmentedRpc<(method: Text | string, data: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Bytes>>;
628
+ /**
629
+ * Retrieves the keys with prefix of a specific child storage
630
+ **/
631
+ getChildKeys: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
632
+ /**
633
+ * Returns proof of storage for child key entries at a specific block state.
634
+ **/
635
+ getChildReadProof: AugmentedRpc<(childStorageKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;
636
+ /**
637
+ * Retrieves the child storage for a key
638
+ **/
639
+ getChildStorage: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<StorageData>>;
640
+ /**
641
+ * Retrieves the child storage hash
642
+ **/
643
+ getChildStorageHash: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;
644
+ /**
645
+ * Retrieves the child storage size
646
+ **/
647
+ getChildStorageSize: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;
648
+ /**
649
+ * @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys
650
+ * Retrieves the keys with a certain prefix
651
+ **/
652
+ getKeys: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
653
+ /**
654
+ * Returns the keys with prefix with pagination support.
655
+ **/
656
+ getKeysPaged: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
657
+ /**
658
+ * Returns the runtime metadata
659
+ **/
660
+ getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<Metadata>>;
661
+ /**
662
+ * @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys
663
+ * Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)
664
+ **/
665
+ getPairs: AugmentedRpc<(prefix: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<KeyValue>>>;
666
+ /**
667
+ * Returns proof of storage entries at a specific block state
668
+ **/
669
+ getReadProof: AugmentedRpc<(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;
670
+ /**
671
+ * Get the runtime version
672
+ **/
673
+ getRuntimeVersion: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<RuntimeVersion>>;
674
+ /**
675
+ * Retrieves the storage for a key
676
+ **/
677
+ getStorage: AugmentedRpc<(<T = Codec>(key: StorageKey | string | Uint8Array | any, block?: Hash | Uint8Array | string) => Observable<T>)>;
678
+ /**
679
+ * Retrieves the storage hash
680
+ **/
681
+ getStorageHash: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;
682
+ /**
683
+ * Retrieves the storage size
684
+ **/
685
+ getStorageSize: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;
686
+ /**
687
+ * Query historical storage entries (by key) starting from a start block
688
+ **/
689
+ queryStorage: AugmentedRpc<(<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string) => Observable<[Hash, T][]>)>;
690
+ /**
691
+ * Query storage entries (by key) starting at block hash given as the second parameter
692
+ **/
693
+ queryStorageAt: AugmentedRpc<(<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | Uint8Array | string) => Observable<T>)>;
694
+ /**
695
+ * Retrieves the runtime version via subscription
696
+ **/
697
+ subscribeRuntimeVersion: AugmentedRpc<() => Observable<RuntimeVersion>>;
698
+ /**
699
+ * Subscribes to storage changes for the provided keys
700
+ **/
701
+ subscribeStorage: AugmentedRpc<(<T = Codec[]>(keys?: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[]) => Observable<T>)>;
702
+ /**
703
+ * Provides a way to trace the re-execution of a single block
704
+ **/
705
+ traceBlock: AugmentedRpc<(block: Hash | string | Uint8Array, targets: Option<Text> | null | Uint8Array | Text | string, storageKeys: Option<Text> | null | Uint8Array | Text | string, methods: Option<Text> | null | Uint8Array | Text | string) => Observable<TraceBlockResponse>>;
706
+ /**
707
+ * Check current migration state
708
+ **/
709
+ trieMigrationStatus: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MigrationStatusResult>>;
710
+ };
711
+ syncstate: {
712
+ /**
713
+ * Returns the json-serialized chainspec running the node, with a sync state.
714
+ **/
715
+ genSyncSpec: AugmentedRpc<(raw: bool | boolean | Uint8Array) => Observable<Json>>;
716
+ };
717
+ system: {
718
+ /**
719
+ * Retrieves the next accountIndex as available on the node
720
+ **/
721
+ accountNextIndex: AugmentedRpc<(accountId: AccountId | string | Uint8Array) => Observable<Index>>;
722
+ /**
723
+ * Adds the supplied directives to the current log filter
724
+ **/
725
+ addLogFilter: AugmentedRpc<(directives: Text | string) => Observable<Null>>;
726
+ /**
727
+ * Adds a reserved peer
728
+ **/
729
+ addReservedPeer: AugmentedRpc<(peer: Text | string) => Observable<Text>>;
730
+ /**
731
+ * Retrieves the chain
732
+ **/
733
+ chain: AugmentedRpc<() => Observable<Text>>;
734
+ /**
735
+ * Retrieves the chain type
736
+ **/
737
+ chainType: AugmentedRpc<() => Observable<ChainType>>;
738
+ /**
739
+ * Dry run an extrinsic at a given block
740
+ **/
741
+ dryRun: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
742
+ /**
743
+ * Return health status of the node
744
+ **/
745
+ health: AugmentedRpc<() => Observable<Health>>;
746
+ /**
747
+ * The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example
748
+ **/
749
+ localListenAddresses: AugmentedRpc<() => Observable<Vec<Text>>>;
750
+ /**
751
+ * Returns the base58-encoded PeerId of the node
752
+ **/
753
+ localPeerId: AugmentedRpc<() => Observable<Text>>;
754
+ /**
755
+ * Retrieves the node name
756
+ **/
757
+ name: AugmentedRpc<() => Observable<Text>>;
758
+ /**
759
+ * Returns current state of the network
760
+ **/
761
+ networkState: AugmentedRpc<() => Observable<NetworkState>>;
762
+ /**
763
+ * Returns the roles the node is running as
764
+ **/
765
+ nodeRoles: AugmentedRpc<() => Observable<Vec<NodeRole>>>;
766
+ /**
767
+ * Returns the currently connected peers
768
+ **/
769
+ peers: AugmentedRpc<() => Observable<Vec<PeerInfo>>>;
770
+ /**
771
+ * Get a custom set of properties as a JSON object, defined in the chain spec
772
+ **/
773
+ properties: AugmentedRpc<() => Observable<ChainProperties>>;
774
+ /**
775
+ * Remove a reserved peer
776
+ **/
777
+ removeReservedPeer: AugmentedRpc<(peerId: Text | string) => Observable<Text>>;
778
+ /**
779
+ * Returns the list of reserved peers
780
+ **/
781
+ reservedPeers: AugmentedRpc<() => Observable<Vec<Text>>>;
782
+ /**
783
+ * Resets the log filter to Substrate defaults
784
+ **/
785
+ resetLogFilter: AugmentedRpc<() => Observable<Null>>;
786
+ /**
787
+ * Returns the state of the syncing of the node
788
+ **/
789
+ syncState: AugmentedRpc<() => Observable<SyncState>>;
790
+ /**
791
+ * Retrieves the version of the node
792
+ **/
793
+ version: AugmentedRpc<() => Observable<Text>>;
794
+ };
795
+ web3: {
796
+ /**
797
+ * Returns current client version.
798
+ **/
799
+ clientVersion: AugmentedRpc<() => Observable<Text>>;
800
+ /**
801
+ * Returns sha3 of the given data
802
+ **/
803
+ sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable<H256>>;
804
+ };
805
+ }
806
+ }
807
+ //# sourceMappingURL=augment-api-rpc.d.ts.map