@chainflip/rpc 1.9.3 → 1.9.4

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.cjs CHANGED
@@ -360,6 +360,15 @@ var cfTradingStrategy = _zod.z.object({
360
360
  balance: _zod.z.array(_zod.z.tuple([rpcAssetSchema, numberOrHex]))
361
361
  });
362
362
  var cfGetTradingStrategies = _zod.z.array(cfTradingStrategy).default([]);
363
+ var cfAvailablePools = _zod.z.array(
364
+ _zod.z.object({
365
+ base: rpcAssetSchema.refine(
366
+ (a) => a.chain !== "Ethereum" || a.asset !== "USDC"
367
+ ),
368
+ quote: _zod.z.object({ chain: _zod.z.literal("Ethereum"), asset: _zod.z.literal("USDC") })
369
+ })
370
+ );
371
+
363
372
 
364
373
 
365
374
 
@@ -399,4 +408,4 @@ var cfGetTradingStrategies = _zod.z.array(cfTradingStrategy).default([]);
399
408
 
400
409
 
401
410
 
402
- exports.broker = broker; exports.brokerRequestSwapDepositAddress = brokerRequestSwapDepositAddress; exports.cfAccountInfo = cfAccountInfo; exports.cfAccounts = cfAccounts; exports.cfAuctionState = cfAuctionState; exports.cfBoostPoolDetails = cfBoostPoolDetails; exports.cfBoostPoolPendingFees = cfBoostPoolPendingFees; exports.cfBoostPoolsDepth = cfBoostPoolsDepth; exports.cfEnvironment = cfEnvironment; exports.cfFailedCallEvm = cfFailedCallEvm; exports.cfFlipSuppy = cfFlipSuppy; exports.cfFundingEnvironment = cfFundingEnvironment; exports.cfGetTradingStrategies = cfGetTradingStrategies; exports.cfIngressEgressEnvironment = cfIngressEgressEnvironment; exports.cfPoolDepth = cfPoolDepth; exports.cfPoolOrderbook = cfPoolOrderbook; exports.cfPoolOrders = cfPoolOrders; exports.cfPoolPriceV2 = cfPoolPriceV2; exports.cfPoolsEnvironment = cfPoolsEnvironment; exports.cfSupportedAssets = cfSupportedAssets; exports.cfSwapRate = cfSwapRate; exports.cfSwapRateV2 = cfSwapRateV2; exports.cfSwapRateV3 = cfSwapRateV3; exports.cfSwappingEnvironment = cfSwappingEnvironment; exports.cfTradingStrategy = cfTradingStrategy; exports.chainGetBlockHash = chainGetBlockHash; exports.ethereumAddress = ethereumAddress; exports.hexString = hexString; exports.liquidityProvider = liquidityProvider; exports.lpTotalBalances = lpTotalBalances; exports.numberOrHex = numberOrHex; exports.requestSwapParameterEncoding = requestSwapParameterEncoding; exports.rpcResponse = rpcResponse; exports.stateGetMetadata = stateGetMetadata; exports.stateGetRuntimeVersion = stateGetRuntimeVersion; exports.u256 = u256; exports.unregistered = unregistered; exports.validator = validator;
411
+ exports.broker = broker; exports.brokerRequestSwapDepositAddress = brokerRequestSwapDepositAddress; exports.cfAccountInfo = cfAccountInfo; exports.cfAccounts = cfAccounts; exports.cfAuctionState = cfAuctionState; exports.cfAvailablePools = cfAvailablePools; exports.cfBoostPoolDetails = cfBoostPoolDetails; exports.cfBoostPoolPendingFees = cfBoostPoolPendingFees; exports.cfBoostPoolsDepth = cfBoostPoolsDepth; exports.cfEnvironment = cfEnvironment; exports.cfFailedCallEvm = cfFailedCallEvm; exports.cfFlipSuppy = cfFlipSuppy; exports.cfFundingEnvironment = cfFundingEnvironment; exports.cfGetTradingStrategies = cfGetTradingStrategies; exports.cfIngressEgressEnvironment = cfIngressEgressEnvironment; exports.cfPoolDepth = cfPoolDepth; exports.cfPoolOrderbook = cfPoolOrderbook; exports.cfPoolOrders = cfPoolOrders; exports.cfPoolPriceV2 = cfPoolPriceV2; exports.cfPoolsEnvironment = cfPoolsEnvironment; exports.cfSupportedAssets = cfSupportedAssets; exports.cfSwapRate = cfSwapRate; exports.cfSwapRateV2 = cfSwapRateV2; exports.cfSwapRateV3 = cfSwapRateV3; exports.cfSwappingEnvironment = cfSwappingEnvironment; exports.cfTradingStrategy = cfTradingStrategy; exports.chainGetBlockHash = chainGetBlockHash; exports.ethereumAddress = ethereumAddress; exports.hexString = hexString; exports.liquidityProvider = liquidityProvider; exports.lpTotalBalances = lpTotalBalances; exports.numberOrHex = numberOrHex; exports.requestSwapParameterEncoding = requestSwapParameterEncoding; exports.rpcResponse = rpcResponse; exports.stateGetMetadata = stateGetMetadata; exports.stateGetRuntimeVersion = stateGetRuntimeVersion; exports.u256 = u256; exports.unregistered = unregistered; exports.validator = validator;
@@ -21465,5 +21465,297 @@ declare const cfGetTradingStrategies: z.ZodDefault<z.ZodArray<z.ZodObject<{
21465
21465
  asset: "USDT";
21466
21466
  }, string | number][];
21467
21467
  }>, "many">>;
21468
+ declare const cfAvailablePools: z.ZodArray<z.ZodObject<{
21469
+ base: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
21470
+ chain: z.ZodLiteral<"Bitcoin">;
21471
+ asset: z.ZodLiteral<"BTC">;
21472
+ }, "strip", z.ZodTypeAny, {
21473
+ chain: "Bitcoin";
21474
+ asset: "BTC";
21475
+ }, {
21476
+ chain: "Bitcoin";
21477
+ asset: "BTC";
21478
+ }>, z.ZodObject<{
21479
+ chain: z.ZodLiteral<"Polkadot">;
21480
+ asset: z.ZodLiteral<"DOT">;
21481
+ }, "strip", z.ZodTypeAny, {
21482
+ chain: "Polkadot";
21483
+ asset: "DOT";
21484
+ }, {
21485
+ chain: "Polkadot";
21486
+ asset: "DOT";
21487
+ }>, z.ZodObject<{
21488
+ chain: z.ZodLiteral<"Ethereum">;
21489
+ asset: z.ZodLiteral<"FLIP">;
21490
+ }, "strip", z.ZodTypeAny, {
21491
+ chain: "Ethereum";
21492
+ asset: "FLIP";
21493
+ }, {
21494
+ chain: "Ethereum";
21495
+ asset: "FLIP";
21496
+ }>, z.ZodObject<{
21497
+ chain: z.ZodLiteral<"Ethereum">;
21498
+ asset: z.ZodLiteral<"ETH">;
21499
+ }, "strip", z.ZodTypeAny, {
21500
+ chain: "Ethereum";
21501
+ asset: "ETH";
21502
+ }, {
21503
+ chain: "Ethereum";
21504
+ asset: "ETH";
21505
+ }>, z.ZodObject<{
21506
+ chain: z.ZodLiteral<"Ethereum">;
21507
+ asset: z.ZodLiteral<"USDC">;
21508
+ }, "strip", z.ZodTypeAny, {
21509
+ chain: "Ethereum";
21510
+ asset: "USDC";
21511
+ }, {
21512
+ chain: "Ethereum";
21513
+ asset: "USDC";
21514
+ }>, z.ZodObject<{
21515
+ chain: z.ZodLiteral<"Ethereum">;
21516
+ asset: z.ZodLiteral<"USDT">;
21517
+ }, "strip", z.ZodTypeAny, {
21518
+ chain: "Ethereum";
21519
+ asset: "USDT";
21520
+ }, {
21521
+ chain: "Ethereum";
21522
+ asset: "USDT";
21523
+ }>, z.ZodObject<{
21524
+ chain: z.ZodLiteral<"Arbitrum">;
21525
+ asset: z.ZodLiteral<"ETH">;
21526
+ }, "strip", z.ZodTypeAny, {
21527
+ chain: "Arbitrum";
21528
+ asset: "ETH";
21529
+ }, {
21530
+ chain: "Arbitrum";
21531
+ asset: "ETH";
21532
+ }>, z.ZodObject<{
21533
+ chain: z.ZodLiteral<"Arbitrum">;
21534
+ asset: z.ZodLiteral<"USDC">;
21535
+ }, "strip", z.ZodTypeAny, {
21536
+ chain: "Arbitrum";
21537
+ asset: "USDC";
21538
+ }, {
21539
+ chain: "Arbitrum";
21540
+ asset: "USDC";
21541
+ }>, z.ZodObject<{
21542
+ chain: z.ZodLiteral<"Solana">;
21543
+ asset: z.ZodLiteral<"SOL">;
21544
+ }, "strip", z.ZodTypeAny, {
21545
+ chain: "Solana";
21546
+ asset: "SOL";
21547
+ }, {
21548
+ chain: "Solana";
21549
+ asset: "SOL";
21550
+ }>, z.ZodObject<{
21551
+ chain: z.ZodLiteral<"Solana">;
21552
+ asset: z.ZodLiteral<"USDC">;
21553
+ }, "strip", z.ZodTypeAny, {
21554
+ chain: "Solana";
21555
+ asset: "USDC";
21556
+ }, {
21557
+ chain: "Solana";
21558
+ asset: "USDC";
21559
+ }>, z.ZodObject<{
21560
+ chain: z.ZodLiteral<"Assethub">;
21561
+ asset: z.ZodLiteral<"DOT">;
21562
+ }, "strip", z.ZodTypeAny, {
21563
+ chain: "Assethub";
21564
+ asset: "DOT";
21565
+ }, {
21566
+ chain: "Assethub";
21567
+ asset: "DOT";
21568
+ }>, z.ZodObject<{
21569
+ chain: z.ZodLiteral<"Assethub">;
21570
+ asset: z.ZodLiteral<"USDC">;
21571
+ }, "strip", z.ZodTypeAny, {
21572
+ chain: "Assethub";
21573
+ asset: "USDC";
21574
+ }, {
21575
+ chain: "Assethub";
21576
+ asset: "USDC";
21577
+ }>, z.ZodObject<{
21578
+ chain: z.ZodLiteral<"Assethub">;
21579
+ asset: z.ZodLiteral<"USDT">;
21580
+ }, "strip", z.ZodTypeAny, {
21581
+ chain: "Assethub";
21582
+ asset: "USDT";
21583
+ }, {
21584
+ chain: "Assethub";
21585
+ asset: "USDT";
21586
+ }>]>, {
21587
+ chain: "Bitcoin";
21588
+ asset: "BTC";
21589
+ } | {
21590
+ chain: "Polkadot";
21591
+ asset: "DOT";
21592
+ } | {
21593
+ chain: "Ethereum";
21594
+ asset: "FLIP";
21595
+ } | {
21596
+ chain: "Ethereum";
21597
+ asset: "ETH";
21598
+ } | {
21599
+ chain: "Ethereum";
21600
+ asset: "USDT";
21601
+ } | {
21602
+ chain: "Arbitrum";
21603
+ asset: "ETH";
21604
+ } | {
21605
+ chain: "Arbitrum";
21606
+ asset: "USDC";
21607
+ } | {
21608
+ chain: "Solana";
21609
+ asset: "SOL";
21610
+ } | {
21611
+ chain: "Solana";
21612
+ asset: "USDC";
21613
+ } | {
21614
+ chain: "Assethub";
21615
+ asset: "DOT";
21616
+ } | {
21617
+ chain: "Assethub";
21618
+ asset: "USDC";
21619
+ } | {
21620
+ chain: "Assethub";
21621
+ asset: "USDT";
21622
+ }, {
21623
+ chain: "Bitcoin";
21624
+ asset: "BTC";
21625
+ } | {
21626
+ chain: "Polkadot";
21627
+ asset: "DOT";
21628
+ } | {
21629
+ chain: "Ethereum";
21630
+ asset: "FLIP";
21631
+ } | {
21632
+ chain: "Ethereum";
21633
+ asset: "ETH";
21634
+ } | {
21635
+ chain: "Ethereum";
21636
+ asset: "USDC";
21637
+ } | {
21638
+ chain: "Ethereum";
21639
+ asset: "USDT";
21640
+ } | {
21641
+ chain: "Arbitrum";
21642
+ asset: "ETH";
21643
+ } | {
21644
+ chain: "Arbitrum";
21645
+ asset: "USDC";
21646
+ } | {
21647
+ chain: "Solana";
21648
+ asset: "SOL";
21649
+ } | {
21650
+ chain: "Solana";
21651
+ asset: "USDC";
21652
+ } | {
21653
+ chain: "Assethub";
21654
+ asset: "DOT";
21655
+ } | {
21656
+ chain: "Assethub";
21657
+ asset: "USDC";
21658
+ } | {
21659
+ chain: "Assethub";
21660
+ asset: "USDT";
21661
+ }>;
21662
+ quote: z.ZodObject<{
21663
+ chain: z.ZodLiteral<"Ethereum">;
21664
+ asset: z.ZodLiteral<"USDC">;
21665
+ }, "strip", z.ZodTypeAny, {
21666
+ chain: "Ethereum";
21667
+ asset: "USDC";
21668
+ }, {
21669
+ chain: "Ethereum";
21670
+ asset: "USDC";
21671
+ }>;
21672
+ }, "strip", z.ZodTypeAny, {
21673
+ base: {
21674
+ chain: "Bitcoin";
21675
+ asset: "BTC";
21676
+ } | {
21677
+ chain: "Polkadot";
21678
+ asset: "DOT";
21679
+ } | {
21680
+ chain: "Ethereum";
21681
+ asset: "FLIP";
21682
+ } | {
21683
+ chain: "Ethereum";
21684
+ asset: "ETH";
21685
+ } | {
21686
+ chain: "Ethereum";
21687
+ asset: "USDT";
21688
+ } | {
21689
+ chain: "Arbitrum";
21690
+ asset: "ETH";
21691
+ } | {
21692
+ chain: "Arbitrum";
21693
+ asset: "USDC";
21694
+ } | {
21695
+ chain: "Solana";
21696
+ asset: "SOL";
21697
+ } | {
21698
+ chain: "Solana";
21699
+ asset: "USDC";
21700
+ } | {
21701
+ chain: "Assethub";
21702
+ asset: "DOT";
21703
+ } | {
21704
+ chain: "Assethub";
21705
+ asset: "USDC";
21706
+ } | {
21707
+ chain: "Assethub";
21708
+ asset: "USDT";
21709
+ };
21710
+ quote: {
21711
+ chain: "Ethereum";
21712
+ asset: "USDC";
21713
+ };
21714
+ }, {
21715
+ base: {
21716
+ chain: "Bitcoin";
21717
+ asset: "BTC";
21718
+ } | {
21719
+ chain: "Polkadot";
21720
+ asset: "DOT";
21721
+ } | {
21722
+ chain: "Ethereum";
21723
+ asset: "FLIP";
21724
+ } | {
21725
+ chain: "Ethereum";
21726
+ asset: "ETH";
21727
+ } | {
21728
+ chain: "Ethereum";
21729
+ asset: "USDC";
21730
+ } | {
21731
+ chain: "Ethereum";
21732
+ asset: "USDT";
21733
+ } | {
21734
+ chain: "Arbitrum";
21735
+ asset: "ETH";
21736
+ } | {
21737
+ chain: "Arbitrum";
21738
+ asset: "USDC";
21739
+ } | {
21740
+ chain: "Solana";
21741
+ asset: "SOL";
21742
+ } | {
21743
+ chain: "Solana";
21744
+ asset: "USDC";
21745
+ } | {
21746
+ chain: "Assethub";
21747
+ asset: "DOT";
21748
+ } | {
21749
+ chain: "Assethub";
21750
+ asset: "USDC";
21751
+ } | {
21752
+ chain: "Assethub";
21753
+ asset: "USDT";
21754
+ };
21755
+ quote: {
21756
+ chain: "Ethereum";
21757
+ asset: "USDC";
21758
+ };
21759
+ }>, "many">;
21468
21760
 
21469
- export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
21761
+ export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
package/dist/parsers.d.ts CHANGED
@@ -21465,5 +21465,297 @@ declare const cfGetTradingStrategies: z.ZodDefault<z.ZodArray<z.ZodObject<{
21465
21465
  asset: "USDT";
21466
21466
  }, string | number][];
21467
21467
  }>, "many">>;
21468
+ declare const cfAvailablePools: z.ZodArray<z.ZodObject<{
21469
+ base: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
21470
+ chain: z.ZodLiteral<"Bitcoin">;
21471
+ asset: z.ZodLiteral<"BTC">;
21472
+ }, "strip", z.ZodTypeAny, {
21473
+ chain: "Bitcoin";
21474
+ asset: "BTC";
21475
+ }, {
21476
+ chain: "Bitcoin";
21477
+ asset: "BTC";
21478
+ }>, z.ZodObject<{
21479
+ chain: z.ZodLiteral<"Polkadot">;
21480
+ asset: z.ZodLiteral<"DOT">;
21481
+ }, "strip", z.ZodTypeAny, {
21482
+ chain: "Polkadot";
21483
+ asset: "DOT";
21484
+ }, {
21485
+ chain: "Polkadot";
21486
+ asset: "DOT";
21487
+ }>, z.ZodObject<{
21488
+ chain: z.ZodLiteral<"Ethereum">;
21489
+ asset: z.ZodLiteral<"FLIP">;
21490
+ }, "strip", z.ZodTypeAny, {
21491
+ chain: "Ethereum";
21492
+ asset: "FLIP";
21493
+ }, {
21494
+ chain: "Ethereum";
21495
+ asset: "FLIP";
21496
+ }>, z.ZodObject<{
21497
+ chain: z.ZodLiteral<"Ethereum">;
21498
+ asset: z.ZodLiteral<"ETH">;
21499
+ }, "strip", z.ZodTypeAny, {
21500
+ chain: "Ethereum";
21501
+ asset: "ETH";
21502
+ }, {
21503
+ chain: "Ethereum";
21504
+ asset: "ETH";
21505
+ }>, z.ZodObject<{
21506
+ chain: z.ZodLiteral<"Ethereum">;
21507
+ asset: z.ZodLiteral<"USDC">;
21508
+ }, "strip", z.ZodTypeAny, {
21509
+ chain: "Ethereum";
21510
+ asset: "USDC";
21511
+ }, {
21512
+ chain: "Ethereum";
21513
+ asset: "USDC";
21514
+ }>, z.ZodObject<{
21515
+ chain: z.ZodLiteral<"Ethereum">;
21516
+ asset: z.ZodLiteral<"USDT">;
21517
+ }, "strip", z.ZodTypeAny, {
21518
+ chain: "Ethereum";
21519
+ asset: "USDT";
21520
+ }, {
21521
+ chain: "Ethereum";
21522
+ asset: "USDT";
21523
+ }>, z.ZodObject<{
21524
+ chain: z.ZodLiteral<"Arbitrum">;
21525
+ asset: z.ZodLiteral<"ETH">;
21526
+ }, "strip", z.ZodTypeAny, {
21527
+ chain: "Arbitrum";
21528
+ asset: "ETH";
21529
+ }, {
21530
+ chain: "Arbitrum";
21531
+ asset: "ETH";
21532
+ }>, z.ZodObject<{
21533
+ chain: z.ZodLiteral<"Arbitrum">;
21534
+ asset: z.ZodLiteral<"USDC">;
21535
+ }, "strip", z.ZodTypeAny, {
21536
+ chain: "Arbitrum";
21537
+ asset: "USDC";
21538
+ }, {
21539
+ chain: "Arbitrum";
21540
+ asset: "USDC";
21541
+ }>, z.ZodObject<{
21542
+ chain: z.ZodLiteral<"Solana">;
21543
+ asset: z.ZodLiteral<"SOL">;
21544
+ }, "strip", z.ZodTypeAny, {
21545
+ chain: "Solana";
21546
+ asset: "SOL";
21547
+ }, {
21548
+ chain: "Solana";
21549
+ asset: "SOL";
21550
+ }>, z.ZodObject<{
21551
+ chain: z.ZodLiteral<"Solana">;
21552
+ asset: z.ZodLiteral<"USDC">;
21553
+ }, "strip", z.ZodTypeAny, {
21554
+ chain: "Solana";
21555
+ asset: "USDC";
21556
+ }, {
21557
+ chain: "Solana";
21558
+ asset: "USDC";
21559
+ }>, z.ZodObject<{
21560
+ chain: z.ZodLiteral<"Assethub">;
21561
+ asset: z.ZodLiteral<"DOT">;
21562
+ }, "strip", z.ZodTypeAny, {
21563
+ chain: "Assethub";
21564
+ asset: "DOT";
21565
+ }, {
21566
+ chain: "Assethub";
21567
+ asset: "DOT";
21568
+ }>, z.ZodObject<{
21569
+ chain: z.ZodLiteral<"Assethub">;
21570
+ asset: z.ZodLiteral<"USDC">;
21571
+ }, "strip", z.ZodTypeAny, {
21572
+ chain: "Assethub";
21573
+ asset: "USDC";
21574
+ }, {
21575
+ chain: "Assethub";
21576
+ asset: "USDC";
21577
+ }>, z.ZodObject<{
21578
+ chain: z.ZodLiteral<"Assethub">;
21579
+ asset: z.ZodLiteral<"USDT">;
21580
+ }, "strip", z.ZodTypeAny, {
21581
+ chain: "Assethub";
21582
+ asset: "USDT";
21583
+ }, {
21584
+ chain: "Assethub";
21585
+ asset: "USDT";
21586
+ }>]>, {
21587
+ chain: "Bitcoin";
21588
+ asset: "BTC";
21589
+ } | {
21590
+ chain: "Polkadot";
21591
+ asset: "DOT";
21592
+ } | {
21593
+ chain: "Ethereum";
21594
+ asset: "FLIP";
21595
+ } | {
21596
+ chain: "Ethereum";
21597
+ asset: "ETH";
21598
+ } | {
21599
+ chain: "Ethereum";
21600
+ asset: "USDT";
21601
+ } | {
21602
+ chain: "Arbitrum";
21603
+ asset: "ETH";
21604
+ } | {
21605
+ chain: "Arbitrum";
21606
+ asset: "USDC";
21607
+ } | {
21608
+ chain: "Solana";
21609
+ asset: "SOL";
21610
+ } | {
21611
+ chain: "Solana";
21612
+ asset: "USDC";
21613
+ } | {
21614
+ chain: "Assethub";
21615
+ asset: "DOT";
21616
+ } | {
21617
+ chain: "Assethub";
21618
+ asset: "USDC";
21619
+ } | {
21620
+ chain: "Assethub";
21621
+ asset: "USDT";
21622
+ }, {
21623
+ chain: "Bitcoin";
21624
+ asset: "BTC";
21625
+ } | {
21626
+ chain: "Polkadot";
21627
+ asset: "DOT";
21628
+ } | {
21629
+ chain: "Ethereum";
21630
+ asset: "FLIP";
21631
+ } | {
21632
+ chain: "Ethereum";
21633
+ asset: "ETH";
21634
+ } | {
21635
+ chain: "Ethereum";
21636
+ asset: "USDC";
21637
+ } | {
21638
+ chain: "Ethereum";
21639
+ asset: "USDT";
21640
+ } | {
21641
+ chain: "Arbitrum";
21642
+ asset: "ETH";
21643
+ } | {
21644
+ chain: "Arbitrum";
21645
+ asset: "USDC";
21646
+ } | {
21647
+ chain: "Solana";
21648
+ asset: "SOL";
21649
+ } | {
21650
+ chain: "Solana";
21651
+ asset: "USDC";
21652
+ } | {
21653
+ chain: "Assethub";
21654
+ asset: "DOT";
21655
+ } | {
21656
+ chain: "Assethub";
21657
+ asset: "USDC";
21658
+ } | {
21659
+ chain: "Assethub";
21660
+ asset: "USDT";
21661
+ }>;
21662
+ quote: z.ZodObject<{
21663
+ chain: z.ZodLiteral<"Ethereum">;
21664
+ asset: z.ZodLiteral<"USDC">;
21665
+ }, "strip", z.ZodTypeAny, {
21666
+ chain: "Ethereum";
21667
+ asset: "USDC";
21668
+ }, {
21669
+ chain: "Ethereum";
21670
+ asset: "USDC";
21671
+ }>;
21672
+ }, "strip", z.ZodTypeAny, {
21673
+ base: {
21674
+ chain: "Bitcoin";
21675
+ asset: "BTC";
21676
+ } | {
21677
+ chain: "Polkadot";
21678
+ asset: "DOT";
21679
+ } | {
21680
+ chain: "Ethereum";
21681
+ asset: "FLIP";
21682
+ } | {
21683
+ chain: "Ethereum";
21684
+ asset: "ETH";
21685
+ } | {
21686
+ chain: "Ethereum";
21687
+ asset: "USDT";
21688
+ } | {
21689
+ chain: "Arbitrum";
21690
+ asset: "ETH";
21691
+ } | {
21692
+ chain: "Arbitrum";
21693
+ asset: "USDC";
21694
+ } | {
21695
+ chain: "Solana";
21696
+ asset: "SOL";
21697
+ } | {
21698
+ chain: "Solana";
21699
+ asset: "USDC";
21700
+ } | {
21701
+ chain: "Assethub";
21702
+ asset: "DOT";
21703
+ } | {
21704
+ chain: "Assethub";
21705
+ asset: "USDC";
21706
+ } | {
21707
+ chain: "Assethub";
21708
+ asset: "USDT";
21709
+ };
21710
+ quote: {
21711
+ chain: "Ethereum";
21712
+ asset: "USDC";
21713
+ };
21714
+ }, {
21715
+ base: {
21716
+ chain: "Bitcoin";
21717
+ asset: "BTC";
21718
+ } | {
21719
+ chain: "Polkadot";
21720
+ asset: "DOT";
21721
+ } | {
21722
+ chain: "Ethereum";
21723
+ asset: "FLIP";
21724
+ } | {
21725
+ chain: "Ethereum";
21726
+ asset: "ETH";
21727
+ } | {
21728
+ chain: "Ethereum";
21729
+ asset: "USDC";
21730
+ } | {
21731
+ chain: "Ethereum";
21732
+ asset: "USDT";
21733
+ } | {
21734
+ chain: "Arbitrum";
21735
+ asset: "ETH";
21736
+ } | {
21737
+ chain: "Arbitrum";
21738
+ asset: "USDC";
21739
+ } | {
21740
+ chain: "Solana";
21741
+ asset: "SOL";
21742
+ } | {
21743
+ chain: "Solana";
21744
+ asset: "USDC";
21745
+ } | {
21746
+ chain: "Assethub";
21747
+ asset: "DOT";
21748
+ } | {
21749
+ chain: "Assethub";
21750
+ asset: "USDC";
21751
+ } | {
21752
+ chain: "Assethub";
21753
+ asset: "USDT";
21754
+ };
21755
+ quote: {
21756
+ chain: "Ethereum";
21757
+ asset: "USDC";
21758
+ };
21759
+ }>, "many">;
21468
21760
 
21469
- export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
21761
+ export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfAccounts, cfAuctionState, cfAvailablePools, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFailedCallEvm, cfFlipSuppy, cfFundingEnvironment, cfGetTradingStrategies, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrderbook, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAssets, cfSwapRate, cfSwapRateV2, cfSwapRateV3, cfSwappingEnvironment, cfTradingStrategy, chainGetBlockHash, ethereumAddress, hexString, liquidityProvider, lpTotalBalances, numberOrHex, requestSwapParameterEncoding, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
package/dist/parsers.mjs CHANGED
@@ -360,12 +360,21 @@ var cfTradingStrategy = z.object({
360
360
  balance: z.array(z.tuple([rpcAssetSchema, numberOrHex]))
361
361
  });
362
362
  var cfGetTradingStrategies = z.array(cfTradingStrategy).default([]);
363
+ var cfAvailablePools = z.array(
364
+ z.object({
365
+ base: rpcAssetSchema.refine(
366
+ (a) => a.chain !== "Ethereum" || a.asset !== "USDC"
367
+ ),
368
+ quote: z.object({ chain: z.literal("Ethereum"), asset: z.literal("USDC") })
369
+ })
370
+ );
363
371
  export {
364
372
  broker,
365
373
  brokerRequestSwapDepositAddress,
366
374
  cfAccountInfo,
367
375
  cfAccounts,
368
376
  cfAuctionState,
377
+ cfAvailablePools,
369
378
  cfBoostPoolDetails,
370
379
  cfBoostPoolPendingFees,
371
380
  cfBoostPoolsDepth,
package/dist/types.d.cts CHANGED
@@ -29,6 +29,7 @@ type CfSwapRate = RpcResult<'cf_swap_rate'>;
29
29
  type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
30
30
  type CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
31
31
  type CfGetTradingStrategies = RpcResult<'cf_get_trading_strategies'>;
32
+ type CfAvailablePools = RpcResult<'cf_available_pools'>;
32
33
  type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
33
34
  type CfAccountsResponse = RpcResponse<'cf_accounts'>;
34
35
  type CfAuctionStateResponse = RpcResponse<'cf_auction_state'>;
@@ -53,6 +54,7 @@ type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
53
54
  type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
54
55
  type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
55
56
  type CfGetTradingStrategiesResponse = RpcResponse<'cf_get_trading_strategies'>;
57
+ type CfAvailablePoolsResponse = RpcResponse<'cf_available_pools'>;
56
58
  type CfUnregisteredAccount = z.output<typeof unregistered>;
57
59
  type CfBrokerAccount = z.output<typeof broker>;
58
60
  type CfValidatorAccount = z.output<typeof validator>;
@@ -60,4 +62,4 @@ type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
60
62
  type LpTotalBalances = RpcResult<'lp_total_balances'>;
61
63
  type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
62
64
 
63
- export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, type CfAuctionState, type CfAuctionStateResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, 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 CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, 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 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 };
65
+ 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 CfEnvironment, type CfEnvironmentResponse, type CfFailedCallArbitrum, type CfFailedCallArbitrumResponse, type CfFailedCallEthereum, type CfFailedCallEthereumResponse, type CfFlipSupply, type CfFlipSupplyResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfGetTradingStrategies, type CfGetTradingStrategiesResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, 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 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 };