@argonprotocol/mainchain 1.4.3 → 1.4.4-dev.abb08dac

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 (35) hide show
  1. package/browser/artifacts/contracts/ArgonToken.sol/ArgonToken.json +671 -0
  2. package/browser/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +671 -0
  3. package/browser/artifacts/contracts/MintingGateway.sol/MintingGateway.json +1688 -0
  4. package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +135 -0
  5. package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +131 -0
  6. package/browser/index.d.ts +2875 -1792
  7. package/browser/index.js +6827 -200
  8. package/browser/index.js.map +1 -1
  9. package/lib/artifacts/contracts/ArgonToken.sol/ArgonToken.json +671 -0
  10. package/lib/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +671 -0
  11. package/lib/artifacts/contracts/MintingGateway.sol/MintingGateway.json +1688 -0
  12. package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +135 -0
  13. package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +131 -0
  14. package/lib/index.cjs +6915 -266
  15. package/lib/index.cjs.map +1 -1
  16. package/lib/index.d.cts +2875 -1792
  17. package/lib/index.d.ts +2875 -1792
  18. package/lib/index.js +6855 -206
  19. package/lib/index.js.map +1 -1
  20. package/package.json +29 -26
  21. package/src/interfaces/augment-api-consts.ts +656 -0
  22. package/src/interfaces/augment-api-errors.ts +1376 -0
  23. package/src/interfaces/augment-api-events.ts +2098 -0
  24. package/src/interfaces/augment-api-query.ts +1809 -0
  25. package/src/interfaces/augment-api-rpc.ts +1133 -0
  26. package/src/interfaces/augment-api-runtime.ts +306 -0
  27. package/src/interfaces/augment-api-tx.ts +2298 -0
  28. package/src/interfaces/augment-api.ts +10 -0
  29. package/src/interfaces/augment-types.ts +2692 -0
  30. package/src/interfaces/definitions.ts +42 -0
  31. package/src/interfaces/ethereum/index.ts +4 -0
  32. package/src/interfaces/ethereum/types.ts +66 -0
  33. package/src/interfaces/lookup.ts +4167 -0
  34. package/src/interfaces/registry.ts +598 -0
  35. package/src/interfaces/types-lookup.ts +4868 -0
@@ -0,0 +1,306 @@
1
+ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
3
+
4
+ // import type lookup before we augment - in some environments
5
+ // this is required to allow for ambient/previous definitions
6
+ import type {} from '@polkadot/api-base/types/calls';
7
+
8
+ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
9
+ import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
10
+ import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
11
+ import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
12
+ import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
13
+ import type { BlockHash } from '@polkadot/types/interfaces/chain';
14
+ import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
15
+ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
16
+ import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
17
+ import type {
18
+ AuthorityList,
19
+ GrandpaEquivocationProof,
20
+ SetId,
21
+ } from '@polkadot/types/interfaces/grandpa';
22
+ import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
23
+ import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
24
+ import type {
25
+ AccountId,
26
+ Balance,
27
+ Block,
28
+ Call,
29
+ ExtrinsicInclusionMode,
30
+ Header,
31
+ Index,
32
+ Weight,
33
+ } from '@polkadot/types/interfaces/runtime';
34
+ import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
35
+ import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
36
+ import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
37
+ import type { IExtrinsic, Observable } from '@polkadot/types/types';
38
+
39
+ export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
40
+ export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
41
+
42
+ declare module '@polkadot/api-base/types/calls' {
43
+ interface AugmentedCalls<ApiType extends ApiTypes> {
44
+ /** 0xbc9d89904f5b923f/1 */
45
+ accountNonceApi: {
46
+ /**
47
+ * The API to query account nonce (aka transaction index)
48
+ **/
49
+ accountNonce: AugmentedCall<
50
+ ApiType,
51
+ (accountId: AccountId | string | Uint8Array) => Observable<Index>
52
+ >;
53
+ };
54
+ /** 0x40fe3ad401f8959a/6 */
55
+ blockBuilder: {
56
+ /**
57
+ * Apply the given extrinsic.
58
+ **/
59
+ applyExtrinsic: AugmentedCall<
60
+ ApiType,
61
+ (
62
+ extrinsic: Extrinsic | IExtrinsic | string | Uint8Array,
63
+ ) => Observable<ApplyExtrinsicResult>
64
+ >;
65
+ /**
66
+ * Check that the inherents are valid.
67
+ **/
68
+ checkInherents: AugmentedCall<
69
+ ApiType,
70
+ (
71
+ block: Block | { header?: any; extrinsics?: any } | string | Uint8Array,
72
+ data: InherentData | { data?: any } | string | Uint8Array,
73
+ ) => Observable<CheckInherentsResult>
74
+ >;
75
+ /**
76
+ * Finish the current block.
77
+ **/
78
+ finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
79
+ /**
80
+ * Generate inherent extrinsics.
81
+ **/
82
+ inherentExtrinsics: AugmentedCall<
83
+ ApiType,
84
+ (
85
+ inherent: InherentData | { data?: any } | string | Uint8Array,
86
+ ) => Observable<Vec<Extrinsic>>
87
+ >;
88
+ };
89
+ /** 0xdf6acb689907609b/5 */
90
+ core: {
91
+ /**
92
+ * Execute the given block.
93
+ **/
94
+ executeBlock: AugmentedCall<
95
+ ApiType,
96
+ (
97
+ block: Block | { header?: any; extrinsics?: any } | string | Uint8Array,
98
+ ) => Observable<Null>
99
+ >;
100
+ /**
101
+ * Initialize a block with the given header.
102
+ **/
103
+ initializeBlock: AugmentedCall<
104
+ ApiType,
105
+ (
106
+ header:
107
+ | Header
108
+ | {
109
+ parentHash?: any;
110
+ number?: any;
111
+ stateRoot?: any;
112
+ extrinsicsRoot?: any;
113
+ digest?: any;
114
+ }
115
+ | string
116
+ | Uint8Array,
117
+ ) => Observable<ExtrinsicInclusionMode>
118
+ >;
119
+ /**
120
+ * Returns the version of the runtime.
121
+ **/
122
+ version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
123
+ };
124
+ /** 0xfbc577b9d747efd6/1 */
125
+ genesisBuilder: {
126
+ /**
127
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
128
+ **/
129
+ buildConfig: AugmentedCall<
130
+ ApiType,
131
+ (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>
132
+ >;
133
+ /**
134
+ * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
135
+ **/
136
+ createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
137
+ };
138
+ /** 0xed99c5acb25eedf5/3 */
139
+ grandpaApi: {
140
+ /**
141
+ * Get current GRANDPA authority set id.
142
+ **/
143
+ currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
144
+ /**
145
+ * Generates a proof of key ownership for the given authority in the given set.
146
+ **/
147
+ generateKeyOwnershipProof: AugmentedCall<
148
+ ApiType,
149
+ (
150
+ setId: SetId | AnyNumber | Uint8Array,
151
+ authorityId: AuthorityId | string | Uint8Array,
152
+ ) => Observable<Option<OpaqueKeyOwnershipProof>>
153
+ >;
154
+ /**
155
+ * Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
156
+ **/
157
+ grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
158
+ /**
159
+ * Submits an unsigned extrinsic to report an equivocation.
160
+ **/
161
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<
162
+ ApiType,
163
+ (
164
+ equivocationProof:
165
+ | GrandpaEquivocationProof
166
+ | { setId?: any; equivocation?: any }
167
+ | string
168
+ | Uint8Array,
169
+ keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array,
170
+ ) => Observable<Option<Null>>
171
+ >;
172
+ };
173
+ /** 0x37e397fc7c91f5e4/2 */
174
+ metadata: {
175
+ /**
176
+ * Returns the metadata of a runtime
177
+ **/
178
+ metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
179
+ /**
180
+ * Returns the metadata at a given version.
181
+ **/
182
+ metadataAtVersion: AugmentedCall<
183
+ ApiType,
184
+ (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>
185
+ >;
186
+ /**
187
+ * Returns the supported metadata versions.
188
+ **/
189
+ metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
190
+ };
191
+ /** 0xf78b278be53f454c/2 */
192
+ offchainWorkerApi: {
193
+ /**
194
+ * Starts the off-chain task for given block header.
195
+ **/
196
+ offchainWorker: AugmentedCall<
197
+ ApiType,
198
+ (
199
+ header:
200
+ | Header
201
+ | {
202
+ parentHash?: any;
203
+ number?: any;
204
+ stateRoot?: any;
205
+ extrinsicsRoot?: any;
206
+ digest?: any;
207
+ }
208
+ | string
209
+ | Uint8Array,
210
+ ) => Observable<Null>
211
+ >;
212
+ };
213
+ /** 0xd2bc9897eed08f15/3 */
214
+ taggedTransactionQueue: {
215
+ /**
216
+ * Validate the transaction.
217
+ **/
218
+ validateTransaction: AugmentedCall<
219
+ ApiType,
220
+ (
221
+ source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array,
222
+ tx: Extrinsic | IExtrinsic | string | Uint8Array,
223
+ blockHash: BlockHash | string | Uint8Array,
224
+ ) => Observable<TransactionValidity>
225
+ >;
226
+ };
227
+ /** 0x37c8bb1350a9a2a8/4 */
228
+ transactionPaymentApi: {
229
+ /**
230
+ * The transaction fee details
231
+ **/
232
+ queryFeeDetails: AugmentedCall<
233
+ ApiType,
234
+ (
235
+ uxt: Extrinsic | IExtrinsic | string | Uint8Array,
236
+ len: u32 | AnyNumber | Uint8Array,
237
+ ) => Observable<FeeDetails>
238
+ >;
239
+ /**
240
+ * The transaction info
241
+ **/
242
+ queryInfo: AugmentedCall<
243
+ ApiType,
244
+ (
245
+ uxt: Extrinsic | IExtrinsic | string | Uint8Array,
246
+ len: u32 | AnyNumber | Uint8Array,
247
+ ) => Observable<RuntimeDispatchInfo>
248
+ >;
249
+ /**
250
+ * Query the output of the current LengthToFee given some input
251
+ **/
252
+ queryLengthToFee: AugmentedCall<
253
+ ApiType,
254
+ (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>
255
+ >;
256
+ /**
257
+ * Query the output of the current WeightToFee given some input
258
+ **/
259
+ queryWeightToFee: AugmentedCall<
260
+ ApiType,
261
+ (
262
+ weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array,
263
+ ) => Observable<Balance>
264
+ >;
265
+ };
266
+ /** 0xf3ff14d5ab527059/3 */
267
+ transactionPaymentCallApi: {
268
+ /**
269
+ * The call fee details
270
+ **/
271
+ queryCallFeeDetails: AugmentedCall<
272
+ ApiType,
273
+ (
274
+ call: Call | IMethod | string | Uint8Array,
275
+ len: u32 | AnyNumber | Uint8Array,
276
+ ) => Observable<FeeDetails>
277
+ >;
278
+ /**
279
+ * The call info
280
+ **/
281
+ queryCallInfo: AugmentedCall<
282
+ ApiType,
283
+ (
284
+ call: Call | IMethod | string | Uint8Array,
285
+ len: u32 | AnyNumber | Uint8Array,
286
+ ) => Observable<RuntimeDispatchInfo>
287
+ >;
288
+ /**
289
+ * Query the output of the current LengthToFee given some input
290
+ **/
291
+ queryLengthToFee: AugmentedCall<
292
+ ApiType,
293
+ (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>
294
+ >;
295
+ /**
296
+ * Query the output of the current WeightToFee given some input
297
+ **/
298
+ queryWeightToFee: AugmentedCall<
299
+ ApiType,
300
+ (
301
+ weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array,
302
+ ) => Observable<Balance>
303
+ >;
304
+ };
305
+ } // AugmentedCalls
306
+ } // declare module