@chainflip/rpc 1.11.9 → 1.11.11
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/common.cjs +2 -0
- package/dist/common.d.cts +140 -5
- package/dist/common.d.ts +140 -5
- package/dist/common.mjs +3 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/parsers.cjs +15 -2
- package/dist/parsers.d.cts +140 -11
- package/dist/parsers.d.ts +140 -11
- package/dist/parsers.mjs +14 -1
- package/dist/types.d.cts +3 -1
- package/dist/types.d.ts +3 -1
- package/package.json +1 -1
package/dist/common.cjs
CHANGED
|
@@ -39,6 +39,7 @@ var _zod = require('zod');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
+
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
var _parserscjs = require('./parsers.cjs');
|
|
@@ -88,6 +89,7 @@ var rpcResult = {
|
|
|
88
89
|
cf_lending_pools: _parserscjs.cfLendingPools,
|
|
89
90
|
cf_lending_config: _parserscjs.cfLendingConfig,
|
|
90
91
|
cf_loan_accounts: _parserscjs.cfLoanAccounts,
|
|
92
|
+
cf_lending_pool_supply_balances: _parserscjs.cfLendingPoolSupplyBalances,
|
|
91
93
|
cf_get_vault_addresses: _parserscjs.cfVaultAddresses
|
|
92
94
|
};
|
|
93
95
|
|
package/dist/common.d.cts
CHANGED
|
@@ -195,6 +195,7 @@ type RpcRequest = WithHash<{
|
|
|
195
195
|
cf_lending_pools: [asset?: UncheckedAssetAndChain];
|
|
196
196
|
cf_lending_config: [];
|
|
197
197
|
cf_loan_accounts: [accountId?: string];
|
|
198
|
+
cf_lending_pool_supply_balances: [asset: UncheckedAssetAndChain];
|
|
198
199
|
cf_get_vault_addresses: [];
|
|
199
200
|
}> & {
|
|
200
201
|
chain_getBlockHash: [blockHeight?: number];
|
|
@@ -26300,7 +26301,6 @@ declare const rpcResult: {
|
|
|
26300
26301
|
chain: "Assethub";
|
|
26301
26302
|
asset: "USDT";
|
|
26302
26303
|
}>]>;
|
|
26303
|
-
created_at: z.ZodNumber;
|
|
26304
26304
|
principal_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
26305
26305
|
}, "strip", z.ZodTypeAny, {
|
|
26306
26306
|
asset: {
|
|
@@ -26344,7 +26344,6 @@ declare const rpcResult: {
|
|
|
26344
26344
|
asset: "USDT";
|
|
26345
26345
|
};
|
|
26346
26346
|
loan_id: number;
|
|
26347
|
-
created_at: number;
|
|
26348
26347
|
principal_amount: bigint;
|
|
26349
26348
|
}, {
|
|
26350
26349
|
asset: {
|
|
@@ -26388,7 +26387,6 @@ declare const rpcResult: {
|
|
|
26388
26387
|
asset: "USDT";
|
|
26389
26388
|
};
|
|
26390
26389
|
loan_id: number;
|
|
26391
|
-
created_at: number;
|
|
26392
26390
|
principal_amount: string | number;
|
|
26393
26391
|
}>, "many">;
|
|
26394
26392
|
liquidation_status: z.ZodNullable<z.ZodObject<{
|
|
@@ -26543,7 +26541,6 @@ declare const rpcResult: {
|
|
|
26543
26541
|
asset: "USDT";
|
|
26544
26542
|
};
|
|
26545
26543
|
loan_id: number;
|
|
26546
|
-
created_at: number;
|
|
26547
26544
|
principal_amount: bigint;
|
|
26548
26545
|
}[];
|
|
26549
26546
|
liquidation_status: {
|
|
@@ -26680,7 +26677,6 @@ declare const rpcResult: {
|
|
|
26680
26677
|
asset: "USDT";
|
|
26681
26678
|
};
|
|
26682
26679
|
loan_id: number;
|
|
26683
|
-
created_at: number;
|
|
26684
26680
|
principal_amount: string | number;
|
|
26685
26681
|
}[];
|
|
26686
26682
|
liquidation_status: {
|
|
@@ -26691,6 +26687,145 @@ declare const rpcResult: {
|
|
|
26691
26687
|
is_hard: boolean;
|
|
26692
26688
|
} | null;
|
|
26693
26689
|
}>, "many">;
|
|
26690
|
+
readonly cf_lending_pool_supply_balances: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
26691
|
+
chain: z.ZodLiteral<"Bitcoin">;
|
|
26692
|
+
asset: z.ZodLiteral<"BTC">;
|
|
26693
|
+
}, "strip", z.ZodTypeAny, {
|
|
26694
|
+
chain: "Bitcoin";
|
|
26695
|
+
asset: "BTC";
|
|
26696
|
+
}, {
|
|
26697
|
+
chain: "Bitcoin";
|
|
26698
|
+
asset: "BTC";
|
|
26699
|
+
}>, z.ZodObject<{
|
|
26700
|
+
chain: z.ZodLiteral<"Polkadot">;
|
|
26701
|
+
asset: z.ZodLiteral<"DOT">;
|
|
26702
|
+
}, "strip", z.ZodTypeAny, {
|
|
26703
|
+
chain: "Polkadot";
|
|
26704
|
+
asset: "DOT";
|
|
26705
|
+
}, {
|
|
26706
|
+
chain: "Polkadot";
|
|
26707
|
+
asset: "DOT";
|
|
26708
|
+
}>, z.ZodObject<{
|
|
26709
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
26710
|
+
asset: z.ZodLiteral<"FLIP">;
|
|
26711
|
+
}, "strip", z.ZodTypeAny, {
|
|
26712
|
+
chain: "Ethereum";
|
|
26713
|
+
asset: "FLIP";
|
|
26714
|
+
}, {
|
|
26715
|
+
chain: "Ethereum";
|
|
26716
|
+
asset: "FLIP";
|
|
26717
|
+
}>, z.ZodObject<{
|
|
26718
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
26719
|
+
asset: z.ZodLiteral<"ETH">;
|
|
26720
|
+
}, "strip", z.ZodTypeAny, {
|
|
26721
|
+
chain: "Ethereum";
|
|
26722
|
+
asset: "ETH";
|
|
26723
|
+
}, {
|
|
26724
|
+
chain: "Ethereum";
|
|
26725
|
+
asset: "ETH";
|
|
26726
|
+
}>, z.ZodObject<{
|
|
26727
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
26728
|
+
asset: z.ZodLiteral<"USDC">;
|
|
26729
|
+
}, "strip", z.ZodTypeAny, {
|
|
26730
|
+
chain: "Ethereum";
|
|
26731
|
+
asset: "USDC";
|
|
26732
|
+
}, {
|
|
26733
|
+
chain: "Ethereum";
|
|
26734
|
+
asset: "USDC";
|
|
26735
|
+
}>, z.ZodObject<{
|
|
26736
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
26737
|
+
asset: z.ZodLiteral<"USDT">;
|
|
26738
|
+
}, "strip", z.ZodTypeAny, {
|
|
26739
|
+
chain: "Ethereum";
|
|
26740
|
+
asset: "USDT";
|
|
26741
|
+
}, {
|
|
26742
|
+
chain: "Ethereum";
|
|
26743
|
+
asset: "USDT";
|
|
26744
|
+
}>, z.ZodObject<{
|
|
26745
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
26746
|
+
asset: z.ZodLiteral<"ETH">;
|
|
26747
|
+
}, "strip", z.ZodTypeAny, {
|
|
26748
|
+
chain: "Arbitrum";
|
|
26749
|
+
asset: "ETH";
|
|
26750
|
+
}, {
|
|
26751
|
+
chain: "Arbitrum";
|
|
26752
|
+
asset: "ETH";
|
|
26753
|
+
}>, z.ZodObject<{
|
|
26754
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
26755
|
+
asset: z.ZodLiteral<"USDC">;
|
|
26756
|
+
}, "strip", z.ZodTypeAny, {
|
|
26757
|
+
chain: "Arbitrum";
|
|
26758
|
+
asset: "USDC";
|
|
26759
|
+
}, {
|
|
26760
|
+
chain: "Arbitrum";
|
|
26761
|
+
asset: "USDC";
|
|
26762
|
+
}>, z.ZodObject<{
|
|
26763
|
+
chain: z.ZodLiteral<"Solana">;
|
|
26764
|
+
asset: z.ZodLiteral<"SOL">;
|
|
26765
|
+
}, "strip", z.ZodTypeAny, {
|
|
26766
|
+
chain: "Solana";
|
|
26767
|
+
asset: "SOL";
|
|
26768
|
+
}, {
|
|
26769
|
+
chain: "Solana";
|
|
26770
|
+
asset: "SOL";
|
|
26771
|
+
}>, z.ZodObject<{
|
|
26772
|
+
chain: z.ZodLiteral<"Solana">;
|
|
26773
|
+
asset: z.ZodLiteral<"USDC">;
|
|
26774
|
+
}, "strip", z.ZodTypeAny, {
|
|
26775
|
+
chain: "Solana";
|
|
26776
|
+
asset: "USDC";
|
|
26777
|
+
}, {
|
|
26778
|
+
chain: "Solana";
|
|
26779
|
+
asset: "USDC";
|
|
26780
|
+
}>, z.ZodObject<{
|
|
26781
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
26782
|
+
asset: z.ZodLiteral<"DOT">;
|
|
26783
|
+
}, "strip", z.ZodTypeAny, {
|
|
26784
|
+
chain: "Assethub";
|
|
26785
|
+
asset: "DOT";
|
|
26786
|
+
}, {
|
|
26787
|
+
chain: "Assethub";
|
|
26788
|
+
asset: "DOT";
|
|
26789
|
+
}>, z.ZodObject<{
|
|
26790
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
26791
|
+
asset: z.ZodLiteral<"USDC">;
|
|
26792
|
+
}, "strip", z.ZodTypeAny, {
|
|
26793
|
+
chain: "Assethub";
|
|
26794
|
+
asset: "USDC";
|
|
26795
|
+
}, {
|
|
26796
|
+
chain: "Assethub";
|
|
26797
|
+
asset: "USDC";
|
|
26798
|
+
}>, z.ZodObject<{
|
|
26799
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
26800
|
+
asset: z.ZodLiteral<"USDT">;
|
|
26801
|
+
}, "strip", z.ZodTypeAny, {
|
|
26802
|
+
chain: "Assethub";
|
|
26803
|
+
asset: "USDT";
|
|
26804
|
+
}, {
|
|
26805
|
+
chain: "Assethub";
|
|
26806
|
+
asset: "USDT";
|
|
26807
|
+
}>]>, z.ZodObject<{
|
|
26808
|
+
positions: z.ZodArray<z.ZodObject<{
|
|
26809
|
+
lp_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
26810
|
+
total_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
26811
|
+
}, "strip", z.ZodTypeAny, {
|
|
26812
|
+
total_amount: bigint;
|
|
26813
|
+
lp_id: `cF${string}`;
|
|
26814
|
+
}, {
|
|
26815
|
+
total_amount: string | number;
|
|
26816
|
+
lp_id: string;
|
|
26817
|
+
}>, "many">;
|
|
26818
|
+
}, "strip", z.ZodTypeAny, {
|
|
26819
|
+
positions: {
|
|
26820
|
+
total_amount: bigint;
|
|
26821
|
+
lp_id: `cF${string}`;
|
|
26822
|
+
}[];
|
|
26823
|
+
}, {
|
|
26824
|
+
positions: {
|
|
26825
|
+
total_amount: string | number;
|
|
26826
|
+
lp_id: string;
|
|
26827
|
+
}[];
|
|
26828
|
+
}>>, "many">;
|
|
26694
26829
|
readonly cf_get_vault_addresses: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
26695
26830
|
ethereum: z.ZodObject<{
|
|
26696
26831
|
Eth: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, `0x${string}`, number[]>;
|
package/dist/common.d.ts
CHANGED
|
@@ -195,6 +195,7 @@ type RpcRequest = WithHash<{
|
|
|
195
195
|
cf_lending_pools: [asset?: UncheckedAssetAndChain];
|
|
196
196
|
cf_lending_config: [];
|
|
197
197
|
cf_loan_accounts: [accountId?: string];
|
|
198
|
+
cf_lending_pool_supply_balances: [asset: UncheckedAssetAndChain];
|
|
198
199
|
cf_get_vault_addresses: [];
|
|
199
200
|
}> & {
|
|
200
201
|
chain_getBlockHash: [blockHeight?: number];
|
|
@@ -26300,7 +26301,6 @@ declare const rpcResult: {
|
|
|
26300
26301
|
chain: "Assethub";
|
|
26301
26302
|
asset: "USDT";
|
|
26302
26303
|
}>]>;
|
|
26303
|
-
created_at: z.ZodNumber;
|
|
26304
26304
|
principal_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
26305
26305
|
}, "strip", z.ZodTypeAny, {
|
|
26306
26306
|
asset: {
|
|
@@ -26344,7 +26344,6 @@ declare const rpcResult: {
|
|
|
26344
26344
|
asset: "USDT";
|
|
26345
26345
|
};
|
|
26346
26346
|
loan_id: number;
|
|
26347
|
-
created_at: number;
|
|
26348
26347
|
principal_amount: bigint;
|
|
26349
26348
|
}, {
|
|
26350
26349
|
asset: {
|
|
@@ -26388,7 +26387,6 @@ declare const rpcResult: {
|
|
|
26388
26387
|
asset: "USDT";
|
|
26389
26388
|
};
|
|
26390
26389
|
loan_id: number;
|
|
26391
|
-
created_at: number;
|
|
26392
26390
|
principal_amount: string | number;
|
|
26393
26391
|
}>, "many">;
|
|
26394
26392
|
liquidation_status: z.ZodNullable<z.ZodObject<{
|
|
@@ -26543,7 +26541,6 @@ declare const rpcResult: {
|
|
|
26543
26541
|
asset: "USDT";
|
|
26544
26542
|
};
|
|
26545
26543
|
loan_id: number;
|
|
26546
|
-
created_at: number;
|
|
26547
26544
|
principal_amount: bigint;
|
|
26548
26545
|
}[];
|
|
26549
26546
|
liquidation_status: {
|
|
@@ -26680,7 +26677,6 @@ declare const rpcResult: {
|
|
|
26680
26677
|
asset: "USDT";
|
|
26681
26678
|
};
|
|
26682
26679
|
loan_id: number;
|
|
26683
|
-
created_at: number;
|
|
26684
26680
|
principal_amount: string | number;
|
|
26685
26681
|
}[];
|
|
26686
26682
|
liquidation_status: {
|
|
@@ -26691,6 +26687,145 @@ declare const rpcResult: {
|
|
|
26691
26687
|
is_hard: boolean;
|
|
26692
26688
|
} | null;
|
|
26693
26689
|
}>, "many">;
|
|
26690
|
+
readonly cf_lending_pool_supply_balances: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
26691
|
+
chain: z.ZodLiteral<"Bitcoin">;
|
|
26692
|
+
asset: z.ZodLiteral<"BTC">;
|
|
26693
|
+
}, "strip", z.ZodTypeAny, {
|
|
26694
|
+
chain: "Bitcoin";
|
|
26695
|
+
asset: "BTC";
|
|
26696
|
+
}, {
|
|
26697
|
+
chain: "Bitcoin";
|
|
26698
|
+
asset: "BTC";
|
|
26699
|
+
}>, z.ZodObject<{
|
|
26700
|
+
chain: z.ZodLiteral<"Polkadot">;
|
|
26701
|
+
asset: z.ZodLiteral<"DOT">;
|
|
26702
|
+
}, "strip", z.ZodTypeAny, {
|
|
26703
|
+
chain: "Polkadot";
|
|
26704
|
+
asset: "DOT";
|
|
26705
|
+
}, {
|
|
26706
|
+
chain: "Polkadot";
|
|
26707
|
+
asset: "DOT";
|
|
26708
|
+
}>, z.ZodObject<{
|
|
26709
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
26710
|
+
asset: z.ZodLiteral<"FLIP">;
|
|
26711
|
+
}, "strip", z.ZodTypeAny, {
|
|
26712
|
+
chain: "Ethereum";
|
|
26713
|
+
asset: "FLIP";
|
|
26714
|
+
}, {
|
|
26715
|
+
chain: "Ethereum";
|
|
26716
|
+
asset: "FLIP";
|
|
26717
|
+
}>, z.ZodObject<{
|
|
26718
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
26719
|
+
asset: z.ZodLiteral<"ETH">;
|
|
26720
|
+
}, "strip", z.ZodTypeAny, {
|
|
26721
|
+
chain: "Ethereum";
|
|
26722
|
+
asset: "ETH";
|
|
26723
|
+
}, {
|
|
26724
|
+
chain: "Ethereum";
|
|
26725
|
+
asset: "ETH";
|
|
26726
|
+
}>, z.ZodObject<{
|
|
26727
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
26728
|
+
asset: z.ZodLiteral<"USDC">;
|
|
26729
|
+
}, "strip", z.ZodTypeAny, {
|
|
26730
|
+
chain: "Ethereum";
|
|
26731
|
+
asset: "USDC";
|
|
26732
|
+
}, {
|
|
26733
|
+
chain: "Ethereum";
|
|
26734
|
+
asset: "USDC";
|
|
26735
|
+
}>, z.ZodObject<{
|
|
26736
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
26737
|
+
asset: z.ZodLiteral<"USDT">;
|
|
26738
|
+
}, "strip", z.ZodTypeAny, {
|
|
26739
|
+
chain: "Ethereum";
|
|
26740
|
+
asset: "USDT";
|
|
26741
|
+
}, {
|
|
26742
|
+
chain: "Ethereum";
|
|
26743
|
+
asset: "USDT";
|
|
26744
|
+
}>, z.ZodObject<{
|
|
26745
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
26746
|
+
asset: z.ZodLiteral<"ETH">;
|
|
26747
|
+
}, "strip", z.ZodTypeAny, {
|
|
26748
|
+
chain: "Arbitrum";
|
|
26749
|
+
asset: "ETH";
|
|
26750
|
+
}, {
|
|
26751
|
+
chain: "Arbitrum";
|
|
26752
|
+
asset: "ETH";
|
|
26753
|
+
}>, z.ZodObject<{
|
|
26754
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
26755
|
+
asset: z.ZodLiteral<"USDC">;
|
|
26756
|
+
}, "strip", z.ZodTypeAny, {
|
|
26757
|
+
chain: "Arbitrum";
|
|
26758
|
+
asset: "USDC";
|
|
26759
|
+
}, {
|
|
26760
|
+
chain: "Arbitrum";
|
|
26761
|
+
asset: "USDC";
|
|
26762
|
+
}>, z.ZodObject<{
|
|
26763
|
+
chain: z.ZodLiteral<"Solana">;
|
|
26764
|
+
asset: z.ZodLiteral<"SOL">;
|
|
26765
|
+
}, "strip", z.ZodTypeAny, {
|
|
26766
|
+
chain: "Solana";
|
|
26767
|
+
asset: "SOL";
|
|
26768
|
+
}, {
|
|
26769
|
+
chain: "Solana";
|
|
26770
|
+
asset: "SOL";
|
|
26771
|
+
}>, z.ZodObject<{
|
|
26772
|
+
chain: z.ZodLiteral<"Solana">;
|
|
26773
|
+
asset: z.ZodLiteral<"USDC">;
|
|
26774
|
+
}, "strip", z.ZodTypeAny, {
|
|
26775
|
+
chain: "Solana";
|
|
26776
|
+
asset: "USDC";
|
|
26777
|
+
}, {
|
|
26778
|
+
chain: "Solana";
|
|
26779
|
+
asset: "USDC";
|
|
26780
|
+
}>, z.ZodObject<{
|
|
26781
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
26782
|
+
asset: z.ZodLiteral<"DOT">;
|
|
26783
|
+
}, "strip", z.ZodTypeAny, {
|
|
26784
|
+
chain: "Assethub";
|
|
26785
|
+
asset: "DOT";
|
|
26786
|
+
}, {
|
|
26787
|
+
chain: "Assethub";
|
|
26788
|
+
asset: "DOT";
|
|
26789
|
+
}>, z.ZodObject<{
|
|
26790
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
26791
|
+
asset: z.ZodLiteral<"USDC">;
|
|
26792
|
+
}, "strip", z.ZodTypeAny, {
|
|
26793
|
+
chain: "Assethub";
|
|
26794
|
+
asset: "USDC";
|
|
26795
|
+
}, {
|
|
26796
|
+
chain: "Assethub";
|
|
26797
|
+
asset: "USDC";
|
|
26798
|
+
}>, z.ZodObject<{
|
|
26799
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
26800
|
+
asset: z.ZodLiteral<"USDT">;
|
|
26801
|
+
}, "strip", z.ZodTypeAny, {
|
|
26802
|
+
chain: "Assethub";
|
|
26803
|
+
asset: "USDT";
|
|
26804
|
+
}, {
|
|
26805
|
+
chain: "Assethub";
|
|
26806
|
+
asset: "USDT";
|
|
26807
|
+
}>]>, z.ZodObject<{
|
|
26808
|
+
positions: z.ZodArray<z.ZodObject<{
|
|
26809
|
+
lp_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
26810
|
+
total_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
26811
|
+
}, "strip", z.ZodTypeAny, {
|
|
26812
|
+
total_amount: bigint;
|
|
26813
|
+
lp_id: `cF${string}`;
|
|
26814
|
+
}, {
|
|
26815
|
+
total_amount: string | number;
|
|
26816
|
+
lp_id: string;
|
|
26817
|
+
}>, "many">;
|
|
26818
|
+
}, "strip", z.ZodTypeAny, {
|
|
26819
|
+
positions: {
|
|
26820
|
+
total_amount: bigint;
|
|
26821
|
+
lp_id: `cF${string}`;
|
|
26822
|
+
}[];
|
|
26823
|
+
}, {
|
|
26824
|
+
positions: {
|
|
26825
|
+
total_amount: string | number;
|
|
26826
|
+
lp_id: string;
|
|
26827
|
+
}[];
|
|
26828
|
+
}>>, "many">;
|
|
26694
26829
|
readonly cf_get_vault_addresses: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
26695
26830
|
ethereum: z.ZodObject<{
|
|
26696
26831
|
Eth: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, `0x${string}`, number[]>;
|
package/dist/common.mjs
CHANGED
|
@@ -40,7 +40,8 @@ import {
|
|
|
40
40
|
cfLendingConfig,
|
|
41
41
|
cfLoanAccounts,
|
|
42
42
|
cfMonitoringSimulateAuction,
|
|
43
|
-
cfVaultAddresses
|
|
43
|
+
cfVaultAddresses,
|
|
44
|
+
cfLendingPoolSupplyBalances
|
|
44
45
|
} from "./parsers.mjs";
|
|
45
46
|
import { rpcResponse } from "./parsers.mjs";
|
|
46
47
|
var rpcResult = {
|
|
@@ -88,6 +89,7 @@ var rpcResult = {
|
|
|
88
89
|
cf_lending_pools: cfLendingPools,
|
|
89
90
|
cf_lending_config: cfLendingConfig,
|
|
90
91
|
cf_loan_accounts: cfLoanAccounts,
|
|
92
|
+
cf_lending_pool_supply_balances: cfLendingPoolSupplyBalances,
|
|
91
93
|
cf_get_vault_addresses: cfVaultAddresses
|
|
92
94
|
};
|
|
93
95
|
export {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as HttpClient } from './HttpClient.cjs';
|
|
2
2
|
export { default as WsClient } from './WsClient.cjs';
|
|
3
|
-
export { CfAccountInfo, CfAccountInfoResponse, CfAccounts, CfAccountsResponse, CfAuctionState, CfAuctionStateResponse, CfAvailablePools, CfAvailablePoolsResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEncodeCfParameters, CfEncodeCfParametersResponse, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfGetTradingStrategies, CfGetTradingStrategiesResponse, CfGetTradingStrategyLimits, CfGetTradingStrategyLimitsResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLendingConfig, CfLendingConfigResponse, CfLendingPools, CfLendingPoolsResponse, CfLiquidityProviderAccount, CfLoanAccounts, CfLoanAccountsResponse, CfMonitoringSimulateAuction, CfMonitoringSimulateAuctionResponse, CfOperatorAccount, CfOraclePrices, CfOraclePricesResponse, CfPoolDepth, CfPoolDepthResponse, CfPoolOrderbook, CfPoolOrderbookResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSafeModeStatuses, CfSafeModeStatusesResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, CfVaultAddresses, CfVaultAddressesResponse, LpTotalBalances, LpTotalBalancesResponse } from './types.cjs';
|
|
3
|
+
export { CfAccountInfo, CfAccountInfoResponse, CfAccounts, CfAccountsResponse, CfAuctionState, CfAuctionStateResponse, CfAvailablePools, CfAvailablePoolsResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEncodeCfParameters, CfEncodeCfParametersResponse, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfGetTradingStrategies, CfGetTradingStrategiesResponse, CfGetTradingStrategyLimits, CfGetTradingStrategyLimitsResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLendingConfig, CfLendingConfigResponse, CfLendingPoolSupplyBalances, CfLendingPoolSupplyBalancesResponse, CfLendingPools, CfLendingPoolsResponse, CfLiquidityProviderAccount, CfLoanAccounts, CfLoanAccountsResponse, CfMonitoringSimulateAuction, CfMonitoringSimulateAuctionResponse, CfOperatorAccount, CfOraclePrices, CfOraclePricesResponse, CfPoolDepth, CfPoolDepthResponse, CfPoolOrderbook, CfPoolOrderbookResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSafeModeStatuses, CfSafeModeStatusesResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, CfVaultAddresses, CfVaultAddressesResponse, LpTotalBalances, LpTotalBalancesResponse } from './types.cjs';
|
|
4
4
|
export { c as constants } from './constants-jLrn-AnI.cjs';
|
|
5
5
|
export { RpcLimitOrder, RpcRangeOrder } from './parsers.cjs';
|
|
6
6
|
export { RpcMethod, RpcRequest as RpcParams, RpcResult } from './common.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as HttpClient } from './HttpClient.js';
|
|
2
2
|
export { default as WsClient } from './WsClient.js';
|
|
3
|
-
export { CfAccountInfo, CfAccountInfoResponse, CfAccounts, CfAccountsResponse, CfAuctionState, CfAuctionStateResponse, CfAvailablePools, CfAvailablePoolsResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEncodeCfParameters, CfEncodeCfParametersResponse, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfGetTradingStrategies, CfGetTradingStrategiesResponse, CfGetTradingStrategyLimits, CfGetTradingStrategyLimitsResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLendingConfig, CfLendingConfigResponse, CfLendingPools, CfLendingPoolsResponse, CfLiquidityProviderAccount, CfLoanAccounts, CfLoanAccountsResponse, CfMonitoringSimulateAuction, CfMonitoringSimulateAuctionResponse, CfOperatorAccount, CfOraclePrices, CfOraclePricesResponse, CfPoolDepth, CfPoolDepthResponse, CfPoolOrderbook, CfPoolOrderbookResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSafeModeStatuses, CfSafeModeStatusesResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, CfVaultAddresses, CfVaultAddressesResponse, LpTotalBalances, LpTotalBalancesResponse } from './types.js';
|
|
3
|
+
export { CfAccountInfo, CfAccountInfoResponse, CfAccounts, CfAccountsResponse, CfAuctionState, CfAuctionStateResponse, CfAvailablePools, CfAvailablePoolsResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEncodeCfParameters, CfEncodeCfParametersResponse, CfEnvironment, CfEnvironmentResponse, CfFailedCallArbitrum, CfFailedCallArbitrumResponse, CfFailedCallEthereum, CfFailedCallEthereumResponse, CfFlipSupply, CfFlipSupplyResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfGetTradingStrategies, CfGetTradingStrategiesResponse, CfGetTradingStrategyLimits, CfGetTradingStrategyLimitsResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLendingConfig, CfLendingConfigResponse, CfLendingPoolSupplyBalances, CfLendingPoolSupplyBalancesResponse, CfLendingPools, CfLendingPoolsResponse, CfLiquidityProviderAccount, CfLoanAccounts, CfLoanAccountsResponse, CfMonitoringSimulateAuction, CfMonitoringSimulateAuctionResponse, CfOperatorAccount, CfOraclePrices, CfOraclePricesResponse, CfPoolDepth, CfPoolDepthResponse, CfPoolOrderbook, CfPoolOrderbookResponse, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfRequestSwapParameterEncoding, CfRequestSwapParameterEncodingResponse, CfSafeModeStatuses, CfSafeModeStatusesResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwapRateV3, CfSwapRateV3Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount, CfVaultAddresses, CfVaultAddressesResponse, LpTotalBalances, LpTotalBalancesResponse } from './types.js';
|
|
4
4
|
export { c as constants } from './constants-jLrn-AnI.js';
|
|
5
5
|
export { RpcLimitOrder, RpcRangeOrder } from './parsers.js';
|
|
6
6
|
export { RpcMethod, RpcRequest as RpcParams, RpcResult } from './common.js';
|
package/dist/parsers.cjs
CHANGED
|
@@ -642,7 +642,6 @@ var cfLoanAccount = _zod.z.object({
|
|
|
642
642
|
_zod.z.object({
|
|
643
643
|
loan_id: _zod.z.number(),
|
|
644
644
|
asset: rpcAssetSchema,
|
|
645
|
-
created_at: _zod.z.number(),
|
|
646
645
|
principal_amount: numberOrHex
|
|
647
646
|
})
|
|
648
647
|
),
|
|
@@ -657,6 +656,19 @@ var cfLoanAccount = _zod.z.object({
|
|
|
657
656
|
}).nullable()
|
|
658
657
|
});
|
|
659
658
|
var cfLoanAccounts = _zod.z.array(cfLoanAccount);
|
|
659
|
+
var cfLendingPoolSupplyBalances = _zod.z.array(
|
|
660
|
+
_zod.z.intersection(
|
|
661
|
+
rpcAssetSchema,
|
|
662
|
+
_zod.z.object({
|
|
663
|
+
positions: _zod.z.array(
|
|
664
|
+
_zod.z.object({
|
|
665
|
+
lp_id: accountId,
|
|
666
|
+
total_amount: numberOrHex
|
|
667
|
+
})
|
|
668
|
+
)
|
|
669
|
+
})
|
|
670
|
+
)
|
|
671
|
+
);
|
|
660
672
|
var cfVaultAddresses = _zod.z.object({
|
|
661
673
|
ethereum: _zod.z.object({ Eth: _zod.z.array(_zod.z.number()).length(20).transform(_bytes.bytesToHex) }),
|
|
662
674
|
arbitrum: _zod.z.object({ Arb: _zod.z.array(_zod.z.number()).length(20).transform(_bytes.bytesToHex) }),
|
|
@@ -749,4 +761,5 @@ var cfVaultAddresses = _zod.z.object({
|
|
|
749
761
|
|
|
750
762
|
|
|
751
763
|
|
|
752
|
-
|
|
764
|
+
|
|
765
|
+
exports.accountInfoCommon = accountInfoCommon; 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.cfGetTradingStrategyLimits = cfGetTradingStrategyLimits; exports.cfIngressEgressEnvironment = cfIngressEgressEnvironment; exports.cfLendingConfig = cfLendingConfig; exports.cfLendingPoolSupplyBalances = cfLendingPoolSupplyBalances; exports.cfLendingPools = cfLendingPools; exports.cfLoanAccount = cfLoanAccount; exports.cfLoanAccounts = cfLoanAccounts; exports.cfMonitoringSimulateAuction = cfMonitoringSimulateAuction; exports.cfOraclePrices = cfOraclePrices; exports.cfPoolDepth = cfPoolDepth; exports.cfPoolOrderbook = cfPoolOrderbook; exports.cfPoolOrders = cfPoolOrders; exports.cfPoolPriceV2 = cfPoolPriceV2; exports.cfPoolsEnvironment = cfPoolsEnvironment; exports.cfSafeModeStatuses = cfSafeModeStatuses; exports.cfSupportedAssets = cfSupportedAssets; exports.cfSwapRate = cfSwapRate; exports.cfSwapRateV2 = cfSwapRateV2; exports.cfSwapRateV3 = cfSwapRateV3; exports.cfSwappingEnvironment = cfSwappingEnvironment; exports.cfTradingStrategy = cfTradingStrategy; exports.cfVaultAddresses = cfVaultAddresses; exports.chainGetBlockHash = chainGetBlockHash; exports.ethereumAddress = ethereumAddress; exports.hexString = hexString; exports.liquidityProvider = liquidityProvider; exports.lpTotalBalances = lpTotalBalances; exports.numberOrHex = numberOrHex; exports.numericString = numericString; exports.operator = operator; exports.requestSwapParameterEncoding = requestSwapParameterEncoding; exports.rpcResponse = rpcResponse; exports.stateGetMetadata = stateGetMetadata; exports.stateGetRuntimeVersion = stateGetRuntimeVersion; exports.u256 = u256; exports.unregistered = unregistered; exports.validator = validator;
|
package/dist/parsers.d.cts
CHANGED
|
@@ -30619,7 +30619,6 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
30619
30619
|
chain: "Assethub";
|
|
30620
30620
|
asset: "USDT";
|
|
30621
30621
|
}>]>;
|
|
30622
|
-
created_at: z.ZodNumber;
|
|
30623
30622
|
principal_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
30624
30623
|
}, "strip", z.ZodTypeAny, {
|
|
30625
30624
|
asset: {
|
|
@@ -30663,7 +30662,6 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
30663
30662
|
asset: "USDT";
|
|
30664
30663
|
};
|
|
30665
30664
|
loan_id: number;
|
|
30666
|
-
created_at: number;
|
|
30667
30665
|
principal_amount: bigint;
|
|
30668
30666
|
}, {
|
|
30669
30667
|
asset: {
|
|
@@ -30707,7 +30705,6 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
30707
30705
|
asset: "USDT";
|
|
30708
30706
|
};
|
|
30709
30707
|
loan_id: number;
|
|
30710
|
-
created_at: number;
|
|
30711
30708
|
principal_amount: string | number;
|
|
30712
30709
|
}>, "many">;
|
|
30713
30710
|
liquidation_status: z.ZodNullable<z.ZodObject<{
|
|
@@ -30862,7 +30859,6 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
30862
30859
|
asset: "USDT";
|
|
30863
30860
|
};
|
|
30864
30861
|
loan_id: number;
|
|
30865
|
-
created_at: number;
|
|
30866
30862
|
principal_amount: bigint;
|
|
30867
30863
|
}[];
|
|
30868
30864
|
liquidation_status: {
|
|
@@ -30999,7 +30995,6 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
30999
30995
|
asset: "USDT";
|
|
31000
30996
|
};
|
|
31001
30997
|
loan_id: number;
|
|
31002
|
-
created_at: number;
|
|
31003
30998
|
principal_amount: string | number;
|
|
31004
30999
|
}[];
|
|
31005
31000
|
liquidation_status: {
|
|
@@ -31375,7 +31370,6 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
31375
31370
|
chain: "Assethub";
|
|
31376
31371
|
asset: "USDT";
|
|
31377
31372
|
}>]>;
|
|
31378
|
-
created_at: z.ZodNumber;
|
|
31379
31373
|
principal_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
31380
31374
|
}, "strip", z.ZodTypeAny, {
|
|
31381
31375
|
asset: {
|
|
@@ -31419,7 +31413,6 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
31419
31413
|
asset: "USDT";
|
|
31420
31414
|
};
|
|
31421
31415
|
loan_id: number;
|
|
31422
|
-
created_at: number;
|
|
31423
31416
|
principal_amount: bigint;
|
|
31424
31417
|
}, {
|
|
31425
31418
|
asset: {
|
|
@@ -31463,7 +31456,6 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
31463
31456
|
asset: "USDT";
|
|
31464
31457
|
};
|
|
31465
31458
|
loan_id: number;
|
|
31466
|
-
created_at: number;
|
|
31467
31459
|
principal_amount: string | number;
|
|
31468
31460
|
}>, "many">;
|
|
31469
31461
|
liquidation_status: z.ZodNullable<z.ZodObject<{
|
|
@@ -31618,7 +31610,6 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
31618
31610
|
asset: "USDT";
|
|
31619
31611
|
};
|
|
31620
31612
|
loan_id: number;
|
|
31621
|
-
created_at: number;
|
|
31622
31613
|
principal_amount: bigint;
|
|
31623
31614
|
}[];
|
|
31624
31615
|
liquidation_status: {
|
|
@@ -31755,7 +31746,6 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
31755
31746
|
asset: "USDT";
|
|
31756
31747
|
};
|
|
31757
31748
|
loan_id: number;
|
|
31758
|
-
created_at: number;
|
|
31759
31749
|
principal_amount: string | number;
|
|
31760
31750
|
}[];
|
|
31761
31751
|
liquidation_status: {
|
|
@@ -31766,6 +31756,145 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
31766
31756
|
is_hard: boolean;
|
|
31767
31757
|
} | null;
|
|
31768
31758
|
}>, "many">;
|
|
31759
|
+
declare const cfLendingPoolSupplyBalances: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
31760
|
+
chain: z.ZodLiteral<"Bitcoin">;
|
|
31761
|
+
asset: z.ZodLiteral<"BTC">;
|
|
31762
|
+
}, "strip", z.ZodTypeAny, {
|
|
31763
|
+
chain: "Bitcoin";
|
|
31764
|
+
asset: "BTC";
|
|
31765
|
+
}, {
|
|
31766
|
+
chain: "Bitcoin";
|
|
31767
|
+
asset: "BTC";
|
|
31768
|
+
}>, z.ZodObject<{
|
|
31769
|
+
chain: z.ZodLiteral<"Polkadot">;
|
|
31770
|
+
asset: z.ZodLiteral<"DOT">;
|
|
31771
|
+
}, "strip", z.ZodTypeAny, {
|
|
31772
|
+
chain: "Polkadot";
|
|
31773
|
+
asset: "DOT";
|
|
31774
|
+
}, {
|
|
31775
|
+
chain: "Polkadot";
|
|
31776
|
+
asset: "DOT";
|
|
31777
|
+
}>, z.ZodObject<{
|
|
31778
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
31779
|
+
asset: z.ZodLiteral<"FLIP">;
|
|
31780
|
+
}, "strip", z.ZodTypeAny, {
|
|
31781
|
+
chain: "Ethereum";
|
|
31782
|
+
asset: "FLIP";
|
|
31783
|
+
}, {
|
|
31784
|
+
chain: "Ethereum";
|
|
31785
|
+
asset: "FLIP";
|
|
31786
|
+
}>, z.ZodObject<{
|
|
31787
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
31788
|
+
asset: z.ZodLiteral<"ETH">;
|
|
31789
|
+
}, "strip", z.ZodTypeAny, {
|
|
31790
|
+
chain: "Ethereum";
|
|
31791
|
+
asset: "ETH";
|
|
31792
|
+
}, {
|
|
31793
|
+
chain: "Ethereum";
|
|
31794
|
+
asset: "ETH";
|
|
31795
|
+
}>, z.ZodObject<{
|
|
31796
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
31797
|
+
asset: z.ZodLiteral<"USDC">;
|
|
31798
|
+
}, "strip", z.ZodTypeAny, {
|
|
31799
|
+
chain: "Ethereum";
|
|
31800
|
+
asset: "USDC";
|
|
31801
|
+
}, {
|
|
31802
|
+
chain: "Ethereum";
|
|
31803
|
+
asset: "USDC";
|
|
31804
|
+
}>, z.ZodObject<{
|
|
31805
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
31806
|
+
asset: z.ZodLiteral<"USDT">;
|
|
31807
|
+
}, "strip", z.ZodTypeAny, {
|
|
31808
|
+
chain: "Ethereum";
|
|
31809
|
+
asset: "USDT";
|
|
31810
|
+
}, {
|
|
31811
|
+
chain: "Ethereum";
|
|
31812
|
+
asset: "USDT";
|
|
31813
|
+
}>, z.ZodObject<{
|
|
31814
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
31815
|
+
asset: z.ZodLiteral<"ETH">;
|
|
31816
|
+
}, "strip", z.ZodTypeAny, {
|
|
31817
|
+
chain: "Arbitrum";
|
|
31818
|
+
asset: "ETH";
|
|
31819
|
+
}, {
|
|
31820
|
+
chain: "Arbitrum";
|
|
31821
|
+
asset: "ETH";
|
|
31822
|
+
}>, z.ZodObject<{
|
|
31823
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
31824
|
+
asset: z.ZodLiteral<"USDC">;
|
|
31825
|
+
}, "strip", z.ZodTypeAny, {
|
|
31826
|
+
chain: "Arbitrum";
|
|
31827
|
+
asset: "USDC";
|
|
31828
|
+
}, {
|
|
31829
|
+
chain: "Arbitrum";
|
|
31830
|
+
asset: "USDC";
|
|
31831
|
+
}>, z.ZodObject<{
|
|
31832
|
+
chain: z.ZodLiteral<"Solana">;
|
|
31833
|
+
asset: z.ZodLiteral<"SOL">;
|
|
31834
|
+
}, "strip", z.ZodTypeAny, {
|
|
31835
|
+
chain: "Solana";
|
|
31836
|
+
asset: "SOL";
|
|
31837
|
+
}, {
|
|
31838
|
+
chain: "Solana";
|
|
31839
|
+
asset: "SOL";
|
|
31840
|
+
}>, z.ZodObject<{
|
|
31841
|
+
chain: z.ZodLiteral<"Solana">;
|
|
31842
|
+
asset: z.ZodLiteral<"USDC">;
|
|
31843
|
+
}, "strip", z.ZodTypeAny, {
|
|
31844
|
+
chain: "Solana";
|
|
31845
|
+
asset: "USDC";
|
|
31846
|
+
}, {
|
|
31847
|
+
chain: "Solana";
|
|
31848
|
+
asset: "USDC";
|
|
31849
|
+
}>, z.ZodObject<{
|
|
31850
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
31851
|
+
asset: z.ZodLiteral<"DOT">;
|
|
31852
|
+
}, "strip", z.ZodTypeAny, {
|
|
31853
|
+
chain: "Assethub";
|
|
31854
|
+
asset: "DOT";
|
|
31855
|
+
}, {
|
|
31856
|
+
chain: "Assethub";
|
|
31857
|
+
asset: "DOT";
|
|
31858
|
+
}>, z.ZodObject<{
|
|
31859
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
31860
|
+
asset: z.ZodLiteral<"USDC">;
|
|
31861
|
+
}, "strip", z.ZodTypeAny, {
|
|
31862
|
+
chain: "Assethub";
|
|
31863
|
+
asset: "USDC";
|
|
31864
|
+
}, {
|
|
31865
|
+
chain: "Assethub";
|
|
31866
|
+
asset: "USDC";
|
|
31867
|
+
}>, z.ZodObject<{
|
|
31868
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
31869
|
+
asset: z.ZodLiteral<"USDT">;
|
|
31870
|
+
}, "strip", z.ZodTypeAny, {
|
|
31871
|
+
chain: "Assethub";
|
|
31872
|
+
asset: "USDT";
|
|
31873
|
+
}, {
|
|
31874
|
+
chain: "Assethub";
|
|
31875
|
+
asset: "USDT";
|
|
31876
|
+
}>]>, z.ZodObject<{
|
|
31877
|
+
positions: z.ZodArray<z.ZodObject<{
|
|
31878
|
+
lp_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
31879
|
+
total_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
31880
|
+
}, "strip", z.ZodTypeAny, {
|
|
31881
|
+
total_amount: bigint;
|
|
31882
|
+
lp_id: `cF${string}`;
|
|
31883
|
+
}, {
|
|
31884
|
+
total_amount: string | number;
|
|
31885
|
+
lp_id: string;
|
|
31886
|
+
}>, "many">;
|
|
31887
|
+
}, "strip", z.ZodTypeAny, {
|
|
31888
|
+
positions: {
|
|
31889
|
+
total_amount: bigint;
|
|
31890
|
+
lp_id: `cF${string}`;
|
|
31891
|
+
}[];
|
|
31892
|
+
}, {
|
|
31893
|
+
positions: {
|
|
31894
|
+
total_amount: string | number;
|
|
31895
|
+
lp_id: string;
|
|
31896
|
+
}[];
|
|
31897
|
+
}>>, "many">;
|
|
31769
31898
|
declare const cfVaultAddresses: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
31770
31899
|
ethereum: z.ZodObject<{
|
|
31771
31900
|
Eth: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, `0x${string}`, number[]>;
|
|
@@ -31844,4 +31973,4 @@ declare const cfVaultAddresses: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
31844
31973
|
}][];
|
|
31845
31974
|
}>;
|
|
31846
31975
|
|
|
31847
|
-
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 };
|
|
31976
|
+
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, cfLendingPoolSupplyBalances, 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.d.ts
CHANGED
|
@@ -30619,7 +30619,6 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
30619
30619
|
chain: "Assethub";
|
|
30620
30620
|
asset: "USDT";
|
|
30621
30621
|
}>]>;
|
|
30622
|
-
created_at: z.ZodNumber;
|
|
30623
30622
|
principal_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
30624
30623
|
}, "strip", z.ZodTypeAny, {
|
|
30625
30624
|
asset: {
|
|
@@ -30663,7 +30662,6 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
30663
30662
|
asset: "USDT";
|
|
30664
30663
|
};
|
|
30665
30664
|
loan_id: number;
|
|
30666
|
-
created_at: number;
|
|
30667
30665
|
principal_amount: bigint;
|
|
30668
30666
|
}, {
|
|
30669
30667
|
asset: {
|
|
@@ -30707,7 +30705,6 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
30707
30705
|
asset: "USDT";
|
|
30708
30706
|
};
|
|
30709
30707
|
loan_id: number;
|
|
30710
|
-
created_at: number;
|
|
30711
30708
|
principal_amount: string | number;
|
|
30712
30709
|
}>, "many">;
|
|
30713
30710
|
liquidation_status: z.ZodNullable<z.ZodObject<{
|
|
@@ -30862,7 +30859,6 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
30862
30859
|
asset: "USDT";
|
|
30863
30860
|
};
|
|
30864
30861
|
loan_id: number;
|
|
30865
|
-
created_at: number;
|
|
30866
30862
|
principal_amount: bigint;
|
|
30867
30863
|
}[];
|
|
30868
30864
|
liquidation_status: {
|
|
@@ -30999,7 +30995,6 @@ declare const cfLoanAccount: z.ZodObject<{
|
|
|
30999
30995
|
asset: "USDT";
|
|
31000
30996
|
};
|
|
31001
30997
|
loan_id: number;
|
|
31002
|
-
created_at: number;
|
|
31003
30998
|
principal_amount: string | number;
|
|
31004
30999
|
}[];
|
|
31005
31000
|
liquidation_status: {
|
|
@@ -31375,7 +31370,6 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
31375
31370
|
chain: "Assethub";
|
|
31376
31371
|
asset: "USDT";
|
|
31377
31372
|
}>]>;
|
|
31378
|
-
created_at: z.ZodNumber;
|
|
31379
31373
|
principal_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
31380
31374
|
}, "strip", z.ZodTypeAny, {
|
|
31381
31375
|
asset: {
|
|
@@ -31419,7 +31413,6 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
31419
31413
|
asset: "USDT";
|
|
31420
31414
|
};
|
|
31421
31415
|
loan_id: number;
|
|
31422
|
-
created_at: number;
|
|
31423
31416
|
principal_amount: bigint;
|
|
31424
31417
|
}, {
|
|
31425
31418
|
asset: {
|
|
@@ -31463,7 +31456,6 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
31463
31456
|
asset: "USDT";
|
|
31464
31457
|
};
|
|
31465
31458
|
loan_id: number;
|
|
31466
|
-
created_at: number;
|
|
31467
31459
|
principal_amount: string | number;
|
|
31468
31460
|
}>, "many">;
|
|
31469
31461
|
liquidation_status: z.ZodNullable<z.ZodObject<{
|
|
@@ -31618,7 +31610,6 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
31618
31610
|
asset: "USDT";
|
|
31619
31611
|
};
|
|
31620
31612
|
loan_id: number;
|
|
31621
|
-
created_at: number;
|
|
31622
31613
|
principal_amount: bigint;
|
|
31623
31614
|
}[];
|
|
31624
31615
|
liquidation_status: {
|
|
@@ -31755,7 +31746,6 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
31755
31746
|
asset: "USDT";
|
|
31756
31747
|
};
|
|
31757
31748
|
loan_id: number;
|
|
31758
|
-
created_at: number;
|
|
31759
31749
|
principal_amount: string | number;
|
|
31760
31750
|
}[];
|
|
31761
31751
|
liquidation_status: {
|
|
@@ -31766,6 +31756,145 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
|
|
|
31766
31756
|
is_hard: boolean;
|
|
31767
31757
|
} | null;
|
|
31768
31758
|
}>, "many">;
|
|
31759
|
+
declare const cfLendingPoolSupplyBalances: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
31760
|
+
chain: z.ZodLiteral<"Bitcoin">;
|
|
31761
|
+
asset: z.ZodLiteral<"BTC">;
|
|
31762
|
+
}, "strip", z.ZodTypeAny, {
|
|
31763
|
+
chain: "Bitcoin";
|
|
31764
|
+
asset: "BTC";
|
|
31765
|
+
}, {
|
|
31766
|
+
chain: "Bitcoin";
|
|
31767
|
+
asset: "BTC";
|
|
31768
|
+
}>, z.ZodObject<{
|
|
31769
|
+
chain: z.ZodLiteral<"Polkadot">;
|
|
31770
|
+
asset: z.ZodLiteral<"DOT">;
|
|
31771
|
+
}, "strip", z.ZodTypeAny, {
|
|
31772
|
+
chain: "Polkadot";
|
|
31773
|
+
asset: "DOT";
|
|
31774
|
+
}, {
|
|
31775
|
+
chain: "Polkadot";
|
|
31776
|
+
asset: "DOT";
|
|
31777
|
+
}>, z.ZodObject<{
|
|
31778
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
31779
|
+
asset: z.ZodLiteral<"FLIP">;
|
|
31780
|
+
}, "strip", z.ZodTypeAny, {
|
|
31781
|
+
chain: "Ethereum";
|
|
31782
|
+
asset: "FLIP";
|
|
31783
|
+
}, {
|
|
31784
|
+
chain: "Ethereum";
|
|
31785
|
+
asset: "FLIP";
|
|
31786
|
+
}>, z.ZodObject<{
|
|
31787
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
31788
|
+
asset: z.ZodLiteral<"ETH">;
|
|
31789
|
+
}, "strip", z.ZodTypeAny, {
|
|
31790
|
+
chain: "Ethereum";
|
|
31791
|
+
asset: "ETH";
|
|
31792
|
+
}, {
|
|
31793
|
+
chain: "Ethereum";
|
|
31794
|
+
asset: "ETH";
|
|
31795
|
+
}>, z.ZodObject<{
|
|
31796
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
31797
|
+
asset: z.ZodLiteral<"USDC">;
|
|
31798
|
+
}, "strip", z.ZodTypeAny, {
|
|
31799
|
+
chain: "Ethereum";
|
|
31800
|
+
asset: "USDC";
|
|
31801
|
+
}, {
|
|
31802
|
+
chain: "Ethereum";
|
|
31803
|
+
asset: "USDC";
|
|
31804
|
+
}>, z.ZodObject<{
|
|
31805
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
31806
|
+
asset: z.ZodLiteral<"USDT">;
|
|
31807
|
+
}, "strip", z.ZodTypeAny, {
|
|
31808
|
+
chain: "Ethereum";
|
|
31809
|
+
asset: "USDT";
|
|
31810
|
+
}, {
|
|
31811
|
+
chain: "Ethereum";
|
|
31812
|
+
asset: "USDT";
|
|
31813
|
+
}>, z.ZodObject<{
|
|
31814
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
31815
|
+
asset: z.ZodLiteral<"ETH">;
|
|
31816
|
+
}, "strip", z.ZodTypeAny, {
|
|
31817
|
+
chain: "Arbitrum";
|
|
31818
|
+
asset: "ETH";
|
|
31819
|
+
}, {
|
|
31820
|
+
chain: "Arbitrum";
|
|
31821
|
+
asset: "ETH";
|
|
31822
|
+
}>, z.ZodObject<{
|
|
31823
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
31824
|
+
asset: z.ZodLiteral<"USDC">;
|
|
31825
|
+
}, "strip", z.ZodTypeAny, {
|
|
31826
|
+
chain: "Arbitrum";
|
|
31827
|
+
asset: "USDC";
|
|
31828
|
+
}, {
|
|
31829
|
+
chain: "Arbitrum";
|
|
31830
|
+
asset: "USDC";
|
|
31831
|
+
}>, z.ZodObject<{
|
|
31832
|
+
chain: z.ZodLiteral<"Solana">;
|
|
31833
|
+
asset: z.ZodLiteral<"SOL">;
|
|
31834
|
+
}, "strip", z.ZodTypeAny, {
|
|
31835
|
+
chain: "Solana";
|
|
31836
|
+
asset: "SOL";
|
|
31837
|
+
}, {
|
|
31838
|
+
chain: "Solana";
|
|
31839
|
+
asset: "SOL";
|
|
31840
|
+
}>, z.ZodObject<{
|
|
31841
|
+
chain: z.ZodLiteral<"Solana">;
|
|
31842
|
+
asset: z.ZodLiteral<"USDC">;
|
|
31843
|
+
}, "strip", z.ZodTypeAny, {
|
|
31844
|
+
chain: "Solana";
|
|
31845
|
+
asset: "USDC";
|
|
31846
|
+
}, {
|
|
31847
|
+
chain: "Solana";
|
|
31848
|
+
asset: "USDC";
|
|
31849
|
+
}>, z.ZodObject<{
|
|
31850
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
31851
|
+
asset: z.ZodLiteral<"DOT">;
|
|
31852
|
+
}, "strip", z.ZodTypeAny, {
|
|
31853
|
+
chain: "Assethub";
|
|
31854
|
+
asset: "DOT";
|
|
31855
|
+
}, {
|
|
31856
|
+
chain: "Assethub";
|
|
31857
|
+
asset: "DOT";
|
|
31858
|
+
}>, z.ZodObject<{
|
|
31859
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
31860
|
+
asset: z.ZodLiteral<"USDC">;
|
|
31861
|
+
}, "strip", z.ZodTypeAny, {
|
|
31862
|
+
chain: "Assethub";
|
|
31863
|
+
asset: "USDC";
|
|
31864
|
+
}, {
|
|
31865
|
+
chain: "Assethub";
|
|
31866
|
+
asset: "USDC";
|
|
31867
|
+
}>, z.ZodObject<{
|
|
31868
|
+
chain: z.ZodLiteral<"Assethub">;
|
|
31869
|
+
asset: z.ZodLiteral<"USDT">;
|
|
31870
|
+
}, "strip", z.ZodTypeAny, {
|
|
31871
|
+
chain: "Assethub";
|
|
31872
|
+
asset: "USDT";
|
|
31873
|
+
}, {
|
|
31874
|
+
chain: "Assethub";
|
|
31875
|
+
asset: "USDT";
|
|
31876
|
+
}>]>, z.ZodObject<{
|
|
31877
|
+
positions: z.ZodArray<z.ZodObject<{
|
|
31878
|
+
lp_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
31879
|
+
total_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
31880
|
+
}, "strip", z.ZodTypeAny, {
|
|
31881
|
+
total_amount: bigint;
|
|
31882
|
+
lp_id: `cF${string}`;
|
|
31883
|
+
}, {
|
|
31884
|
+
total_amount: string | number;
|
|
31885
|
+
lp_id: string;
|
|
31886
|
+
}>, "many">;
|
|
31887
|
+
}, "strip", z.ZodTypeAny, {
|
|
31888
|
+
positions: {
|
|
31889
|
+
total_amount: bigint;
|
|
31890
|
+
lp_id: `cF${string}`;
|
|
31891
|
+
}[];
|
|
31892
|
+
}, {
|
|
31893
|
+
positions: {
|
|
31894
|
+
total_amount: string | number;
|
|
31895
|
+
lp_id: string;
|
|
31896
|
+
}[];
|
|
31897
|
+
}>>, "many">;
|
|
31769
31898
|
declare const cfVaultAddresses: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
31770
31899
|
ethereum: z.ZodObject<{
|
|
31771
31900
|
Eth: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, `0x${string}`, number[]>;
|
|
@@ -31844,4 +31973,4 @@ declare const cfVaultAddresses: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
31844
31973
|
}][];
|
|
31845
31974
|
}>;
|
|
31846
31975
|
|
|
31847
|
-
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 };
|
|
31976
|
+
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, cfLendingPoolSupplyBalances, 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
|
@@ -642,7 +642,6 @@ var cfLoanAccount = z.object({
|
|
|
642
642
|
z.object({
|
|
643
643
|
loan_id: z.number(),
|
|
644
644
|
asset: rpcAssetSchema,
|
|
645
|
-
created_at: z.number(),
|
|
646
645
|
principal_amount: numberOrHex
|
|
647
646
|
})
|
|
648
647
|
),
|
|
@@ -657,6 +656,19 @@ var cfLoanAccount = z.object({
|
|
|
657
656
|
}).nullable()
|
|
658
657
|
});
|
|
659
658
|
var cfLoanAccounts = z.array(cfLoanAccount);
|
|
659
|
+
var cfLendingPoolSupplyBalances = z.array(
|
|
660
|
+
z.intersection(
|
|
661
|
+
rpcAssetSchema,
|
|
662
|
+
z.object({
|
|
663
|
+
positions: z.array(
|
|
664
|
+
z.object({
|
|
665
|
+
lp_id: accountId,
|
|
666
|
+
total_amount: numberOrHex
|
|
667
|
+
})
|
|
668
|
+
)
|
|
669
|
+
})
|
|
670
|
+
)
|
|
671
|
+
);
|
|
660
672
|
var cfVaultAddresses = z.object({
|
|
661
673
|
ethereum: z.object({ Eth: z.array(z.number()).length(20).transform(bytesToHex) }),
|
|
662
674
|
arbitrum: z.object({ Arb: z.array(z.number()).length(20).transform(bytesToHex) }),
|
|
@@ -716,6 +728,7 @@ export {
|
|
|
716
728
|
cfGetTradingStrategyLimits,
|
|
717
729
|
cfIngressEgressEnvironment,
|
|
718
730
|
cfLendingConfig,
|
|
731
|
+
cfLendingPoolSupplyBalances,
|
|
719
732
|
cfLendingPools,
|
|
720
733
|
cfLoanAccount,
|
|
721
734
|
cfLoanAccounts,
|
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 CfLendingPoolSupplyBalances = RpcResult<'cf_lending_pool_supply_balances'>;
|
|
42
43
|
type CfVaultAddresses = RpcResult<'cf_get_vault_addresses'>;
|
|
43
44
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
44
45
|
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
@@ -73,6 +74,7 @@ type CfOraclePricesResponse = RpcResponse<'cf_oracle_prices'>;
|
|
|
73
74
|
type CfLendingPoolsResponse = RpcResponse<'cf_lending_pools'>;
|
|
74
75
|
type CfLendingConfigResponse = RpcResponse<'cf_lending_config'>;
|
|
75
76
|
type CfLoanAccountsResponse = RpcResponse<'cf_loan_accounts'>;
|
|
77
|
+
type CfLendingPoolSupplyBalancesResponse = RpcResponse<'cf_lending_pool_supply_balances'>;
|
|
76
78
|
type CfVaultAddressesResponse = RpcResponse<'cf_get_vault_addresses'>;
|
|
77
79
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
78
80
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
@@ -82,4 +84,4 @@ type CfOperatorAccount = z.output<typeof operator>;
|
|
|
82
84
|
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
83
85
|
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
84
86
|
|
|
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 };
|
|
87
|
+
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 CfLendingPoolSupplyBalances, type CfLendingPoolSupplyBalancesResponse, 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 CfLendingPoolSupplyBalances = RpcResult<'cf_lending_pool_supply_balances'>;
|
|
42
43
|
type CfVaultAddresses = RpcResult<'cf_get_vault_addresses'>;
|
|
43
44
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
44
45
|
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
@@ -73,6 +74,7 @@ type CfOraclePricesResponse = RpcResponse<'cf_oracle_prices'>;
|
|
|
73
74
|
type CfLendingPoolsResponse = RpcResponse<'cf_lending_pools'>;
|
|
74
75
|
type CfLendingConfigResponse = RpcResponse<'cf_lending_config'>;
|
|
75
76
|
type CfLoanAccountsResponse = RpcResponse<'cf_loan_accounts'>;
|
|
77
|
+
type CfLendingPoolSupplyBalancesResponse = RpcResponse<'cf_lending_pool_supply_balances'>;
|
|
76
78
|
type CfVaultAddressesResponse = RpcResponse<'cf_get_vault_addresses'>;
|
|
77
79
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
78
80
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
@@ -82,4 +84,4 @@ type CfOperatorAccount = z.output<typeof operator>;
|
|
|
82
84
|
type LpTotalBalances = RpcResult<'lp_total_balances'>;
|
|
83
85
|
type LpTotalBalancesResponse = RpcResponse<'lp_total_balances'>;
|
|
84
86
|
|
|
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 };
|
|
87
|
+
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 CfLendingPoolSupplyBalances, type CfLendingPoolSupplyBalancesResponse, 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 };
|