@argonprotocol/mainchain 1.4.6 → 1.4.7
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/artifacts/contracts/ArgonToken.sol/ArgonToken.json +1 -1
- package/browser/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +1 -1
- package/browser/artifacts/contracts/MintingGateway.sol/MintingGateway.json +123 -37
- package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +1 -1
- package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +1 -1
- package/browser/index.d.ts +128 -21
- package/browser/index.js +460 -143
- package/browser/index.js.map +1 -1
- package/lib/artifacts/contracts/ArgonToken.sol/ArgonToken.json +1 -1
- package/lib/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +1 -1
- package/lib/artifacts/contracts/MintingGateway.sol/MintingGateway.json +123 -37
- package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +1 -1
- package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +1 -1
- package/lib/index.cjs +515 -139
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +128 -21
- package/lib/index.d.ts +128 -21
- package/lib/index.js +518 -142
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-errors.ts +4 -2
- package/src/interfaces/augment-api-events.ts +6 -1
- package/src/interfaces/augment-api-tx.ts +20 -5
- package/src/interfaces/lookup.ts +15 -2
- package/src/interfaces/types-lookup.ts +26 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.7",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
68
|
-
"@argonprotocol/testing": "1.4.
|
|
68
|
+
"@argonprotocol/testing": "1.4.7",
|
|
69
69
|
"@polkadot/typegen": "^16.5.6",
|
|
70
70
|
"@substrate/ss58-registry": "^1.51.0",
|
|
71
71
|
"@types/node": "^20",
|
|
@@ -445,8 +445,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
445
445
|
**/
|
|
446
446
|
InvalidMintingAuthorityCollateral: AugmentedError<ApiType>;
|
|
447
447
|
/**
|
|
448
|
-
*
|
|
449
|
-
* Minting Authority signing key.
|
|
448
|
+
* Reserved legacy error for invalid signer-keyed deactivation signatures.
|
|
450
449
|
**/
|
|
451
450
|
InvalidMintingAuthorityDeactivationSignature: AugmentedError<ApiType>;
|
|
452
451
|
/**
|
|
@@ -661,10 +660,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
661
660
|
BlockBodyHashTreeRootFailed: AugmentedError<ApiType>;
|
|
662
661
|
BLSPreparePublicKeysFailed: AugmentedError<ApiType>;
|
|
663
662
|
BLSVerificationFailed: AugmentedError<ApiType>;
|
|
663
|
+
ExecutionHeaderAnchorAlreadyImported: AugmentedError<ApiType>;
|
|
664
|
+
ExecutionHeaderAnchorNotHistorical: AugmentedError<ApiType>;
|
|
664
665
|
ExpectedFinalizedHeaderNotStored: AugmentedError<ApiType>;
|
|
665
666
|
ForkDataHashTreeRootFailed: AugmentedError<ApiType>;
|
|
666
667
|
Halted: AugmentedError<ApiType>;
|
|
667
668
|
HeaderHashTreeRootFailed: AugmentedError<ApiType>;
|
|
669
|
+
InvalidBackfillHeaderRoot: AugmentedError<ApiType>;
|
|
668
670
|
InvalidExecutionHeaderProof: AugmentedError<ApiType>;
|
|
669
671
|
/**
|
|
670
672
|
* The gap between finalized headers is larger than the retained historical window.
|
|
@@ -661,7 +661,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
661
661
|
{ sourceChain: PalletCrosschainTransferSourceChain; destinationSigningKey: H160 }
|
|
662
662
|
>;
|
|
663
663
|
/**
|
|
664
|
-
* An operator queued the
|
|
664
|
+
* An operator queued the council-approved Ethereum deactivation for a Minting Authority.
|
|
665
665
|
**/
|
|
666
666
|
MintingAuthorityDeactivationQueued: AugmentedEvent<
|
|
667
667
|
ApiType,
|
|
@@ -859,6 +859,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
859
859
|
[blockHash: H256, slot: u64],
|
|
860
860
|
{ blockHash: H256; slot: u64 }
|
|
861
861
|
>;
|
|
862
|
+
ExecutionHeaderAnchorBackfilled: AugmentedEvent<
|
|
863
|
+
ApiType,
|
|
864
|
+
[beaconRoot: H256, slot: u64, blockHash: H256, blockNumber: u64],
|
|
865
|
+
{ beaconRoot: H256; slot: u64; blockHash: H256; blockNumber: u64 }
|
|
866
|
+
>;
|
|
862
867
|
ExecutionHeaderAnchorImported: AugmentedEvent<
|
|
863
868
|
ApiType,
|
|
864
869
|
[blockHash: H256, blockNumber: u64],
|
|
@@ -54,6 +54,7 @@ import type {
|
|
|
54
54
|
PalletCrosschainTransferSourceChain,
|
|
55
55
|
PalletEthereumVerifierBasicOperatingMode,
|
|
56
56
|
PalletEthereumVerifierCheckpointUpdate,
|
|
57
|
+
PalletEthereumVerifierExecutionHeaderProof,
|
|
57
58
|
PalletEthereumVerifierForkVersions,
|
|
58
59
|
PalletEthereumVerifierUpdate,
|
|
59
60
|
PalletMultisigTimepoint,
|
|
@@ -61,6 +62,7 @@ import type {
|
|
|
61
62
|
PalletOperationalAccountsRegistration,
|
|
62
63
|
PalletPriceIndexPriceIndex,
|
|
63
64
|
PalletVaultsVaultConfig,
|
|
65
|
+
SnowbridgeBeaconPrimitivesBeaconHeader,
|
|
64
66
|
SpConsensusGrandpaEquivocationProof,
|
|
65
67
|
SpCoreVoid,
|
|
66
68
|
SpWeightsWeightV2Weight,
|
|
@@ -546,11 +548,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
546
548
|
[H256, U8aFixed, Compact<u128>, Compact<u128>]
|
|
547
549
|
>;
|
|
548
550
|
deactivateMintingAuthority: AugmentedSubmittable<
|
|
549
|
-
(
|
|
550
|
-
|
|
551
|
-
signature: U8aFixed | string | Uint8Array,
|
|
552
|
-
) => SubmittableExtrinsic<ApiType>,
|
|
553
|
-
[H160, U8aFixed]
|
|
551
|
+
(destinationSigningKey: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
552
|
+
[H160]
|
|
554
553
|
>;
|
|
555
554
|
forceSetGlobalIssuanceCouncil: AugmentedSubmittable<
|
|
556
555
|
(
|
|
@@ -701,6 +700,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
701
700
|
) => SubmittableExtrinsic<ApiType>,
|
|
702
701
|
[PalletEthereumVerifierCheckpointUpdate, PalletEthereumVerifierForkVersions]
|
|
703
702
|
>;
|
|
703
|
+
importTrustedExecutionHeaderBackfill: AugmentedSubmittable<
|
|
704
|
+
(
|
|
705
|
+
expectedBeaconRoot: H256 | string | Uint8Array,
|
|
706
|
+
header:
|
|
707
|
+
| SnowbridgeBeaconPrimitivesBeaconHeader
|
|
708
|
+
| { slot?: any; proposerIndex?: any; parentRoot?: any; stateRoot?: any; bodyRoot?: any }
|
|
709
|
+
| string
|
|
710
|
+
| Uint8Array,
|
|
711
|
+
executionHeaderProof:
|
|
712
|
+
| PalletEthereumVerifierExecutionHeaderProof
|
|
713
|
+
| { executionHeader?: any; executionBranch?: any }
|
|
714
|
+
| string
|
|
715
|
+
| Uint8Array,
|
|
716
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
717
|
+
[H256, SnowbridgeBeaconPrimitivesBeaconHeader, PalletEthereumVerifierExecutionHeaderProof]
|
|
718
|
+
>;
|
|
704
719
|
/**
|
|
705
720
|
* Halt or resume all pallet operations. May only be called by root.
|
|
706
721
|
**/
|
package/src/interfaces/lookup.ts
CHANGED
|
@@ -1484,6 +1484,12 @@ export default {
|
|
|
1484
1484
|
blockHash: 'H256',
|
|
1485
1485
|
blockNumber: 'u64',
|
|
1486
1486
|
},
|
|
1487
|
+
ExecutionHeaderAnchorBackfilled: {
|
|
1488
|
+
beaconRoot: 'H256',
|
|
1489
|
+
slot: 'u64',
|
|
1490
|
+
blockHash: 'H256',
|
|
1491
|
+
blockNumber: 'u64',
|
|
1492
|
+
},
|
|
1487
1493
|
SyncCommitteeUpdated: {
|
|
1488
1494
|
period: 'u64',
|
|
1489
1495
|
},
|
|
@@ -2729,7 +2735,11 @@ export default {
|
|
|
2729
2735
|
submit: {
|
|
2730
2736
|
update: 'PalletEthereumVerifierUpdate',
|
|
2731
2737
|
},
|
|
2732
|
-
|
|
2738
|
+
import_trusted_execution_header_backfill: {
|
|
2739
|
+
expectedBeaconRoot: 'H256',
|
|
2740
|
+
header: 'SnowbridgeBeaconPrimitivesBeaconHeader',
|
|
2741
|
+
executionHeaderProof: 'PalletEthereumVerifierExecutionHeaderProof',
|
|
2742
|
+
},
|
|
2733
2743
|
set_operating_mode: {
|
|
2734
2744
|
mode: 'PalletEthereumVerifierBasicOperatingMode',
|
|
2735
2745
|
},
|
|
@@ -2924,7 +2934,6 @@ export default {
|
|
|
2924
2934
|
},
|
|
2925
2935
|
deactivate_minting_authority: {
|
|
2926
2936
|
destinationSigningKey: 'H160',
|
|
2927
|
-
signature: '[u8;65]',
|
|
2928
2937
|
},
|
|
2929
2938
|
transfer_out: {
|
|
2930
2939
|
destinationChain: 'PalletCrosschainTransferSourceChain',
|
|
@@ -3879,6 +3888,7 @@ export default {
|
|
|
3879
3888
|
timestampMillis: 'Compact<u64>',
|
|
3880
3889
|
blockHash: 'H256',
|
|
3881
3890
|
parentHash: 'H256',
|
|
3891
|
+
stateRoot: 'H256',
|
|
3882
3892
|
receiptsRoot: 'H256',
|
|
3883
3893
|
},
|
|
3884
3894
|
/**
|
|
@@ -3936,6 +3946,9 @@ export default {
|
|
|
3936
3946
|
'InvalidSyncCommitteeMerkleProof',
|
|
3937
3947
|
'InvalidExecutionHeaderProof',
|
|
3938
3948
|
'InvalidFinalizedHeaderGap',
|
|
3949
|
+
'InvalidBackfillHeaderRoot',
|
|
3950
|
+
'ExecutionHeaderAnchorAlreadyImported',
|
|
3951
|
+
'ExecutionHeaderAnchorNotHistorical',
|
|
3939
3952
|
'HeaderHashTreeRootFailed',
|
|
3940
3953
|
'BlockBodyHashTreeRootFailed',
|
|
3941
3954
|
'SyncCommitteeHashTreeRootFailed',
|
|
@@ -1843,6 +1843,13 @@ declare module '@polkadot/types/lookup' {
|
|
|
1843
1843
|
readonly blockHash: H256;
|
|
1844
1844
|
readonly blockNumber: u64;
|
|
1845
1845
|
} & Struct;
|
|
1846
|
+
readonly isExecutionHeaderAnchorBackfilled: boolean;
|
|
1847
|
+
readonly asExecutionHeaderAnchorBackfilled: {
|
|
1848
|
+
readonly beaconRoot: H256;
|
|
1849
|
+
readonly slot: u64;
|
|
1850
|
+
readonly blockHash: H256;
|
|
1851
|
+
readonly blockNumber: u64;
|
|
1852
|
+
} & Struct;
|
|
1846
1853
|
readonly isSyncCommitteeUpdated: boolean;
|
|
1847
1854
|
readonly asSyncCommitteeUpdated: {
|
|
1848
1855
|
readonly period: u64;
|
|
@@ -1854,6 +1861,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
1854
1861
|
readonly type:
|
|
1855
1862
|
| 'BeaconHeaderImported'
|
|
1856
1863
|
| 'ExecutionHeaderAnchorImported'
|
|
1864
|
+
| 'ExecutionHeaderAnchorBackfilled'
|
|
1857
1865
|
| 'SyncCommitteeUpdated'
|
|
1858
1866
|
| 'OperatingModeChanged';
|
|
1859
1867
|
}
|
|
@@ -3224,11 +3232,21 @@ declare module '@polkadot/types/lookup' {
|
|
|
3224
3232
|
readonly asSubmit: {
|
|
3225
3233
|
readonly update: PalletEthereumVerifierUpdate;
|
|
3226
3234
|
} & Struct;
|
|
3235
|
+
readonly isImportTrustedExecutionHeaderBackfill: boolean;
|
|
3236
|
+
readonly asImportTrustedExecutionHeaderBackfill: {
|
|
3237
|
+
readonly expectedBeaconRoot: H256;
|
|
3238
|
+
readonly header: SnowbridgeBeaconPrimitivesBeaconHeader;
|
|
3239
|
+
readonly executionHeaderProof: PalletEthereumVerifierExecutionHeaderProof;
|
|
3240
|
+
} & Struct;
|
|
3227
3241
|
readonly isSetOperatingMode: boolean;
|
|
3228
3242
|
readonly asSetOperatingMode: {
|
|
3229
3243
|
readonly mode: PalletEthereumVerifierBasicOperatingMode;
|
|
3230
3244
|
} & Struct;
|
|
3231
|
-
readonly type:
|
|
3245
|
+
readonly type:
|
|
3246
|
+
| 'ForceCheckpoint'
|
|
3247
|
+
| 'Submit'
|
|
3248
|
+
| 'ImportTrustedExecutionHeaderBackfill'
|
|
3249
|
+
| 'SetOperatingMode';
|
|
3232
3250
|
}
|
|
3233
3251
|
|
|
3234
3252
|
/** @name PalletEthereumVerifierCheckpointUpdate (281) */
|
|
@@ -3415,7 +3433,6 @@ declare module '@polkadot/types/lookup' {
|
|
|
3415
3433
|
readonly isDeactivateMintingAuthority: boolean;
|
|
3416
3434
|
readonly asDeactivateMintingAuthority: {
|
|
3417
3435
|
readonly destinationSigningKey: H160;
|
|
3418
|
-
readonly signature: U8aFixed;
|
|
3419
3436
|
} & Struct;
|
|
3420
3437
|
readonly isTransferOut: boolean;
|
|
3421
3438
|
readonly asTransferOut: {
|
|
@@ -4526,6 +4543,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4526
4543
|
readonly timestampMillis: Compact<u64>;
|
|
4527
4544
|
readonly blockHash: H256;
|
|
4528
4545
|
readonly parentHash: H256;
|
|
4546
|
+
readonly stateRoot: H256;
|
|
4529
4547
|
readonly receiptsRoot: H256;
|
|
4530
4548
|
}
|
|
4531
4549
|
|
|
@@ -4577,6 +4595,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
4577
4595
|
readonly isInvalidSyncCommitteeMerkleProof: boolean;
|
|
4578
4596
|
readonly isInvalidExecutionHeaderProof: boolean;
|
|
4579
4597
|
readonly isInvalidFinalizedHeaderGap: boolean;
|
|
4598
|
+
readonly isInvalidBackfillHeaderRoot: boolean;
|
|
4599
|
+
readonly isExecutionHeaderAnchorAlreadyImported: boolean;
|
|
4600
|
+
readonly isExecutionHeaderAnchorNotHistorical: boolean;
|
|
4580
4601
|
readonly isHeaderHashTreeRootFailed: boolean;
|
|
4581
4602
|
readonly isBlockBodyHashTreeRootFailed: boolean;
|
|
4582
4603
|
readonly isSyncCommitteeHashTreeRootFailed: boolean;
|
|
@@ -4599,6 +4620,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
4599
4620
|
| 'InvalidSyncCommitteeMerkleProof'
|
|
4600
4621
|
| 'InvalidExecutionHeaderProof'
|
|
4601
4622
|
| 'InvalidFinalizedHeaderGap'
|
|
4623
|
+
| 'InvalidBackfillHeaderRoot'
|
|
4624
|
+
| 'ExecutionHeaderAnchorAlreadyImported'
|
|
4625
|
+
| 'ExecutionHeaderAnchorNotHistorical'
|
|
4602
4626
|
| 'HeaderHashTreeRootFailed'
|
|
4603
4627
|
| 'BlockBodyHashTreeRootFailed'
|
|
4604
4628
|
| 'SyncCommitteeHashTreeRootFailed'
|