@chainflip/rpc 1.6.9 → 1.6.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/Client.cjs +13 -12
- package/dist/Client.d.cts +2 -1
- package/dist/Client.d.ts +2 -1
- package/dist/Client.mjs +10 -9
- package/dist/HttpClient.cjs +1 -2
- package/dist/HttpClient.mjs +1 -2
- package/dist/WsClient.cjs +3 -5
- package/dist/WsClient.mjs +3 -5
- package/dist/common.cjs +2 -0
- package/dist/common.d.cts +1220 -546
- package/dist/common.d.ts +1220 -546
- package/dist/common.mjs +5 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/parsers.cjs +5 -1
- package/dist/parsers.d.cts +1254 -591
- package/dist/parsers.d.ts +1254 -591
- package/dist/parsers.mjs +4 -0
- package/dist/types.d.cts +3 -1
- package/dist/types.d.ts +3 -1
- package/package.json +11 -6
package/dist/parsers.mjs
CHANGED
|
@@ -66,6 +66,9 @@ var cfSwapRateV2 = z.object({
|
|
|
66
66
|
network_fee: fee,
|
|
67
67
|
output: u256
|
|
68
68
|
});
|
|
69
|
+
var cfSwapRateV3 = cfSwapRateV2.extend({
|
|
70
|
+
broker_commission: fee
|
|
71
|
+
});
|
|
69
72
|
var chainGetBlockHash = hexString;
|
|
70
73
|
var stateGetMetadata = hexString;
|
|
71
74
|
var stateGetRuntimeVersion = z.object({
|
|
@@ -289,6 +292,7 @@ export {
|
|
|
289
292
|
cfSupportedAssets,
|
|
290
293
|
cfSwapRate,
|
|
291
294
|
cfSwapRateV2,
|
|
295
|
+
cfSwapRateV3,
|
|
292
296
|
cfSwappingEnvironment,
|
|
293
297
|
chainGetBlockHash,
|
|
294
298
|
hexString,
|
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 CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
|
|
22
23
|
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
23
24
|
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
24
25
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
@@ -35,6 +36,7 @@ type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
|
|
|
35
36
|
type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
|
|
36
37
|
type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
|
|
37
38
|
type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
|
|
39
|
+
type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
|
|
38
40
|
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
39
41
|
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
40
42
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
@@ -42,4 +44,4 @@ type CfBrokerAccount = z.output<typeof broker>;
|
|
|
42
44
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
43
45
|
type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
|
|
44
46
|
|
|
45
|
-
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, 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 };
|
|
47
|
+
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, 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 CfSwapRateV3, type CfSwapRateV3Response, 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 CfSwapRateV3 = RpcResult<'cf_swap_rate_v3'>;
|
|
22
23
|
type CfPoolDepth = RpcResult<'cf_pool_depth'>;
|
|
23
24
|
type CfAccounts = RpcResult<'cf_accounts'>;
|
|
24
25
|
type CfAccountInfoResponse = RpcResponse<'cf_account_info'>;
|
|
@@ -35,6 +36,7 @@ type CfSupportedAssetsResponse = RpcResponse<'cf_supported_assets'>;
|
|
|
35
36
|
type CfSwappingEnvironmentResponse = RpcResponse<'cf_swapping_environment'>;
|
|
36
37
|
type CfSwapRateResponse = RpcResponse<'cf_swap_rate'>;
|
|
37
38
|
type CfSwapRateV2Response = RpcResponse<'cf_swap_rate_v2'>;
|
|
39
|
+
type CfSwapRateV3Response = RpcResponse<'cf_swap_rate_v3'>;
|
|
38
40
|
type CfPoolDepthResponse = RpcResponse<'cf_pool_depth'>;
|
|
39
41
|
type CfAccountsResponse = RpcResponse<'cf_accounts'>;
|
|
40
42
|
type CfUnregisteredAccount = z.output<typeof unregistered>;
|
|
@@ -42,4 +44,4 @@ type CfBrokerAccount = z.output<typeof broker>;
|
|
|
42
44
|
type CfValidatorAccount = z.output<typeof validator>;
|
|
43
45
|
type CfLiquidityProviderAccount = z.output<typeof liquidityProvider>;
|
|
44
46
|
|
|
45
|
-
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, 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 };
|
|
47
|
+
export { type CfAccountInfo, type CfAccountInfoResponse, type CfAccounts, type CfAccountsResponse, 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 CfSwapRateV3, type CfSwapRateV3Response, type CfSwappingEnvironment, type CfSwappingEnvironmentResponse, type CfUnregisteredAccount, type CfValidatorAccount, RpcResult };
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainflip/rpc",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@chainflip/utils": "
|
|
6
|
+
"@chainflip/utils": "0.4.0",
|
|
7
7
|
"zod": "^3.23.8"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@types/node": "^
|
|
11
|
-
"@types/ws": "^8.5.
|
|
12
|
-
"ws": "^8.
|
|
10
|
+
"@types/node": "^22.9.0",
|
|
11
|
+
"@types/ws": "^8.5.13",
|
|
12
|
+
"ws": "^8.18.0"
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
15
|
"dist",
|
|
@@ -43,9 +43,14 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
|
+
"eslint:check": "pnpm eslint --max-warnings 0 './**/*.ts'",
|
|
47
|
+
"prettier:base": "prettier ./** --ignore-path=../../.prettierignore",
|
|
48
|
+
"prettier:check": "pnpm prettier:base --check",
|
|
49
|
+
"prettier:write": "pnpm prettier:base --write",
|
|
46
50
|
"clean": "rm -rf dist",
|
|
47
|
-
"prepublish": "pnpm build",
|
|
51
|
+
"prepublish": "pnpm test run && pnpm build",
|
|
48
52
|
"build": "pnpm clean && pnpm tsup",
|
|
53
|
+
"test:ci": "CI=1 pnpm t run",
|
|
49
54
|
"test": "vitest",
|
|
50
55
|
"coverage": "vitest run --coverage"
|
|
51
56
|
}
|