@chainflip/rpc 1.6.12 → 1.8.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.
package/dist/parsers.mjs CHANGED
@@ -153,6 +153,36 @@ var brokerRequestSwapDepositAddress = z.object({
153
153
  source_chain_expiry_block: numberOrHex,
154
154
  channel_opening_fee: u256
155
155
  });
156
+ var evmBrokerRequestSwapParameterEncoding = z.object({
157
+ to: hexString,
158
+ calldata: hexString,
159
+ value: numberOrHex
160
+ });
161
+ var brokerRequestSwapParameterEncoding = z.discriminatedUnion("chain", [
162
+ z.object({
163
+ chain: z.literal("Bitcoin"),
164
+ nulldata_payload: hexString,
165
+ deposit_address: z.string()
166
+ }),
167
+ evmBrokerRequestSwapParameterEncoding.extend({
168
+ chain: z.literal("Ethereum")
169
+ }),
170
+ evmBrokerRequestSwapParameterEncoding.extend({
171
+ chain: z.literal("Arbitrum")
172
+ }),
173
+ z.object({
174
+ chain: z.literal("Solana"),
175
+ program_id: z.string(),
176
+ data: hexString,
177
+ accounts: z.array(
178
+ z.object({
179
+ pubkey: z.string(),
180
+ is_signer: z.boolean(),
181
+ is_writable: z.boolean()
182
+ })
183
+ )
184
+ })
185
+ ]);
156
186
  var unregistered = z.object({
157
187
  role: z.literal("unregistered"),
158
188
  flip_balance: numberOrHex
@@ -160,7 +190,8 @@ var unregistered = z.object({
160
190
  var broker = z.object({
161
191
  role: z.literal("broker"),
162
192
  flip_balance: numberOrHex,
163
- earned_fees: chainAssetMapFactory(numberOrHex, 0)
193
+ earned_fees: chainAssetMapFactory(numberOrHex, 0),
194
+ btc_vault_deposit_address: z.string().nullable()
164
195
  });
165
196
  var boostBalances = z.array(
166
197
  z.object({
@@ -277,6 +308,7 @@ var cfBoostPoolPendingFees = z.array(
277
308
  export {
278
309
  broker,
279
310
  brokerRequestSwapDepositAddress,
311
+ brokerRequestSwapParameterEncoding,
280
312
  cfAccountInfo,
281
313
  cfAccounts,
282
314
  cfBoostPoolDetails,
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "1.6.12",
3
+ "version": "1.8.0",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "0.4.0",
7
7
  "zod": "^3.24.1"
8
8
  },
9
9
  "devDependencies": {
10
- "@types/node": "^22.10.2",
11
- "@types/ws": "^8.5.13",
10
+ "@types/node": "^22.13.0",
11
+ "@types/ws": "^8.5.14",
12
12
  "ws": "^8.18.0"
13
13
  },
14
14
  "files": [