@polymeshassociation/polymesh-sdk 27.7.0 → 27.8.0-beta.1

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