@chainflip/rpc 1.9.5 → 1.9.7

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 CHANGED
@@ -31,6 +31,7 @@ var _zod = require('zod');
31
31
 
32
32
 
33
33
 
34
+
34
35
 
35
36
 
36
37
  var _parserscjs = require('./parsers.cjs');
@@ -70,6 +71,7 @@ var rpcResult = {
70
71
  cf_eth_key_manager_address: _parserscjs.ethereumAddress.nullable(),
71
72
  cf_pool_orderbook: _parserscjs.cfPoolOrderbook,
72
73
  cf_get_trading_strategies: _parserscjs.cfGetTradingStrategies,
74
+ cf_get_trading_strategy_limits: _parserscjs.cfGetTradingStrategyLimits,
73
75
  cf_available_pools: _parserscjs.cfAvailablePools,
74
76
  cf_safe_mode_statuses: _parserscjs.cfSafeModeStatuses
75
77
  };
package/dist/common.d.cts CHANGED
@@ -51,7 +51,7 @@ type RequestSwapParameterEncodingParams = [
51
51
  } | {
52
52
  chain: 'Solana';
53
53
  from: string;
54
- event_data_account: string;
54
+ seed: HexString;
55
55
  input_amount: string;
56
56
  refund_parameters: FillOrKillParams;
57
57
  from_token_account?: string;
@@ -154,6 +154,7 @@ type RpcRequest = WithHash<{
154
154
  orders: number
155
155
  ];
156
156
  cf_get_trading_strategies: [accountId?: Nullish<string>];
157
+ cf_get_trading_strategy_limits: [];
157
158
  cf_available_pools: [];
158
159
  cf_safe_mode_statuses: [];
159
160
  }> & {
@@ -191,14 +192,14 @@ declare const rpcResult: {
191
192
  chain: "Bitcoin";
192
193
  nulldata_payload: string;
193
194
  deposit_address: string;
194
- }>, z.ZodObject<z.objectUtil.extendShape<{
195
+ }>, z.ZodObject<{
195
196
  to: z.ZodEffects<z.ZodString, `0x${string}`, string>;
196
197
  calldata: z.ZodEffects<z.ZodString, `0x${string}`, string>;
197
198
  value: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
198
199
  source_token_address: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
199
- }, {
200
+ } & {
200
201
  chain: z.ZodLiteral<"Ethereum">;
201
- }>, "strip", z.ZodTypeAny, {
202
+ }, "strip", z.ZodTypeAny, {
202
203
  value: bigint;
203
204
  chain: "Ethereum";
204
205
  to: `0x${string}`;
@@ -210,14 +211,14 @@ declare const rpcResult: {
210
211
  to: string;
211
212
  calldata: string;
212
213
  source_token_address?: string | undefined;
213
- }>, z.ZodObject<z.objectUtil.extendShape<{
214
+ }>, z.ZodObject<{
214
215
  to: z.ZodEffects<z.ZodString, `0x${string}`, string>;
215
216
  calldata: z.ZodEffects<z.ZodString, `0x${string}`, string>;
216
217
  value: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
217
218
  source_token_address: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
218
- }, {
219
+ } & {
219
220
  chain: z.ZodLiteral<"Arbitrum">;
220
- }>, "strip", z.ZodTypeAny, {
221
+ }, "strip", z.ZodTypeAny, {
221
222
  value: bigint;
222
223
  chain: "Arbitrum";
223
224
  to: `0x${string}`;
@@ -277,14 +278,14 @@ declare const rpcResult: {
277
278
  chain: "Bitcoin";
278
279
  nulldata_payload: string;
279
280
  deposit_address: string;
280
- }>, z.ZodObject<z.objectUtil.extendShape<{
281
+ }>, z.ZodObject<{
281
282
  to: z.ZodEffects<z.ZodString, `0x${string}`, string>;
282
283
  calldata: z.ZodEffects<z.ZodString, `0x${string}`, string>;
283
284
  value: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
284
285
  source_token_address: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
285
- }, {
286
+ } & {
286
287
  chain: z.ZodLiteral<"Ethereum">;
287
- }>, "strip", z.ZodTypeAny, {
288
+ }, "strip", z.ZodTypeAny, {
288
289
  value: bigint;
289
290
  chain: "Ethereum";
290
291
  to: `0x${string}`;
@@ -296,14 +297,14 @@ declare const rpcResult: {
296
297
  to: string;
297
298
  calldata: string;
298
299
  source_token_address?: string | undefined;
299
- }>, z.ZodObject<z.objectUtil.extendShape<{
300
+ }>, z.ZodObject<{
300
301
  to: z.ZodEffects<z.ZodString, `0x${string}`, string>;
301
302
  calldata: z.ZodEffects<z.ZodString, `0x${string}`, string>;
302
303
  value: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
303
304
  source_token_address: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
304
- }, {
305
+ } & {
305
306
  chain: z.ZodLiteral<"Arbitrum">;
306
- }>, "strip", z.ZodTypeAny, {
307
+ }, "strip", z.ZodTypeAny, {
307
308
  value: bigint;
308
309
  chain: "Arbitrum";
309
310
  to: `0x${string}`;
@@ -16754,7 +16755,7 @@ declare const rpcResult: {
16754
16755
  amount: string | number;
16755
16756
  };
16756
16757
  }>;
16757
- readonly cf_swap_rate_v3: z.ZodObject<z.objectUtil.extendShape<{
16758
+ readonly cf_swap_rate_v3: z.ZodObject<{
16758
16759
  egress_fee: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
16759
16760
  chain: z.ZodLiteral<"Bitcoin">;
16760
16761
  asset: z.ZodLiteral<"BTC">;
@@ -17129,7 +17130,7 @@ declare const rpcResult: {
17129
17130
  amount: string | number;
17130
17131
  }>>;
17131
17132
  output: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
17132
- }, {
17133
+ } & {
17133
17134
  broker_commission: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
17134
17135
  chain: z.ZodLiteral<"Bitcoin">;
17135
17136
  asset: z.ZodLiteral<"BTC">;
@@ -17254,7 +17255,7 @@ declare const rpcResult: {
17254
17255
  }, {
17255
17256
  amount: string | number;
17256
17257
  }>>;
17257
- }>, "strip", z.ZodTypeAny, {
17258
+ }, "strip", z.ZodTypeAny, {
17258
17259
  intermediary: bigint | null;
17259
17260
  output: bigint;
17260
17261
  egress_fee: ({
@@ -19166,6 +19167,352 @@ declare const rpcResult: {
19166
19167
  asset: "USDT";
19167
19168
  }, string | number][];
19168
19169
  }>, "many">>;
19170
+ readonly cf_get_trading_strategy_limits: z.ZodObject<{
19171
+ minimum_deployment_amount: z.ZodObject<{
19172
+ Bitcoin: z.ZodObject<{
19173
+ BTC: z.ZodNullable<z.ZodNumber>;
19174
+ }, "strip", z.ZodTypeAny, {
19175
+ BTC: number | null;
19176
+ }, {
19177
+ BTC: number | null;
19178
+ }>;
19179
+ Ethereum: z.ZodObject<{
19180
+ ETH: z.ZodNullable<z.ZodNumber>;
19181
+ USDC: z.ZodNullable<z.ZodNumber>;
19182
+ FLIP: z.ZodNullable<z.ZodNumber>;
19183
+ USDT: z.ZodNullable<z.ZodNumber>;
19184
+ }, "strip", z.ZodTypeAny, {
19185
+ ETH: number | null;
19186
+ USDC: number | null;
19187
+ FLIP: number | null;
19188
+ USDT: number | null;
19189
+ }, {
19190
+ ETH: number | null;
19191
+ USDC: number | null;
19192
+ FLIP: number | null;
19193
+ USDT: number | null;
19194
+ }>;
19195
+ Polkadot: z.ZodObject<{
19196
+ DOT: z.ZodNullable<z.ZodNumber>;
19197
+ }, "strip", z.ZodTypeAny, {
19198
+ DOT: number | null;
19199
+ }, {
19200
+ DOT: number | null;
19201
+ }>;
19202
+ Arbitrum: z.ZodObject<{
19203
+ ETH: z.ZodNullable<z.ZodNumber>;
19204
+ USDC: z.ZodNullable<z.ZodNumber>;
19205
+ }, "strip", z.ZodTypeAny, {
19206
+ ETH: number | null;
19207
+ USDC: number | null;
19208
+ }, {
19209
+ ETH: number | null;
19210
+ USDC: number | null;
19211
+ }>;
19212
+ Solana: z.ZodObject<{
19213
+ SOL: z.ZodNullable<z.ZodNumber>;
19214
+ USDC: z.ZodNullable<z.ZodNumber>;
19215
+ }, "strip", z.ZodTypeAny, {
19216
+ USDC: number | null;
19217
+ SOL: number | null;
19218
+ }, {
19219
+ USDC: number | null;
19220
+ SOL: number | null;
19221
+ }>;
19222
+ Assethub: z.ZodDefault<z.ZodObject<{
19223
+ DOT: z.ZodNullable<z.ZodNumber>;
19224
+ USDC: z.ZodNullable<z.ZodNumber>;
19225
+ USDT: z.ZodNullable<z.ZodNumber>;
19226
+ }, "strip", z.ZodTypeAny, {
19227
+ USDC: number | null;
19228
+ USDT: number | null;
19229
+ DOT: number | null;
19230
+ }, {
19231
+ USDC: number | null;
19232
+ USDT: number | null;
19233
+ DOT: number | null;
19234
+ }>>;
19235
+ }, "strip", z.ZodTypeAny, {
19236
+ Bitcoin: {
19237
+ BTC: number | null;
19238
+ };
19239
+ Ethereum: {
19240
+ ETH: number | null;
19241
+ USDC: number | null;
19242
+ FLIP: number | null;
19243
+ USDT: number | null;
19244
+ };
19245
+ Arbitrum: {
19246
+ ETH: number | null;
19247
+ USDC: number | null;
19248
+ };
19249
+ Solana: {
19250
+ USDC: number | null;
19251
+ SOL: number | null;
19252
+ };
19253
+ Polkadot: {
19254
+ DOT: number | null;
19255
+ };
19256
+ Assethub: {
19257
+ USDC: number | null;
19258
+ USDT: number | null;
19259
+ DOT: number | null;
19260
+ };
19261
+ }, {
19262
+ Bitcoin: {
19263
+ BTC: number | null;
19264
+ };
19265
+ Ethereum: {
19266
+ ETH: number | null;
19267
+ USDC: number | null;
19268
+ FLIP: number | null;
19269
+ USDT: number | null;
19270
+ };
19271
+ Arbitrum: {
19272
+ ETH: number | null;
19273
+ USDC: number | null;
19274
+ };
19275
+ Solana: {
19276
+ USDC: number | null;
19277
+ SOL: number | null;
19278
+ };
19279
+ Polkadot: {
19280
+ DOT: number | null;
19281
+ };
19282
+ Assethub?: {
19283
+ USDC: number | null;
19284
+ USDT: number | null;
19285
+ DOT: number | null;
19286
+ } | undefined;
19287
+ }>;
19288
+ minimum_added_funds_amount: z.ZodObject<{
19289
+ Bitcoin: z.ZodObject<{
19290
+ BTC: z.ZodNullable<z.ZodNumber>;
19291
+ }, "strip", z.ZodTypeAny, {
19292
+ BTC: number | null;
19293
+ }, {
19294
+ BTC: number | null;
19295
+ }>;
19296
+ Ethereum: z.ZodObject<{
19297
+ ETH: z.ZodNullable<z.ZodNumber>;
19298
+ USDC: z.ZodNullable<z.ZodNumber>;
19299
+ FLIP: z.ZodNullable<z.ZodNumber>;
19300
+ USDT: z.ZodNullable<z.ZodNumber>;
19301
+ }, "strip", z.ZodTypeAny, {
19302
+ ETH: number | null;
19303
+ USDC: number | null;
19304
+ FLIP: number | null;
19305
+ USDT: number | null;
19306
+ }, {
19307
+ ETH: number | null;
19308
+ USDC: number | null;
19309
+ FLIP: number | null;
19310
+ USDT: number | null;
19311
+ }>;
19312
+ Polkadot: z.ZodObject<{
19313
+ DOT: z.ZodNullable<z.ZodNumber>;
19314
+ }, "strip", z.ZodTypeAny, {
19315
+ DOT: number | null;
19316
+ }, {
19317
+ DOT: number | null;
19318
+ }>;
19319
+ Arbitrum: z.ZodObject<{
19320
+ ETH: z.ZodNullable<z.ZodNumber>;
19321
+ USDC: z.ZodNullable<z.ZodNumber>;
19322
+ }, "strip", z.ZodTypeAny, {
19323
+ ETH: number | null;
19324
+ USDC: number | null;
19325
+ }, {
19326
+ ETH: number | null;
19327
+ USDC: number | null;
19328
+ }>;
19329
+ Solana: z.ZodObject<{
19330
+ SOL: z.ZodNullable<z.ZodNumber>;
19331
+ USDC: z.ZodNullable<z.ZodNumber>;
19332
+ }, "strip", z.ZodTypeAny, {
19333
+ USDC: number | null;
19334
+ SOL: number | null;
19335
+ }, {
19336
+ USDC: number | null;
19337
+ SOL: number | null;
19338
+ }>;
19339
+ Assethub: z.ZodDefault<z.ZodObject<{
19340
+ DOT: z.ZodNullable<z.ZodNumber>;
19341
+ USDC: z.ZodNullable<z.ZodNumber>;
19342
+ USDT: z.ZodNullable<z.ZodNumber>;
19343
+ }, "strip", z.ZodTypeAny, {
19344
+ USDC: number | null;
19345
+ USDT: number | null;
19346
+ DOT: number | null;
19347
+ }, {
19348
+ USDC: number | null;
19349
+ USDT: number | null;
19350
+ DOT: number | null;
19351
+ }>>;
19352
+ }, "strip", z.ZodTypeAny, {
19353
+ Bitcoin: {
19354
+ BTC: number | null;
19355
+ };
19356
+ Ethereum: {
19357
+ ETH: number | null;
19358
+ USDC: number | null;
19359
+ FLIP: number | null;
19360
+ USDT: number | null;
19361
+ };
19362
+ Arbitrum: {
19363
+ ETH: number | null;
19364
+ USDC: number | null;
19365
+ };
19366
+ Solana: {
19367
+ USDC: number | null;
19368
+ SOL: number | null;
19369
+ };
19370
+ Polkadot: {
19371
+ DOT: number | null;
19372
+ };
19373
+ Assethub: {
19374
+ USDC: number | null;
19375
+ USDT: number | null;
19376
+ DOT: number | null;
19377
+ };
19378
+ }, {
19379
+ Bitcoin: {
19380
+ BTC: number | null;
19381
+ };
19382
+ Ethereum: {
19383
+ ETH: number | null;
19384
+ USDC: number | null;
19385
+ FLIP: number | null;
19386
+ USDT: number | null;
19387
+ };
19388
+ Arbitrum: {
19389
+ ETH: number | null;
19390
+ USDC: number | null;
19391
+ };
19392
+ Solana: {
19393
+ USDC: number | null;
19394
+ SOL: number | null;
19395
+ };
19396
+ Polkadot: {
19397
+ DOT: number | null;
19398
+ };
19399
+ Assethub?: {
19400
+ USDC: number | null;
19401
+ USDT: number | null;
19402
+ DOT: number | null;
19403
+ } | undefined;
19404
+ }>;
19405
+ }, "strip", z.ZodTypeAny, {
19406
+ minimum_deployment_amount: {
19407
+ Bitcoin: {
19408
+ BTC: number | null;
19409
+ };
19410
+ Ethereum: {
19411
+ ETH: number | null;
19412
+ USDC: number | null;
19413
+ FLIP: number | null;
19414
+ USDT: number | null;
19415
+ };
19416
+ Arbitrum: {
19417
+ ETH: number | null;
19418
+ USDC: number | null;
19419
+ };
19420
+ Solana: {
19421
+ USDC: number | null;
19422
+ SOL: number | null;
19423
+ };
19424
+ Polkadot: {
19425
+ DOT: number | null;
19426
+ };
19427
+ Assethub: {
19428
+ USDC: number | null;
19429
+ USDT: number | null;
19430
+ DOT: number | null;
19431
+ };
19432
+ };
19433
+ minimum_added_funds_amount: {
19434
+ Bitcoin: {
19435
+ BTC: number | null;
19436
+ };
19437
+ Ethereum: {
19438
+ ETH: number | null;
19439
+ USDC: number | null;
19440
+ FLIP: number | null;
19441
+ USDT: number | null;
19442
+ };
19443
+ Arbitrum: {
19444
+ ETH: number | null;
19445
+ USDC: number | null;
19446
+ };
19447
+ Solana: {
19448
+ USDC: number | null;
19449
+ SOL: number | null;
19450
+ };
19451
+ Polkadot: {
19452
+ DOT: number | null;
19453
+ };
19454
+ Assethub: {
19455
+ USDC: number | null;
19456
+ USDT: number | null;
19457
+ DOT: number | null;
19458
+ };
19459
+ };
19460
+ }, {
19461
+ minimum_deployment_amount: {
19462
+ Bitcoin: {
19463
+ BTC: number | null;
19464
+ };
19465
+ Ethereum: {
19466
+ ETH: number | null;
19467
+ USDC: number | null;
19468
+ FLIP: number | null;
19469
+ USDT: number | null;
19470
+ };
19471
+ Arbitrum: {
19472
+ ETH: number | null;
19473
+ USDC: number | null;
19474
+ };
19475
+ Solana: {
19476
+ USDC: number | null;
19477
+ SOL: number | null;
19478
+ };
19479
+ Polkadot: {
19480
+ DOT: number | null;
19481
+ };
19482
+ Assethub?: {
19483
+ USDC: number | null;
19484
+ USDT: number | null;
19485
+ DOT: number | null;
19486
+ } | undefined;
19487
+ };
19488
+ minimum_added_funds_amount: {
19489
+ Bitcoin: {
19490
+ BTC: number | null;
19491
+ };
19492
+ Ethereum: {
19493
+ ETH: number | null;
19494
+ USDC: number | null;
19495
+ FLIP: number | null;
19496
+ USDT: number | null;
19497
+ };
19498
+ Arbitrum: {
19499
+ ETH: number | null;
19500
+ USDC: number | null;
19501
+ };
19502
+ Solana: {
19503
+ USDC: number | null;
19504
+ SOL: number | null;
19505
+ };
19506
+ Polkadot: {
19507
+ DOT: number | null;
19508
+ };
19509
+ Assethub?: {
19510
+ USDC: number | null;
19511
+ USDT: number | null;
19512
+ DOT: number | null;
19513
+ } | undefined;
19514
+ };
19515
+ }>;
19169
19516
  readonly cf_available_pools: z.ZodArray<z.ZodObject<{
19170
19517
  base: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
19171
19518
  chain: z.ZodLiteral<"Bitcoin">;