@argonprotocol/mainchain 1.4.3-dev.4e058920 → 1.4.3-dev.5e4d8d6a

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 (37) hide show
  1. package/browser/index.d.ts +190 -157
  2. package/browser/index.js +249 -269
  3. package/browser/index.js.map +1 -1
  4. package/lib/index.cjs +244 -281
  5. package/lib/index.cjs.map +1 -1
  6. package/lib/index.d.cts +190 -157
  7. package/lib/index.d.ts +190 -157
  8. package/lib/index.js +241 -278
  9. package/lib/index.js.map +1 -1
  10. package/package.json +2 -5
  11. package/src/interfaces/augment-api-consts.ts +5 -5
  12. package/src/interfaces/augment-api-errors.ts +6 -1
  13. package/src/interfaces/augment-api-events.ts +7 -7
  14. package/src/interfaces/augment-api-query.ts +14 -5
  15. package/src/interfaces/augment-api-rpc.ts +1 -1
  16. package/src/interfaces/augment-api-runtime.ts +1 -1
  17. package/src/interfaces/augment-api-tx.ts +1 -1
  18. package/src/interfaces/augment-types.ts +1 -1
  19. package/src/interfaces/lookup.ts +132 -124
  20. package/src/interfaces/registry.ts +8 -6
  21. package/src/interfaces/types-lookup.ts +134 -123
  22. package/lib/chunk-3KFMHNNJ.cjs +0 -706
  23. package/lib/chunk-3KFMHNNJ.cjs.map +0 -1
  24. package/lib/chunk-D3FCDADJ.cjs +0 -175
  25. package/lib/chunk-D3FCDADJ.cjs.map +0 -1
  26. package/lib/chunk-RF6NOJOR.js +0 -706
  27. package/lib/chunk-RF6NOJOR.js.map +0 -1
  28. package/lib/chunk-YPXWOFUS.js +0 -175
  29. package/lib/chunk-YPXWOFUS.js.map +0 -1
  30. package/lib/lib-CU2JUZW6.cjs +0 -403
  31. package/lib/lib-CU2JUZW6.cjs.map +0 -1
  32. package/lib/lib-P3PEMYOB.js +0 -403
  33. package/lib/lib-P3PEMYOB.js.map +0 -1
  34. package/lib/setPreset-NCTHSXWD.js +0 -15
  35. package/lib/setPreset-NCTHSXWD.js.map +0 -1
  36. package/lib/setPreset-XHOPATBO.cjs +0 -15
  37. 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.4e058920",
3
+ "version": "1.4.3-dev.5e4d8d6a",
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.4e058920",
68
+ "@argonprotocol/testing": "1.4.3-dev.5e4d8d6a",
72
69
  "@polkadot/typegen": "^16.5.6",
73
70
  "@substrate/ss58-registry": "^1.51.0",
74
71
  "@types/node": "^20",
@@ -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/consts';
6
+ import type {} from '@polkadot/api-base/types/consts';
7
7
 
8
8
  import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
9
9
  import type { bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
@@ -172,14 +172,14 @@ declare module '@polkadot/api-base/types/consts' {
172
172
  recentTransferRetentionTicks: u64 & AugmentedConst<ApiType>;
173
173
  };
174
174
  ethereumVerifier: {
175
- /**
176
- * Whether the read-only event-log verification API is enabled.
177
- **/
178
- eventLogVerifierEnabled: bool & AugmentedConst<ApiType>;
179
175
  /**
180
176
  * Minimum gap between finalized headers for an update to be free.
181
177
  **/
182
178
  freeHeadersInterval: u32 & AugmentedConst<ApiType>;
179
+ /**
180
+ * Whether the read-only event-log verification API is enabled.
181
+ **/
182
+ verifyEventLogApiEnabled: bool & AugmentedConst<ApiType>;
183
183
  };
184
184
  grandpa: {
185
185
  /**
@@ -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
 
@@ -353,6 +353,10 @@ declare module '@polkadot/api-base/types/errors' {
353
353
  MaxNotebooksAtTickExceeded: AugmentedError<ApiType>;
354
354
  };
355
355
  crosschainTransfer: {
356
+ /**
357
+ * The captured reimbursable fee is greater than or equal to the burned Argon amount.
358
+ **/
359
+ InsufficientBurnAmountForFee: AugmentedError<ApiType>;
356
360
  /**
357
361
  * The burn account lacks enough balance for the payout.
358
362
  **/
@@ -501,6 +505,7 @@ declare module '@polkadot/api-base/types/errors' {
501
505
  SyncCommitteeHashTreeRootFailed: AugmentedError<ApiType>;
502
506
  SyncCommitteeParticipantsNotSupermajority: AugmentedError<ApiType>;
503
507
  SyncCommitteeUpdateRequired: AugmentedError<ApiType>;
508
+ UnexpectedBeaconPreset: AugmentedError<ApiType>;
504
509
  };
505
510
  feeControl: {
506
511
  /**
@@ -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 {
@@ -322,7 +322,7 @@ declare module '@polkadot/api-base/types/events' {
322
322
  vaultId: u32,
323
323
  liquidityPromised: u128,
324
324
  securitization: u128,
325
- lockedMarketRate: u128,
325
+ lockedTargetPrice: u128,
326
326
  accountId: AccountId32,
327
327
  securityFee: u128,
328
328
  ],
@@ -331,7 +331,7 @@ declare module '@polkadot/api-base/types/events' {
331
331
  vaultId: u32;
332
332
  liquidityPromised: u128;
333
333
  securitization: u128;
334
- lockedMarketRate: u128;
334
+ lockedTargetPrice: u128;
335
335
  accountId: AccountId32;
336
336
  securityFee: u128;
337
337
  }
@@ -342,9 +342,9 @@ declare module '@polkadot/api-base/types/events' {
342
342
  utxoId: u64,
343
343
  vaultId: u32,
344
344
  liquidityPromised: u128,
345
- originalMarketRate: u128,
345
+ oldTargetPrice: u128,
346
346
  securityFee: u128,
347
- newLockedMarketRate: u128,
347
+ newTargetPrice: u128,
348
348
  amountBurned: u128,
349
349
  accountId: AccountId32,
350
350
  ],
@@ -352,9 +352,9 @@ declare module '@polkadot/api-base/types/events' {
352
352
  utxoId: u64;
353
353
  vaultId: u32;
354
354
  liquidityPromised: u128;
355
- originalMarketRate: u128;
355
+ oldTargetPrice: u128;
356
356
  securityFee: u128;
357
- newLockedMarketRate: u128;
357
+ newTargetPrice: u128;
358
358
  amountBurned: u128;
359
359
  accountId: AccountId32;
360
360
  }
@@ -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/storage';
6
+ import type {} from '@polkadot/api-base/types/storage';
7
7
 
8
8
  import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
9
9
  import type {
@@ -40,6 +40,7 @@ import type {
40
40
  ArgonPrimitivesDigestsFrameInfo,
41
41
  ArgonPrimitivesDigestsNotebookDigest,
42
42
  ArgonPrimitivesDomainZoneRecord,
43
+ ArgonPrimitivesEthereumEthereumBeaconPreset,
43
44
  ArgonPrimitivesForkPower,
44
45
  ArgonPrimitivesInherentsBlockSealInherent,
45
46
  ArgonPrimitivesNotaryNotaryMeta,
@@ -71,6 +72,7 @@ import type {
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,
@@ -553,12 +554,20 @@ declare module '@polkadot/api-base/types/storage' {
553
554
  >;
554
555
  };
555
556
  ethereumVerifier: {
557
+ /**
558
+ * Chain-configured beacon preset expected by clients that submit verifier updates.
559
+ **/
560
+ beaconPreset: AugmentedQuery<
561
+ ApiType,
562
+ () => Observable<ArgonPrimitivesEthereumEthereumBeaconPreset>,
563
+ []
564
+ >;
556
565
  /**
557
566
  * Sync committee for current period
558
567
  **/
559
568
  currentSyncCommittee: AugmentedQuery<
560
569
  ApiType,
561
- () => Observable<SnowbridgeBeaconPrimitivesSyncCommitteePrepared>,
570
+ () => Observable<PalletEthereumVerifierSyncCommitteePrepared>,
562
571
  []
563
572
  >;
564
573
  /**
@@ -638,7 +647,7 @@ declare module '@polkadot/api-base/types/storage' {
638
647
  **/
639
648
  nextSyncCommittee: AugmentedQuery<
640
649
  ApiType,
641
- () => Observable<SnowbridgeBeaconPrimitivesSyncCommitteePrepared>,
650
+ () => Observable<PalletEthereumVerifierSyncCommitteePrepared>,
642
651
  []
643
652
  >;
644
653
  /**
@@ -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';
@@ -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/calls';
6
+ import type {} from '@polkadot/api-base/types/calls';
7
7
 
8
8
  import type { ArgonPrimitivesEthereumEthereumVerifyError } from '@argonprotocol/mainchain/interfaces/ethereum';
9
9
  import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
@@ -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,
@@ -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/types/types/registry';
6
+ import type {} from '@polkadot/types/types/registry';
7
7
 
8
8
  import type {
9
9
  ArgonPrimitivesEthereumEthereumExecutionBlockProof,