@argonprotocol/mainchain 1.4.3-dev.4e058920 → 1.4.3-dev.4f78f406
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.
- package/browser/index.d.ts +569 -408
- package/browser/index.js +6309 -672
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +6382 -716
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +569 -408
- package/lib/index.d.ts +569 -408
- package/lib/index.js +6377 -711
- package/lib/index.js.map +1 -1
- package/package.json +2 -5
- package/src/interfaces/augment-api-consts.ts +14 -7
- package/src/interfaces/augment-api-errors.ts +22 -13
- package/src/interfaces/augment-api-events.ts +27 -12
- package/src/interfaces/augment-api-query.ts +26 -22
- package/src/interfaces/augment-api-rpc.ts +1 -1
- package/src/interfaces/augment-api-runtime.ts +1 -28
- package/src/interfaces/augment-api-tx.ts +16 -5
- package/src/interfaces/augment-api.ts +0 -1
- package/src/interfaces/augment-types.ts +7 -4
- package/src/interfaces/definitions.ts +11 -26
- package/src/interfaces/ethereum/index.ts +0 -1
- package/src/interfaces/ethereum/types.ts +17 -6
- package/src/interfaces/lookup.ts +274 -245
- package/src/interfaces/registry.ts +22 -15
- package/src/interfaces/types-lookup.ts +279 -245
- package/lib/chunk-3KFMHNNJ.cjs +0 -706
- package/lib/chunk-3KFMHNNJ.cjs.map +0 -1
- package/lib/chunk-D3FCDADJ.cjs +0 -175
- package/lib/chunk-D3FCDADJ.cjs.map +0 -1
- package/lib/chunk-RF6NOJOR.js +0 -706
- package/lib/chunk-RF6NOJOR.js.map +0 -1
- package/lib/chunk-YPXWOFUS.js +0 -175
- package/lib/chunk-YPXWOFUS.js.map +0 -1
- package/lib/lib-CU2JUZW6.cjs +0 -403
- package/lib/lib-CU2JUZW6.cjs.map +0 -1
- package/lib/lib-P3PEMYOB.js +0 -403
- package/lib/lib-P3PEMYOB.js.map +0 -1
- package/lib/setPreset-NCTHSXWD.js +0 -15
- package/lib/setPreset-NCTHSXWD.js.map +0 -1
- package/lib/setPreset-XHOPATBO.cjs +0 -15
- package/lib/setPreset-XHOPATBO.cjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.4.3-dev.
|
|
3
|
+
"version": "1.4.3-dev.4f78f406",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,11 +47,8 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@chainsafe/persistent-merkle-tree": "1.2.5",
|
|
51
50
|
"@ethereumjs/block": "^10.1.1",
|
|
52
51
|
"@ethereumjs/mpt": "^10.1.1",
|
|
53
|
-
"@lodestar/params": "1.42.0",
|
|
54
|
-
"@lodestar/types": "1.42.0",
|
|
55
52
|
"@polkadot/api": "^16.5.6",
|
|
56
53
|
"@polkadot/api-base": "^16.5.6",
|
|
57
54
|
"@polkadot/keyring": "^14.0.3",
|
|
@@ -68,7 +65,7 @@
|
|
|
68
65
|
},
|
|
69
66
|
"devDependencies": {
|
|
70
67
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
71
|
-
"@argonprotocol/testing": "1.4.3-dev.
|
|
68
|
+
"@argonprotocol/testing": "1.4.3-dev.4f78f406",
|
|
72
69
|
"@polkadot/typegen": "^16.5.6",
|
|
73
70
|
"@substrate/ss58-registry": "^1.51.0",
|
|
74
71
|
"@types/node": "^20",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
|
|
4
3
|
// import type lookup before we augment - in some environments
|
|
5
4
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/consts';
|
|
5
|
+
import type {} from '@polkadot/api-base/types/consts';
|
|
7
6
|
|
|
8
7
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
9
|
-
import type {
|
|
8
|
+
import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
10
9
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
11
10
|
import type { AccountId32, Percent } from '@polkadot/types/interfaces/runtime';
|
|
12
11
|
import type {
|
|
@@ -165,6 +164,18 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
165
164
|
* Canonical Ethereum burn-accounting account representing funds moved to Ethereum.
|
|
166
165
|
**/
|
|
167
166
|
ethereumBurnAccount: AccountId32 & AugmentedConst<ApiType>;
|
|
167
|
+
/**
|
|
168
|
+
* Maximum number of ordered gateway activities that may share one receipt proof.
|
|
169
|
+
**/
|
|
170
|
+
maxActivitiesPerReceiptProof: u32 & AugmentedConst<ApiType>;
|
|
171
|
+
/**
|
|
172
|
+
* Maximum execution headers carried in one receipt proof's target-to-anchor chain.
|
|
173
|
+
**/
|
|
174
|
+
maxProofExecutionHeaderDepth: u32 & AugmentedConst<ApiType>;
|
|
175
|
+
/**
|
|
176
|
+
* Maximum number of proved receipt proofs that may be supplied in one extrinsic.
|
|
177
|
+
**/
|
|
178
|
+
maxReceiptProofsPerExtrinsic: u32 & AugmentedConst<ApiType>;
|
|
168
179
|
/**
|
|
169
180
|
* Retention window, in ticks, for recent Argon transfer evidence used by operational
|
|
170
181
|
* accounts.
|
|
@@ -172,10 +183,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
172
183
|
recentTransferRetentionTicks: u64 & AugmentedConst<ApiType>;
|
|
173
184
|
};
|
|
174
185
|
ethereumVerifier: {
|
|
175
|
-
/**
|
|
176
|
-
* Whether the read-only event-log verification API is enabled.
|
|
177
|
-
**/
|
|
178
|
-
eventLogVerifierEnabled: bool & AugmentedConst<ApiType>;
|
|
179
186
|
/**
|
|
180
187
|
* Minimum gap between finalized headers for an update to be free.
|
|
181
188
|
**/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/errors';
|
|
6
|
+
import type {} from '@polkadot/api-base/types/errors';
|
|
7
7
|
|
|
8
8
|
import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
|
|
9
9
|
|
|
@@ -357,18 +357,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
357
357
|
* The burn account lacks enough balance for the payout.
|
|
358
358
|
**/
|
|
359
359
|
InsufficientLiquidity: AugmentedError<ApiType>;
|
|
360
|
-
/**
|
|
361
|
-
* The claimed amount was zero or too large for the local balance type.
|
|
362
|
-
**/
|
|
363
|
-
InvalidAmount: AugmentedError<ApiType>;
|
|
364
360
|
/**
|
|
365
361
|
* The configured source-chain shape is incomplete or malformed.
|
|
366
362
|
**/
|
|
367
363
|
InvalidChainConfig: AugmentedError<ApiType>;
|
|
368
|
-
/**
|
|
369
|
-
* The Ethereum event topics or payload do not match `BurnForTransfer`.
|
|
370
|
-
**/
|
|
371
|
-
InvalidEthereumEvent: AugmentedError<ApiType>;
|
|
372
364
|
/**
|
|
373
365
|
* The Ethereum verifier rejected the supplied proof.
|
|
374
366
|
**/
|
|
@@ -378,11 +370,27 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
378
370
|
**/
|
|
379
371
|
InvalidRecipient: AugmentedError<ApiType>;
|
|
380
372
|
/**
|
|
381
|
-
* The
|
|
373
|
+
* The Ethereum event topics or payload do not match `TransferToArgonStarted`.
|
|
374
|
+
**/
|
|
375
|
+
InvalidTransferToArgonActivity: AugmentedError<ApiType>;
|
|
376
|
+
/**
|
|
377
|
+
* At least one gateway activity log must be supplied with the receipt proof.
|
|
378
|
+
**/
|
|
379
|
+
NoGatewayActivitiesProvided: AugmentedError<ApiType>;
|
|
380
|
+
/**
|
|
381
|
+
* At least one proved gateway-activity block must be supplied.
|
|
382
|
+
**/
|
|
383
|
+
NoGatewayProofBlocksProvided: AugmentedError<ApiType>;
|
|
384
|
+
/**
|
|
385
|
+
* The proven gateway activity nonce is not the next contiguous nonce.
|
|
386
|
+
**/
|
|
387
|
+
UnexpectedGatewayActivityNonce: AugmentedError<ApiType>;
|
|
388
|
+
/**
|
|
389
|
+
* The caller's expected already-proven gateway activity nonce is stale or incorrect.
|
|
382
390
|
**/
|
|
383
|
-
|
|
391
|
+
UnexpectedPreviousGatewayActivityNonce: AugmentedError<ApiType>;
|
|
384
392
|
/**
|
|
385
|
-
* The gateway does not match the
|
|
393
|
+
* The gateway does not match the configured gateway address.
|
|
386
394
|
**/
|
|
387
395
|
UnsupportedGateway: AugmentedError<ApiType>;
|
|
388
396
|
/**
|
|
@@ -390,7 +398,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
390
398
|
**/
|
|
391
399
|
UnsupportedSource: AugmentedError<ApiType>;
|
|
392
400
|
/**
|
|
393
|
-
* The token is not supported under the
|
|
401
|
+
* The token is not supported under the configured gateway.
|
|
394
402
|
**/
|
|
395
403
|
UnsupportedToken: AugmentedError<ApiType>;
|
|
396
404
|
};
|
|
@@ -501,6 +509,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
501
509
|
SyncCommitteeHashTreeRootFailed: AugmentedError<ApiType>;
|
|
502
510
|
SyncCommitteeParticipantsNotSupermajority: AugmentedError<ApiType>;
|
|
503
511
|
SyncCommitteeUpdateRequired: AugmentedError<ApiType>;
|
|
512
|
+
UnexpectedBeaconPreset: AugmentedError<ApiType>;
|
|
504
513
|
};
|
|
505
514
|
feeControl: {
|
|
506
515
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/events';
|
|
6
|
+
import type {} from '@polkadot/api-base/types/events';
|
|
7
7
|
|
|
8
8
|
import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
9
9
|
import type {
|
|
@@ -38,8 +38,9 @@ import type {
|
|
|
38
38
|
FrameSupportTokensMiscBalanceStatus,
|
|
39
39
|
FrameSystemDispatchEventInfo,
|
|
40
40
|
PalletBalancesUnexpectedKind,
|
|
41
|
-
|
|
41
|
+
PalletCrosschainTransferGatewayState,
|
|
42
42
|
PalletCrosschainTransferSourceChain,
|
|
43
|
+
PalletCrosschainTransferTransferToArgonActivity,
|
|
43
44
|
PalletDomainsDomainRegistration,
|
|
44
45
|
PalletEthereumVerifierBasicOperatingMode,
|
|
45
46
|
PalletMintMintType,
|
|
@@ -322,7 +323,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
322
323
|
vaultId: u32,
|
|
323
324
|
liquidityPromised: u128,
|
|
324
325
|
securitization: u128,
|
|
325
|
-
|
|
326
|
+
lockedTargetPrice: u128,
|
|
326
327
|
accountId: AccountId32,
|
|
327
328
|
securityFee: u128,
|
|
328
329
|
],
|
|
@@ -331,7 +332,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
331
332
|
vaultId: u32;
|
|
332
333
|
liquidityPromised: u128;
|
|
333
334
|
securitization: u128;
|
|
334
|
-
|
|
335
|
+
lockedTargetPrice: u128;
|
|
335
336
|
accountId: AccountId32;
|
|
336
337
|
securityFee: u128;
|
|
337
338
|
}
|
|
@@ -342,9 +343,9 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
342
343
|
utxoId: u64,
|
|
343
344
|
vaultId: u32,
|
|
344
345
|
liquidityPromised: u128,
|
|
345
|
-
|
|
346
|
+
oldTargetPrice: u128,
|
|
346
347
|
securityFee: u128,
|
|
347
|
-
|
|
348
|
+
newTargetPrice: u128,
|
|
348
349
|
amountBurned: u128,
|
|
349
350
|
accountId: AccountId32,
|
|
350
351
|
],
|
|
@@ -352,9 +353,9 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
352
353
|
utxoId: u64;
|
|
353
354
|
vaultId: u32;
|
|
354
355
|
liquidityPromised: u128;
|
|
355
|
-
|
|
356
|
+
oldTargetPrice: u128;
|
|
356
357
|
securityFee: u128;
|
|
357
|
-
|
|
358
|
+
newTargetPrice: u128;
|
|
358
359
|
amountBurned: u128;
|
|
359
360
|
accountId: AccountId32;
|
|
360
361
|
}
|
|
@@ -527,17 +528,31 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
527
528
|
};
|
|
528
529
|
crosschainTransfer: {
|
|
529
530
|
/**
|
|
530
|
-
*
|
|
531
|
+
* The stored gateway-state snapshot advanced after a proved contiguous batch.
|
|
531
532
|
**/
|
|
532
|
-
|
|
533
|
+
GatewayStateAdvanced: AugmentedEvent<
|
|
533
534
|
ApiType,
|
|
534
535
|
[
|
|
535
536
|
sourceChain: PalletCrosschainTransferSourceChain,
|
|
536
|
-
|
|
537
|
+
gatewayState: PalletCrosschainTransferGatewayState,
|
|
537
538
|
],
|
|
538
539
|
{
|
|
539
540
|
sourceChain: PalletCrosschainTransferSourceChain;
|
|
540
|
-
|
|
541
|
+
gatewayState: PalletCrosschainTransferGatewayState;
|
|
542
|
+
}
|
|
543
|
+
>;
|
|
544
|
+
/**
|
|
545
|
+
* A `TransferToArgonStarted` activity was proved and settled locally.
|
|
546
|
+
**/
|
|
547
|
+
TransferToArgonSettled: AugmentedEvent<
|
|
548
|
+
ApiType,
|
|
549
|
+
[
|
|
550
|
+
sourceChain: PalletCrosschainTransferSourceChain,
|
|
551
|
+
transfer: PalletCrosschainTransferTransferToArgonActivity,
|
|
552
|
+
],
|
|
553
|
+
{
|
|
554
|
+
sourceChain: PalletCrosschainTransferSourceChain;
|
|
555
|
+
transfer: PalletCrosschainTransferTransferToArgonActivity;
|
|
541
556
|
}
|
|
542
557
|
>;
|
|
543
558
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
|
|
4
3
|
// import type lookup before we augment - in some environments
|
|
5
4
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/storage';
|
|
5
|
+
import type {} from '@polkadot/api-base/types/storage';
|
|
7
6
|
|
|
8
7
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
9
8
|
import type {
|
|
@@ -22,7 +21,7 @@ import type {
|
|
|
22
21
|
u8,
|
|
23
22
|
} from '@polkadot/types-codec';
|
|
24
23
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
25
|
-
import type { AccountId32,
|
|
24
|
+
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
26
25
|
import type {
|
|
27
26
|
ArgonNotaryAuditErrorVerifyError,
|
|
28
27
|
ArgonPrimitivesBalanceChangeAccountOrigin,
|
|
@@ -40,6 +39,7 @@ import type {
|
|
|
40
39
|
ArgonPrimitivesDigestsFrameInfo,
|
|
41
40
|
ArgonPrimitivesDigestsNotebookDigest,
|
|
42
41
|
ArgonPrimitivesDomainZoneRecord,
|
|
42
|
+
ArgonPrimitivesEthereumEthereumBeaconPreset,
|
|
43
43
|
ArgonPrimitivesForkPower,
|
|
44
44
|
ArgonPrimitivesInherentsBlockSealInherent,
|
|
45
45
|
ArgonPrimitivesNotaryNotaryMeta,
|
|
@@ -65,12 +65,14 @@ import type {
|
|
|
65
65
|
PalletBitcoinLocksLockedBitcoin,
|
|
66
66
|
PalletBitcoinLocksOrphanedUtxo,
|
|
67
67
|
PalletCrosschainTransferChainConfig,
|
|
68
|
+
PalletCrosschainTransferGatewayState,
|
|
68
69
|
PalletCrosschainTransferSourceChain,
|
|
69
70
|
PalletDomainsDomainRegistration,
|
|
70
71
|
PalletEthereumVerifierBasicOperatingMode,
|
|
71
72
|
PalletEthereumVerifierExecutionHeaderAnchor,
|
|
72
73
|
PalletEthereumVerifierFinalizedBeaconHeaderState,
|
|
73
74
|
PalletEthereumVerifierForkVersions,
|
|
75
|
+
PalletEthereumVerifierSyncCommitteePrepared,
|
|
74
76
|
PalletGrandpaStoredPendingChange,
|
|
75
77
|
PalletGrandpaStoredState,
|
|
76
78
|
PalletLocalchainTransferQueuedTransferOut,
|
|
@@ -89,7 +91,6 @@ import type {
|
|
|
89
91
|
PalletTreasuryFrameVaultCapital,
|
|
90
92
|
PalletVaultsRecentCapacityDrop,
|
|
91
93
|
PalletVaultsVaultFrameRevenue,
|
|
92
|
-
SnowbridgeBeaconPrimitivesSyncCommitteePrepared,
|
|
93
94
|
SpConsensusGrandpaAppPublic,
|
|
94
95
|
SpRuntimeDigest,
|
|
95
96
|
SpWeightsWeightV2Weight,
|
|
@@ -234,7 +235,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
234
235
|
[u64]
|
|
235
236
|
>;
|
|
236
237
|
/**
|
|
237
|
-
* History of microgons per btc
|
|
238
|
+
* History of target microgons per btc.
|
|
238
239
|
**/
|
|
239
240
|
microgonPerBtcHistory: AugmentedQuery<
|
|
240
241
|
ApiType,
|
|
@@ -492,6 +493,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
492
493
|
) => Observable<Option<PalletCrosschainTransferChainConfig>>,
|
|
493
494
|
[PalletCrosschainTransferSourceChain]
|
|
494
495
|
>;
|
|
496
|
+
/**
|
|
497
|
+
* Latest proven gateway activity snapshot for each source chain.
|
|
498
|
+
**/
|
|
499
|
+
gatewayStateBySourceChain: AugmentedQuery<
|
|
500
|
+
ApiType,
|
|
501
|
+
(
|
|
502
|
+
arg: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
|
|
503
|
+
) => Observable<Option<PalletCrosschainTransferGatewayState>>,
|
|
504
|
+
[PalletCrosschainTransferSourceChain]
|
|
505
|
+
>;
|
|
495
506
|
/**
|
|
496
507
|
* Accounts whose recent-transfer evidence expires at a given tick.
|
|
497
508
|
**/
|
|
@@ -504,21 +515,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
504
515
|
* Latest tick whose recent-transfer expiration bucket was cleaned up.
|
|
505
516
|
**/
|
|
506
517
|
lastTransferExpiryCleanupTick: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
507
|
-
/**
|
|
508
|
-
* Latest accepted nonce for each `(source_chain, from)` pair.
|
|
509
|
-
**/
|
|
510
|
-
nonceBySourceAccount: AugmentedQuery<
|
|
511
|
-
ApiType,
|
|
512
|
-
(
|
|
513
|
-
arg:
|
|
514
|
-
| ITuple<[PalletCrosschainTransferSourceChain, H160]>
|
|
515
|
-
| [
|
|
516
|
-
PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
|
|
517
|
-
H160 | string | Uint8Array,
|
|
518
|
-
],
|
|
519
|
-
) => Observable<Option<u64>>,
|
|
520
|
-
[ITuple<[PalletCrosschainTransferSourceChain, H160]>]
|
|
521
|
-
>;
|
|
522
518
|
/**
|
|
523
519
|
* Count of still-retained qualifying Argon transfers for each local account.
|
|
524
520
|
**/
|
|
@@ -553,12 +549,20 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
553
549
|
>;
|
|
554
550
|
};
|
|
555
551
|
ethereumVerifier: {
|
|
552
|
+
/**
|
|
553
|
+
* Chain-configured beacon preset expected by clients that submit verifier updates.
|
|
554
|
+
**/
|
|
555
|
+
beaconPreset: AugmentedQuery<
|
|
556
|
+
ApiType,
|
|
557
|
+
() => Observable<ArgonPrimitivesEthereumEthereumBeaconPreset>,
|
|
558
|
+
[]
|
|
559
|
+
>;
|
|
556
560
|
/**
|
|
557
561
|
* Sync committee for current period
|
|
558
562
|
**/
|
|
559
563
|
currentSyncCommittee: AugmentedQuery<
|
|
560
564
|
ApiType,
|
|
561
|
-
() => Observable<
|
|
565
|
+
() => Observable<PalletEthereumVerifierSyncCommitteePrepared>,
|
|
562
566
|
[]
|
|
563
567
|
>;
|
|
564
568
|
/**
|
|
@@ -638,7 +642,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
638
642
|
**/
|
|
639
643
|
nextSyncCommittee: AugmentedQuery<
|
|
640
644
|
ApiType,
|
|
641
|
-
() => Observable<
|
|
645
|
+
() => Observable<PalletEthereumVerifierSyncCommitteePrepared>,
|
|
642
646
|
[]
|
|
643
647
|
>;
|
|
644
648
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/rpc-core/types/jsonrpc';
|
|
6
|
+
import type {} from '@polkadot/rpc-core/types/jsonrpc';
|
|
7
7
|
|
|
8
8
|
import type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
|
9
9
|
import type { Metadata, StorageKey } from '@polkadot/types';
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
|
|
4
3
|
// import type lookup before we augment - in some environments
|
|
5
4
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/calls';
|
|
5
|
+
import type {} from '@polkadot/api-base/types/calls';
|
|
7
6
|
|
|
8
|
-
import type { ArgonPrimitivesEthereumEthereumVerifyError } from '@argonprotocol/mainchain/interfaces/ethereum';
|
|
9
7
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
|
10
8
|
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
|
11
9
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
@@ -35,10 +33,6 @@ import type {
|
|
|
35
33
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
36
34
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
|
37
35
|
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
|
38
|
-
import type {
|
|
39
|
-
ArgonPrimitivesEthereumEthereumLog,
|
|
40
|
-
ArgonPrimitivesEthereumEthereumProof,
|
|
41
|
-
} from '@polkadot/types/lookup';
|
|
42
36
|
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
|
43
37
|
|
|
44
38
|
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
|
@@ -126,27 +120,6 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
126
120
|
**/
|
|
127
121
|
version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
|
|
128
122
|
};
|
|
129
|
-
/** 0x97c56de838cad0ef/1 */
|
|
130
|
-
ethereumApis: {
|
|
131
|
-
/**
|
|
132
|
-
* Preflight verify an Ethereum event log proof.
|
|
133
|
-
**/
|
|
134
|
-
verifyEventLog: AugmentedCall<
|
|
135
|
-
ApiType,
|
|
136
|
-
(
|
|
137
|
-
eventLog:
|
|
138
|
-
| ArgonPrimitivesEthereumEthereumLog
|
|
139
|
-
| { address?: any; topics?: any; data?: any }
|
|
140
|
-
| string
|
|
141
|
-
| Uint8Array,
|
|
142
|
-
proof:
|
|
143
|
-
| ArgonPrimitivesEthereumEthereumProof
|
|
144
|
-
| { executionBlockProof?: any; receiptProof?: any }
|
|
145
|
-
| string
|
|
146
|
-
| Uint8Array,
|
|
147
|
-
) => Observable<Result<Null, ArgonPrimitivesEthereumEthereumVerifyError>>
|
|
148
|
-
>;
|
|
149
|
-
};
|
|
150
123
|
/** 0xfbc577b9d747efd6/1 */
|
|
151
124
|
genesisBuilder: {
|
|
152
125
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/submittable';
|
|
6
|
+
import type {} from '@polkadot/api-base/types/submittable';
|
|
7
7
|
|
|
8
8
|
import type {
|
|
9
9
|
ApiTypes,
|
|
@@ -31,6 +31,7 @@ import type {
|
|
|
31
31
|
ArgonPrimitivesBitcoinOpaqueBitcoinXpub,
|
|
32
32
|
ArgonPrimitivesBitcoinUtxoRef,
|
|
33
33
|
ArgonPrimitivesDomainZoneRecord,
|
|
34
|
+
ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
|
|
34
35
|
ArgonPrimitivesInherentsBitcoinUtxoSync,
|
|
35
36
|
ArgonPrimitivesInherentsBlockSealInherent,
|
|
36
37
|
ArgonPrimitivesNotaryNotaryMeta,
|
|
@@ -42,7 +43,7 @@ import type {
|
|
|
42
43
|
PalletBalancesAdjustmentDirection,
|
|
43
44
|
PalletBitcoinLocksLockOptions,
|
|
44
45
|
PalletCrosschainTransferChainConfig,
|
|
45
|
-
|
|
46
|
+
PalletCrosschainTransferSourceChain,
|
|
46
47
|
PalletEthereumVerifierBasicOperatingMode,
|
|
47
48
|
PalletEthereumVerifierCheckpointUpdate,
|
|
48
49
|
PalletEthereumVerifierExecutionProof,
|
|
@@ -521,11 +522,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
521
522
|
>;
|
|
522
523
|
};
|
|
523
524
|
crosschainTransfer: {
|
|
524
|
-
|
|
525
|
+
proveGatewayActivity: AugmentedSubmittable<
|
|
525
526
|
(
|
|
526
|
-
|
|
527
|
+
sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
|
|
528
|
+
previousGatewayActivityNonce: Compact<u64> | AnyNumber | Uint8Array,
|
|
529
|
+
proofBatch:
|
|
530
|
+
| ArgonPrimitivesEthereumEthereumReceiptLogProofBatch
|
|
531
|
+
| { executionBlockProof?: any; blocks?: any }
|
|
532
|
+
| string
|
|
533
|
+
| Uint8Array,
|
|
527
534
|
) => SubmittableExtrinsic<ApiType>,
|
|
528
|
-
[
|
|
535
|
+
[
|
|
536
|
+
PalletCrosschainTransferSourceChain,
|
|
537
|
+
Compact<u64>,
|
|
538
|
+
ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
|
|
539
|
+
]
|
|
529
540
|
>;
|
|
530
541
|
setChainConfig: AugmentedSubmittable<
|
|
531
542
|
(
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
|
|
4
3
|
// import type lookup before we augment - in some environments
|
|
5
4
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/types/types/registry';
|
|
5
|
+
import type {} from '@polkadot/types/types/registry';
|
|
7
6
|
|
|
8
7
|
import type {
|
|
8
|
+
ArgonPrimitivesEthereumEthereumCombinedReceiptProof,
|
|
9
9
|
ArgonPrimitivesEthereumEthereumExecutionBlockProof,
|
|
10
10
|
ArgonPrimitivesEthereumEthereumExecutionHeader,
|
|
11
11
|
ArgonPrimitivesEthereumEthereumLog,
|
|
12
12
|
ArgonPrimitivesEthereumEthereumProof,
|
|
13
|
-
|
|
13
|
+
ArgonPrimitivesEthereumEthereumReceiptLog,
|
|
14
|
+
ArgonPrimitivesEthereumEthereumReceiptProofReceipt,
|
|
14
15
|
ArgonPrimitivesEthereumEthereumVerifyError,
|
|
15
16
|
} from '@argonprotocol/mainchain/interfaces/ethereum';
|
|
16
17
|
import type { Data, StorageKey } from '@polkadot/types';
|
|
@@ -1423,11 +1424,13 @@ declare module '@polkadot/types/types/registry' {
|
|
|
1423
1424
|
ApprovalFlag: ApprovalFlag;
|
|
1424
1425
|
Approvals: Approvals;
|
|
1425
1426
|
ApprovalVotingParams: ApprovalVotingParams;
|
|
1427
|
+
ArgonPrimitivesEthereumEthereumCombinedReceiptProof: ArgonPrimitivesEthereumEthereumCombinedReceiptProof;
|
|
1426
1428
|
ArgonPrimitivesEthereumEthereumExecutionBlockProof: ArgonPrimitivesEthereumEthereumExecutionBlockProof;
|
|
1427
1429
|
ArgonPrimitivesEthereumEthereumExecutionHeader: ArgonPrimitivesEthereumEthereumExecutionHeader;
|
|
1428
1430
|
ArgonPrimitivesEthereumEthereumLog: ArgonPrimitivesEthereumEthereumLog;
|
|
1429
1431
|
ArgonPrimitivesEthereumEthereumProof: ArgonPrimitivesEthereumEthereumProof;
|
|
1430
|
-
|
|
1432
|
+
ArgonPrimitivesEthereumEthereumReceiptLog: ArgonPrimitivesEthereumEthereumReceiptLog;
|
|
1433
|
+
ArgonPrimitivesEthereumEthereumReceiptProofReceipt: ArgonPrimitivesEthereumEthereumReceiptProofReceipt;
|
|
1431
1434
|
ArgonPrimitivesEthereumEthereumVerifyError: ArgonPrimitivesEthereumEthereumVerifyError;
|
|
1432
1435
|
ArithmeticError: ArithmeticError;
|
|
1433
1436
|
AssetApproval: AssetApproval;
|
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
export const ethereum = {
|
|
2
|
-
runtime: {
|
|
3
|
-
EthereumApis: [
|
|
4
|
-
{
|
|
5
|
-
methods: {
|
|
6
|
-
verify_event_log: {
|
|
7
|
-
description: 'Preflight verify an Ethereum event log proof.',
|
|
8
|
-
params: [
|
|
9
|
-
{
|
|
10
|
-
name: 'eventLog',
|
|
11
|
-
type: 'ArgonPrimitivesEthereumEthereumLog',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
name: 'proof',
|
|
15
|
-
type: 'ArgonPrimitivesEthereumEthereumProof',
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
type: 'Result<Null, ArgonPrimitivesEthereumEthereumVerifyError>',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
version: 1,
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
2
|
types: {
|
|
26
3
|
ArgonPrimitivesEthereumEthereumExecutionHeader: {
|
|
27
4
|
rlp: 'Bytes',
|
|
@@ -37,11 +14,19 @@ export const ethereum = {
|
|
|
37
14
|
},
|
|
38
15
|
ArgonPrimitivesEthereumEthereumProof: {
|
|
39
16
|
executionBlockProof: 'ArgonPrimitivesEthereumEthereumExecutionBlockProof',
|
|
40
|
-
receiptProof: '
|
|
17
|
+
receiptProof: 'ArgonPrimitivesEthereumEthereumCombinedReceiptProof',
|
|
41
18
|
},
|
|
42
|
-
|
|
43
|
-
transactionIndex: 'Compact<u64>',
|
|
19
|
+
ArgonPrimitivesEthereumEthereumCombinedReceiptProof: {
|
|
44
20
|
nodes: 'Vec<Bytes>',
|
|
21
|
+
receipts: 'Vec<ArgonPrimitivesEthereumEthereumReceiptProofReceipt>',
|
|
22
|
+
},
|
|
23
|
+
ArgonPrimitivesEthereumEthereumReceiptProofReceipt: {
|
|
24
|
+
transactionIndex: 'Compact<u64>',
|
|
25
|
+
nodeIndexes: 'Vec<u16>',
|
|
26
|
+
},
|
|
27
|
+
ArgonPrimitivesEthereumEthereumReceiptLog: {
|
|
28
|
+
transactionIndex: 'Compact<u64>',
|
|
29
|
+
eventLog: 'ArgonPrimitivesEthereumEthereumLog',
|
|
45
30
|
},
|
|
46
31
|
ArgonPrimitivesEthereumEthereumVerifyError: {
|
|
47
32
|
_enum: [
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
|
|
4
|
-
import type { Bytes, Compact, Enum, Struct, Vec, u64 } from '@polkadot/types-codec';
|
|
3
|
+
import type { Bytes, Compact, Enum, Struct, Vec, u16, u64 } from '@polkadot/types-codec';
|
|
5
4
|
import type { H160, H256 } from '@polkadot/types/interfaces/runtime';
|
|
6
5
|
|
|
6
|
+
/** @name ArgonPrimitivesEthereumEthereumCombinedReceiptProof */
|
|
7
|
+
export interface ArgonPrimitivesEthereumEthereumCombinedReceiptProof extends Struct {
|
|
8
|
+
readonly nodes: Vec<Bytes>;
|
|
9
|
+
readonly receipts: Vec<ArgonPrimitivesEthereumEthereumReceiptProofReceipt>;
|
|
10
|
+
}
|
|
11
|
+
|
|
7
12
|
/** @name ArgonPrimitivesEthereumEthereumExecutionBlockProof */
|
|
8
13
|
export interface ArgonPrimitivesEthereumEthereumExecutionBlockProof extends Struct {
|
|
9
14
|
readonly anchorBlockHash: H256;
|
|
@@ -25,13 +30,19 @@ export interface ArgonPrimitivesEthereumEthereumLog extends Struct {
|
|
|
25
30
|
/** @name ArgonPrimitivesEthereumEthereumProof */
|
|
26
31
|
export interface ArgonPrimitivesEthereumEthereumProof extends Struct {
|
|
27
32
|
readonly executionBlockProof: ArgonPrimitivesEthereumEthereumExecutionBlockProof;
|
|
28
|
-
readonly receiptProof:
|
|
33
|
+
readonly receiptProof: ArgonPrimitivesEthereumEthereumCombinedReceiptProof;
|
|
29
34
|
}
|
|
30
35
|
|
|
31
|
-
/** @name
|
|
32
|
-
export interface
|
|
36
|
+
/** @name ArgonPrimitivesEthereumEthereumReceiptLog */
|
|
37
|
+
export interface ArgonPrimitivesEthereumEthereumReceiptLog extends Struct {
|
|
33
38
|
readonly transactionIndex: Compact<u64>;
|
|
34
|
-
readonly
|
|
39
|
+
readonly eventLog: ArgonPrimitivesEthereumEthereumLog;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** @name ArgonPrimitivesEthereumEthereumReceiptProofReceipt */
|
|
43
|
+
export interface ArgonPrimitivesEthereumEthereumReceiptProofReceipt extends Struct {
|
|
44
|
+
readonly transactionIndex: Compact<u64>;
|
|
45
|
+
readonly nodeIndexes: Vec<u16>;
|
|
35
46
|
}
|
|
36
47
|
|
|
37
48
|
/** @name ArgonPrimitivesEthereumEthereumVerifyError */
|