@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/common.cjs +4 -0
- package/dist/common.d.cts +278 -4
- package/dist/common.d.ts +278 -4
- package/dist/common.mjs +4 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/parsers.cjs +42 -1
- package/dist/parsers.d.cts +277 -5
- package/dist/parsers.d.ts +277 -5
- package/dist/parsers.mjs +41 -0
- package/dist/types.d.cts +7 -1
- package/dist/types.d.ts +7 -1
- package/package.json +1 -1
package/dist/common.cjs
CHANGED
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
|
|
20
|
+
|
|
19
21
|
var _parserscjs = require('./parsers.cjs');
|
|
20
22
|
|
|
21
23
|
var rpcResult = {
|
|
@@ -33,6 +35,8 @@ var rpcResult = {
|
|
|
33
35
|
cf_swap_rate_v2: _parserscjs.cfSwapRateV2,
|
|
34
36
|
cf_swapping_environment: _parserscjs.cfSwappingEnvironment,
|
|
35
37
|
chain_getBlockHash: _parserscjs.chainGetBlockHash,
|
|
38
|
+
cf_boost_pool_details: _parserscjs.cfBoostPoolDetails,
|
|
39
|
+
cf_boost_pool_pending_fees: _parserscjs.cfBoostPoolPendingFees,
|
|
36
40
|
state_getMetadata: _parserscjs.stateGetMetadata,
|
|
37
41
|
state_getRuntimeVersion: _parserscjs.stateGetRuntimeVersion
|
|
38
42
|
};
|
package/dist/common.d.cts
CHANGED
|
@@ -62,6 +62,8 @@ type RpcRequest = WithHash<{
|
|
|
62
62
|
additionalOrders?: Nullish<AdditionalOrder[]>
|
|
63
63
|
];
|
|
64
64
|
cf_boost_pools_depth: [];
|
|
65
|
+
cf_boost_pool_details: [asset?: UncheckedAssetAndChain | null];
|
|
66
|
+
cf_boost_pool_pending_fees: [asset?: UncheckedAssetAndChain | null];
|
|
65
67
|
state_getMetadata: [];
|
|
66
68
|
state_getRuntimeVersion: [];
|
|
67
69
|
}> & {
|
|
@@ -4918,8 +4920,6 @@ declare const rpcResult: {
|
|
|
4918
4920
|
asset: "USDC";
|
|
4919
4921
|
}>]>;
|
|
4920
4922
|
}, "strip", z.ZodTypeAny, {
|
|
4921
|
-
buy: bigint | null;
|
|
4922
|
-
sell: bigint | null;
|
|
4923
4923
|
quote_asset: {
|
|
4924
4924
|
chain: "Bitcoin";
|
|
4925
4925
|
asset: "BTC";
|
|
@@ -4945,6 +4945,8 @@ declare const rpcResult: {
|
|
|
4945
4945
|
chain: "Arbitrum";
|
|
4946
4946
|
asset: "USDC";
|
|
4947
4947
|
};
|
|
4948
|
+
sell: bigint | null;
|
|
4949
|
+
buy: bigint | null;
|
|
4948
4950
|
range_order: bigint;
|
|
4949
4951
|
base_asset: {
|
|
4950
4952
|
chain: "Bitcoin";
|
|
@@ -4972,8 +4974,6 @@ declare const rpcResult: {
|
|
|
4972
4974
|
asset: "USDC";
|
|
4973
4975
|
};
|
|
4974
4976
|
}, {
|
|
4975
|
-
buy: string | number | null;
|
|
4976
|
-
sell: string | number | null;
|
|
4977
4977
|
quote_asset: {
|
|
4978
4978
|
chain: "Bitcoin";
|
|
4979
4979
|
asset: "BTC";
|
|
@@ -4999,6 +4999,8 @@ declare const rpcResult: {
|
|
|
4999
4999
|
chain: "Arbitrum";
|
|
5000
5000
|
asset: "USDC";
|
|
5001
5001
|
};
|
|
5002
|
+
sell: string | number | null;
|
|
5003
|
+
buy: string | number | null;
|
|
5002
5004
|
range_order: string | number;
|
|
5003
5005
|
base_asset: {
|
|
5004
5006
|
chain: "Bitcoin";
|
|
@@ -7406,6 +7408,278 @@ declare const rpcResult: {
|
|
|
7406
7408
|
network_fee_hundredth_pips: number;
|
|
7407
7409
|
}>;
|
|
7408
7410
|
readonly chain_getBlockHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
7411
|
+
readonly cf_boost_pool_details: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
7412
|
+
chain: z.ZodLiteral<"Bitcoin">;
|
|
7413
|
+
asset: z.ZodLiteral<"BTC">;
|
|
7414
|
+
}, "strip", z.ZodTypeAny, {
|
|
7415
|
+
chain: "Bitcoin";
|
|
7416
|
+
asset: "BTC";
|
|
7417
|
+
}, {
|
|
7418
|
+
chain: "Bitcoin";
|
|
7419
|
+
asset: "BTC";
|
|
7420
|
+
}>, z.ZodObject<{
|
|
7421
|
+
chain: z.ZodLiteral<"Polkadot">;
|
|
7422
|
+
asset: z.ZodLiteral<"DOT">;
|
|
7423
|
+
}, "strip", z.ZodTypeAny, {
|
|
7424
|
+
chain: "Polkadot";
|
|
7425
|
+
asset: "DOT";
|
|
7426
|
+
}, {
|
|
7427
|
+
chain: "Polkadot";
|
|
7428
|
+
asset: "DOT";
|
|
7429
|
+
}>, z.ZodObject<{
|
|
7430
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7431
|
+
asset: z.ZodLiteral<"FLIP">;
|
|
7432
|
+
}, "strip", z.ZodTypeAny, {
|
|
7433
|
+
chain: "Ethereum";
|
|
7434
|
+
asset: "FLIP";
|
|
7435
|
+
}, {
|
|
7436
|
+
chain: "Ethereum";
|
|
7437
|
+
asset: "FLIP";
|
|
7438
|
+
}>, z.ZodObject<{
|
|
7439
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7440
|
+
asset: z.ZodLiteral<"ETH">;
|
|
7441
|
+
}, "strip", z.ZodTypeAny, {
|
|
7442
|
+
chain: "Ethereum";
|
|
7443
|
+
asset: "ETH";
|
|
7444
|
+
}, {
|
|
7445
|
+
chain: "Ethereum";
|
|
7446
|
+
asset: "ETH";
|
|
7447
|
+
}>, z.ZodObject<{
|
|
7448
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7449
|
+
asset: z.ZodLiteral<"USDC">;
|
|
7450
|
+
}, "strip", z.ZodTypeAny, {
|
|
7451
|
+
chain: "Ethereum";
|
|
7452
|
+
asset: "USDC";
|
|
7453
|
+
}, {
|
|
7454
|
+
chain: "Ethereum";
|
|
7455
|
+
asset: "USDC";
|
|
7456
|
+
}>, z.ZodObject<{
|
|
7457
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7458
|
+
asset: z.ZodLiteral<"USDT">;
|
|
7459
|
+
}, "strip", z.ZodTypeAny, {
|
|
7460
|
+
chain: "Ethereum";
|
|
7461
|
+
asset: "USDT";
|
|
7462
|
+
}, {
|
|
7463
|
+
chain: "Ethereum";
|
|
7464
|
+
asset: "USDT";
|
|
7465
|
+
}>, z.ZodObject<{
|
|
7466
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
7467
|
+
asset: z.ZodLiteral<"ETH">;
|
|
7468
|
+
}, "strip", z.ZodTypeAny, {
|
|
7469
|
+
chain: "Arbitrum";
|
|
7470
|
+
asset: "ETH";
|
|
7471
|
+
}, {
|
|
7472
|
+
chain: "Arbitrum";
|
|
7473
|
+
asset: "ETH";
|
|
7474
|
+
}>, z.ZodObject<{
|
|
7475
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
7476
|
+
asset: z.ZodLiteral<"USDC">;
|
|
7477
|
+
}, "strip", z.ZodTypeAny, {
|
|
7478
|
+
chain: "Arbitrum";
|
|
7479
|
+
asset: "USDC";
|
|
7480
|
+
}, {
|
|
7481
|
+
chain: "Arbitrum";
|
|
7482
|
+
asset: "USDC";
|
|
7483
|
+
}>]>, z.ZodObject<{
|
|
7484
|
+
fee_tier: z.ZodNumber;
|
|
7485
|
+
available_amounts: z.ZodArray<z.ZodObject<{
|
|
7486
|
+
account_id: z.ZodString;
|
|
7487
|
+
amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
|
|
7488
|
+
}, "strip", z.ZodTypeAny, {
|
|
7489
|
+
amount: bigint;
|
|
7490
|
+
account_id: string;
|
|
7491
|
+
}, {
|
|
7492
|
+
amount: string;
|
|
7493
|
+
account_id: string;
|
|
7494
|
+
}>, "many">;
|
|
7495
|
+
deposits_pending_finalization: z.ZodArray<z.ZodObject<{
|
|
7496
|
+
deposit_id: z.ZodEffects<z.ZodNumber, bigint, number>;
|
|
7497
|
+
owed_amounts: z.ZodArray<z.ZodObject<{
|
|
7498
|
+
account_id: z.ZodString;
|
|
7499
|
+
amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
|
|
7500
|
+
}, "strip", z.ZodTypeAny, {
|
|
7501
|
+
amount: bigint;
|
|
7502
|
+
account_id: string;
|
|
7503
|
+
}, {
|
|
7504
|
+
amount: string;
|
|
7505
|
+
account_id: string;
|
|
7506
|
+
}>, "many">;
|
|
7507
|
+
}, "strip", z.ZodTypeAny, {
|
|
7508
|
+
deposit_id: bigint;
|
|
7509
|
+
owed_amounts: {
|
|
7510
|
+
amount: bigint;
|
|
7511
|
+
account_id: string;
|
|
7512
|
+
}[];
|
|
7513
|
+
}, {
|
|
7514
|
+
deposit_id: number;
|
|
7515
|
+
owed_amounts: {
|
|
7516
|
+
amount: string;
|
|
7517
|
+
account_id: string;
|
|
7518
|
+
}[];
|
|
7519
|
+
}>, "many">;
|
|
7520
|
+
pending_withdrawals: z.ZodArray<z.ZodObject<{
|
|
7521
|
+
account_id: z.ZodString;
|
|
7522
|
+
pending_deposits: z.ZodArray<z.ZodBigInt, "many">;
|
|
7523
|
+
}, "strip", z.ZodTypeAny, {
|
|
7524
|
+
account_id: string;
|
|
7525
|
+
pending_deposits: bigint[];
|
|
7526
|
+
}, {
|
|
7527
|
+
account_id: string;
|
|
7528
|
+
pending_deposits: bigint[];
|
|
7529
|
+
}>, "many">;
|
|
7530
|
+
}, "strip", z.ZodTypeAny, {
|
|
7531
|
+
fee_tier: number;
|
|
7532
|
+
available_amounts: {
|
|
7533
|
+
amount: bigint;
|
|
7534
|
+
account_id: string;
|
|
7535
|
+
}[];
|
|
7536
|
+
deposits_pending_finalization: {
|
|
7537
|
+
deposit_id: bigint;
|
|
7538
|
+
owed_amounts: {
|
|
7539
|
+
amount: bigint;
|
|
7540
|
+
account_id: string;
|
|
7541
|
+
}[];
|
|
7542
|
+
}[];
|
|
7543
|
+
pending_withdrawals: {
|
|
7544
|
+
account_id: string;
|
|
7545
|
+
pending_deposits: bigint[];
|
|
7546
|
+
}[];
|
|
7547
|
+
}, {
|
|
7548
|
+
fee_tier: number;
|
|
7549
|
+
available_amounts: {
|
|
7550
|
+
amount: string;
|
|
7551
|
+
account_id: string;
|
|
7552
|
+
}[];
|
|
7553
|
+
deposits_pending_finalization: {
|
|
7554
|
+
deposit_id: number;
|
|
7555
|
+
owed_amounts: {
|
|
7556
|
+
amount: string;
|
|
7557
|
+
account_id: string;
|
|
7558
|
+
}[];
|
|
7559
|
+
}[];
|
|
7560
|
+
pending_withdrawals: {
|
|
7561
|
+
account_id: string;
|
|
7562
|
+
pending_deposits: bigint[];
|
|
7563
|
+
}[];
|
|
7564
|
+
}>>, "many">;
|
|
7565
|
+
readonly cf_boost_pool_pending_fees: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
7566
|
+
chain: z.ZodLiteral<"Bitcoin">;
|
|
7567
|
+
asset: z.ZodLiteral<"BTC">;
|
|
7568
|
+
}, "strip", z.ZodTypeAny, {
|
|
7569
|
+
chain: "Bitcoin";
|
|
7570
|
+
asset: "BTC";
|
|
7571
|
+
}, {
|
|
7572
|
+
chain: "Bitcoin";
|
|
7573
|
+
asset: "BTC";
|
|
7574
|
+
}>, z.ZodObject<{
|
|
7575
|
+
chain: z.ZodLiteral<"Polkadot">;
|
|
7576
|
+
asset: z.ZodLiteral<"DOT">;
|
|
7577
|
+
}, "strip", z.ZodTypeAny, {
|
|
7578
|
+
chain: "Polkadot";
|
|
7579
|
+
asset: "DOT";
|
|
7580
|
+
}, {
|
|
7581
|
+
chain: "Polkadot";
|
|
7582
|
+
asset: "DOT";
|
|
7583
|
+
}>, z.ZodObject<{
|
|
7584
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7585
|
+
asset: z.ZodLiteral<"FLIP">;
|
|
7586
|
+
}, "strip", z.ZodTypeAny, {
|
|
7587
|
+
chain: "Ethereum";
|
|
7588
|
+
asset: "FLIP";
|
|
7589
|
+
}, {
|
|
7590
|
+
chain: "Ethereum";
|
|
7591
|
+
asset: "FLIP";
|
|
7592
|
+
}>, z.ZodObject<{
|
|
7593
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7594
|
+
asset: z.ZodLiteral<"ETH">;
|
|
7595
|
+
}, "strip", z.ZodTypeAny, {
|
|
7596
|
+
chain: "Ethereum";
|
|
7597
|
+
asset: "ETH";
|
|
7598
|
+
}, {
|
|
7599
|
+
chain: "Ethereum";
|
|
7600
|
+
asset: "ETH";
|
|
7601
|
+
}>, z.ZodObject<{
|
|
7602
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7603
|
+
asset: z.ZodLiteral<"USDC">;
|
|
7604
|
+
}, "strip", z.ZodTypeAny, {
|
|
7605
|
+
chain: "Ethereum";
|
|
7606
|
+
asset: "USDC";
|
|
7607
|
+
}, {
|
|
7608
|
+
chain: "Ethereum";
|
|
7609
|
+
asset: "USDC";
|
|
7610
|
+
}>, z.ZodObject<{
|
|
7611
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7612
|
+
asset: z.ZodLiteral<"USDT">;
|
|
7613
|
+
}, "strip", z.ZodTypeAny, {
|
|
7614
|
+
chain: "Ethereum";
|
|
7615
|
+
asset: "USDT";
|
|
7616
|
+
}, {
|
|
7617
|
+
chain: "Ethereum";
|
|
7618
|
+
asset: "USDT";
|
|
7619
|
+
}>, z.ZodObject<{
|
|
7620
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
7621
|
+
asset: z.ZodLiteral<"ETH">;
|
|
7622
|
+
}, "strip", z.ZodTypeAny, {
|
|
7623
|
+
chain: "Arbitrum";
|
|
7624
|
+
asset: "ETH";
|
|
7625
|
+
}, {
|
|
7626
|
+
chain: "Arbitrum";
|
|
7627
|
+
asset: "ETH";
|
|
7628
|
+
}>, z.ZodObject<{
|
|
7629
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
7630
|
+
asset: z.ZodLiteral<"USDC">;
|
|
7631
|
+
}, "strip", z.ZodTypeAny, {
|
|
7632
|
+
chain: "Arbitrum";
|
|
7633
|
+
asset: "USDC";
|
|
7634
|
+
}, {
|
|
7635
|
+
chain: "Arbitrum";
|
|
7636
|
+
asset: "USDC";
|
|
7637
|
+
}>]>, z.ZodObject<{
|
|
7638
|
+
fee_tier: z.ZodNumber;
|
|
7639
|
+
pending_fees: z.ZodArray<z.ZodObject<{
|
|
7640
|
+
deposit_id: z.ZodEffects<z.ZodNumber, bigint, number>;
|
|
7641
|
+
fees: z.ZodArray<z.ZodObject<{
|
|
7642
|
+
account_id: z.ZodString;
|
|
7643
|
+
amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
|
|
7644
|
+
}, "strip", z.ZodTypeAny, {
|
|
7645
|
+
amount: bigint;
|
|
7646
|
+
account_id: string;
|
|
7647
|
+
}, {
|
|
7648
|
+
amount: string;
|
|
7649
|
+
account_id: string;
|
|
7650
|
+
}>, "many">;
|
|
7651
|
+
}, "strip", z.ZodTypeAny, {
|
|
7652
|
+
fees: {
|
|
7653
|
+
amount: bigint;
|
|
7654
|
+
account_id: string;
|
|
7655
|
+
}[];
|
|
7656
|
+
deposit_id: bigint;
|
|
7657
|
+
}, {
|
|
7658
|
+
fees: {
|
|
7659
|
+
amount: string;
|
|
7660
|
+
account_id: string;
|
|
7661
|
+
}[];
|
|
7662
|
+
deposit_id: number;
|
|
7663
|
+
}>, "many">;
|
|
7664
|
+
}, "strip", z.ZodTypeAny, {
|
|
7665
|
+
fee_tier: number;
|
|
7666
|
+
pending_fees: {
|
|
7667
|
+
fees: {
|
|
7668
|
+
amount: bigint;
|
|
7669
|
+
account_id: string;
|
|
7670
|
+
}[];
|
|
7671
|
+
deposit_id: bigint;
|
|
7672
|
+
}[];
|
|
7673
|
+
}, {
|
|
7674
|
+
fee_tier: number;
|
|
7675
|
+
pending_fees: {
|
|
7676
|
+
fees: {
|
|
7677
|
+
amount: string;
|
|
7678
|
+
account_id: string;
|
|
7679
|
+
}[];
|
|
7680
|
+
deposit_id: number;
|
|
7681
|
+
}[];
|
|
7682
|
+
}>>, "many">;
|
|
7409
7683
|
readonly state_getMetadata: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
7410
7684
|
readonly state_getRuntimeVersion: z.ZodObject<{
|
|
7411
7685
|
specName: z.ZodString;
|
package/dist/common.d.ts
CHANGED
|
@@ -62,6 +62,8 @@ type RpcRequest = WithHash<{
|
|
|
62
62
|
additionalOrders?: Nullish<AdditionalOrder[]>
|
|
63
63
|
];
|
|
64
64
|
cf_boost_pools_depth: [];
|
|
65
|
+
cf_boost_pool_details: [asset?: UncheckedAssetAndChain | null];
|
|
66
|
+
cf_boost_pool_pending_fees: [asset?: UncheckedAssetAndChain | null];
|
|
65
67
|
state_getMetadata: [];
|
|
66
68
|
state_getRuntimeVersion: [];
|
|
67
69
|
}> & {
|
|
@@ -4918,8 +4920,6 @@ declare const rpcResult: {
|
|
|
4918
4920
|
asset: "USDC";
|
|
4919
4921
|
}>]>;
|
|
4920
4922
|
}, "strip", z.ZodTypeAny, {
|
|
4921
|
-
buy: bigint | null;
|
|
4922
|
-
sell: bigint | null;
|
|
4923
4923
|
quote_asset: {
|
|
4924
4924
|
chain: "Bitcoin";
|
|
4925
4925
|
asset: "BTC";
|
|
@@ -4945,6 +4945,8 @@ declare const rpcResult: {
|
|
|
4945
4945
|
chain: "Arbitrum";
|
|
4946
4946
|
asset: "USDC";
|
|
4947
4947
|
};
|
|
4948
|
+
sell: bigint | null;
|
|
4949
|
+
buy: bigint | null;
|
|
4948
4950
|
range_order: bigint;
|
|
4949
4951
|
base_asset: {
|
|
4950
4952
|
chain: "Bitcoin";
|
|
@@ -4972,8 +4974,6 @@ declare const rpcResult: {
|
|
|
4972
4974
|
asset: "USDC";
|
|
4973
4975
|
};
|
|
4974
4976
|
}, {
|
|
4975
|
-
buy: string | number | null;
|
|
4976
|
-
sell: string | number | null;
|
|
4977
4977
|
quote_asset: {
|
|
4978
4978
|
chain: "Bitcoin";
|
|
4979
4979
|
asset: "BTC";
|
|
@@ -4999,6 +4999,8 @@ declare const rpcResult: {
|
|
|
4999
4999
|
chain: "Arbitrum";
|
|
5000
5000
|
asset: "USDC";
|
|
5001
5001
|
};
|
|
5002
|
+
sell: string | number | null;
|
|
5003
|
+
buy: string | number | null;
|
|
5002
5004
|
range_order: string | number;
|
|
5003
5005
|
base_asset: {
|
|
5004
5006
|
chain: "Bitcoin";
|
|
@@ -7406,6 +7408,278 @@ declare const rpcResult: {
|
|
|
7406
7408
|
network_fee_hundredth_pips: number;
|
|
7407
7409
|
}>;
|
|
7408
7410
|
readonly chain_getBlockHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
7411
|
+
readonly cf_boost_pool_details: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
7412
|
+
chain: z.ZodLiteral<"Bitcoin">;
|
|
7413
|
+
asset: z.ZodLiteral<"BTC">;
|
|
7414
|
+
}, "strip", z.ZodTypeAny, {
|
|
7415
|
+
chain: "Bitcoin";
|
|
7416
|
+
asset: "BTC";
|
|
7417
|
+
}, {
|
|
7418
|
+
chain: "Bitcoin";
|
|
7419
|
+
asset: "BTC";
|
|
7420
|
+
}>, z.ZodObject<{
|
|
7421
|
+
chain: z.ZodLiteral<"Polkadot">;
|
|
7422
|
+
asset: z.ZodLiteral<"DOT">;
|
|
7423
|
+
}, "strip", z.ZodTypeAny, {
|
|
7424
|
+
chain: "Polkadot";
|
|
7425
|
+
asset: "DOT";
|
|
7426
|
+
}, {
|
|
7427
|
+
chain: "Polkadot";
|
|
7428
|
+
asset: "DOT";
|
|
7429
|
+
}>, z.ZodObject<{
|
|
7430
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7431
|
+
asset: z.ZodLiteral<"FLIP">;
|
|
7432
|
+
}, "strip", z.ZodTypeAny, {
|
|
7433
|
+
chain: "Ethereum";
|
|
7434
|
+
asset: "FLIP";
|
|
7435
|
+
}, {
|
|
7436
|
+
chain: "Ethereum";
|
|
7437
|
+
asset: "FLIP";
|
|
7438
|
+
}>, z.ZodObject<{
|
|
7439
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7440
|
+
asset: z.ZodLiteral<"ETH">;
|
|
7441
|
+
}, "strip", z.ZodTypeAny, {
|
|
7442
|
+
chain: "Ethereum";
|
|
7443
|
+
asset: "ETH";
|
|
7444
|
+
}, {
|
|
7445
|
+
chain: "Ethereum";
|
|
7446
|
+
asset: "ETH";
|
|
7447
|
+
}>, z.ZodObject<{
|
|
7448
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7449
|
+
asset: z.ZodLiteral<"USDC">;
|
|
7450
|
+
}, "strip", z.ZodTypeAny, {
|
|
7451
|
+
chain: "Ethereum";
|
|
7452
|
+
asset: "USDC";
|
|
7453
|
+
}, {
|
|
7454
|
+
chain: "Ethereum";
|
|
7455
|
+
asset: "USDC";
|
|
7456
|
+
}>, z.ZodObject<{
|
|
7457
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7458
|
+
asset: z.ZodLiteral<"USDT">;
|
|
7459
|
+
}, "strip", z.ZodTypeAny, {
|
|
7460
|
+
chain: "Ethereum";
|
|
7461
|
+
asset: "USDT";
|
|
7462
|
+
}, {
|
|
7463
|
+
chain: "Ethereum";
|
|
7464
|
+
asset: "USDT";
|
|
7465
|
+
}>, z.ZodObject<{
|
|
7466
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
7467
|
+
asset: z.ZodLiteral<"ETH">;
|
|
7468
|
+
}, "strip", z.ZodTypeAny, {
|
|
7469
|
+
chain: "Arbitrum";
|
|
7470
|
+
asset: "ETH";
|
|
7471
|
+
}, {
|
|
7472
|
+
chain: "Arbitrum";
|
|
7473
|
+
asset: "ETH";
|
|
7474
|
+
}>, z.ZodObject<{
|
|
7475
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
7476
|
+
asset: z.ZodLiteral<"USDC">;
|
|
7477
|
+
}, "strip", z.ZodTypeAny, {
|
|
7478
|
+
chain: "Arbitrum";
|
|
7479
|
+
asset: "USDC";
|
|
7480
|
+
}, {
|
|
7481
|
+
chain: "Arbitrum";
|
|
7482
|
+
asset: "USDC";
|
|
7483
|
+
}>]>, z.ZodObject<{
|
|
7484
|
+
fee_tier: z.ZodNumber;
|
|
7485
|
+
available_amounts: z.ZodArray<z.ZodObject<{
|
|
7486
|
+
account_id: z.ZodString;
|
|
7487
|
+
amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
|
|
7488
|
+
}, "strip", z.ZodTypeAny, {
|
|
7489
|
+
amount: bigint;
|
|
7490
|
+
account_id: string;
|
|
7491
|
+
}, {
|
|
7492
|
+
amount: string;
|
|
7493
|
+
account_id: string;
|
|
7494
|
+
}>, "many">;
|
|
7495
|
+
deposits_pending_finalization: z.ZodArray<z.ZodObject<{
|
|
7496
|
+
deposit_id: z.ZodEffects<z.ZodNumber, bigint, number>;
|
|
7497
|
+
owed_amounts: z.ZodArray<z.ZodObject<{
|
|
7498
|
+
account_id: z.ZodString;
|
|
7499
|
+
amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
|
|
7500
|
+
}, "strip", z.ZodTypeAny, {
|
|
7501
|
+
amount: bigint;
|
|
7502
|
+
account_id: string;
|
|
7503
|
+
}, {
|
|
7504
|
+
amount: string;
|
|
7505
|
+
account_id: string;
|
|
7506
|
+
}>, "many">;
|
|
7507
|
+
}, "strip", z.ZodTypeAny, {
|
|
7508
|
+
deposit_id: bigint;
|
|
7509
|
+
owed_amounts: {
|
|
7510
|
+
amount: bigint;
|
|
7511
|
+
account_id: string;
|
|
7512
|
+
}[];
|
|
7513
|
+
}, {
|
|
7514
|
+
deposit_id: number;
|
|
7515
|
+
owed_amounts: {
|
|
7516
|
+
amount: string;
|
|
7517
|
+
account_id: string;
|
|
7518
|
+
}[];
|
|
7519
|
+
}>, "many">;
|
|
7520
|
+
pending_withdrawals: z.ZodArray<z.ZodObject<{
|
|
7521
|
+
account_id: z.ZodString;
|
|
7522
|
+
pending_deposits: z.ZodArray<z.ZodBigInt, "many">;
|
|
7523
|
+
}, "strip", z.ZodTypeAny, {
|
|
7524
|
+
account_id: string;
|
|
7525
|
+
pending_deposits: bigint[];
|
|
7526
|
+
}, {
|
|
7527
|
+
account_id: string;
|
|
7528
|
+
pending_deposits: bigint[];
|
|
7529
|
+
}>, "many">;
|
|
7530
|
+
}, "strip", z.ZodTypeAny, {
|
|
7531
|
+
fee_tier: number;
|
|
7532
|
+
available_amounts: {
|
|
7533
|
+
amount: bigint;
|
|
7534
|
+
account_id: string;
|
|
7535
|
+
}[];
|
|
7536
|
+
deposits_pending_finalization: {
|
|
7537
|
+
deposit_id: bigint;
|
|
7538
|
+
owed_amounts: {
|
|
7539
|
+
amount: bigint;
|
|
7540
|
+
account_id: string;
|
|
7541
|
+
}[];
|
|
7542
|
+
}[];
|
|
7543
|
+
pending_withdrawals: {
|
|
7544
|
+
account_id: string;
|
|
7545
|
+
pending_deposits: bigint[];
|
|
7546
|
+
}[];
|
|
7547
|
+
}, {
|
|
7548
|
+
fee_tier: number;
|
|
7549
|
+
available_amounts: {
|
|
7550
|
+
amount: string;
|
|
7551
|
+
account_id: string;
|
|
7552
|
+
}[];
|
|
7553
|
+
deposits_pending_finalization: {
|
|
7554
|
+
deposit_id: number;
|
|
7555
|
+
owed_amounts: {
|
|
7556
|
+
amount: string;
|
|
7557
|
+
account_id: string;
|
|
7558
|
+
}[];
|
|
7559
|
+
}[];
|
|
7560
|
+
pending_withdrawals: {
|
|
7561
|
+
account_id: string;
|
|
7562
|
+
pending_deposits: bigint[];
|
|
7563
|
+
}[];
|
|
7564
|
+
}>>, "many">;
|
|
7565
|
+
readonly cf_boost_pool_pending_fees: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
7566
|
+
chain: z.ZodLiteral<"Bitcoin">;
|
|
7567
|
+
asset: z.ZodLiteral<"BTC">;
|
|
7568
|
+
}, "strip", z.ZodTypeAny, {
|
|
7569
|
+
chain: "Bitcoin";
|
|
7570
|
+
asset: "BTC";
|
|
7571
|
+
}, {
|
|
7572
|
+
chain: "Bitcoin";
|
|
7573
|
+
asset: "BTC";
|
|
7574
|
+
}>, z.ZodObject<{
|
|
7575
|
+
chain: z.ZodLiteral<"Polkadot">;
|
|
7576
|
+
asset: z.ZodLiteral<"DOT">;
|
|
7577
|
+
}, "strip", z.ZodTypeAny, {
|
|
7578
|
+
chain: "Polkadot";
|
|
7579
|
+
asset: "DOT";
|
|
7580
|
+
}, {
|
|
7581
|
+
chain: "Polkadot";
|
|
7582
|
+
asset: "DOT";
|
|
7583
|
+
}>, z.ZodObject<{
|
|
7584
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7585
|
+
asset: z.ZodLiteral<"FLIP">;
|
|
7586
|
+
}, "strip", z.ZodTypeAny, {
|
|
7587
|
+
chain: "Ethereum";
|
|
7588
|
+
asset: "FLIP";
|
|
7589
|
+
}, {
|
|
7590
|
+
chain: "Ethereum";
|
|
7591
|
+
asset: "FLIP";
|
|
7592
|
+
}>, z.ZodObject<{
|
|
7593
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7594
|
+
asset: z.ZodLiteral<"ETH">;
|
|
7595
|
+
}, "strip", z.ZodTypeAny, {
|
|
7596
|
+
chain: "Ethereum";
|
|
7597
|
+
asset: "ETH";
|
|
7598
|
+
}, {
|
|
7599
|
+
chain: "Ethereum";
|
|
7600
|
+
asset: "ETH";
|
|
7601
|
+
}>, z.ZodObject<{
|
|
7602
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7603
|
+
asset: z.ZodLiteral<"USDC">;
|
|
7604
|
+
}, "strip", z.ZodTypeAny, {
|
|
7605
|
+
chain: "Ethereum";
|
|
7606
|
+
asset: "USDC";
|
|
7607
|
+
}, {
|
|
7608
|
+
chain: "Ethereum";
|
|
7609
|
+
asset: "USDC";
|
|
7610
|
+
}>, z.ZodObject<{
|
|
7611
|
+
chain: z.ZodLiteral<"Ethereum">;
|
|
7612
|
+
asset: z.ZodLiteral<"USDT">;
|
|
7613
|
+
}, "strip", z.ZodTypeAny, {
|
|
7614
|
+
chain: "Ethereum";
|
|
7615
|
+
asset: "USDT";
|
|
7616
|
+
}, {
|
|
7617
|
+
chain: "Ethereum";
|
|
7618
|
+
asset: "USDT";
|
|
7619
|
+
}>, z.ZodObject<{
|
|
7620
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
7621
|
+
asset: z.ZodLiteral<"ETH">;
|
|
7622
|
+
}, "strip", z.ZodTypeAny, {
|
|
7623
|
+
chain: "Arbitrum";
|
|
7624
|
+
asset: "ETH";
|
|
7625
|
+
}, {
|
|
7626
|
+
chain: "Arbitrum";
|
|
7627
|
+
asset: "ETH";
|
|
7628
|
+
}>, z.ZodObject<{
|
|
7629
|
+
chain: z.ZodLiteral<"Arbitrum">;
|
|
7630
|
+
asset: z.ZodLiteral<"USDC">;
|
|
7631
|
+
}, "strip", z.ZodTypeAny, {
|
|
7632
|
+
chain: "Arbitrum";
|
|
7633
|
+
asset: "USDC";
|
|
7634
|
+
}, {
|
|
7635
|
+
chain: "Arbitrum";
|
|
7636
|
+
asset: "USDC";
|
|
7637
|
+
}>]>, z.ZodObject<{
|
|
7638
|
+
fee_tier: z.ZodNumber;
|
|
7639
|
+
pending_fees: z.ZodArray<z.ZodObject<{
|
|
7640
|
+
deposit_id: z.ZodEffects<z.ZodNumber, bigint, number>;
|
|
7641
|
+
fees: z.ZodArray<z.ZodObject<{
|
|
7642
|
+
account_id: z.ZodString;
|
|
7643
|
+
amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
|
|
7644
|
+
}, "strip", z.ZodTypeAny, {
|
|
7645
|
+
amount: bigint;
|
|
7646
|
+
account_id: string;
|
|
7647
|
+
}, {
|
|
7648
|
+
amount: string;
|
|
7649
|
+
account_id: string;
|
|
7650
|
+
}>, "many">;
|
|
7651
|
+
}, "strip", z.ZodTypeAny, {
|
|
7652
|
+
fees: {
|
|
7653
|
+
amount: bigint;
|
|
7654
|
+
account_id: string;
|
|
7655
|
+
}[];
|
|
7656
|
+
deposit_id: bigint;
|
|
7657
|
+
}, {
|
|
7658
|
+
fees: {
|
|
7659
|
+
amount: string;
|
|
7660
|
+
account_id: string;
|
|
7661
|
+
}[];
|
|
7662
|
+
deposit_id: number;
|
|
7663
|
+
}>, "many">;
|
|
7664
|
+
}, "strip", z.ZodTypeAny, {
|
|
7665
|
+
fee_tier: number;
|
|
7666
|
+
pending_fees: {
|
|
7667
|
+
fees: {
|
|
7668
|
+
amount: bigint;
|
|
7669
|
+
account_id: string;
|
|
7670
|
+
}[];
|
|
7671
|
+
deposit_id: bigint;
|
|
7672
|
+
}[];
|
|
7673
|
+
}, {
|
|
7674
|
+
fee_tier: number;
|
|
7675
|
+
pending_fees: {
|
|
7676
|
+
fees: {
|
|
7677
|
+
amount: string;
|
|
7678
|
+
account_id: string;
|
|
7679
|
+
}[];
|
|
7680
|
+
deposit_id: number;
|
|
7681
|
+
}[];
|
|
7682
|
+
}>>, "many">;
|
|
7409
7683
|
readonly state_getMetadata: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
7410
7684
|
readonly state_getRuntimeVersion: z.ZodObject<{
|
|
7411
7685
|
specName: z.ZodString;
|
package/dist/common.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// src/common.ts
|
|
2
2
|
import {
|
|
3
|
+
cfBoostPoolDetails,
|
|
4
|
+
cfBoostPoolPendingFees,
|
|
3
5
|
brokerRequestSwapDepositAddress,
|
|
4
6
|
cfAccountInfo,
|
|
5
7
|
cfBoostPoolsDepth,
|
|
@@ -33,6 +35,8 @@ var rpcResult = {
|
|
|
33
35
|
cf_swap_rate_v2: cfSwapRateV2,
|
|
34
36
|
cf_swapping_environment: cfSwappingEnvironment,
|
|
35
37
|
chain_getBlockHash: chainGetBlockHash,
|
|
38
|
+
cf_boost_pool_details: cfBoostPoolDetails,
|
|
39
|
+
cf_boost_pool_pending_fees: cfBoostPoolPendingFees,
|
|
36
40
|
state_getMetadata: stateGetMetadata,
|
|
37
41
|
state_getRuntimeVersion: stateGetRuntimeVersion
|
|
38
42
|
};
|
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, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount } from './types.cjs';
|
|
3
|
+
export { CfAccountInfo, CfAccountInfoResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount } 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, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount } from './types.js';
|
|
3
|
+
export { CfAccountInfo, CfAccountInfoResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolOrders, CfPoolOrdersResponse, CfPoolPriceV2, CfPoolPriceV2Response, CfPoolsEnvironment, CfPoolsEnvironmentResponse, CfSupportedAssets, CfSupportedAssetsResponse, CfSwapRate, CfSwapRateResponse, CfSwapRateV2, CfSwapRateV2Response, CfSwappingEnvironment, CfSwappingEnvironmentResponse, CfUnregisteredAccount, CfValidatorAccount } 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';
|