@argonprotocol/mainchain 1.0.18 → 1.1.0-rc.2

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 (156) hide show
  1. package/README.md +110 -3
  2. package/lib/cli.cjs +3078 -0
  3. package/lib/cli.cjs.map +1 -0
  4. package/lib/cli.d.cts +1 -0
  5. package/lib/cli.d.ts +1 -0
  6. package/lib/cli.js +3073 -0
  7. package/lib/cli.js.map +1 -0
  8. package/lib/clis/index.cjs +3097 -0
  9. package/lib/clis/index.cjs.map +1 -0
  10. package/lib/clis/index.d.cts +26 -0
  11. package/lib/clis/index.d.ts +26 -0
  12. package/lib/clis/index.js +3077 -0
  13. package/lib/clis/index.js.map +1 -0
  14. package/lib/index.cjs +2402 -0
  15. package/lib/index.cjs.map +1 -0
  16. package/lib/index.d.cts +11542 -0
  17. package/lib/index.d.ts +11542 -0
  18. package/lib/index.js +2333 -0
  19. package/lib/index.js.map +1 -0
  20. package/lib/test-utils/index.cjs +2933 -0
  21. package/lib/test-utils/index.cjs.map +1 -0
  22. package/lib/test-utils/index.d.cts +180 -0
  23. package/lib/test-utils/index.d.ts +180 -0
  24. package/lib/test-utils/index.js +2915 -0
  25. package/lib/test-utils/index.js.map +1 -0
  26. package/package.json +50 -45
  27. package/lib/cjs/WageProtector.d.ts +0 -37
  28. package/lib/cjs/WageProtector.js +0 -64
  29. package/lib/cjs/WageProtector.js.map +0 -1
  30. package/lib/cjs/__test__/WageProtector.test.d.ts +0 -1
  31. package/lib/cjs/__test__/WageProtector.test.js +0 -28
  32. package/lib/cjs/__test__/WageProtector.test.js.map +0 -1
  33. package/lib/cjs/examples/decodePkcs.d.ts +0 -1
  34. package/lib/cjs/examples/decodePkcs.js +0 -48
  35. package/lib/cjs/examples/decodePkcs.js.map +0 -1
  36. package/lib/cjs/examples/findSs58Formats.d.ts +0 -1
  37. package/lib/cjs/examples/findSs58Formats.js +0 -42
  38. package/lib/cjs/examples/findSs58Formats.js.map +0 -1
  39. package/lib/cjs/index.d.ts +0 -32
  40. package/lib/cjs/index.js +0 -60
  41. package/lib/cjs/index.js.map +0 -1
  42. package/lib/cjs/interfaces/augment-api-consts.d.ts +0 -442
  43. package/lib/cjs/interfaces/augment-api-consts.js +0 -8
  44. package/lib/cjs/interfaces/augment-api-consts.js.map +0 -1
  45. package/lib/cjs/interfaces/augment-api-errors.d.ts +0 -919
  46. package/lib/cjs/interfaces/augment-api-errors.js +0 -8
  47. package/lib/cjs/interfaces/augment-api-errors.js.map +0 -1
  48. package/lib/cjs/interfaces/augment-api-events.d.ts +0 -1675
  49. package/lib/cjs/interfaces/augment-api-events.js +0 -8
  50. package/lib/cjs/interfaces/augment-api-events.js.map +0 -1
  51. package/lib/cjs/interfaces/augment-api-query.d.ts +0 -988
  52. package/lib/cjs/interfaces/augment-api-query.js +0 -8
  53. package/lib/cjs/interfaces/augment-api-query.js.map +0 -1
  54. package/lib/cjs/interfaces/augment-api-rpc.d.ts +0 -683
  55. package/lib/cjs/interfaces/augment-api-rpc.js +0 -8
  56. package/lib/cjs/interfaces/augment-api-rpc.js.map +0 -1
  57. package/lib/cjs/interfaces/augment-api-runtime.d.ts +0 -204
  58. package/lib/cjs/interfaces/augment-api-runtime.js +0 -8
  59. package/lib/cjs/interfaces/augment-api-runtime.js.map +0 -1
  60. package/lib/cjs/interfaces/augment-api-tx.d.ts +0 -1605
  61. package/lib/cjs/interfaces/augment-api-tx.js +0 -8
  62. package/lib/cjs/interfaces/augment-api-tx.js.map +0 -1
  63. package/lib/cjs/interfaces/augment-api.d.ts +0 -7
  64. package/lib/cjs/interfaces/augment-api.js +0 -12
  65. package/lib/cjs/interfaces/augment-api.js.map +0 -1
  66. package/lib/cjs/interfaces/augment-types.d.ts +0 -1316
  67. package/lib/cjs/interfaces/augment-types.js +0 -8
  68. package/lib/cjs/interfaces/augment-types.js.map +0 -1
  69. package/lib/cjs/interfaces/definitions.d.ts +0 -0
  70. package/lib/cjs/interfaces/definitions.js +0 -2
  71. package/lib/cjs/interfaces/definitions.js.map +0 -1
  72. package/lib/cjs/interfaces/lookup.d.ts +0 -2999
  73. package/lib/cjs/interfaces/lookup.js +0 -3262
  74. package/lib/cjs/interfaces/lookup.js.map +0 -1
  75. package/lib/cjs/interfaces/registry.d.ts +0 -250
  76. package/lib/cjs/interfaces/registry.js +0 -8
  77. package/lib/cjs/interfaces/registry.js.map +0 -1
  78. package/lib/cjs/interfaces/types-lookup.d.ts +0 -2974
  79. package/lib/cjs/interfaces/types-lookup.js +0 -8
  80. package/lib/cjs/interfaces/types-lookup.js.map +0 -1
  81. package/lib/cjs/package.json +0 -3
  82. package/lib/esm/WageProtector.d.ts +0 -37
  83. package/lib/esm/WageProtector.js +0 -60
  84. package/lib/esm/WageProtector.js.map +0 -1
  85. package/lib/esm/__test__/WageProtector.test.d.ts +0 -1
  86. package/lib/esm/__test__/WageProtector.test.js +0 -26
  87. package/lib/esm/__test__/WageProtector.test.js.map +0 -1
  88. package/lib/esm/examples/decodePkcs.d.ts +0 -1
  89. package/lib/esm/examples/decodePkcs.js +0 -45
  90. package/lib/esm/examples/decodePkcs.js.map +0 -1
  91. package/lib/esm/examples/findSs58Formats.d.ts +0 -1
  92. package/lib/esm/examples/findSs58Formats.js +0 -39
  93. package/lib/esm/examples/findSs58Formats.js.map +0 -1
  94. package/lib/esm/index.d.ts +0 -32
  95. package/lib/esm/index.js +0 -50
  96. package/lib/esm/index.js.map +0 -1
  97. package/lib/esm/interfaces/augment-api-consts.d.ts +0 -442
  98. package/lib/esm/interfaces/augment-api-consts.js +0 -6
  99. package/lib/esm/interfaces/augment-api-consts.js.map +0 -1
  100. package/lib/esm/interfaces/augment-api-errors.d.ts +0 -919
  101. package/lib/esm/interfaces/augment-api-errors.js +0 -6
  102. package/lib/esm/interfaces/augment-api-errors.js.map +0 -1
  103. package/lib/esm/interfaces/augment-api-events.d.ts +0 -1675
  104. package/lib/esm/interfaces/augment-api-events.js +0 -6
  105. package/lib/esm/interfaces/augment-api-events.js.map +0 -1
  106. package/lib/esm/interfaces/augment-api-query.d.ts +0 -988
  107. package/lib/esm/interfaces/augment-api-query.js +0 -6
  108. package/lib/esm/interfaces/augment-api-query.js.map +0 -1
  109. package/lib/esm/interfaces/augment-api-rpc.d.ts +0 -683
  110. package/lib/esm/interfaces/augment-api-rpc.js +0 -6
  111. package/lib/esm/interfaces/augment-api-rpc.js.map +0 -1
  112. package/lib/esm/interfaces/augment-api-runtime.d.ts +0 -204
  113. package/lib/esm/interfaces/augment-api-runtime.js +0 -6
  114. package/lib/esm/interfaces/augment-api-runtime.js.map +0 -1
  115. package/lib/esm/interfaces/augment-api-tx.d.ts +0 -1605
  116. package/lib/esm/interfaces/augment-api-tx.js +0 -6
  117. package/lib/esm/interfaces/augment-api-tx.js.map +0 -1
  118. package/lib/esm/interfaces/augment-api.d.ts +0 -7
  119. package/lib/esm/interfaces/augment-api.js +0 -10
  120. package/lib/esm/interfaces/augment-api.js.map +0 -1
  121. package/lib/esm/interfaces/augment-types.d.ts +0 -1316
  122. package/lib/esm/interfaces/augment-types.js +0 -6
  123. package/lib/esm/interfaces/augment-types.js.map +0 -1
  124. package/lib/esm/interfaces/definitions.d.ts +0 -0
  125. package/lib/esm/interfaces/definitions.js +0 -2
  126. package/lib/esm/interfaces/definitions.js.map +0 -1
  127. package/lib/esm/interfaces/lookup.d.ts +0 -2999
  128. package/lib/esm/interfaces/lookup.js +0 -3260
  129. package/lib/esm/interfaces/lookup.js.map +0 -1
  130. package/lib/esm/interfaces/registry.d.ts +0 -250
  131. package/lib/esm/interfaces/registry.js +0 -6
  132. package/lib/esm/interfaces/registry.js.map +0 -1
  133. package/lib/esm/interfaces/types-lookup.d.ts +0 -2974
  134. package/lib/esm/interfaces/types-lookup.js +0 -6
  135. package/lib/esm/interfaces/types-lookup.js.map +0 -1
  136. package/lib/tsconfig-cjs.tsbuildinfo +0 -1
  137. package/lib/tsconfig-types.tsbuildinfo +0 -1
  138. package/lib/tsconfig.tsbuildinfo +0 -1
  139. package/lib/types/WageProtector.d.ts +0 -37
  140. package/lib/types/__test__/WageProtector.test.d.ts +0 -1
  141. package/lib/types/examples/decodePkcs.d.ts +0 -1
  142. package/lib/types/examples/findSs58Formats.d.ts +0 -1
  143. package/lib/types/index.d.ts +0 -32
  144. package/lib/types/interfaces/augment-api-consts.d.ts +0 -442
  145. package/lib/types/interfaces/augment-api-errors.d.ts +0 -919
  146. package/lib/types/interfaces/augment-api-events.d.ts +0 -1675
  147. package/lib/types/interfaces/augment-api-query.d.ts +0 -988
  148. package/lib/types/interfaces/augment-api-rpc.d.ts +0 -683
  149. package/lib/types/interfaces/augment-api-runtime.d.ts +0 -204
  150. package/lib/types/interfaces/augment-api-tx.d.ts +0 -1605
  151. package/lib/types/interfaces/augment-api.d.ts +0 -7
  152. package/lib/types/interfaces/augment-types.d.ts +0 -1316
  153. package/lib/types/interfaces/definitions.d.ts +0 -0
  154. package/lib/types/interfaces/lookup.d.ts +0 -2999
  155. package/lib/types/interfaces/registry.d.ts +0 -250
  156. package/lib/types/interfaces/types-lookup.d.ts +0 -2974
@@ -1,8 +0,0 @@
1
- "use strict";
2
- // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
3
- /* eslint-disable */
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- // import type lookup before we augment - in some environments
6
- // this is required to allow for ambient/previous definitions
7
- require("@polkadot/rpc-core/types/jsonrpc");
8
- //# sourceMappingURL=augment-api-rpc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"augment-api-rpc.js","sourceRoot":"","sources":["../../../src/interfaces/augment-api-rpc.ts"],"names":[],"mappings":";AAAA,mEAAmE;AACnE,oBAAoB;;AAEpB,8DAA8D;AAC9D,6DAA6D;AAC7D,4CAA0C"}
@@ -1,204 +0,0 @@
1
- import '@polkadot/api-base/types/calls';
2
- import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
3
- import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
4
- import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
- import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
6
- import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
7
- import type { BlockHash } from '@polkadot/types/interfaces/chain';
8
- import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
9
- import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
10
- import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
11
- import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
12
- import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
13
- import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
14
- import type { AccountId, Balance, Block, Call, ExtrinsicInclusionMode, Header, Index, KeyTypeId, Weight } from '@polkadot/types/interfaces/runtime';
15
- import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
16
- import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
17
- import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
18
- import type { IExtrinsic, Observable } from '@polkadot/types/types';
19
- export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
20
- export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
21
- declare module '@polkadot/api-base/types/calls' {
22
- interface AugmentedCalls<ApiType extends ApiTypes> {
23
- /** 0xbc9d89904f5b923f/1 */
24
- accountNonceApi: {
25
- /**
26
- * The API to query account nonce (aka transaction index)
27
- **/
28
- accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
29
- };
30
- /** 0x40fe3ad401f8959a/6 */
31
- blockBuilder: {
32
- /**
33
- * Apply the given extrinsic.
34
- **/
35
- applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
36
- /**
37
- * Check that the inherents are valid.
38
- **/
39
- checkInherents: AugmentedCall<ApiType, (block: Block | {
40
- header?: any;
41
- extrinsics?: any;
42
- } | string | Uint8Array, data: InherentData | {
43
- data?: any;
44
- } | string | Uint8Array) => Observable<CheckInherentsResult>>;
45
- /**
46
- * Finish the current block.
47
- **/
48
- finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
49
- /**
50
- * Generate inherent extrinsics.
51
- **/
52
- inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | {
53
- data?: any;
54
- } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
55
- };
56
- /** 0xdf6acb689907609b/5 */
57
- core: {
58
- /**
59
- * Execute the given block.
60
- **/
61
- executeBlock: AugmentedCall<ApiType, (block: Block | {
62
- header?: any;
63
- extrinsics?: any;
64
- } | string | Uint8Array) => Observable<Null>>;
65
- /**
66
- * Initialize a block with the given header.
67
- **/
68
- initializeBlock: AugmentedCall<ApiType, (header: Header | {
69
- parentHash?: any;
70
- number?: any;
71
- stateRoot?: any;
72
- extrinsicsRoot?: any;
73
- digest?: any;
74
- } | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
75
- /**
76
- * Returns the version of the runtime.
77
- **/
78
- version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
79
- };
80
- /** 0xfbc577b9d747efd6/1 */
81
- genesisBuilder: {
82
- /**
83
- * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
84
- **/
85
- buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
86
- /**
87
- * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
88
- **/
89
- createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
90
- };
91
- /** 0xed99c5acb25eedf5/3 */
92
- grandpaApi: {
93
- /**
94
- * Get current GRANDPA authority set id.
95
- **/
96
- currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
97
- /**
98
- * Generates a proof of key ownership for the given authority in the given set.
99
- **/
100
- generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
101
- /**
102
- * Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
103
- **/
104
- grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
105
- /**
106
- * Submits an unsigned extrinsic to report an equivocation.
107
- **/
108
- submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | {
109
- setId?: any;
110
- equivocation?: any;
111
- } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
112
- };
113
- /** 0x37e397fc7c91f5e4/2 */
114
- metadata: {
115
- /**
116
- * Returns the metadata of a runtime
117
- **/
118
- metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
119
- /**
120
- * Returns the metadata at a given version.
121
- **/
122
- metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
123
- /**
124
- * Returns the supported metadata versions.
125
- **/
126
- metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
127
- };
128
- /** 0xf78b278be53f454c/2 */
129
- offchainWorkerApi: {
130
- /**
131
- * Starts the off-chain task for given block header.
132
- **/
133
- offchainWorker: AugmentedCall<ApiType, (header: Header | {
134
- parentHash?: any;
135
- number?: any;
136
- stateRoot?: any;
137
- extrinsicsRoot?: any;
138
- digest?: any;
139
- } | string | Uint8Array) => Observable<Null>>;
140
- };
141
- /** 0xab3c0572291feb8b/1 */
142
- sessionKeys: {
143
- /**
144
- * Decode the given public session keys.
145
- **/
146
- decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
147
- /**
148
- * Generate a set of session keys with optionally using the given seed.
149
- **/
150
- generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
151
- };
152
- /** 0xd2bc9897eed08f15/3 */
153
- taggedTransactionQueue: {
154
- /**
155
- * Validate the transaction.
156
- **/
157
- validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
158
- };
159
- /** 0x37c8bb1350a9a2a8/4 */
160
- transactionPaymentApi: {
161
- /**
162
- * The transaction fee details
163
- **/
164
- queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
165
- /**
166
- * The transaction info
167
- **/
168
- queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
169
- /**
170
- * Query the output of the current LengthToFee given some input
171
- **/
172
- queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
173
- /**
174
- * Query the output of the current WeightToFee given some input
175
- **/
176
- queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | {
177
- refTime?: any;
178
- proofSize?: any;
179
- } | string | Uint8Array) => Observable<Balance>>;
180
- };
181
- /** 0xf3ff14d5ab527059/3 */
182
- transactionPaymentCallApi: {
183
- /**
184
- * The call fee details
185
- **/
186
- queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
187
- /**
188
- * The call info
189
- **/
190
- queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
191
- /**
192
- * Query the output of the current LengthToFee given some input
193
- **/
194
- queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
195
- /**
196
- * Query the output of the current WeightToFee given some input
197
- **/
198
- queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | {
199
- refTime?: any;
200
- proofSize?: any;
201
- } | string | Uint8Array) => Observable<Balance>>;
202
- };
203
- }
204
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
3
- /* eslint-disable */
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- // import type lookup before we augment - in some environments
6
- // this is required to allow for ambient/previous definitions
7
- require("@polkadot/api-base/types/calls");
8
- //# sourceMappingURL=augment-api-runtime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"augment-api-runtime.js","sourceRoot":"","sources":["../../../src/interfaces/augment-api-runtime.ts"],"names":[],"mappings":";AAAA,mEAAmE;AACnE,oBAAoB;;AAEpB,8DAA8D;AAC9D,6DAA6D;AAC7D,0CAAwC"}