@chainflip/rpc 1.6.11 → 1.6.12

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.d.cts CHANGED
@@ -12,6 +12,7 @@ type UncheckedAssetAndChain = {
12
12
  asset: AssetSymbol;
13
13
  chain: Chain;
14
14
  };
15
+ type SwapFeeType = 'Network' | 'Ingress' | 'Egress';
15
16
  type AdditionalOrder = {
16
17
  LimitOrder: {
17
18
  base_asset: UncheckedAssetAndChain;
@@ -82,6 +83,21 @@ type RpcRequest = WithHash<{
82
83
  chunk_interval: number;
83
84
  }>,
84
85
  additionalOrders?: Nullish<AdditionalOrder[]>
86
+ ] | [
87
+ fromAsset: UncheckedAssetAndChain,
88
+ toAsset: UncheckedAssetAndChain,
89
+ amount: `0x${string}`,
90
+ brokerComission: number,
91
+ dcaParams?: Nullish<{
92
+ number_of_chunks: number;
93
+ chunk_interval: number;
94
+ }>,
95
+ ccmData?: Nullish<{
96
+ gas_budget: HexString;
97
+ message_length: number;
98
+ }>,
99
+ excludeFees?: Nullish<SwapFeeType[]>,
100
+ additionalOrders?: Nullish<AdditionalOrder[]>
85
101
  ];
86
102
  cf_boost_pools_depth: [];
87
103
  cf_boost_pool_details: [asset?: UncheckedAssetAndChain | null];
package/dist/common.d.ts CHANGED
@@ -12,6 +12,7 @@ type UncheckedAssetAndChain = {
12
12
  asset: AssetSymbol;
13
13
  chain: Chain;
14
14
  };
15
+ type SwapFeeType = 'Network' | 'Ingress' | 'Egress';
15
16
  type AdditionalOrder = {
16
17
  LimitOrder: {
17
18
  base_asset: UncheckedAssetAndChain;
@@ -82,6 +83,21 @@ type RpcRequest = WithHash<{
82
83
  chunk_interval: number;
83
84
  }>,
84
85
  additionalOrders?: Nullish<AdditionalOrder[]>
86
+ ] | [
87
+ fromAsset: UncheckedAssetAndChain,
88
+ toAsset: UncheckedAssetAndChain,
89
+ amount: `0x${string}`,
90
+ brokerComission: number,
91
+ dcaParams?: Nullish<{
92
+ number_of_chunks: number;
93
+ chunk_interval: number;
94
+ }>,
95
+ ccmData?: Nullish<{
96
+ gas_budget: HexString;
97
+ message_length: number;
98
+ }>,
99
+ excludeFees?: Nullish<SwapFeeType[]>,
100
+ additionalOrders?: Nullish<AdditionalOrder[]>
85
101
  ];
86
102
  cf_boost_pools_depth: [];
87
103
  cf_boost_pool_details: [asset?: UncheckedAssetAndChain | null];
@@ -3,7 +3,7 @@ var PUBLIC_RPC_ENDPOINTS = {
3
3
  mainnet: "https://rpc.mainnet.chainflip.io",
4
4
  perseverance: "https://archive.perseverance.chainflip.io",
5
5
  sisyphos: "https://archive.sisyphos.chainflip.io",
6
- backspin: "https://backspin-rpc.staging"
6
+ backspin: "https://rpc.backspin.chainflip.io"
7
7
  };
8
8
 
9
9
 
@@ -3,7 +3,7 @@ var PUBLIC_RPC_ENDPOINTS = {
3
3
  mainnet: "https://rpc.mainnet.chainflip.io",
4
4
  perseverance: "https://archive.perseverance.chainflip.io",
5
5
  sisyphos: "https://archive.sisyphos.chainflip.io",
6
- backspin: "https://backspin-rpc.staging"
6
+ backspin: "https://rpc.backspin.chainflip.io"
7
7
  };
8
8
  export {
9
9
  PUBLIC_RPC_ENDPOINTS
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "1.6.11",
3
+ "version": "1.6.12",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "0.4.0",
7
- "zod": "^3.23.8"
7
+ "zod": "^3.24.1"
8
8
  },
9
9
  "devDependencies": {
10
- "@types/node": "^22.9.0",
10
+ "@types/node": "^22.10.2",
11
11
  "@types/ws": "^8.5.13",
12
12
  "ws": "^8.18.0"
13
13
  },