@galacticcouncil/sdk-next 0.31.0 → 0.32.0

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.
@@ -1,9 +1,10 @@
1
1
  import { PolkadotClient, TypedApi } from 'polkadot-api';
2
- import { hydration } from '@galacticcouncil/descriptors';
2
+ import { hydration, hydrationNext } from '@galacticcouncil/descriptors';
3
3
  import { Watcher } from './Watcher';
4
4
  export declare abstract class Papi {
5
5
  readonly client: PolkadotClient;
6
6
  readonly api: TypedApi<typeof hydration>;
7
+ readonly apiNext: TypedApi<typeof hydrationNext>;
7
8
  readonly watcher: Watcher;
8
9
  constructor(client: PolkadotClient);
9
10
  }
@@ -2,6 +2,7 @@ import { PolkadotClient } from 'polkadot-api';
2
2
  import type { PublicClient } from 'viem';
3
3
  export declare class EvmRpcAdapter {
4
4
  private api;
5
+ private apiNext;
5
6
  constructor(client: PolkadotClient);
6
7
  getBlock(): Promise<{
7
8
  timestamp: bigint;
@@ -33,24 +33,25 @@ export declare class StakingClient extends Papi {
33
33
  "origin": import("polkadot-api").Enum<{
34
34
  system: import("@galacticcouncil/descriptors").DispatchRawOrigin;
35
35
  TechnicalCommittee: import("polkadot-api").Enum<{
36
- "Members": import("polkadot-api").FixedSizeArray<2, number>;
37
- "Member": import("polkadot-api").SS58String;
38
- "_Phantom": undefined;
36
+ Members: import("polkadot-api").FixedSizeArray<2, number>;
37
+ Member: import("polkadot-api").SS58String;
38
+ _Phantom: undefined;
39
39
  }>;
40
40
  Origins: import("polkadot-api").Enum<{
41
- "WhitelistedCaller": undefined;
42
- "ReferendumCanceller": undefined;
43
- "ReferendumKiller": undefined;
44
- "GeneralAdmin": undefined;
45
- "OmnipoolAdmin": undefined;
46
- "Treasurer": undefined;
47
- "Spender": undefined;
48
- "Tipper": undefined;
49
- "EconomicParameters": undefined;
50
- }>;
51
- Ethereum: import("polkadot-api").Enum<{
52
- "EthereumTransaction": import("polkadot-api").FixedSizeBinary<20>;
41
+ WhitelistedCaller: undefined;
42
+ ReferendumCanceller: undefined;
43
+ ReferendumKiller: undefined;
44
+ GeneralAdmin: undefined;
45
+ OmnipoolAdmin: undefined;
46
+ Treasurer: undefined;
47
+ Spender: undefined;
48
+ Tipper: undefined;
49
+ EconomicParameters: undefined;
53
50
  }>;
51
+ Ethereum: {
52
+ type: "EthereumTransaction";
53
+ value: import("polkadot-api").FixedSizeBinary<20>;
54
+ };
54
55
  PolkadotXcm: import("@galacticcouncil/descriptors").XcmPalletOrigin;
55
56
  CumulusXcm: import("polkadot-api").Enum<{
56
57
  Relay: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacticcouncil/sdk-next",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "description": "Galactic next gen sdk (papi)",
5
5
  "author": "GalacticCouncil",
6
6
  "repository": {
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@galacticcouncil/common": ">=0.4.1 <1.0.0",
52
- "@galacticcouncil/descriptors": ">=1.9.0 <2.0.0",
52
+ "@galacticcouncil/descriptors": ">=1.12.0 <2.0.0",
53
53
  "polkadot-api": "^1.23.3",
54
54
  "viem": "^2.38.3"
55
55
  }