@chainflip/rpc 1.6.3 → 1.6.5
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 +132 -0
- package/dist/common.d.ts +132 -0
- package/dist/common.mjs +3 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/parsers.cjs +14 -1
- package/dist/parsers.d.cts +125 -1
- package/dist/parsers.d.ts +125 -1
- package/dist/parsers.mjs +13 -0
- package/dist/types.d.cts +3 -1
- package/dist/types.d.ts +3 -1
- package/package.json +9 -9
package/dist/common.cjs
CHANGED
|
@@ -18,11 +18,13 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
|
|
21
22
|
var _parserscjs = require('./parsers.cjs');
|
|
22
23
|
|
|
23
24
|
var rpcResult = {
|
|
24
25
|
broker_requestSwapDepositAddress: _parserscjs.brokerRequestSwapDepositAddress,
|
|
25
26
|
cf_account_info: _parserscjs.cfAccountInfo,
|
|
27
|
+
cf_pool_depth: _parserscjs.cfPoolDepth,
|
|
26
28
|
cf_boost_pools_depth: _parserscjs.cfBoostPoolsDepth,
|
|
27
29
|
cf_environment: _parserscjs.cfEnvironment,
|
|
28
30
|
cf_funding_environment: _parserscjs.cfFundingEnvironment,
|
package/dist/common.d.cts
CHANGED
|
@@ -73,6 +73,14 @@ type RpcRequest = WithHash<{
|
|
|
73
73
|
cf_boost_pools_depth: [];
|
|
74
74
|
cf_boost_pool_details: [asset?: UncheckedAssetAndChain | null];
|
|
75
75
|
cf_boost_pool_pending_fees: [asset?: UncheckedAssetAndChain | null];
|
|
76
|
+
cf_pool_depth: [
|
|
77
|
+
fromAsset: UncheckedAssetAndChain,
|
|
78
|
+
toAsset: UncheckedAssetAndChain,
|
|
79
|
+
tick_range: {
|
|
80
|
+
start: number;
|
|
81
|
+
end: number;
|
|
82
|
+
}
|
|
83
|
+
];
|
|
76
84
|
state_getMetadata: [];
|
|
77
85
|
state_getRuntimeVersion: [];
|
|
78
86
|
}> & {
|
|
@@ -1296,6 +1304,130 @@ declare const rpcResult: {
|
|
|
1296
1304
|
apy_bp: number | null;
|
|
1297
1305
|
restricted_balances: Record<string, string | number>;
|
|
1298
1306
|
}>]>;
|
|
1307
|
+
readonly cf_pool_depth: z.ZodNullable<z.ZodObject<{
|
|
1308
|
+
asks: z.ZodObject<{
|
|
1309
|
+
limit_orders: z.ZodObject<{
|
|
1310
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
1311
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
1312
|
+
}, "strip", z.ZodTypeAny, {
|
|
1313
|
+
depth: bigint;
|
|
1314
|
+
price: bigint | null;
|
|
1315
|
+
}, {
|
|
1316
|
+
depth: string | number;
|
|
1317
|
+
price: string | number | null;
|
|
1318
|
+
}>;
|
|
1319
|
+
range_orders: z.ZodObject<{
|
|
1320
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
1321
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
1322
|
+
}, "strip", z.ZodTypeAny, {
|
|
1323
|
+
depth: bigint;
|
|
1324
|
+
price: bigint | null;
|
|
1325
|
+
}, {
|
|
1326
|
+
depth: string | number;
|
|
1327
|
+
price: string | number | null;
|
|
1328
|
+
}>;
|
|
1329
|
+
}, "strip", z.ZodTypeAny, {
|
|
1330
|
+
limit_orders: {
|
|
1331
|
+
depth: bigint;
|
|
1332
|
+
price: bigint | null;
|
|
1333
|
+
};
|
|
1334
|
+
range_orders: {
|
|
1335
|
+
depth: bigint;
|
|
1336
|
+
price: bigint | null;
|
|
1337
|
+
};
|
|
1338
|
+
}, {
|
|
1339
|
+
limit_orders: {
|
|
1340
|
+
depth: string | number;
|
|
1341
|
+
price: string | number | null;
|
|
1342
|
+
};
|
|
1343
|
+
range_orders: {
|
|
1344
|
+
depth: string | number;
|
|
1345
|
+
price: string | number | null;
|
|
1346
|
+
};
|
|
1347
|
+
}>;
|
|
1348
|
+
bids: z.ZodObject<{
|
|
1349
|
+
limit_orders: z.ZodObject<{
|
|
1350
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
1351
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
1352
|
+
}, "strip", z.ZodTypeAny, {
|
|
1353
|
+
depth: bigint;
|
|
1354
|
+
price: bigint | null;
|
|
1355
|
+
}, {
|
|
1356
|
+
depth: string | number;
|
|
1357
|
+
price: string | number | null;
|
|
1358
|
+
}>;
|
|
1359
|
+
range_orders: z.ZodObject<{
|
|
1360
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
1361
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
1362
|
+
}, "strip", z.ZodTypeAny, {
|
|
1363
|
+
depth: bigint;
|
|
1364
|
+
price: bigint | null;
|
|
1365
|
+
}, {
|
|
1366
|
+
depth: string | number;
|
|
1367
|
+
price: string | number | null;
|
|
1368
|
+
}>;
|
|
1369
|
+
}, "strip", z.ZodTypeAny, {
|
|
1370
|
+
limit_orders: {
|
|
1371
|
+
depth: bigint;
|
|
1372
|
+
price: bigint | null;
|
|
1373
|
+
};
|
|
1374
|
+
range_orders: {
|
|
1375
|
+
depth: bigint;
|
|
1376
|
+
price: bigint | null;
|
|
1377
|
+
};
|
|
1378
|
+
}, {
|
|
1379
|
+
limit_orders: {
|
|
1380
|
+
depth: string | number;
|
|
1381
|
+
price: string | number | null;
|
|
1382
|
+
};
|
|
1383
|
+
range_orders: {
|
|
1384
|
+
depth: string | number;
|
|
1385
|
+
price: string | number | null;
|
|
1386
|
+
};
|
|
1387
|
+
}>;
|
|
1388
|
+
}, "strip", z.ZodTypeAny, {
|
|
1389
|
+
asks: {
|
|
1390
|
+
limit_orders: {
|
|
1391
|
+
depth: bigint;
|
|
1392
|
+
price: bigint | null;
|
|
1393
|
+
};
|
|
1394
|
+
range_orders: {
|
|
1395
|
+
depth: bigint;
|
|
1396
|
+
price: bigint | null;
|
|
1397
|
+
};
|
|
1398
|
+
};
|
|
1399
|
+
bids: {
|
|
1400
|
+
limit_orders: {
|
|
1401
|
+
depth: bigint;
|
|
1402
|
+
price: bigint | null;
|
|
1403
|
+
};
|
|
1404
|
+
range_orders: {
|
|
1405
|
+
depth: bigint;
|
|
1406
|
+
price: bigint | null;
|
|
1407
|
+
};
|
|
1408
|
+
};
|
|
1409
|
+
}, {
|
|
1410
|
+
asks: {
|
|
1411
|
+
limit_orders: {
|
|
1412
|
+
depth: string | number;
|
|
1413
|
+
price: string | number | null;
|
|
1414
|
+
};
|
|
1415
|
+
range_orders: {
|
|
1416
|
+
depth: string | number;
|
|
1417
|
+
price: string | number | null;
|
|
1418
|
+
};
|
|
1419
|
+
};
|
|
1420
|
+
bids: {
|
|
1421
|
+
limit_orders: {
|
|
1422
|
+
depth: string | number;
|
|
1423
|
+
price: string | number | null;
|
|
1424
|
+
};
|
|
1425
|
+
range_orders: {
|
|
1426
|
+
depth: string | number;
|
|
1427
|
+
price: string | number | null;
|
|
1428
|
+
};
|
|
1429
|
+
};
|
|
1430
|
+
}>>;
|
|
1299
1431
|
readonly cf_boost_pools_depth: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
1300
1432
|
chain: z.ZodLiteral<"Bitcoin">;
|
|
1301
1433
|
asset: z.ZodLiteral<"BTC">;
|
package/dist/common.d.ts
CHANGED
|
@@ -73,6 +73,14 @@ type RpcRequest = WithHash<{
|
|
|
73
73
|
cf_boost_pools_depth: [];
|
|
74
74
|
cf_boost_pool_details: [asset?: UncheckedAssetAndChain | null];
|
|
75
75
|
cf_boost_pool_pending_fees: [asset?: UncheckedAssetAndChain | null];
|
|
76
|
+
cf_pool_depth: [
|
|
77
|
+
fromAsset: UncheckedAssetAndChain,
|
|
78
|
+
toAsset: UncheckedAssetAndChain,
|
|
79
|
+
tick_range: {
|
|
80
|
+
start: number;
|
|
81
|
+
end: number;
|
|
82
|
+
}
|
|
83
|
+
];
|
|
76
84
|
state_getMetadata: [];
|
|
77
85
|
state_getRuntimeVersion: [];
|
|
78
86
|
}> & {
|
|
@@ -1296,6 +1304,130 @@ declare const rpcResult: {
|
|
|
1296
1304
|
apy_bp: number | null;
|
|
1297
1305
|
restricted_balances: Record<string, string | number>;
|
|
1298
1306
|
}>]>;
|
|
1307
|
+
readonly cf_pool_depth: z.ZodNullable<z.ZodObject<{
|
|
1308
|
+
asks: z.ZodObject<{
|
|
1309
|
+
limit_orders: z.ZodObject<{
|
|
1310
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
1311
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
1312
|
+
}, "strip", z.ZodTypeAny, {
|
|
1313
|
+
depth: bigint;
|
|
1314
|
+
price: bigint | null;
|
|
1315
|
+
}, {
|
|
1316
|
+
depth: string | number;
|
|
1317
|
+
price: string | number | null;
|
|
1318
|
+
}>;
|
|
1319
|
+
range_orders: z.ZodObject<{
|
|
1320
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
1321
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
1322
|
+
}, "strip", z.ZodTypeAny, {
|
|
1323
|
+
depth: bigint;
|
|
1324
|
+
price: bigint | null;
|
|
1325
|
+
}, {
|
|
1326
|
+
depth: string | number;
|
|
1327
|
+
price: string | number | null;
|
|
1328
|
+
}>;
|
|
1329
|
+
}, "strip", z.ZodTypeAny, {
|
|
1330
|
+
limit_orders: {
|
|
1331
|
+
depth: bigint;
|
|
1332
|
+
price: bigint | null;
|
|
1333
|
+
};
|
|
1334
|
+
range_orders: {
|
|
1335
|
+
depth: bigint;
|
|
1336
|
+
price: bigint | null;
|
|
1337
|
+
};
|
|
1338
|
+
}, {
|
|
1339
|
+
limit_orders: {
|
|
1340
|
+
depth: string | number;
|
|
1341
|
+
price: string | number | null;
|
|
1342
|
+
};
|
|
1343
|
+
range_orders: {
|
|
1344
|
+
depth: string | number;
|
|
1345
|
+
price: string | number | null;
|
|
1346
|
+
};
|
|
1347
|
+
}>;
|
|
1348
|
+
bids: z.ZodObject<{
|
|
1349
|
+
limit_orders: z.ZodObject<{
|
|
1350
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
1351
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
1352
|
+
}, "strip", z.ZodTypeAny, {
|
|
1353
|
+
depth: bigint;
|
|
1354
|
+
price: bigint | null;
|
|
1355
|
+
}, {
|
|
1356
|
+
depth: string | number;
|
|
1357
|
+
price: string | number | null;
|
|
1358
|
+
}>;
|
|
1359
|
+
range_orders: z.ZodObject<{
|
|
1360
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
1361
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
1362
|
+
}, "strip", z.ZodTypeAny, {
|
|
1363
|
+
depth: bigint;
|
|
1364
|
+
price: bigint | null;
|
|
1365
|
+
}, {
|
|
1366
|
+
depth: string | number;
|
|
1367
|
+
price: string | number | null;
|
|
1368
|
+
}>;
|
|
1369
|
+
}, "strip", z.ZodTypeAny, {
|
|
1370
|
+
limit_orders: {
|
|
1371
|
+
depth: bigint;
|
|
1372
|
+
price: bigint | null;
|
|
1373
|
+
};
|
|
1374
|
+
range_orders: {
|
|
1375
|
+
depth: bigint;
|
|
1376
|
+
price: bigint | null;
|
|
1377
|
+
};
|
|
1378
|
+
}, {
|
|
1379
|
+
limit_orders: {
|
|
1380
|
+
depth: string | number;
|
|
1381
|
+
price: string | number | null;
|
|
1382
|
+
};
|
|
1383
|
+
range_orders: {
|
|
1384
|
+
depth: string | number;
|
|
1385
|
+
price: string | number | null;
|
|
1386
|
+
};
|
|
1387
|
+
}>;
|
|
1388
|
+
}, "strip", z.ZodTypeAny, {
|
|
1389
|
+
asks: {
|
|
1390
|
+
limit_orders: {
|
|
1391
|
+
depth: bigint;
|
|
1392
|
+
price: bigint | null;
|
|
1393
|
+
};
|
|
1394
|
+
range_orders: {
|
|
1395
|
+
depth: bigint;
|
|
1396
|
+
price: bigint | null;
|
|
1397
|
+
};
|
|
1398
|
+
};
|
|
1399
|
+
bids: {
|
|
1400
|
+
limit_orders: {
|
|
1401
|
+
depth: bigint;
|
|
1402
|
+
price: bigint | null;
|
|
1403
|
+
};
|
|
1404
|
+
range_orders: {
|
|
1405
|
+
depth: bigint;
|
|
1406
|
+
price: bigint | null;
|
|
1407
|
+
};
|
|
1408
|
+
};
|
|
1409
|
+
}, {
|
|
1410
|
+
asks: {
|
|
1411
|
+
limit_orders: {
|
|
1412
|
+
depth: string | number;
|
|
1413
|
+
price: string | number | null;
|
|
1414
|
+
};
|
|
1415
|
+
range_orders: {
|
|
1416
|
+
depth: string | number;
|
|
1417
|
+
price: string | number | null;
|
|
1418
|
+
};
|
|
1419
|
+
};
|
|
1420
|
+
bids: {
|
|
1421
|
+
limit_orders: {
|
|
1422
|
+
depth: string | number;
|
|
1423
|
+
price: string | number | null;
|
|
1424
|
+
};
|
|
1425
|
+
range_orders: {
|
|
1426
|
+
depth: string | number;
|
|
1427
|
+
price: string | number | null;
|
|
1428
|
+
};
|
|
1429
|
+
};
|
|
1430
|
+
}>>;
|
|
1299
1431
|
readonly cf_boost_pools_depth: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
1300
1432
|
chain: z.ZodLiteral<"Bitcoin">;
|
|
1301
1433
|
asset: z.ZodLiteral<"BTC">;
|
package/dist/common.mjs
CHANGED
|
@@ -17,12 +17,14 @@ import {
|
|
|
17
17
|
cfSwappingEnvironment,
|
|
18
18
|
chainGetBlockHash,
|
|
19
19
|
stateGetMetadata,
|
|
20
|
-
stateGetRuntimeVersion
|
|
20
|
+
stateGetRuntimeVersion,
|
|
21
|
+
cfPoolDepth
|
|
21
22
|
} from "./parsers.mjs";
|
|
22
23
|
import { rpcResponse as rpcResponse2 } from "./parsers.mjs";
|
|
23
24
|
var rpcResult = {
|
|
24
25
|
broker_requestSwapDepositAddress: brokerRequestSwapDepositAddress,
|
|
25
26
|
cf_account_info: cfAccountInfo,
|
|
27
|
+
cf_pool_depth: cfPoolDepth,
|
|
26
28
|
cf_boost_pools_depth: cfBoostPoolsDepth,
|
|
27
29
|
cf_environment: cfEnvironment,
|
|
28
30
|
cf_funding_environment: cfFundingEnvironment,
|
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, 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';
|
|
3
|
+
export { CfAccountInfo, CfAccountInfoResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolDepth, CfPoolDepthResponse, 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, 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';
|
|
3
|
+
export { CfAccountInfo, CfAccountInfoResponse, CfBoostPoolDetails, CfBoostPoolDetailsResponse, CfBoostPoolPendingFees, CfBoostPoolPendingFeesResponse, CfBoostPoolsDepth, CfBoostPoolsDepthResponse, CfBrokerAccount, CfEnvironment, CfEnvironmentResponse, CfFundingEnvironment, CfFundingEnvironmentResponse, CfIngressEgressEnvironment, CfIngressEgressEnvironmentResponse, CfLiquidityProviderAccount, CfPoolDepth, CfPoolDepthResponse, 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';
|
package/dist/parsers.cjs
CHANGED
|
@@ -128,6 +128,18 @@ var cfEnvironment = _zod.z.object({
|
|
|
128
128
|
var cfBoostPoolsDepth = _zod.z.array(
|
|
129
129
|
_zod.z.intersection(rpcAssetSchema, _zod.z.object({ tier: _zod.z.number(), available_amount: u256 }))
|
|
130
130
|
);
|
|
131
|
+
var orderInfoSchema = _zod.z.object({
|
|
132
|
+
depth: numberOrHex,
|
|
133
|
+
price: numberOrHex.nullable()
|
|
134
|
+
});
|
|
135
|
+
var assetInfoSchema = _zod.z.object({
|
|
136
|
+
limit_orders: orderInfoSchema,
|
|
137
|
+
range_orders: orderInfoSchema
|
|
138
|
+
});
|
|
139
|
+
var cfPoolDepth = _zod.z.object({
|
|
140
|
+
asks: assetInfoSchema,
|
|
141
|
+
bids: assetInfoSchema
|
|
142
|
+
}).nullable();
|
|
131
143
|
var cfSupportedAsssets = _zod.z.array(_zod.z.object({ chain: _zod.z.string(), asset: _zod.z.string() })).transform(
|
|
132
144
|
(assets) => assets.filter((asset) => rpcAssetSchema.safeParse(asset).success)
|
|
133
145
|
);
|
|
@@ -285,4 +297,5 @@ var cfBoostPoolPendingFees = _zod.z.array(
|
|
|
285
297
|
|
|
286
298
|
|
|
287
299
|
|
|
288
|
-
|
|
300
|
+
|
|
301
|
+
exports.broker = broker; exports.brokerRequestSwapDepositAddress = brokerRequestSwapDepositAddress; exports.cfAccountInfo = cfAccountInfo; exports.cfBoostPoolDetails = cfBoostPoolDetails; exports.cfBoostPoolPendingFees = cfBoostPoolPendingFees; exports.cfBoostPoolsDepth = cfBoostPoolsDepth; exports.cfEnvironment = cfEnvironment; exports.cfFundingEnvironment = cfFundingEnvironment; exports.cfIngressEgressEnvironment = cfIngressEgressEnvironment; exports.cfPoolDepth = cfPoolDepth; exports.cfPoolOrders = cfPoolOrders; exports.cfPoolPriceV2 = cfPoolPriceV2; exports.cfPoolsEnvironment = cfPoolsEnvironment; exports.cfSupportedAsssets = cfSupportedAsssets; exports.cfSwapRate = cfSwapRate; exports.cfSwapRateV2 = cfSwapRateV2; exports.cfSwappingEnvironment = cfSwappingEnvironment; exports.chainGetBlockHash = chainGetBlockHash; exports.hexString = hexString; exports.liquidityProvider = liquidityProvider; exports.numberOrHex = numberOrHex; exports.rpcResponse = rpcResponse; exports.stateGetMetadata = stateGetMetadata; exports.stateGetRuntimeVersion = stateGetRuntimeVersion; exports.u256 = u256; exports.unregistered = unregistered; exports.validator = validator;
|
package/dist/parsers.d.cts
CHANGED
|
@@ -10837,6 +10837,130 @@ declare const cfBoostPoolsDepth: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodO
|
|
|
10837
10837
|
tier: number;
|
|
10838
10838
|
available_amount: string;
|
|
10839
10839
|
}>>, "many">;
|
|
10840
|
+
declare const cfPoolDepth: z.ZodNullable<z.ZodObject<{
|
|
10841
|
+
asks: z.ZodObject<{
|
|
10842
|
+
limit_orders: z.ZodObject<{
|
|
10843
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
10844
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
10845
|
+
}, "strip", z.ZodTypeAny, {
|
|
10846
|
+
depth: bigint;
|
|
10847
|
+
price: bigint | null;
|
|
10848
|
+
}, {
|
|
10849
|
+
depth: string | number;
|
|
10850
|
+
price: string | number | null;
|
|
10851
|
+
}>;
|
|
10852
|
+
range_orders: z.ZodObject<{
|
|
10853
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
10854
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
10855
|
+
}, "strip", z.ZodTypeAny, {
|
|
10856
|
+
depth: bigint;
|
|
10857
|
+
price: bigint | null;
|
|
10858
|
+
}, {
|
|
10859
|
+
depth: string | number;
|
|
10860
|
+
price: string | number | null;
|
|
10861
|
+
}>;
|
|
10862
|
+
}, "strip", z.ZodTypeAny, {
|
|
10863
|
+
limit_orders: {
|
|
10864
|
+
depth: bigint;
|
|
10865
|
+
price: bigint | null;
|
|
10866
|
+
};
|
|
10867
|
+
range_orders: {
|
|
10868
|
+
depth: bigint;
|
|
10869
|
+
price: bigint | null;
|
|
10870
|
+
};
|
|
10871
|
+
}, {
|
|
10872
|
+
limit_orders: {
|
|
10873
|
+
depth: string | number;
|
|
10874
|
+
price: string | number | null;
|
|
10875
|
+
};
|
|
10876
|
+
range_orders: {
|
|
10877
|
+
depth: string | number;
|
|
10878
|
+
price: string | number | null;
|
|
10879
|
+
};
|
|
10880
|
+
}>;
|
|
10881
|
+
bids: z.ZodObject<{
|
|
10882
|
+
limit_orders: z.ZodObject<{
|
|
10883
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
10884
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
10885
|
+
}, "strip", z.ZodTypeAny, {
|
|
10886
|
+
depth: bigint;
|
|
10887
|
+
price: bigint | null;
|
|
10888
|
+
}, {
|
|
10889
|
+
depth: string | number;
|
|
10890
|
+
price: string | number | null;
|
|
10891
|
+
}>;
|
|
10892
|
+
range_orders: z.ZodObject<{
|
|
10893
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
10894
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
10895
|
+
}, "strip", z.ZodTypeAny, {
|
|
10896
|
+
depth: bigint;
|
|
10897
|
+
price: bigint | null;
|
|
10898
|
+
}, {
|
|
10899
|
+
depth: string | number;
|
|
10900
|
+
price: string | number | null;
|
|
10901
|
+
}>;
|
|
10902
|
+
}, "strip", z.ZodTypeAny, {
|
|
10903
|
+
limit_orders: {
|
|
10904
|
+
depth: bigint;
|
|
10905
|
+
price: bigint | null;
|
|
10906
|
+
};
|
|
10907
|
+
range_orders: {
|
|
10908
|
+
depth: bigint;
|
|
10909
|
+
price: bigint | null;
|
|
10910
|
+
};
|
|
10911
|
+
}, {
|
|
10912
|
+
limit_orders: {
|
|
10913
|
+
depth: string | number;
|
|
10914
|
+
price: string | number | null;
|
|
10915
|
+
};
|
|
10916
|
+
range_orders: {
|
|
10917
|
+
depth: string | number;
|
|
10918
|
+
price: string | number | null;
|
|
10919
|
+
};
|
|
10920
|
+
}>;
|
|
10921
|
+
}, "strip", z.ZodTypeAny, {
|
|
10922
|
+
asks: {
|
|
10923
|
+
limit_orders: {
|
|
10924
|
+
depth: bigint;
|
|
10925
|
+
price: bigint | null;
|
|
10926
|
+
};
|
|
10927
|
+
range_orders: {
|
|
10928
|
+
depth: bigint;
|
|
10929
|
+
price: bigint | null;
|
|
10930
|
+
};
|
|
10931
|
+
};
|
|
10932
|
+
bids: {
|
|
10933
|
+
limit_orders: {
|
|
10934
|
+
depth: bigint;
|
|
10935
|
+
price: bigint | null;
|
|
10936
|
+
};
|
|
10937
|
+
range_orders: {
|
|
10938
|
+
depth: bigint;
|
|
10939
|
+
price: bigint | null;
|
|
10940
|
+
};
|
|
10941
|
+
};
|
|
10942
|
+
}, {
|
|
10943
|
+
asks: {
|
|
10944
|
+
limit_orders: {
|
|
10945
|
+
depth: string | number;
|
|
10946
|
+
price: string | number | null;
|
|
10947
|
+
};
|
|
10948
|
+
range_orders: {
|
|
10949
|
+
depth: string | number;
|
|
10950
|
+
price: string | number | null;
|
|
10951
|
+
};
|
|
10952
|
+
};
|
|
10953
|
+
bids: {
|
|
10954
|
+
limit_orders: {
|
|
10955
|
+
depth: string | number;
|
|
10956
|
+
price: string | number | null;
|
|
10957
|
+
};
|
|
10958
|
+
range_orders: {
|
|
10959
|
+
depth: string | number;
|
|
10960
|
+
price: string | number | null;
|
|
10961
|
+
};
|
|
10962
|
+
};
|
|
10963
|
+
}>>;
|
|
10840
10964
|
declare const cfSupportedAsssets: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
10841
10965
|
chain: z.ZodString;
|
|
10842
10966
|
asset: z.ZodString;
|
|
@@ -14331,4 +14455,4 @@ declare const cfBoostPoolPendingFees: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z
|
|
|
14331
14455
|
}[];
|
|
14332
14456
|
}>>, "many">;
|
|
14333
14457
|
|
|
14334
|
-
export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFundingEnvironment, cfIngressEgressEnvironment, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAsssets, cfSwapRate, cfSwapRateV2, cfSwappingEnvironment, chainGetBlockHash, hexString, liquidityProvider, numberOrHex, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
|
|
14458
|
+
export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFundingEnvironment, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAsssets, cfSwapRate, cfSwapRateV2, cfSwappingEnvironment, chainGetBlockHash, hexString, liquidityProvider, numberOrHex, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
|
package/dist/parsers.d.ts
CHANGED
|
@@ -10837,6 +10837,130 @@ declare const cfBoostPoolsDepth: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodO
|
|
|
10837
10837
|
tier: number;
|
|
10838
10838
|
available_amount: string;
|
|
10839
10839
|
}>>, "many">;
|
|
10840
|
+
declare const cfPoolDepth: z.ZodNullable<z.ZodObject<{
|
|
10841
|
+
asks: z.ZodObject<{
|
|
10842
|
+
limit_orders: z.ZodObject<{
|
|
10843
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
10844
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
10845
|
+
}, "strip", z.ZodTypeAny, {
|
|
10846
|
+
depth: bigint;
|
|
10847
|
+
price: bigint | null;
|
|
10848
|
+
}, {
|
|
10849
|
+
depth: string | number;
|
|
10850
|
+
price: string | number | null;
|
|
10851
|
+
}>;
|
|
10852
|
+
range_orders: z.ZodObject<{
|
|
10853
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
10854
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
10855
|
+
}, "strip", z.ZodTypeAny, {
|
|
10856
|
+
depth: bigint;
|
|
10857
|
+
price: bigint | null;
|
|
10858
|
+
}, {
|
|
10859
|
+
depth: string | number;
|
|
10860
|
+
price: string | number | null;
|
|
10861
|
+
}>;
|
|
10862
|
+
}, "strip", z.ZodTypeAny, {
|
|
10863
|
+
limit_orders: {
|
|
10864
|
+
depth: bigint;
|
|
10865
|
+
price: bigint | null;
|
|
10866
|
+
};
|
|
10867
|
+
range_orders: {
|
|
10868
|
+
depth: bigint;
|
|
10869
|
+
price: bigint | null;
|
|
10870
|
+
};
|
|
10871
|
+
}, {
|
|
10872
|
+
limit_orders: {
|
|
10873
|
+
depth: string | number;
|
|
10874
|
+
price: string | number | null;
|
|
10875
|
+
};
|
|
10876
|
+
range_orders: {
|
|
10877
|
+
depth: string | number;
|
|
10878
|
+
price: string | number | null;
|
|
10879
|
+
};
|
|
10880
|
+
}>;
|
|
10881
|
+
bids: z.ZodObject<{
|
|
10882
|
+
limit_orders: z.ZodObject<{
|
|
10883
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
10884
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
10885
|
+
}, "strip", z.ZodTypeAny, {
|
|
10886
|
+
depth: bigint;
|
|
10887
|
+
price: bigint | null;
|
|
10888
|
+
}, {
|
|
10889
|
+
depth: string | number;
|
|
10890
|
+
price: string | number | null;
|
|
10891
|
+
}>;
|
|
10892
|
+
range_orders: z.ZodObject<{
|
|
10893
|
+
depth: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
10894
|
+
price: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
10895
|
+
}, "strip", z.ZodTypeAny, {
|
|
10896
|
+
depth: bigint;
|
|
10897
|
+
price: bigint | null;
|
|
10898
|
+
}, {
|
|
10899
|
+
depth: string | number;
|
|
10900
|
+
price: string | number | null;
|
|
10901
|
+
}>;
|
|
10902
|
+
}, "strip", z.ZodTypeAny, {
|
|
10903
|
+
limit_orders: {
|
|
10904
|
+
depth: bigint;
|
|
10905
|
+
price: bigint | null;
|
|
10906
|
+
};
|
|
10907
|
+
range_orders: {
|
|
10908
|
+
depth: bigint;
|
|
10909
|
+
price: bigint | null;
|
|
10910
|
+
};
|
|
10911
|
+
}, {
|
|
10912
|
+
limit_orders: {
|
|
10913
|
+
depth: string | number;
|
|
10914
|
+
price: string | number | null;
|
|
10915
|
+
};
|
|
10916
|
+
range_orders: {
|
|
10917
|
+
depth: string | number;
|
|
10918
|
+
price: string | number | null;
|
|
10919
|
+
};
|
|
10920
|
+
}>;
|
|
10921
|
+
}, "strip", z.ZodTypeAny, {
|
|
10922
|
+
asks: {
|
|
10923
|
+
limit_orders: {
|
|
10924
|
+
depth: bigint;
|
|
10925
|
+
price: bigint | null;
|
|
10926
|
+
};
|
|
10927
|
+
range_orders: {
|
|
10928
|
+
depth: bigint;
|
|
10929
|
+
price: bigint | null;
|
|
10930
|
+
};
|
|
10931
|
+
};
|
|
10932
|
+
bids: {
|
|
10933
|
+
limit_orders: {
|
|
10934
|
+
depth: bigint;
|
|
10935
|
+
price: bigint | null;
|
|
10936
|
+
};
|
|
10937
|
+
range_orders: {
|
|
10938
|
+
depth: bigint;
|
|
10939
|
+
price: bigint | null;
|
|
10940
|
+
};
|
|
10941
|
+
};
|
|
10942
|
+
}, {
|
|
10943
|
+
asks: {
|
|
10944
|
+
limit_orders: {
|
|
10945
|
+
depth: string | number;
|
|
10946
|
+
price: string | number | null;
|
|
10947
|
+
};
|
|
10948
|
+
range_orders: {
|
|
10949
|
+
depth: string | number;
|
|
10950
|
+
price: string | number | null;
|
|
10951
|
+
};
|
|
10952
|
+
};
|
|
10953
|
+
bids: {
|
|
10954
|
+
limit_orders: {
|
|
10955
|
+
depth: string | number;
|
|
10956
|
+
price: string | number | null;
|
|
10957
|
+
};
|
|
10958
|
+
range_orders: {
|
|
10959
|
+
depth: string | number;
|
|
10960
|
+
price: string | number | null;
|
|
10961
|
+
};
|
|
10962
|
+
};
|
|
10963
|
+
}>>;
|
|
10840
10964
|
declare const cfSupportedAsssets: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
10841
10965
|
chain: z.ZodString;
|
|
10842
10966
|
asset: z.ZodString;
|
|
@@ -14331,4 +14455,4 @@ declare const cfBoostPoolPendingFees: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z
|
|
|
14331
14455
|
}[];
|
|
14332
14456
|
}>>, "many">;
|
|
14333
14457
|
|
|
14334
|
-
export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFundingEnvironment, cfIngressEgressEnvironment, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAsssets, cfSwapRate, cfSwapRateV2, cfSwappingEnvironment, chainGetBlockHash, hexString, liquidityProvider, numberOrHex, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
|
|
14458
|
+
export { type AssetAndChain, type RpcLimitOrder, type RpcRangeOrder, broker, brokerRequestSwapDepositAddress, cfAccountInfo, cfBoostPoolDetails, cfBoostPoolPendingFees, cfBoostPoolsDepth, cfEnvironment, cfFundingEnvironment, cfIngressEgressEnvironment, cfPoolDepth, cfPoolOrders, cfPoolPriceV2, cfPoolsEnvironment, cfSupportedAsssets, cfSwapRate, cfSwapRateV2, cfSwappingEnvironment, chainGetBlockHash, hexString, liquidityProvider, numberOrHex, rpcResponse, stateGetMetadata, stateGetRuntimeVersion, u256, unregistered, validator };
|
package/dist/parsers.mjs
CHANGED
|
@@ -128,6 +128,18 @@ var cfEnvironment = z.object({
|
|
|
128
128
|
var cfBoostPoolsDepth = z.array(
|
|
129
129
|
z.intersection(rpcAssetSchema, z.object({ tier: z.number(), available_amount: u256 }))
|
|
130
130
|
);
|
|
131
|
+
var orderInfoSchema = z.object({
|
|
132
|
+
depth: numberOrHex,
|
|
133
|
+
price: numberOrHex.nullable()
|
|
134
|
+
});
|
|
135
|
+
var assetInfoSchema = z.object({
|
|
136
|
+
limit_orders: orderInfoSchema,
|
|
137
|
+
range_orders: orderInfoSchema
|
|
138
|
+
});
|
|
139
|
+
var cfPoolDepth = z.object({
|
|
140
|
+
asks: assetInfoSchema,
|
|
141
|
+
bids: assetInfoSchema
|
|
142
|
+
}).nullable();
|
|
131
143
|
var cfSupportedAsssets = z.array(z.object({ chain: z.string(), asset: z.string() })).transform(
|
|
132
144
|
(assets) => assets.filter((asset) => rpcAssetSchema.safeParse(asset).success)
|
|
133
145
|
);
|
|
@@ -268,6 +280,7 @@ export {
|
|
|
268
280
|
cfEnvironment,
|
|
269
281
|
cfFundingEnvironment,
|
|
270
282
|
cfIngressEgressEnvironment,
|
|
283
|
+
cfPoolDepth,
|
|
271
284
|
cfPoolOrders,
|
|
272
285
|
cfPoolPriceV2,
|
|
273
286
|
cfPoolsEnvironment,
|
package/dist/types.d.cts
CHANGED
|
@@ -19,6 +19,7 @@ type CfSupportedAssets = RpcResult<'cf_supported_assets'>;
|
|
|
19
19
|
type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
|
|
20
20
|
type CfSwapRate = RpcResult<'cf_swap_rate'>;
|
|
21
21
|
type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
|
|
22
|
+
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
22
23
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
23
24
|
type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
|
|
24
25
|
type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
|
|
@@ -33,9 +34,10 @@ type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
|
|
|
33
34
|
type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
|
|
34
35
|
type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
|
|
35
36
|
type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
|
|
37
|
+
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
36
38
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
37
39
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
38
40
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
39
41
|
type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
|
|
40
42
|
|
|
41
|
-
export { type CfAccountInfo, type CfAccountInfoResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, RpcResult };
|
|
43
|
+
export { type CfAccountInfo, type CfAccountInfoResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolDepth, type CfPoolDepthResponse, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, RpcResult };
|
package/dist/types.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ type CfSupportedAssets = RpcResult<'cf_supported_assets'>;
|
|
|
19
19
|
type CfSwappingEnvironment = RpcResult<'cf_swapping_environment'>;
|
|
20
20
|
type CfSwapRate = RpcResult<'cf_swap_rate'>;
|
|
21
21
|
type CfSwapRateV2 = RpcResult<'cf_swap_rate_v2'>;
|
|
22
|
+
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
22
23
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
23
24
|
type CfBoostPoolDetailsResponse = RpcResponse<'cf_boost_pool_details'>;
|
|
24
25
|
type CfBoostPoolPendingFeesResponse = RpcResponse<'cf_boost_pool_pending_fees'>;
|
|
@@ -33,9 +34,10 @@ type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
|
|
|
33
34
|
type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
|
|
34
35
|
type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
|
|
35
36
|
type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
|
|
37
|
+
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
36
38
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
37
39
|
type CfBrokerAccount = z.output<typeof broker>;
|
|
38
40
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
39
41
|
type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
|
|
40
42
|
|
|
41
|
-
export { type CfAccountInfo, type CfAccountInfoResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, RpcResult };
|
|
43
|
+
export { type CfAccountInfo, type CfAccountInfoResponse, type CfBoostPoolDetails, type CfBoostPoolDetailsResponse, type CfBoostPoolPendingFees, type CfBoostPoolPendingFeesResponse, type CfBoostPoolsDepth, type CfBoostPoolsDepthResponse, type CfBrokerAccount, type CfEnvironment, type CfEnvironmentResponse, type CfFundingEnvironment, type CfFundingEnvironmentResponse, type CfIngressEgressEnvironment, type CfIngressEgressEnvironmentResponse, type CfLiquidityProviderAccount, type CfPoolDepth, type CfPoolDepthResponse, type CfPoolOrders, type CfPoolOrdersResponse, type CfPoolPriceV2, type CfPoolPriceV2Response, type CfPoolsEnvironment, type CfPoolsEnvironmentResponse, type CfSupportedAssets, type CfSupportedAssetsResponse, type CfSwapRate, type CfSwapRateResponse, type CfSwapRateV2, type CfSwapRateV2Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, RpcResult };
|
package/package.json
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainflip/rpc",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"clean": "rm -rf dist",
|
|
7
|
-
"prepublish": "pnpm test run && pnpm build",
|
|
8
|
-
"build": "pnpm clean && pnpm tsup",
|
|
9
|
-
"test": "vitest",
|
|
10
|
-
"coverage": "vitest run --coverage"
|
|
11
|
-
},
|
|
12
5
|
"dependencies": {
|
|
13
6
|
"@chainflip/utils": "^0.3.0",
|
|
14
7
|
"zod": "^3.22.8"
|
|
@@ -48,5 +41,12 @@
|
|
|
48
41
|
"publishConfig": {
|
|
49
42
|
"registry": "https://registry.npmjs.org/",
|
|
50
43
|
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"clean": "rm -rf dist",
|
|
47
|
+
"prepublish": "pnpm test run && pnpm build",
|
|
48
|
+
"build": "pnpm clean && pnpm tsup",
|
|
49
|
+
"test": "vitest",
|
|
50
|
+
"coverage": "vitest run --coverage"
|
|
51
51
|
}
|
|
52
|
-
}
|
|
52
|
+
}
|