@chainflip/rpc 1.9.7 → 1.9.9

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/dist/Client.cjs CHANGED
@@ -66,7 +66,10 @@ var Client = (_class = class {
66
66
  void this.handleBatch();
67
67
  }, 0);
68
68
  }
69
- return deferred.promise;
69
+ return deferred.promise.catch((error) => {
70
+ if (error instanceof Error) Error.captureStackTrace(error);
71
+ throw error;
72
+ });
70
73
  }
71
74
  methods() {
72
75
  return Object.keys(_commoncjs.rpcResult).sort();
package/dist/Client.mjs CHANGED
@@ -66,7 +66,10 @@ var Client = class {
66
66
  void this.handleBatch();
67
67
  }, 0);
68
68
  }
69
- return deferred.promise;
69
+ return deferred.promise.catch((error) => {
70
+ if (error instanceof Error) Error.captureStackTrace(error);
71
+ throw error;
72
+ });
70
73
  }
71
74
  methods() {
72
75
  return Object.keys(rpcResult).sort();
package/dist/common.d.cts CHANGED
@@ -125,6 +125,22 @@ type RpcRequest = WithHash<{
125
125
  }>,
126
126
  excludeFees?: Nullish<SwapFeeType[]>,
127
127
  additionalOrders?: Nullish<AdditionalOrder[]>
128
+ ] | [
129
+ fromAsset: UncheckedAssetAndChain,
130
+ toAsset: UncheckedAssetAndChain,
131
+ amount: `0x${string}`,
132
+ brokerComission: number,
133
+ dcaParams?: Nullish<{
134
+ number_of_chunks: number;
135
+ chunk_interval: number;
136
+ }>,
137
+ ccmData?: Nullish<{
138
+ gas_budget: number;
139
+ message_length: number;
140
+ }>,
141
+ excludeFees?: Nullish<SwapFeeType[]>,
142
+ additionalOrders?: Nullish<AdditionalOrder[]>,
143
+ isInternal?: Nullish<boolean>
128
144
  ];
129
145
  cf_boost_pools_depth: [];
130
146
  cf_boost_pool_details: [asset?: UncheckedAssetAndChain | null];
package/dist/common.d.ts CHANGED
@@ -125,6 +125,22 @@ type RpcRequest = WithHash<{
125
125
  }>,
126
126
  excludeFees?: Nullish<SwapFeeType[]>,
127
127
  additionalOrders?: Nullish<AdditionalOrder[]>
128
+ ] | [
129
+ fromAsset: UncheckedAssetAndChain,
130
+ toAsset: UncheckedAssetAndChain,
131
+ amount: `0x${string}`,
132
+ brokerComission: number,
133
+ dcaParams?: Nullish<{
134
+ number_of_chunks: number;
135
+ chunk_interval: number;
136
+ }>,
137
+ ccmData?: Nullish<{
138
+ gas_budget: number;
139
+ message_length: number;
140
+ }>,
141
+ excludeFees?: Nullish<SwapFeeType[]>,
142
+ additionalOrders?: Nullish<AdditionalOrder[]>,
143
+ isInternal?: Nullish<boolean>
128
144
  ];
129
145
  cf_boost_pools_depth: [];
130
146
  cf_boost_pool_details: [asset?: UncheckedAssetAndChain | null];
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "1.9.7",
3
+ "version": "1.9.9",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "0.8.6",
7
- "zod": "^3.24.4"
7
+ "zod": "^3.25.64"
8
8
  },
9
9
  "devDependencies": {
10
- "@types/node": "^22.14.1",
10
+ "@types/node": "^24.0.3",
11
11
  "@types/ws": "^8.18.1",
12
12
  "ws": "^8.18.2"
13
13
  },