@argonprotocol/mainchain 0.0.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 (102) hide show
  1. package/lib/cjs/index.d.ts +14 -0
  2. package/lib/cjs/index.js +37 -0
  3. package/lib/cjs/index.js.map +1 -0
  4. package/lib/cjs/interfaces/augment-api-consts.d.ts +408 -0
  5. package/lib/cjs/interfaces/augment-api-consts.js +8 -0
  6. package/lib/cjs/interfaces/augment-api-consts.js.map +1 -0
  7. package/lib/cjs/interfaces/augment-api-errors.d.ts +807 -0
  8. package/lib/cjs/interfaces/augment-api-errors.js +8 -0
  9. package/lib/cjs/interfaces/augment-api-errors.js.map +1 -0
  10. package/lib/cjs/interfaces/augment-api-events.d.ts +902 -0
  11. package/lib/cjs/interfaces/augment-api-events.js +8 -0
  12. package/lib/cjs/interfaces/augment-api-events.js.map +1 -0
  13. package/lib/cjs/interfaces/augment-api-query.d.ts +640 -0
  14. package/lib/cjs/interfaces/augment-api-query.js +8 -0
  15. package/lib/cjs/interfaces/augment-api-query.js.map +1 -0
  16. package/lib/cjs/interfaces/augment-api-rpc.d.ts +679 -0
  17. package/lib/cjs/interfaces/augment-api-rpc.js +8 -0
  18. package/lib/cjs/interfaces/augment-api-rpc.js.map +1 -0
  19. package/lib/cjs/interfaces/augment-api-runtime.d.ts +204 -0
  20. package/lib/cjs/interfaces/augment-api-runtime.js +8 -0
  21. package/lib/cjs/interfaces/augment-api-runtime.js.map +1 -0
  22. package/lib/cjs/interfaces/augment-api-tx.d.ts +1134 -0
  23. package/lib/cjs/interfaces/augment-api-tx.js +8 -0
  24. package/lib/cjs/interfaces/augment-api-tx.js.map +1 -0
  25. package/lib/cjs/interfaces/augment-api.d.ts +7 -0
  26. package/lib/cjs/interfaces/augment-api.js +12 -0
  27. package/lib/cjs/interfaces/augment-api.js.map +1 -0
  28. package/lib/cjs/interfaces/augment-types.d.ts +1249 -0
  29. package/lib/cjs/interfaces/augment-types.js +8 -0
  30. package/lib/cjs/interfaces/augment-types.js.map +1 -0
  31. package/lib/cjs/interfaces/definitions.d.ts +0 -0
  32. package/lib/cjs/interfaces/definitions.js +2 -0
  33. package/lib/cjs/interfaces/definitions.js.map +1 -0
  34. package/lib/cjs/interfaces/lookup.d.ts +2393 -0
  35. package/lib/cjs/interfaces/lookup.js +2398 -0
  36. package/lib/cjs/interfaces/lookup.js.map +1 -0
  37. package/lib/cjs/interfaces/registry.d.ts +202 -0
  38. package/lib/cjs/interfaces/registry.js +8 -0
  39. package/lib/cjs/interfaces/registry.js.map +1 -0
  40. package/lib/cjs/interfaces/types-lookup.d.ts +2350 -0
  41. package/lib/cjs/interfaces/types-lookup.js +8 -0
  42. package/lib/cjs/interfaces/types-lookup.js.map +1 -0
  43. package/lib/esm/index.d.ts +14 -0
  44. package/lib/esm/index.js +31 -0
  45. package/lib/esm/index.js.map +1 -0
  46. package/lib/esm/interfaces/augment-api-consts.d.ts +408 -0
  47. package/lib/esm/interfaces/augment-api-consts.js +6 -0
  48. package/lib/esm/interfaces/augment-api-consts.js.map +1 -0
  49. package/lib/esm/interfaces/augment-api-errors.d.ts +807 -0
  50. package/lib/esm/interfaces/augment-api-errors.js +6 -0
  51. package/lib/esm/interfaces/augment-api-errors.js.map +1 -0
  52. package/lib/esm/interfaces/augment-api-events.d.ts +902 -0
  53. package/lib/esm/interfaces/augment-api-events.js +6 -0
  54. package/lib/esm/interfaces/augment-api-events.js.map +1 -0
  55. package/lib/esm/interfaces/augment-api-query.d.ts +640 -0
  56. package/lib/esm/interfaces/augment-api-query.js +6 -0
  57. package/lib/esm/interfaces/augment-api-query.js.map +1 -0
  58. package/lib/esm/interfaces/augment-api-rpc.d.ts +679 -0
  59. package/lib/esm/interfaces/augment-api-rpc.js +6 -0
  60. package/lib/esm/interfaces/augment-api-rpc.js.map +1 -0
  61. package/lib/esm/interfaces/augment-api-runtime.d.ts +204 -0
  62. package/lib/esm/interfaces/augment-api-runtime.js +6 -0
  63. package/lib/esm/interfaces/augment-api-runtime.js.map +1 -0
  64. package/lib/esm/interfaces/augment-api-tx.d.ts +1134 -0
  65. package/lib/esm/interfaces/augment-api-tx.js +6 -0
  66. package/lib/esm/interfaces/augment-api-tx.js.map +1 -0
  67. package/lib/esm/interfaces/augment-api.d.ts +7 -0
  68. package/lib/esm/interfaces/augment-api.js +10 -0
  69. package/lib/esm/interfaces/augment-api.js.map +1 -0
  70. package/lib/esm/interfaces/augment-types.d.ts +1249 -0
  71. package/lib/esm/interfaces/augment-types.js +6 -0
  72. package/lib/esm/interfaces/augment-types.js.map +1 -0
  73. package/lib/esm/interfaces/definitions.d.ts +0 -0
  74. package/lib/esm/interfaces/definitions.js +2 -0
  75. package/lib/esm/interfaces/definitions.js.map +1 -0
  76. package/lib/esm/interfaces/lookup.d.ts +2393 -0
  77. package/lib/esm/interfaces/lookup.js +2396 -0
  78. package/lib/esm/interfaces/lookup.js.map +1 -0
  79. package/lib/esm/interfaces/registry.d.ts +202 -0
  80. package/lib/esm/interfaces/registry.js +6 -0
  81. package/lib/esm/interfaces/registry.js.map +1 -0
  82. package/lib/esm/interfaces/types-lookup.d.ts +2350 -0
  83. package/lib/esm/interfaces/types-lookup.js +6 -0
  84. package/lib/esm/interfaces/types-lookup.js.map +1 -0
  85. package/lib/tsconfig-cjs.tsbuildinfo +1 -0
  86. package/lib/tsconfig-types.tsbuildinfo +1 -0
  87. package/lib/tsconfig.tsbuildinfo +1 -0
  88. package/lib/types/index.d.ts +14 -0
  89. package/lib/types/interfaces/augment-api-consts.d.ts +408 -0
  90. package/lib/types/interfaces/augment-api-errors.d.ts +807 -0
  91. package/lib/types/interfaces/augment-api-events.d.ts +902 -0
  92. package/lib/types/interfaces/augment-api-query.d.ts +640 -0
  93. package/lib/types/interfaces/augment-api-rpc.d.ts +679 -0
  94. package/lib/types/interfaces/augment-api-runtime.d.ts +204 -0
  95. package/lib/types/interfaces/augment-api-tx.d.ts +1134 -0
  96. package/lib/types/interfaces/augment-api.d.ts +7 -0
  97. package/lib/types/interfaces/augment-types.d.ts +1249 -0
  98. package/lib/types/interfaces/definitions.d.ts +0 -0
  99. package/lib/types/interfaces/lookup.d.ts +2393 -0
  100. package/lib/types/interfaces/registry.d.ts +202 -0
  101. package/lib/types/interfaces/types-lookup.d.ts +2350 -0
  102. package/package.json +62 -0
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,204 @@
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
+ }
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}