@argonprotocol/mainchain 1.4.3-dev.fbc5662c → 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 (49) 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 +1884 -465
  7. package/browser/index.js +6670 -539
  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 +6692 -551
  15. package/lib/index.cjs.map +1 -1
  16. package/lib/index.d.cts +1884 -465
  17. package/lib/index.d.ts +1884 -465
  18. package/lib/index.js +6683 -542
  19. package/lib/index.js.map +1 -1
  20. package/package.json +17 -19
  21. package/src/interfaces/augment-api-consts.ts +59 -6
  22. package/src/interfaces/augment-api-errors.ts +212 -11
  23. package/src/interfaces/augment-api-events.ts +295 -13
  24. package/src/interfaces/augment-api-query.ts +291 -27
  25. package/src/interfaces/augment-api-rpc.ts +1 -1
  26. package/src/interfaces/augment-api-runtime.ts +1 -27
  27. package/src/interfaces/augment-api-tx.ts +138 -24
  28. package/src/interfaces/augment-types.ts +7 -3
  29. package/src/interfaces/definitions.ts +11 -26
  30. package/src/interfaces/ethereum/types.ts +17 -5
  31. package/src/interfaces/lookup.ts +700 -301
  32. package/src/interfaces/registry.ts +56 -16
  33. package/src/interfaces/types-lookup.ts +845 -322
  34. package/lib/chunk-3KFMHNNJ.cjs +0 -706
  35. package/lib/chunk-3KFMHNNJ.cjs.map +0 -1
  36. package/lib/chunk-D3FCDADJ.cjs +0 -175
  37. package/lib/chunk-D3FCDADJ.cjs.map +0 -1
  38. package/lib/chunk-RF6NOJOR.js +0 -706
  39. package/lib/chunk-RF6NOJOR.js.map +0 -1
  40. package/lib/chunk-YPXWOFUS.js +0 -175
  41. package/lib/chunk-YPXWOFUS.js.map +0 -1
  42. package/lib/lib-CU2JUZW6.cjs +0 -403
  43. package/lib/lib-CU2JUZW6.cjs.map +0 -1
  44. package/lib/lib-P3PEMYOB.js +0 -403
  45. package/lib/lib-P3PEMYOB.js.map +0 -1
  46. package/lib/setPreset-NCTHSXWD.js +0 -15
  47. package/lib/setPreset-NCTHSXWD.js.map +0 -1
  48. package/lib/setPreset-XHOPATBO.cjs +0 -15
  49. package/lib/setPreset-XHOPATBO.cjs.map +0 -1
@@ -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,
@@ -24,13 +24,20 @@ import type {
24
24
  u64,
25
25
  } from '@polkadot/types-codec';
26
26
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
27
- import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';
27
+ import type {
28
+ AccountId32,
29
+ Call,
30
+ H160,
31
+ H256,
32
+ MultiAddress,
33
+ } from '@polkadot/types/interfaces/runtime';
28
34
  import type {
29
35
  ArgonPrimitivesBitcoinCompressedBitcoinPubkey,
30
36
  ArgonPrimitivesBitcoinH256Le,
31
37
  ArgonPrimitivesBitcoinOpaqueBitcoinXpub,
32
38
  ArgonPrimitivesBitcoinUtxoRef,
33
39
  ArgonPrimitivesDomainZoneRecord,
40
+ ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
34
41
  ArgonPrimitivesInherentsBitcoinUtxoSync,
35
42
  ArgonPrimitivesInherentsBlockSealInherent,
36
43
  ArgonPrimitivesNotaryNotaryMeta,
@@ -41,11 +48,12 @@ import type {
41
48
  ArgonRuntimeSessionKeys,
42
49
  PalletBalancesAdjustmentDirection,
43
50
  PalletBitcoinLocksLockOptions,
51
+ PalletCrosschainTransferAssetKind,
44
52
  PalletCrosschainTransferChainConfig,
45
- PalletCrosschainTransferTransferProof,
53
+ PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing,
54
+ PalletCrosschainTransferSourceChain,
46
55
  PalletEthereumVerifierBasicOperatingMode,
47
56
  PalletEthereumVerifierCheckpointUpdate,
48
- PalletEthereumVerifierExecutionProof,
49
57
  PalletEthereumVerifierForkVersions,
50
58
  PalletEthereumVerifierUpdate,
51
59
  PalletMultisigTimepoint,
@@ -521,17 +529,129 @@ declare module '@polkadot/api-base/types/submittable' {
521
529
  >;
522
530
  };
523
531
  crosschainTransfer: {
524
- proveTransfer: AugmentedSubmittable<
532
+ approveQueueEntries: AugmentedSubmittable<
533
+ (
534
+ destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
535
+ signatures: Vec<U8aFixed>,
536
+ ) => SubmittableExtrinsic<ApiType>,
537
+ [PalletCrosschainTransferSourceChain, Vec<U8aFixed>]
538
+ >;
539
+ collateralizeTransfer: AugmentedSubmittable<
540
+ (
541
+ transferId: H256 | string | Uint8Array,
542
+ signature: U8aFixed | string | Uint8Array,
543
+ microgonCollateral: Compact<u128> | AnyNumber | Uint8Array,
544
+ micronotCollateral: Compact<u128> | AnyNumber | Uint8Array,
545
+ ) => SubmittableExtrinsic<ApiType>,
546
+ [H256, U8aFixed, Compact<u128>, Compact<u128>]
547
+ >;
548
+ deactivateMintingAuthority: AugmentedSubmittable<
549
+ (
550
+ destinationSigningKey: H160 | string | Uint8Array,
551
+ signature: U8aFixed | string | Uint8Array,
552
+ ) => SubmittableExtrinsic<ApiType>,
553
+ [H160, U8aFixed]
554
+ >;
555
+ forceSetGlobalIssuanceCouncil: AugmentedSubmittable<
556
+ (
557
+ destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
558
+ afterNonce: Compact<u64> | AnyNumber | Uint8Array,
559
+ memberAccountIds: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[],
560
+ ) => SubmittableExtrinsic<ApiType>,
561
+ [PalletCrosschainTransferSourceChain, Compact<u64>, Vec<AccountId32>]
562
+ >;
563
+ pauseGateway: AugmentedSubmittable<
564
+ (
565
+ sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
566
+ ) => SubmittableExtrinsic<ApiType>,
567
+ [PalletCrosschainTransferSourceChain]
568
+ >;
569
+ proveGatewayActivity: AugmentedSubmittable<
570
+ (
571
+ sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
572
+ previousGatewayActivityNonce: Compact<u64> | AnyNumber | Uint8Array,
573
+ proofBatch:
574
+ | ArgonPrimitivesEthereumEthereumReceiptLogProofBatch
575
+ | { executionBlockProof?: any; blocks?: any }
576
+ | string
577
+ | Uint8Array,
578
+ ) => SubmittableExtrinsic<ApiType>,
579
+ [
580
+ PalletCrosschainTransferSourceChain,
581
+ Compact<u64>,
582
+ ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
583
+ ]
584
+ >;
585
+ registerCouncilSigner: AugmentedSubmittable<
525
586
  (
526
- proof: PalletCrosschainTransferTransferProof | { Ethereum: any } | string | Uint8Array,
587
+ destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
588
+ signingKey: H160 | string | Uint8Array,
589
+ signature: U8aFixed | string | Uint8Array,
527
590
  ) => SubmittableExtrinsic<ApiType>,
528
- [PalletCrosschainTransferTransferProof]
591
+ [PalletCrosschainTransferSourceChain, H160, U8aFixed]
592
+ >;
593
+ registerMintingAuthority: AugmentedSubmittable<
594
+ (
595
+ destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
596
+ destinationSigningKey: H160 | string | Uint8Array,
597
+ signature: U8aFixed | string | Uint8Array,
598
+ microgonCollateral: Compact<u128> | AnyNumber | Uint8Array,
599
+ micronotCollateral: Compact<u128> | AnyNumber | Uint8Array,
600
+ ) => SubmittableExtrinsic<ApiType>,
601
+ [PalletCrosschainTransferSourceChain, H160, U8aFixed, Compact<u128>, Compact<u128>]
529
602
  >;
530
603
  setChainConfig: AugmentedSubmittable<
531
604
  (
532
- config: PalletCrosschainTransferChainConfig | { Ethereum: any } | string | Uint8Array,
605
+ sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
606
+ config: PalletCrosschainTransferChainConfig | { Evm: any } | string | Uint8Array,
607
+ ) => SubmittableExtrinsic<ApiType>,
608
+ [PalletCrosschainTransferSourceChain, PalletCrosschainTransferChainConfig]
609
+ >;
610
+ setMinimumMintingAuthorityValue: AugmentedSubmittable<
611
+ (
612
+ destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
613
+ minimumValue: Compact<u128> | AnyNumber | Uint8Array,
614
+ ) => SubmittableExtrinsic<ApiType>,
615
+ [PalletCrosschainTransferSourceChain, Compact<u128>]
616
+ >;
617
+ setMintingAuthorityActivationRepaymentPricing: AugmentedSubmittable<
618
+ (
619
+ destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
620
+ pricing:
621
+ | PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing
622
+ | {
623
+ activationGasCost?: any;
624
+ signatureGasCost?: any;
625
+ estimatedWeiPerGas?: any;
626
+ estimatedMicrogonsPerEth?: any;
627
+ }
628
+ | string
629
+ | Uint8Array,
630
+ ) => SubmittableExtrinsic<ApiType>,
631
+ [
632
+ PalletCrosschainTransferSourceChain,
633
+ PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing,
634
+ ]
635
+ >;
636
+ transferOut: AugmentedSubmittable<
637
+ (
638
+ destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
639
+ asset: PalletCrosschainTransferAssetKind | 'Argon' | 'Argonot' | number | Uint8Array,
640
+ destinationAccount: H160 | string | Uint8Array,
641
+ amount: Compact<u128> | AnyNumber | Uint8Array,
533
642
  ) => SubmittableExtrinsic<ApiType>,
534
- [PalletCrosschainTransferChainConfig]
643
+ [
644
+ PalletCrosschainTransferSourceChain,
645
+ PalletCrosschainTransferAssetKind,
646
+ H160,
647
+ Compact<u128>,
648
+ ]
649
+ >;
650
+ unpauseGateway: AugmentedSubmittable<
651
+ (
652
+ sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
653
+ ) => SubmittableExtrinsic<ApiType>,
654
+ [PalletCrosschainTransferSourceChain]
535
655
  >;
536
656
  };
537
657
  domains: {
@@ -561,6 +681,7 @@ declare module '@polkadot/api-base/types/submittable' {
561
681
  currentSyncCommittee?: any;
562
682
  currentSyncCommitteeBranch?: any;
563
683
  validatorsRoot?: any;
684
+ executionHeaderProof?: any;
564
685
  }
565
686
  | string
566
687
  | Uint8Array,
@@ -580,19 +701,6 @@ declare module '@polkadot/api-base/types/submittable' {
580
701
  ) => SubmittableExtrinsic<ApiType>,
581
702
  [PalletEthereumVerifierCheckpointUpdate, PalletEthereumVerifierForkVersions]
582
703
  >;
583
- /**
584
- * Imports a proven execution header anchor against already-retained beacon state.
585
- **/
586
- importExecutionHeaderAnchor: AugmentedSubmittable<
587
- (
588
- executionProof:
589
- | PalletEthereumVerifierExecutionProof
590
- | { header?: any; executionHeader?: any; executionBranch?: any }
591
- | string
592
- | Uint8Array,
593
- ) => SubmittableExtrinsic<ApiType>,
594
- [PalletEthereumVerifierExecutionProof]
595
- >;
596
704
  /**
597
705
  * Halt or resume all pallet operations. May only be called by root.
598
706
  **/
@@ -609,7 +717,8 @@ declare module '@polkadot/api-base/types/submittable' {
609
717
  >;
610
718
  /**
611
719
  * Submits a new finalized beacon header update. The update may contain the next
612
- * sync committee.
720
+ * sync committee and an execution header witness for the finalized beacon header it
721
+ * advances.
613
722
  **/
614
723
  submit: AugmentedSubmittable<
615
724
  (
@@ -622,6 +731,7 @@ declare module '@polkadot/api-base/types/submittable' {
622
731
  nextSyncCommitteeUpdate?: any;
623
732
  finalizedHeader?: any;
624
733
  finalityBranch?: any;
734
+ executionHeaderProof?: any;
625
735
  }
626
736
  | string
627
737
  | Uint8Array,
@@ -2143,7 +2253,7 @@ declare module '@polkadot/api-base/types/submittable' {
2143
2253
  [u32, u128, u128]
2144
2254
  >;
2145
2255
  /**
2146
- * Change the terms of this vault. The change will be applied at the next mining slot
2256
+ * Change the terms of this vault. The change will be applied at the next mining frame
2147
2257
  * change that is at least `MinTermsModificationBlockDelay` blocks away.
2148
2258
  **/
2149
2259
  modifyTerms: AugmentedSubmittable<
@@ -2175,6 +2285,10 @@ declare module '@polkadot/api-base/types/submittable' {
2175
2285
  ) => SubmittableExtrinsic<ApiType>,
2176
2286
  [Option<AccountId32>]
2177
2287
  >;
2288
+ setCommittedArgonots: AugmentedSubmittable<
2289
+ (amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2290
+ [Compact<u128>]
2291
+ >;
2178
2292
  setName: AugmentedSubmittable<
2179
2293
  (name: Option<Bytes> | null | Uint8Array | Bytes | string) => SubmittableExtrinsic<ApiType>,
2180
2294
  [Option<Bytes>]
@@ -3,14 +3,16 @@
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/types/types/registry';
6
+ import type {} from '@polkadot/types/types/registry';
7
7
 
8
8
  import type {
9
+ ArgonPrimitivesEthereumEthereumCombinedReceiptProof,
9
10
  ArgonPrimitivesEthereumEthereumExecutionBlockProof,
10
11
  ArgonPrimitivesEthereumEthereumExecutionHeader,
11
12
  ArgonPrimitivesEthereumEthereumLog,
12
13
  ArgonPrimitivesEthereumEthereumProof,
13
- ArgonPrimitivesEthereumEthereumReceiptProof,
14
+ ArgonPrimitivesEthereumEthereumReceiptLog,
15
+ ArgonPrimitivesEthereumEthereumReceiptProofReceipt,
14
16
  ArgonPrimitivesEthereumEthereumVerifyError,
15
17
  } from '@argonprotocol/mainchain/interfaces/ethereum';
16
18
  import type { Data, StorageKey } from '@polkadot/types';
@@ -1423,11 +1425,13 @@ declare module '@polkadot/types/types/registry' {
1423
1425
  ApprovalFlag: ApprovalFlag;
1424
1426
  Approvals: Approvals;
1425
1427
  ApprovalVotingParams: ApprovalVotingParams;
1428
+ ArgonPrimitivesEthereumEthereumCombinedReceiptProof: ArgonPrimitivesEthereumEthereumCombinedReceiptProof;
1426
1429
  ArgonPrimitivesEthereumEthereumExecutionBlockProof: ArgonPrimitivesEthereumEthereumExecutionBlockProof;
1427
1430
  ArgonPrimitivesEthereumEthereumExecutionHeader: ArgonPrimitivesEthereumEthereumExecutionHeader;
1428
1431
  ArgonPrimitivesEthereumEthereumLog: ArgonPrimitivesEthereumEthereumLog;
1429
1432
  ArgonPrimitivesEthereumEthereumProof: ArgonPrimitivesEthereumEthereumProof;
1430
- ArgonPrimitivesEthereumEthereumReceiptProof: ArgonPrimitivesEthereumEthereumReceiptProof;
1433
+ ArgonPrimitivesEthereumEthereumReceiptLog: ArgonPrimitivesEthereumEthereumReceiptLog;
1434
+ ArgonPrimitivesEthereumEthereumReceiptProofReceipt: ArgonPrimitivesEthereumEthereumReceiptProofReceipt;
1431
1435
  ArgonPrimitivesEthereumEthereumVerifyError: ArgonPrimitivesEthereumEthereumVerifyError;
1432
1436
  ArithmeticError: ArithmeticError;
1433
1437
  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: 'ArgonPrimitivesEthereumEthereumReceiptProof',
17
+ receiptProof: 'ArgonPrimitivesEthereumEthereumCombinedReceiptProof',
41
18
  },
42
- ArgonPrimitivesEthereumEthereumReceiptProof: {
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,15 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
2
2
  /* eslint-disable */
3
3
 
4
- import type { Bytes, Compact, Enum, Struct, Vec, u64 } from '@polkadot/types-codec';
4
+ import type { Bytes, Compact, Enum, Struct, Vec, u16, u64 } from '@polkadot/types-codec';
5
5
  import type { H160, H256 } from '@polkadot/types/interfaces/runtime';
6
6
 
7
+ /** @name ArgonPrimitivesEthereumEthereumCombinedReceiptProof */
8
+ export interface ArgonPrimitivesEthereumEthereumCombinedReceiptProof extends Struct {
9
+ readonly nodes: Vec<Bytes>;
10
+ readonly receipts: Vec<ArgonPrimitivesEthereumEthereumReceiptProofReceipt>;
11
+ }
12
+
7
13
  /** @name ArgonPrimitivesEthereumEthereumExecutionBlockProof */
8
14
  export interface ArgonPrimitivesEthereumEthereumExecutionBlockProof extends Struct {
9
15
  readonly anchorBlockHash: H256;
@@ -25,13 +31,19 @@ export interface ArgonPrimitivesEthereumEthereumLog extends Struct {
25
31
  /** @name ArgonPrimitivesEthereumEthereumProof */
26
32
  export interface ArgonPrimitivesEthereumEthereumProof extends Struct {
27
33
  readonly executionBlockProof: ArgonPrimitivesEthereumEthereumExecutionBlockProof;
28
- readonly receiptProof: ArgonPrimitivesEthereumEthereumReceiptProof;
34
+ readonly receiptProof: ArgonPrimitivesEthereumEthereumCombinedReceiptProof;
29
35
  }
30
36
 
31
- /** @name ArgonPrimitivesEthereumEthereumReceiptProof */
32
- export interface ArgonPrimitivesEthereumEthereumReceiptProof extends Struct {
37
+ /** @name ArgonPrimitivesEthereumEthereumReceiptLog */
38
+ export interface ArgonPrimitivesEthereumEthereumReceiptLog extends Struct {
33
39
  readonly transactionIndex: Compact<u64>;
34
- readonly nodes: Vec<Bytes>;
40
+ readonly eventLog: ArgonPrimitivesEthereumEthereumLog;
41
+ }
42
+
43
+ /** @name ArgonPrimitivesEthereumEthereumReceiptProofReceipt */
44
+ export interface ArgonPrimitivesEthereumEthereumReceiptProofReceipt extends Struct {
45
+ readonly transactionIndex: Compact<u64>;
46
+ readonly nodeIndexes: Vec<u16>;
35
47
  }
36
48
 
37
49
  /** @name ArgonPrimitivesEthereumEthereumVerifyError */