@chainflip/rpc 1.11.5 → 1.11.7

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.d.ts CHANGED
@@ -2170,6 +2170,46 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
2170
2170
  Solana: string | number;
2171
2171
  Assethub: string | number;
2172
2172
  }>;
2173
+ ingress_delays: z.ZodOptional<z.ZodObject<Omit<{
2174
+ Bitcoin: z.ZodNumber;
2175
+ Ethereum: z.ZodNumber;
2176
+ Polkadot: z.ZodNumber;
2177
+ Arbitrum: z.ZodNumber;
2178
+ Solana: z.ZodNumber;
2179
+ Assethub: z.ZodNumber;
2180
+ }, "Polkadot">, "strip", z.ZodTypeAny, {
2181
+ Bitcoin: number;
2182
+ Ethereum: number;
2183
+ Arbitrum: number;
2184
+ Solana: number;
2185
+ Assethub: number;
2186
+ }, {
2187
+ Bitcoin: number;
2188
+ Ethereum: number;
2189
+ Arbitrum: number;
2190
+ Solana: number;
2191
+ Assethub: number;
2192
+ }>>;
2193
+ boost_delays: z.ZodOptional<z.ZodObject<Omit<{
2194
+ Bitcoin: z.ZodNumber;
2195
+ Ethereum: z.ZodNumber;
2196
+ Polkadot: z.ZodNumber;
2197
+ Arbitrum: z.ZodNumber;
2198
+ Solana: z.ZodNumber;
2199
+ Assethub: z.ZodNumber;
2200
+ }, "Polkadot">, "strip", z.ZodTypeAny, {
2201
+ Bitcoin: number;
2202
+ Ethereum: number;
2203
+ Arbitrum: number;
2204
+ Solana: number;
2205
+ Assethub: number;
2206
+ }, {
2207
+ Bitcoin: number;
2208
+ Ethereum: number;
2209
+ Arbitrum: number;
2210
+ Solana: number;
2211
+ Assethub: number;
2212
+ }>>;
2173
2213
  }, "strip", z.ZodTypeAny, {
2174
2214
  minimum_deposit_amounts: {
2175
2215
  Bitcoin: {
@@ -2281,6 +2321,20 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
2281
2321
  Solana: bigint;
2282
2322
  Assethub: bigint;
2283
2323
  };
2324
+ ingress_delays?: {
2325
+ Bitcoin: number;
2326
+ Ethereum: number;
2327
+ Arbitrum: number;
2328
+ Solana: number;
2329
+ Assethub: number;
2330
+ } | undefined;
2331
+ boost_delays?: {
2332
+ Bitcoin: number;
2333
+ Ethereum: number;
2334
+ Arbitrum: number;
2335
+ Solana: number;
2336
+ Assethub: number;
2337
+ } | undefined;
2284
2338
  }, {
2285
2339
  minimum_deposit_amounts: {
2286
2340
  Bitcoin: {
@@ -2392,6 +2446,20 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
2392
2446
  Solana: string | number;
2393
2447
  Assethub: string | number;
2394
2448
  };
2449
+ ingress_delays?: {
2450
+ Bitcoin: number;
2451
+ Ethereum: number;
2452
+ Arbitrum: number;
2453
+ Solana: number;
2454
+ Assethub: number;
2455
+ } | undefined;
2456
+ boost_delays?: {
2457
+ Bitcoin: number;
2458
+ Ethereum: number;
2459
+ Arbitrum: number;
2460
+ Solana: number;
2461
+ Assethub: number;
2462
+ } | undefined;
2395
2463
  }>, Rename<{
2396
2464
  minimum_deposit_amounts: {
2397
2465
  Bitcoin: {
@@ -2503,6 +2571,20 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
2503
2571
  Solana: bigint;
2504
2572
  Assethub: bigint;
2505
2573
  };
2574
+ ingress_delays?: {
2575
+ Bitcoin: number;
2576
+ Ethereum: number;
2577
+ Arbitrum: number;
2578
+ Solana: number;
2579
+ Assethub: number;
2580
+ } | undefined;
2581
+ boost_delays?: {
2582
+ Bitcoin: number;
2583
+ Ethereum: number;
2584
+ Arbitrum: number;
2585
+ Solana: number;
2586
+ Assethub: number;
2587
+ } | undefined;
2506
2588
  }, {
2507
2589
  readonly egress_dust_limits: "minimum_egress_amounts";
2508
2590
  }>, {
@@ -2616,6 +2698,20 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
2616
2698
  Solana: string | number;
2617
2699
  Assethub: string | number;
2618
2700
  };
2701
+ ingress_delays?: {
2702
+ Bitcoin: number;
2703
+ Ethereum: number;
2704
+ Arbitrum: number;
2705
+ Solana: number;
2706
+ Assethub: number;
2707
+ } | undefined;
2708
+ boost_delays?: {
2709
+ Bitcoin: number;
2710
+ Ethereum: number;
2711
+ Arbitrum: number;
2712
+ Solana: number;
2713
+ Assethub: number;
2714
+ } | undefined;
2619
2715
  }>;
2620
2716
  declare const cfSwappingEnvironment: z.ZodObject<{
2621
2717
  maximum_swap_amounts: z.ZodObject<Omit<{
@@ -8575,6 +8671,46 @@ declare const cfEnvironment: z.ZodObject<{
8575
8671
  Solana: string | number;
8576
8672
  Assethub: string | number;
8577
8673
  }>;
8674
+ ingress_delays: z.ZodOptional<z.ZodObject<Omit<{
8675
+ Bitcoin: z.ZodNumber;
8676
+ Ethereum: z.ZodNumber;
8677
+ Polkadot: z.ZodNumber;
8678
+ Arbitrum: z.ZodNumber;
8679
+ Solana: z.ZodNumber;
8680
+ Assethub: z.ZodNumber;
8681
+ }, "Polkadot">, "strip", z.ZodTypeAny, {
8682
+ Bitcoin: number;
8683
+ Ethereum: number;
8684
+ Arbitrum: number;
8685
+ Solana: number;
8686
+ Assethub: number;
8687
+ }, {
8688
+ Bitcoin: number;
8689
+ Ethereum: number;
8690
+ Arbitrum: number;
8691
+ Solana: number;
8692
+ Assethub: number;
8693
+ }>>;
8694
+ boost_delays: z.ZodOptional<z.ZodObject<Omit<{
8695
+ Bitcoin: z.ZodNumber;
8696
+ Ethereum: z.ZodNumber;
8697
+ Polkadot: z.ZodNumber;
8698
+ Arbitrum: z.ZodNumber;
8699
+ Solana: z.ZodNumber;
8700
+ Assethub: z.ZodNumber;
8701
+ }, "Polkadot">, "strip", z.ZodTypeAny, {
8702
+ Bitcoin: number;
8703
+ Ethereum: number;
8704
+ Arbitrum: number;
8705
+ Solana: number;
8706
+ Assethub: number;
8707
+ }, {
8708
+ Bitcoin: number;
8709
+ Ethereum: number;
8710
+ Arbitrum: number;
8711
+ Solana: number;
8712
+ Assethub: number;
8713
+ }>>;
8578
8714
  }, "strip", z.ZodTypeAny, {
8579
8715
  minimum_deposit_amounts: {
8580
8716
  Bitcoin: {
@@ -8686,6 +8822,20 @@ declare const cfEnvironment: z.ZodObject<{
8686
8822
  Solana: bigint;
8687
8823
  Assethub: bigint;
8688
8824
  };
8825
+ ingress_delays?: {
8826
+ Bitcoin: number;
8827
+ Ethereum: number;
8828
+ Arbitrum: number;
8829
+ Solana: number;
8830
+ Assethub: number;
8831
+ } | undefined;
8832
+ boost_delays?: {
8833
+ Bitcoin: number;
8834
+ Ethereum: number;
8835
+ Arbitrum: number;
8836
+ Solana: number;
8837
+ Assethub: number;
8838
+ } | undefined;
8689
8839
  }, {
8690
8840
  minimum_deposit_amounts: {
8691
8841
  Bitcoin: {
@@ -8797,6 +8947,20 @@ declare const cfEnvironment: z.ZodObject<{
8797
8947
  Solana: string | number;
8798
8948
  Assethub: string | number;
8799
8949
  };
8950
+ ingress_delays?: {
8951
+ Bitcoin: number;
8952
+ Ethereum: number;
8953
+ Arbitrum: number;
8954
+ Solana: number;
8955
+ Assethub: number;
8956
+ } | undefined;
8957
+ boost_delays?: {
8958
+ Bitcoin: number;
8959
+ Ethereum: number;
8960
+ Arbitrum: number;
8961
+ Solana: number;
8962
+ Assethub: number;
8963
+ } | undefined;
8800
8964
  }>, Rename<{
8801
8965
  minimum_deposit_amounts: {
8802
8966
  Bitcoin: {
@@ -8908,6 +9072,20 @@ declare const cfEnvironment: z.ZodObject<{
8908
9072
  Solana: bigint;
8909
9073
  Assethub: bigint;
8910
9074
  };
9075
+ ingress_delays?: {
9076
+ Bitcoin: number;
9077
+ Ethereum: number;
9078
+ Arbitrum: number;
9079
+ Solana: number;
9080
+ Assethub: number;
9081
+ } | undefined;
9082
+ boost_delays?: {
9083
+ Bitcoin: number;
9084
+ Ethereum: number;
9085
+ Arbitrum: number;
9086
+ Solana: number;
9087
+ Assethub: number;
9088
+ } | undefined;
8911
9089
  }, {
8912
9090
  readonly egress_dust_limits: "minimum_egress_amounts";
8913
9091
  }>, {
@@ -9021,6 +9199,20 @@ declare const cfEnvironment: z.ZodObject<{
9021
9199
  Solana: string | number;
9022
9200
  Assethub: string | number;
9023
9201
  };
9202
+ ingress_delays?: {
9203
+ Bitcoin: number;
9204
+ Ethereum: number;
9205
+ Arbitrum: number;
9206
+ Solana: number;
9207
+ Assethub: number;
9208
+ } | undefined;
9209
+ boost_delays?: {
9210
+ Bitcoin: number;
9211
+ Ethereum: number;
9212
+ Arbitrum: number;
9213
+ Solana: number;
9214
+ Assethub: number;
9215
+ } | undefined;
9024
9216
  }>;
9025
9217
  swapping: z.ZodObject<{
9026
9218
  maximum_swap_amounts: z.ZodObject<Omit<{
@@ -14606,6 +14798,20 @@ declare const cfEnvironment: z.ZodObject<{
14606
14798
  Solana: bigint;
14607
14799
  Assethub: bigint;
14608
14800
  };
14801
+ ingress_delays?: {
14802
+ Bitcoin: number;
14803
+ Ethereum: number;
14804
+ Arbitrum: number;
14805
+ Solana: number;
14806
+ Assethub: number;
14807
+ } | undefined;
14808
+ boost_delays?: {
14809
+ Bitcoin: number;
14810
+ Ethereum: number;
14811
+ Arbitrum: number;
14812
+ Solana: number;
14813
+ Assethub: number;
14814
+ } | undefined;
14609
14815
  }, "egress_dust_limits"> & {
14610
14816
  readonly minimum_egress_amounts: {
14611
14817
  Bitcoin: {
@@ -15395,6 +15601,20 @@ declare const cfEnvironment: z.ZodObject<{
15395
15601
  Solana: string | number;
15396
15602
  Assethub: string | number;
15397
15603
  };
15604
+ ingress_delays?: {
15605
+ Bitcoin: number;
15606
+ Ethereum: number;
15607
+ Arbitrum: number;
15608
+ Solana: number;
15609
+ Assethub: number;
15610
+ } | undefined;
15611
+ boost_delays?: {
15612
+ Bitcoin: number;
15613
+ Ethereum: number;
15614
+ Arbitrum: number;
15615
+ Solana: number;
15616
+ Assethub: number;
15617
+ } | undefined;
15398
15618
  };
15399
15619
  swapping: {
15400
15620
  maximum_swap_amounts: {
@@ -22918,7 +23138,7 @@ declare const cfAccountInfo: z.ZodEffects<z.ZodDiscriminatedUnion<"role", [z.Zod
22918
23138
  bid: string | number;
22919
23139
  } | undefined;
22920
23140
  }>;
22921
- declare const cfAccounts: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
23141
+ declare const cfAccounts: z.ZodArray<z.ZodTuple<[z.ZodEffects<z.ZodString, `cF${string}`, string>, z.ZodString], null>, "many">;
22922
23142
  declare const cfPoolPriceV2: z.ZodObject<{
22923
23143
  sell: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>>;
22924
23144
  buy: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>>;
@@ -31537,5 +31757,82 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31537
31757
  is_hard: boolean;
31538
31758
  } | null;
31539
31759
  }>, "many">;
31760
+ declare const cfVaultAddresses: z.ZodEffects<z.ZodEffects<z.ZodObject<{
31761
+ ethereum: z.ZodObject<{
31762
+ Eth: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, `0x${string}`, number[]>;
31763
+ }, "strip", z.ZodTypeAny, {
31764
+ Eth: `0x${string}`;
31765
+ }, {
31766
+ Eth: number[];
31767
+ }>;
31768
+ arbitrum: z.ZodObject<{
31769
+ Arb: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, `0x${string}`, number[]>;
31770
+ }, "strip", z.ZodTypeAny, {
31771
+ Arb: `0x${string}`;
31772
+ }, {
31773
+ Arb: number[];
31774
+ }>;
31775
+ bitcoin: z.ZodArray<z.ZodTuple<[z.ZodEffects<z.ZodString, `cF${string}`, string>, z.ZodObject<{
31776
+ Btc: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, string, number[]>;
31777
+ }, "strip", z.ZodTypeAny, {
31778
+ Btc: string;
31779
+ }, {
31780
+ Btc: number[];
31781
+ }>], null>, "many">;
31782
+ }, "strip", z.ZodTypeAny, {
31783
+ ethereum: {
31784
+ Eth: `0x${string}`;
31785
+ };
31786
+ arbitrum: {
31787
+ Arb: `0x${string}`;
31788
+ };
31789
+ bitcoin: [`cF${string}`, {
31790
+ Btc: string;
31791
+ }][];
31792
+ }, {
31793
+ ethereum: {
31794
+ Eth: number[];
31795
+ };
31796
+ arbitrum: {
31797
+ Arb: number[];
31798
+ };
31799
+ bitcoin: [string, {
31800
+ Btc: number[];
31801
+ }][];
31802
+ }>, {
31803
+ Ethereum: `0x${string}`;
31804
+ Arbitrum: `0x${string}`;
31805
+ Bitcoin: Map<`cF${string}`, {
31806
+ current: string;
31807
+ previous: string;
31808
+ }>;
31809
+ }, {
31810
+ ethereum: {
31811
+ Eth: number[];
31812
+ };
31813
+ arbitrum: {
31814
+ Arb: number[];
31815
+ };
31816
+ bitcoin: [string, {
31817
+ Btc: number[];
31818
+ }][];
31819
+ }>, {
31820
+ Ethereum: `0x${string}`;
31821
+ Arbitrum: `0x${string}`;
31822
+ Bitcoin: Map<`cF${string}`, {
31823
+ current: string;
31824
+ previous: string;
31825
+ }>;
31826
+ }, {
31827
+ ethereum: {
31828
+ Eth: number[];
31829
+ };
31830
+ arbitrum: {
31831
+ Arb: number[];
31832
+ };
31833
+ bitcoin: [string, {
31834
+ Btc: number[];
31835
+ }][];
31836
+ }>;
31540
31837
 
31541
- export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, accountInfoCommon, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfGetTradingStrategyLimits, cfIngressEgressEnvironment, cfLendingConfig, cfLendingPools, cfLoanAccount, cfLoanAccounts, cfMonitoringSimulateAuction, cfOraclePrices, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSafeModeStatuses, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, numericString, operator, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
31838
+ export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, accountInfoCommon, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfGetTradingStrategyLimits, cfIngressEgressEnvironment, cfLendingConfig, cfLendingPools, cfLoanAccount, cfLoanAccounts, cfMonitoringSimulateAuction, cfOraclePrices, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSafeModeStatuses, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, cfVaultAddresses, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, numericString, operator, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
package/dist/parsers.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  // src/parsers.ts
2
+ import { bytesToHex } from "@chainflip/utils/bytes";
2
3
  import { priceAssets } from "@chainflip/utils/chainflip";
3
4
  import { isUndefined } from "@chainflip/utils/guard";
4
5
  import { isHex } from "@chainflip/utils/string";
@@ -106,7 +107,11 @@ var cfIngressEgressEnvironment = z.object({
106
107
  egress_fees: chainAssetMapFactory(numberOrHex.nullable(), null),
107
108
  witness_safety_margins: chainMapFactory(z.number().nullable(), null),
108
109
  egress_dust_limits: chainAssetMapFactory(numberOrHex, 0),
109
- channel_opening_fees: chainMapFactory(numberOrHex, 0)
110
+ channel_opening_fees: chainMapFactory(numberOrHex, 0),
111
+ ingress_delays: chainMapFactory(z.number(), 0).optional(),
112
+ // TODO(1.12): remove after all networks upgraded
113
+ boost_delays: chainMapFactory(z.number(), 0).optional()
114
+ // TODO(1.12): remove after all networks upgraded
110
115
  }).transform(rename({ egress_dust_limits: "minimum_egress_amounts" }));
111
116
  var cfSwappingEnvironment = z.object({
112
117
  maximum_swap_amounts: chainAssetMapFactory(numberOrHex.nullable(), null),
@@ -319,7 +324,7 @@ var cfAccountInfo = z.discriminatedUnion("role", [unregistered, broker, operator
319
324
  }
320
325
  }
321
326
  });
322
- var cfAccounts = z.array(z.tuple([z.string(), z.string()]));
327
+ var cfAccounts = z.array(z.tuple([accountId, z.string()]));
323
328
  var cfPoolPriceV2 = z.object({
324
329
  sell: numberOrHex.nullable(),
325
330
  buy: numberOrHex.nullable(),
@@ -649,6 +654,46 @@ var cfLoanAccount = z.object({
649
654
  }).nullable()
650
655
  });
651
656
  var cfLoanAccounts = z.array(cfLoanAccount);
657
+ var cfVaultAddresses = z.object({
658
+ ethereum: z.object({ Eth: z.array(z.number()).length(20).transform(bytesToHex) }),
659
+ arbitrum: z.object({ Arb: z.array(z.number()).length(20).transform(bytesToHex) }),
660
+ bitcoin: z.array(
661
+ z.tuple([
662
+ accountId,
663
+ z.object({
664
+ Btc: z.array(z.number()).transform((bytes) => new TextDecoder().decode(new Uint8Array(bytes)))
665
+ })
666
+ ])
667
+ )
668
+ }).transform(({ ethereum, arbitrum, bitcoin }) => {
669
+ const bitcoinAddresses = bitcoin.reduce((acc, [brokerId, { Btc }]) => {
670
+ let obj = acc.get(brokerId);
671
+ if (!obj) {
672
+ obj = { current: "", previous: "" };
673
+ acc.set(brokerId, obj);
674
+ }
675
+ if (!obj.previous) {
676
+ obj.previous = Btc;
677
+ } else {
678
+ obj.current = Btc;
679
+ }
680
+ return acc;
681
+ }, /* @__PURE__ */ new Map());
682
+ return {
683
+ Ethereum: ethereum.Eth,
684
+ Arbitrum: arbitrum.Arb,
685
+ Bitcoin: bitcoinAddresses
686
+ };
687
+ }).superRefine(({ Bitcoin }, ctx) => {
688
+ Bitcoin.forEach((value, key) => {
689
+ if (!value.current) {
690
+ ctx.addIssue({
691
+ message: `No current BTC address for broker ${key}`,
692
+ code: z.ZodIssueCode.custom
693
+ });
694
+ }
695
+ });
696
+ });
652
697
  export {
653
698
  accountInfoCommon,
654
699
  broker,
@@ -685,6 +730,7 @@ export {
685
730
  cfSwapRateV3,
686
731
  cfSwappingEnvironment,
687
732
  cfTradingStrategy,
733
+ cfVaultAddresses,
688
734
  chainGetBlockHash,
689
735
  ethereumAddress,
690
736
  hexString,
package/dist/types.d.cts CHANGED
@@ -39,6 +39,7 @@ type CfOraclePrices = RpcResult<'cf_oracle_prices'>;
39
39
  type CfLendingPools = RpcResult<'cf_lending_pools'>;
40
40
  type CfLendingConfig = RpcResult<'cf_lending_config'>;
41
41
  type CfLoanAccounts = RpcResult<'cf_loan_accounts'>;
42
+ type CfVaultAddresses = RpcResult<'cf_get_vault_addresses'>;
42
43
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
43
44
  type CfAccountsResponse = RpcResponse<'cf_accounts'>;
44
45
  type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
@@ -72,6 +73,7 @@ type CfOraclePricesResponse = RpcResponse<'cf_oracle_prices'>;
72
73
  type CfLendingPoolsResponse = RpcResponse<'cf_lending_pools'>;
73
74
  type CfLendingConfigResponse = RpcResponse<'cf_lending_config'>;
74
75
  type CfLoanAccountsResponse = RpcResponse<'cf_loan_accounts'>;
76
+ type CfVaultAddressesResponse = RpcResponse<'cf_get_vault_addresses'>;
75
77
  type CfUnregisteredAccount = z.output<typeof unregistered>;
76
78
  type CfBrokerAccount = z.output<typeof broker>;
77
79
  type CfValidatorAccount = z.output<typeof validator>;
@@ -80,4 +82,4 @@ type CfOperatorAccount = z.output<typeof operator>;
80
82
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
81
83
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
82
84
 
83
- export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfAvailablePools, type CfAvailablePoolsResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEncodeCfParameters, type CfEncodeCfParametersResponse, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfGetTradingStrategies, type CfGetTradingStrategiesResponse, type CfGetTradingStrategyLimits, type CfGetTradingStrategyLimitsResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLendingConfig, type CfLendingConfigResponse, type CfLendingPools, type CfLendingPoolsResponse, type CfLiquidityProviderAccount, type CfLoanAccounts, type CfLoanAccountsResponse, type CfMonitoringSimulateAuction, type CfMonitoringSimulateAuctionResponse, type CfOperatorAccount, type CfOraclePrices, type CfOraclePricesResponse, type CfPoolDepth, type CfPoolDepthResponse, type CfPoolOrderbook, type CfPoolOrderbookResponse, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfRequestSwapParameterEncoding, type CfRequestSwapParameterEncodingResponse, type CfSafeModeStatuses, type CfSafeModeStatusesResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwapRateV3, type CfSwapRateV3Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, type LpTotalBalances, type LpTotalBalancesResponse, RpcResult };
85
+ export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfAvailablePools, type CfAvailablePoolsResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEncodeCfParameters, type CfEncodeCfParametersResponse, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfGetTradingStrategies, type CfGetTradingStrategiesResponse, type CfGetTradingStrategyLimits, type CfGetTradingStrategyLimitsResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLendingConfig, type CfLendingConfigResponse, type CfLendingPools, type CfLendingPoolsResponse, type CfLiquidityProviderAccount, type CfLoanAccounts, type CfLoanAccountsResponse, type CfMonitoringSimulateAuction, type CfMonitoringSimulateAuctionResponse, type CfOperatorAccount, type CfOraclePrices, type CfOraclePricesResponse, type CfPoolDepth, type CfPoolDepthResponse, type CfPoolOrderbook, type CfPoolOrderbookResponse, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfRequestSwapParameterEncoding, type CfRequestSwapParameterEncodingResponse, type CfSafeModeStatuses, type CfSafeModeStatusesResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwapRateV3, type CfSwapRateV3Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, type CfVaultAddresses, type CfVaultAddressesResponse, type LpTotalBalances, type LpTotalBalancesResponse, RpcResult };
package/dist/types.d.ts CHANGED
@@ -39,6 +39,7 @@ type CfOraclePrices = RpcResult<'cf_oracle_prices'>;
39
39
  type CfLendingPools = RpcResult<'cf_lending_pools'>;
40
40
  type CfLendingConfig = RpcResult<'cf_lending_config'>;
41
41
  type CfLoanAccounts = RpcResult<'cf_loan_accounts'>;
42
+ type CfVaultAddresses = RpcResult<'cf_get_vault_addresses'>;
42
43
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
43
44
  type CfAccountsResponse = RpcResponse<'cf_accounts'>;
44
45
  type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
@@ -72,6 +73,7 @@ type CfOraclePricesResponse = RpcResponse<'cf_oracle_prices'>;
72
73
  type CfLendingPoolsResponse = RpcResponse<'cf_lending_pools'>;
73
74
  type CfLendingConfigResponse = RpcResponse<'cf_lending_config'>;
74
75
  type CfLoanAccountsResponse = RpcResponse<'cf_loan_accounts'>;
76
+ type CfVaultAddressesResponse = RpcResponse<'cf_get_vault_addresses'>;
75
77
  type CfUnregisteredAccount = z.output<typeof unregistered>;
76
78
  type CfBrokerAccount = z.output<typeof broker>;
77
79
  type CfValidatorAccount = z.output<typeof validator>;
@@ -80,4 +82,4 @@ type CfOperatorAccount = z.output<typeof operator>;
80
82
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
81
83
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
82
84
 
83
- export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfAvailablePools, type CfAvailablePoolsResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEncodeCfParameters, type CfEncodeCfParametersResponse, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfGetTradingStrategies, type CfGetTradingStrategiesResponse, type CfGetTradingStrategyLimits, type CfGetTradingStrategyLimitsResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLendingConfig, type CfLendingConfigResponse, type CfLendingPools, type CfLendingPoolsResponse, type CfLiquidityProviderAccount, type CfLoanAccounts, type CfLoanAccountsResponse, type CfMonitoringSimulateAuction, type CfMonitoringSimulateAuctionResponse, type CfOperatorAccount, type CfOraclePrices, type CfOraclePricesResponse, type CfPoolDepth, type CfPoolDepthResponse, type CfPoolOrderbook, type CfPoolOrderbookResponse, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfRequestSwapParameterEncoding, type CfRequestSwapParameterEncodingResponse, type CfSafeModeStatuses, type CfSafeModeStatusesResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwapRateV3, type CfSwapRateV3Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, type LpTotalBalances, type LpTotalBalancesResponse, RpcResult };
85
+ export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfAvailablePools, type CfAvailablePoolsResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEncodeCfParameters, type CfEncodeCfParametersResponse, type CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfGetTradingStrategies, type CfGetTradingStrategiesResponse, type CfGetTradingStrategyLimits, type CfGetTradingStrategyLimitsResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLendingConfig, type CfLendingConfigResponse, type CfLendingPools, type CfLendingPoolsResponse, type CfLiquidityProviderAccount, type CfLoanAccounts, type CfLoanAccountsResponse, type CfMonitoringSimulateAuction, type CfMonitoringSimulateAuctionResponse, type CfOperatorAccount, type CfOraclePrices, type CfOraclePricesResponse, type CfPoolDepth, type CfPoolDepthResponse, type CfPoolOrderbook, type CfPoolOrderbookResponse, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfRequestSwapParameterEncoding, type CfRequestSwapParameterEncodingResponse, type CfSafeModeStatuses, type CfSafeModeStatusesResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwapRateV3, type CfSwapRateV3Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, type CfVaultAddresses, type CfVaultAddressesResponse, type LpTotalBalances, type LpTotalBalancesResponse, RpcResult };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "1.11.5",
3
+ "version": "1.11.7",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "0.11.0",
7
7
  "zod": "^3.25.75"
8
8
  },
9
9
  "devDependencies": {
10
- "@types/node": "^24.5.2",
10
+ "@types/node": "^24.10.0",
11
11
  "@types/ws": "^8.18.1",
12
12
  "ws": "^8.18.3"
13
13
  },