@argonprotocol/mainchain 1.4.13-dev.b31b2822 → 1.4.13-dev.f1c9e746

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argonprotocol/mainchain",
3
- "version": "1.4.13-dev.b31b2822",
3
+ "version": "1.4.13-dev.f1c9e746",
4
4
  "description": "A client for accessing the Argon mainchain apis.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,13 +52,13 @@
52
52
  "dependencies": {
53
53
  "@ethereumjs/block": "^10.1.1",
54
54
  "@ethereumjs/mpt": "^10.1.1",
55
- "@polkadot/api": "^16.5.6",
56
- "@polkadot/api-base": "^16.5.6",
55
+ "@polkadot/api": "^17.0.1",
56
+ "@polkadot/api-base": "^17.0.1",
57
57
  "@polkadot/keyring": "^14.0.3",
58
- "@polkadot/rpc-core": "^16.5.6",
59
- "@polkadot/rpc-provider": "^16.5.6",
60
- "@polkadot/types": "^16.5.6",
61
- "@polkadot/types-codec": "^16.5.6",
58
+ "@polkadot/rpc-core": "^17.0.1",
59
+ "@polkadot/rpc-provider": "^17.0.1",
60
+ "@polkadot/types": "^17.0.1",
61
+ "@polkadot/types-codec": "^17.0.1",
62
62
  "@polkadot/util": "^14.0.3",
63
63
  "@polkadot/util-crypto": "^14.0.3",
64
64
  "bignumber.js": "^9.3.1",
@@ -67,15 +67,17 @@
67
67
  },
68
68
  "devDependencies": {
69
69
  "@argonprotocol/ethereum-contracts": "workspace:*",
70
- "@argonprotocol/testing": "1.4.13-dev.b31b2822",
71
- "@polkadot/typegen": "^16.5.6",
70
+ "@argonprotocol/testing": "1.4.13-dev.f1c9e746",
71
+ "@polkadot/typegen": "^17.0.1",
72
72
  "@substrate/ss58-registry": "^1.51.0",
73
73
  "@types/node": "^20",
74
+ "@types/ws": "^8.18.1",
74
75
  "shx": "^0.4.0",
75
76
  "tsup": "^8.5.0",
76
77
  "tsx": "^4.20.4",
77
78
  "typescript": "^5.9.2",
78
- "vitest": "^5.0.0"
79
+ "vitest": "^5.0.0",
80
+ "ws": "^8.18.0"
79
81
  },
80
82
  "packageManager": "yarn@4.1.0"
81
83
  }
@@ -1,4 +1,5 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
2
3
 
3
4
  // import type lookup before we augment - in some environments
4
5
  // this is required to allow for ambient/previous definitions
@@ -1,4 +1,5 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
2
3
 
3
4
  // import type lookup before we augment - in some environments
4
5
  // this is required to allow for ambient/previous definitions
@@ -23,7 +23,11 @@ import type {
23
23
  u64,
24
24
  } from '@polkadot/types-codec';
25
25
  import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
26
- import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
26
+ import type {
27
+ ExtrinsicOrHash,
28
+ ExtrinsicStatus,
29
+ GeneratedSessionKeys,
30
+ } from '@polkadot/types/interfaces/author';
27
31
  import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
28
32
  import type { BeefyVersionedFinalityProof } from '@polkadot/types/interfaces/beefy';
29
33
  import type { BlockHash } from '@polkadot/types/interfaces/chain';
@@ -61,7 +65,7 @@ import type {
61
65
  JustificationNotification,
62
66
  ReportedRoundStates,
63
67
  } from '@polkadot/types/interfaces/grandpa';
64
- import type { MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
68
+ import type { MmrAncestryProof, MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
65
69
  import type { StorageKind } from '@polkadot/types/interfaces/offchain';
66
70
  import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment';
67
71
  import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
@@ -140,6 +144,12 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
140
144
  * Generate new session keys and returns the corresponding public keys
141
145
  **/
142
146
  rotateKeys: AugmentedRpc<() => Observable<Bytes>>;
147
+ /**
148
+ * Generate new session keys and returns the corresponding public keys and owner proof
149
+ **/
150
+ rotateKeysWithOwner: AugmentedRpc<
151
+ (owner: Bytes | string | Uint8Array) => Observable<GeneratedSessionKeys>
152
+ >;
143
153
  /**
144
154
  * Submit and subscribe to watch an extrinsic until unsubscribed
145
155
  **/
@@ -721,6 +731,16 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
721
731
  subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;
722
732
  };
723
733
  mmr: {
734
+ /**
735
+ * Generate an MMR ancestry proof for the given block number.
736
+ **/
737
+ generateAncestryProof: AugmentedRpc<
738
+ (
739
+ prevBlockNumber: u64 | AnyNumber | Uint8Array,
740
+ bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array,
741
+ at?: BlockHash | string | Uint8Array,
742
+ ) => Observable<MmrAncestryProof>
743
+ >;
724
744
  /**
725
745
  * Generate MMR proof for the given block numbers.
726
746
  **/
@@ -1,4 +1,5 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
2
3
 
3
4
  // import type lookup before we augment - in some environments
4
5
  // this is required to allow for ambient/previous definitions
@@ -1,4 +1,5 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
2
3
 
3
4
  import './augment-api-consts.js';
4
5
  import './augment-api-errors.js';
@@ -1,4 +1,5 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
2
+ /* eslint-disable */
2
3
 
3
4
  // import type lookup before we augment - in some environments
4
5
  // this is required to allow for ambient/previous definitions
@@ -66,7 +67,11 @@ import type {
66
67
  MoreAttestations,
67
68
  } from '@polkadot/types/interfaces/attestations';
68
69
  import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura';
69
- import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
70
+ import type {
71
+ ExtrinsicOrHash,
72
+ ExtrinsicStatus,
73
+ GeneratedSessionKeys,
74
+ } from '@polkadot/types/interfaces/author';
70
75
  import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
71
76
  import type {
72
77
  AllowedSlots,
@@ -650,6 +655,7 @@ import type {
650
655
  SessionStatus,
651
656
  } from '@polkadot/types/interfaces/mixnet';
652
657
  import type {
658
+ MmrAncestryProof,
653
659
  MmrBatchProof,
654
660
  MmrEncodableOpaqueLeaf,
655
661
  MmrError,
@@ -1867,6 +1873,7 @@ declare module '@polkadot/types/types/registry' {
1867
1873
  FungibilityV5: FungibilityV5;
1868
1874
  FungiblesAccessError: FungiblesAccessError;
1869
1875
  Gas: Gas;
1876
+ GeneratedSessionKeys: GeneratedSessionKeys;
1870
1877
  GenesisBuildErr: GenesisBuildErr;
1871
1878
  GiltBid: GiltBid;
1872
1879
  GlobalValidationData: GlobalValidationData;
@@ -2033,6 +2040,7 @@ declare module '@polkadot/types/types/registry' {
2033
2040
  MigrationStatusResult: MigrationStatusResult;
2034
2041
  Mixnode: Mixnode;
2035
2042
  MixnodesErr: MixnodesErr;
2043
+ MmrAncestryProof: MmrAncestryProof;
2036
2044
  MmrBatchProof: MmrBatchProof;
2037
2045
  MmrEncodableOpaqueLeaf: MmrEncodableOpaqueLeaf;
2038
2046
  MmrError: MmrError;
@@ -1,4 +1,7 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
2
+ /* eslint-disable */
3
+
4
+ /* eslint-disable sort-keys */
2
5
 
3
6
  export default {
4
7
  /**
@@ -1,4 +1,5 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
2
+ /* eslint-disable */
2
3
 
3
4
  // import type lookup before we augment - in some environments
4
5
  // this is required to allow for ambient/previous definitions