@chainflip/rpc 1.4.5 → 1.4.6

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
@@ -199,10 +199,51 @@ var cfPoolOrders = z.object({
199
199
  }),
200
200
  range_orders: z.array(rangeOrder)
201
201
  });
202
+ var boostPoolAmount = z.object({
203
+ account_id: z.string(),
204
+ amount: u256
205
+ });
206
+ var cfBoostPoolDetails = z.array(
207
+ z.intersection(
208
+ rpcAssetSchema,
209
+ z.object({
210
+ fee_tier: z.number(),
211
+ available_amounts: z.array(boostPoolAmount),
212
+ deposits_pending_finalization: z.array(
213
+ z.object({
214
+ deposit_id: z.number().transform(BigInt),
215
+ owed_amounts: z.array(boostPoolAmount)
216
+ })
217
+ ),
218
+ pending_withdrawals: z.array(
219
+ z.object({
220
+ account_id: z.string(),
221
+ pending_deposits: z.array(z.bigint())
222
+ })
223
+ )
224
+ })
225
+ )
226
+ );
227
+ var cfBoostPoolPendingFees = z.array(
228
+ z.intersection(
229
+ rpcAssetSchema,
230
+ z.object({
231
+ fee_tier: z.number(),
232
+ pending_fees: z.array(
233
+ z.object({
234
+ deposit_id: z.number().transform(BigInt),
235
+ fees: z.array(boostPoolAmount)
236
+ })
237
+ )
238
+ })
239
+ )
240
+ );
202
241
  export {
203
242
  broker,
204
243
  brokerRequestSwapDepositAddress,
205
244
  cfAccountInfo,
245
+ cfBoostPoolDetails,
246
+ cfBoostPoolPendingFees,
206
247
  cfBoostPoolsDepth,
207
248
  cfEnvironment,
208
249
  cfFundingEnvironment,
package/dist/types.d.cts CHANGED
@@ -6,23 +6,29 @@ export { RpcLimitOrder, RpcRangeOrder } from './parsers.cjs';
6
6
  import '@chainflip/utils/types';
7
7
 
8
8
  type CfAccountInfo = RpcResult<'cf_account_info'>;
9
+ type CfBoostPoolDetails = RpcResult<'cf_boost_pool_details'>;
10
+ type CfBoostPoolPendingFees = RpcResult<'cf_boost_pool_pending_fees'>;
9
11
  type CfBoostPoolsDepth = RpcResult<'cf_boost_pools_depth'>;
10
12
  type CfEnvironment = RpcResult<'cf_environment'>;
11
13
  type CfFundingEnvironment = RpcResult<'cf_funding_environment'>;
12
14
  type CfIngressEgressEnvironment = RpcResult<'cf_ingress_egress_environment'>;
13
15
  type CfPoolOrders = RpcResult<'cf_pool_orders'>;
14
16
  type CfPoolPriceV2 = RpcResult<'cf_pool_price_v2'>;
17
+ type CfPoolsEnvironment = RpcResult<'cf_pools_environment'>;
15
18
  type CfSupportedAssets = RpcResult<'cf_supported_assets'>;
16
19
  type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
17
20
  type CfSwapRate = RpcResult<'cf_swap_rate'>;
18
21
  type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
19
22
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
23
+ type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
24
+ type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
20
25
  type CfBoostPoolsDepthResponse = RpcResponse<'cf_boost_pools_depth'>;
21
26
  type CfEnvironmentResponse = RpcResponse<'cf_environment'>;
22
27
  type CfFundingEnvironmentResponse = RpcResponse<'cf_funding_environment'>;
23
28
  type CfIngressEgressEnvironmentResponse = RpcResponse<'cf_ingress_egress_environment'>;
24
29
  type CfPoolOrdersResponse = RpcResponse<'cf_pool_orders'>;
25
30
  type CfPoolPriceV2Response = RpcResponse<'cf_pool_price_v2'>;
31
+ type CfPoolsEnvironmentResponse = RpcResponse<'cf_pools_environment'>;
26
32
  type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
27
33
  type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
28
34
  type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
@@ -32,4 +38,4 @@ type CfBrokerAccount = z.output<typeof broker>;
32
38
  type CfValidatorAccount = z.output<typeof validator>;
33
39
  type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
34
40
 
35
- export { type CfAccountInfo, type CfAccountInfoResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, RpcResult };
41
+ export { type CfAccountInfo, type CfAccountInfoResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, RpcResult };
package/dist/types.d.ts CHANGED
@@ -6,23 +6,29 @@ export { RpcLimitOrder, RpcRangeOrder } from './parsers.js';
6
6
  import '@chainflip/utils/types';
7
7
 
8
8
  type CfAccountInfo = RpcResult<'cf_account_info'>;
9
+ type CfBoostPoolDetails = RpcResult<'cf_boost_pool_details'>;
10
+ type CfBoostPoolPendingFees = RpcResult<'cf_boost_pool_pending_fees'>;
9
11
  type CfBoostPoolsDepth = RpcResult<'cf_boost_pools_depth'>;
10
12
  type CfEnvironment = RpcResult<'cf_environment'>;
11
13
  type CfFundingEnvironment = RpcResult<'cf_funding_environment'>;
12
14
  type CfIngressEgressEnvironment = RpcResult<'cf_ingress_egress_environment'>;
13
15
  type CfPoolOrders = RpcResult<'cf_pool_orders'>;
14
16
  type CfPoolPriceV2 = RpcResult<'cf_pool_price_v2'>;
17
+ type CfPoolsEnvironment = RpcResult<'cf_pools_environment'>;
15
18
  type CfSupportedAssets = RpcResult<'cf_supported_assets'>;
16
19
  type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
17
20
  type CfSwapRate = RpcResult<'cf_swap_rate'>;
18
21
  type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
19
22
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
23
+ type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
24
+ type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
20
25
  type CfBoostPoolsDepthResponse = RpcResponse<'cf_boost_pools_depth'>;
21
26
  type CfEnvironmentResponse = RpcResponse<'cf_environment'>;
22
27
  type CfFundingEnvironmentResponse = RpcResponse<'cf_funding_environment'>;
23
28
  type CfIngressEgressEnvironmentResponse = RpcResponse<'cf_ingress_egress_environment'>;
24
29
  type CfPoolOrdersResponse = RpcResponse<'cf_pool_orders'>;
25
30
  type CfPoolPriceV2Response = RpcResponse<'cf_pool_price_v2'>;
31
+ type CfPoolsEnvironmentResponse = RpcResponse<'cf_pools_environment'>;
26
32
  type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
27
33
  type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
28
34
  type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
@@ -32,4 +38,4 @@ type CfBrokerAccount = z.output<typeof broker>;
32
38
  type CfValidatorAccount = z.output<typeof validator>;
33
39
  type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
34
40
 
35
- export { type CfAccountInfo, type CfAccountInfoResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, RpcResult };
41
+ export { type CfAccountInfo, type CfAccountInfoResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, RpcResult };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "^0.3.0",