@chainflip/rpc 2.2.0-alpha.2 → 2.2.0-alpha.3

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
@@ -53,7 +53,8 @@ const rpcResult = {
53
53
  cf_loan_accounts: require_parsers.cfLoanAccounts,
54
54
  cf_lending_pool_supply_balances: require_parsers.cfLendingPoolSupplyBalances,
55
55
  cf_get_vault_addresses: require_parsers.cfVaultAddresses,
56
- cf_ingress_egress_events: require_parsers.cfIngressEgressEvents
56
+ cf_ingress_egress_events: require_parsers.cfIngressEgressEvents,
57
+ cf_all_loans: require_parsers.cfAllLoans
57
58
  };
58
59
 
59
60
  //#endregion
package/dist/common.d.cts CHANGED
@@ -119,6 +119,7 @@ type RpcRequest = WithHash<{
119
119
  cf_lending_pool_supply_balances: [asset?: UncheckedAssetAndChain];
120
120
  cf_get_vault_addresses: [];
121
121
  cf_ingress_egress_events: [chain: Chain];
122
+ cf_all_loans: [];
122
123
  }> & {
123
124
  chain_getBlockHash: [blockHeight?: number];
124
125
  broker_request_swap_deposit_address: [sourceAsset: UncheckedAssetAndChain, destinationAsset: UncheckedAssetAndChain, destinationAddress: string, brokerCommission: number, ccmMetadata: Nullish<CcmParams>, boostFee: Nullish<number>, affiliateFees: Nullish<{
@@ -35012,13 +35013,20 @@ declare const rpcResult: {
35012
35013
  asset: "USDT";
35013
35014
  }>]>;
35014
35015
  principal_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
35015
- loan_type: z.ZodOptional<z.ZodObject<{
35016
+ loan_type: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
35016
35017
  User: z.ZodEffects<z.ZodString, `cF${string}`, string>;
35017
35018
  }, "strip", z.ZodTypeAny, {
35018
35019
  User: `cF${string}`;
35019
35020
  }, {
35020
35021
  User: string;
35021
- }>>;
35022
+ }>, z.ZodObject<{
35023
+ Boost: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
35024
+ }, "strip", z.ZodTypeAny, {
35025
+ Boost: bigint;
35026
+ }, {
35027
+ Boost: string | number;
35028
+ }>]>>;
35029
+ created_at: z.ZodOptional<z.ZodNumber>;
35022
35030
  }, "strip", z.ZodTypeAny, {
35023
35031
  asset: {
35024
35032
  chain: "Bitcoin";
@@ -35076,7 +35084,10 @@ declare const rpcResult: {
35076
35084
  principal_amount: bigint;
35077
35085
  loan_type?: {
35078
35086
  User: `cF${string}`;
35087
+ } | {
35088
+ Boost: bigint;
35079
35089
  } | undefined;
35090
+ created_at?: number | undefined;
35080
35091
  }, {
35081
35092
  asset: {
35082
35093
  chain: "Bitcoin";
@@ -35134,7 +35145,10 @@ declare const rpcResult: {
35134
35145
  principal_amount: string | number;
35135
35146
  loan_type?: {
35136
35147
  User: string;
35148
+ } | {
35149
+ Boost: string | number;
35137
35150
  } | undefined;
35151
+ created_at?: number | undefined;
35138
35152
  }>, "many">;
35139
35153
  liquidation_status: z.ZodNullable<z.ZodObject<{
35140
35154
  liquidation_swaps: z.ZodArray<z.ZodObject<{
@@ -35275,7 +35289,10 @@ declare const rpcResult: {
35275
35289
  principal_amount: bigint;
35276
35290
  loan_type?: {
35277
35291
  User: `cF${string}`;
35292
+ } | {
35293
+ Boost: bigint;
35278
35294
  } | undefined;
35295
+ created_at?: number | undefined;
35279
35296
  }[];
35280
35297
  liquidation_status: {
35281
35298
  liquidation_swaps: {
@@ -35450,7 +35467,10 @@ declare const rpcResult: {
35450
35467
  principal_amount: string | number;
35451
35468
  loan_type?: {
35452
35469
  User: string;
35470
+ } | {
35471
+ Boost: string | number;
35453
35472
  } | undefined;
35473
+ created_at?: number | undefined;
35454
35474
  }[];
35455
35475
  liquidation_status: {
35456
35476
  liquidation_swaps: {
@@ -36154,6 +36174,300 @@ declare const rpcResult: {
36154
36174
  max_boost_fee?: number | undefined;
36155
36175
  }[];
36156
36176
  }>;
36177
+ readonly cf_all_loans: z.ZodArray<z.ZodObject<{
36178
+ loan_id: z.ZodNumber;
36179
+ asset: z.ZodUnion<[z.ZodObject<{
36180
+ chain: z.ZodLiteral<"Bitcoin">;
36181
+ asset: z.ZodLiteral<"BTC">;
36182
+ }, "strip", z.ZodTypeAny, {
36183
+ chain: "Bitcoin";
36184
+ asset: "BTC";
36185
+ }, {
36186
+ chain: "Bitcoin";
36187
+ asset: "BTC";
36188
+ }>, z.ZodObject<{
36189
+ chain: z.ZodLiteral<"Ethereum">;
36190
+ asset: z.ZodLiteral<"FLIP">;
36191
+ }, "strip", z.ZodTypeAny, {
36192
+ chain: "Ethereum";
36193
+ asset: "FLIP";
36194
+ }, {
36195
+ chain: "Ethereum";
36196
+ asset: "FLIP";
36197
+ }>, z.ZodObject<{
36198
+ chain: z.ZodLiteral<"Ethereum">;
36199
+ asset: z.ZodLiteral<"ETH">;
36200
+ }, "strip", z.ZodTypeAny, {
36201
+ chain: "Ethereum";
36202
+ asset: "ETH";
36203
+ }, {
36204
+ chain: "Ethereum";
36205
+ asset: "ETH";
36206
+ }>, z.ZodObject<{
36207
+ chain: z.ZodLiteral<"Ethereum">;
36208
+ asset: z.ZodLiteral<"USDC">;
36209
+ }, "strip", z.ZodTypeAny, {
36210
+ chain: "Ethereum";
36211
+ asset: "USDC";
36212
+ }, {
36213
+ chain: "Ethereum";
36214
+ asset: "USDC";
36215
+ }>, z.ZodObject<{
36216
+ chain: z.ZodLiteral<"Ethereum">;
36217
+ asset: z.ZodLiteral<"USDT">;
36218
+ }, "strip", z.ZodTypeAny, {
36219
+ chain: "Ethereum";
36220
+ asset: "USDT";
36221
+ }, {
36222
+ chain: "Ethereum";
36223
+ asset: "USDT";
36224
+ }>, z.ZodObject<{
36225
+ chain: z.ZodLiteral<"Ethereum">;
36226
+ asset: z.ZodLiteral<"WBTC">;
36227
+ }, "strip", z.ZodTypeAny, {
36228
+ chain: "Ethereum";
36229
+ asset: "WBTC";
36230
+ }, {
36231
+ chain: "Ethereum";
36232
+ asset: "WBTC";
36233
+ }>, z.ZodObject<{
36234
+ chain: z.ZodLiteral<"Arbitrum">;
36235
+ asset: z.ZodLiteral<"ETH">;
36236
+ }, "strip", z.ZodTypeAny, {
36237
+ chain: "Arbitrum";
36238
+ asset: "ETH";
36239
+ }, {
36240
+ chain: "Arbitrum";
36241
+ asset: "ETH";
36242
+ }>, z.ZodObject<{
36243
+ chain: z.ZodLiteral<"Arbitrum">;
36244
+ asset: z.ZodLiteral<"USDC">;
36245
+ }, "strip", z.ZodTypeAny, {
36246
+ chain: "Arbitrum";
36247
+ asset: "USDC";
36248
+ }, {
36249
+ chain: "Arbitrum";
36250
+ asset: "USDC";
36251
+ }>, z.ZodObject<{
36252
+ chain: z.ZodLiteral<"Arbitrum">;
36253
+ asset: z.ZodLiteral<"USDT">;
36254
+ }, "strip", z.ZodTypeAny, {
36255
+ chain: "Arbitrum";
36256
+ asset: "USDT";
36257
+ }, {
36258
+ chain: "Arbitrum";
36259
+ asset: "USDT";
36260
+ }>, z.ZodObject<{
36261
+ chain: z.ZodLiteral<"Solana">;
36262
+ asset: z.ZodLiteral<"SOL">;
36263
+ }, "strip", z.ZodTypeAny, {
36264
+ chain: "Solana";
36265
+ asset: "SOL";
36266
+ }, {
36267
+ chain: "Solana";
36268
+ asset: "SOL";
36269
+ }>, z.ZodObject<{
36270
+ chain: z.ZodLiteral<"Solana">;
36271
+ asset: z.ZodLiteral<"USDC">;
36272
+ }, "strip", z.ZodTypeAny, {
36273
+ chain: "Solana";
36274
+ asset: "USDC";
36275
+ }, {
36276
+ chain: "Solana";
36277
+ asset: "USDC";
36278
+ }>, z.ZodObject<{
36279
+ chain: z.ZodLiteral<"Solana">;
36280
+ asset: z.ZodLiteral<"USDT">;
36281
+ }, "strip", z.ZodTypeAny, {
36282
+ chain: "Solana";
36283
+ asset: "USDT";
36284
+ }, {
36285
+ chain: "Solana";
36286
+ asset: "USDT";
36287
+ }>, z.ZodObject<{
36288
+ chain: z.ZodLiteral<"Assethub">;
36289
+ asset: z.ZodLiteral<"DOT">;
36290
+ }, "strip", z.ZodTypeAny, {
36291
+ chain: "Assethub";
36292
+ asset: "DOT";
36293
+ }, {
36294
+ chain: "Assethub";
36295
+ asset: "DOT";
36296
+ }>, z.ZodObject<{
36297
+ chain: z.ZodLiteral<"Assethub">;
36298
+ asset: z.ZodLiteral<"USDC">;
36299
+ }, "strip", z.ZodTypeAny, {
36300
+ chain: "Assethub";
36301
+ asset: "USDC";
36302
+ }, {
36303
+ chain: "Assethub";
36304
+ asset: "USDC";
36305
+ }>, z.ZodObject<{
36306
+ chain: z.ZodLiteral<"Assethub">;
36307
+ asset: z.ZodLiteral<"USDT">;
36308
+ }, "strip", z.ZodTypeAny, {
36309
+ chain: "Assethub";
36310
+ asset: "USDT";
36311
+ }, {
36312
+ chain: "Assethub";
36313
+ asset: "USDT";
36314
+ }>, z.ZodObject<{
36315
+ chain: z.ZodLiteral<"Tron">;
36316
+ asset: z.ZodLiteral<"TRX">;
36317
+ }, "strip", z.ZodTypeAny, {
36318
+ chain: "Tron";
36319
+ asset: "TRX";
36320
+ }, {
36321
+ chain: "Tron";
36322
+ asset: "TRX";
36323
+ }>, z.ZodObject<{
36324
+ chain: z.ZodLiteral<"Tron">;
36325
+ asset: z.ZodLiteral<"USDT">;
36326
+ }, "strip", z.ZodTypeAny, {
36327
+ chain: "Tron";
36328
+ asset: "USDT";
36329
+ }, {
36330
+ chain: "Tron";
36331
+ asset: "USDT";
36332
+ }>]>;
36333
+ principal_amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
36334
+ loan_type: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
36335
+ User: z.ZodEffects<z.ZodString, `cF${string}`, string>;
36336
+ }, "strip", z.ZodTypeAny, {
36337
+ User: `cF${string}`;
36338
+ }, {
36339
+ User: string;
36340
+ }>, z.ZodObject<{
36341
+ Boost: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
36342
+ }, "strip", z.ZodTypeAny, {
36343
+ Boost: bigint;
36344
+ }, {
36345
+ Boost: string | number;
36346
+ }>]>>;
36347
+ created_at: z.ZodOptional<z.ZodNumber>;
36348
+ }, "strip", z.ZodTypeAny, {
36349
+ asset: {
36350
+ chain: "Bitcoin";
36351
+ asset: "BTC";
36352
+ } | {
36353
+ chain: "Ethereum";
36354
+ asset: "FLIP";
36355
+ } | {
36356
+ chain: "Ethereum";
36357
+ asset: "ETH";
36358
+ } | {
36359
+ chain: "Ethereum";
36360
+ asset: "USDC";
36361
+ } | {
36362
+ chain: "Ethereum";
36363
+ asset: "USDT";
36364
+ } | {
36365
+ chain: "Ethereum";
36366
+ asset: "WBTC";
36367
+ } | {
36368
+ chain: "Arbitrum";
36369
+ asset: "ETH";
36370
+ } | {
36371
+ chain: "Arbitrum";
36372
+ asset: "USDC";
36373
+ } | {
36374
+ chain: "Arbitrum";
36375
+ asset: "USDT";
36376
+ } | {
36377
+ chain: "Solana";
36378
+ asset: "SOL";
36379
+ } | {
36380
+ chain: "Solana";
36381
+ asset: "USDC";
36382
+ } | {
36383
+ chain: "Solana";
36384
+ asset: "USDT";
36385
+ } | {
36386
+ chain: "Assethub";
36387
+ asset: "DOT";
36388
+ } | {
36389
+ chain: "Assethub";
36390
+ asset: "USDC";
36391
+ } | {
36392
+ chain: "Assethub";
36393
+ asset: "USDT";
36394
+ } | {
36395
+ chain: "Tron";
36396
+ asset: "TRX";
36397
+ } | {
36398
+ chain: "Tron";
36399
+ asset: "USDT";
36400
+ };
36401
+ loan_id: number;
36402
+ principal_amount: bigint;
36403
+ loan_type?: {
36404
+ User: `cF${string}`;
36405
+ } | {
36406
+ Boost: bigint;
36407
+ } | undefined;
36408
+ created_at?: number | undefined;
36409
+ }, {
36410
+ asset: {
36411
+ chain: "Bitcoin";
36412
+ asset: "BTC";
36413
+ } | {
36414
+ chain: "Ethereum";
36415
+ asset: "FLIP";
36416
+ } | {
36417
+ chain: "Ethereum";
36418
+ asset: "ETH";
36419
+ } | {
36420
+ chain: "Ethereum";
36421
+ asset: "USDC";
36422
+ } | {
36423
+ chain: "Ethereum";
36424
+ asset: "USDT";
36425
+ } | {
36426
+ chain: "Ethereum";
36427
+ asset: "WBTC";
36428
+ } | {
36429
+ chain: "Arbitrum";
36430
+ asset: "ETH";
36431
+ } | {
36432
+ chain: "Arbitrum";
36433
+ asset: "USDC";
36434
+ } | {
36435
+ chain: "Arbitrum";
36436
+ asset: "USDT";
36437
+ } | {
36438
+ chain: "Solana";
36439
+ asset: "SOL";
36440
+ } | {
36441
+ chain: "Solana";
36442
+ asset: "USDC";
36443
+ } | {
36444
+ chain: "Solana";
36445
+ asset: "USDT";
36446
+ } | {
36447
+ chain: "Assethub";
36448
+ asset: "DOT";
36449
+ } | {
36450
+ chain: "Assethub";
36451
+ asset: "USDC";
36452
+ } | {
36453
+ chain: "Assethub";
36454
+ asset: "USDT";
36455
+ } | {
36456
+ chain: "Tron";
36457
+ asset: "TRX";
36458
+ } | {
36459
+ chain: "Tron";
36460
+ asset: "USDT";
36461
+ };
36462
+ loan_id: number;
36463
+ principal_amount: string | number;
36464
+ loan_type?: {
36465
+ User: string;
36466
+ } | {
36467
+ Boost: string | number;
36468
+ } | undefined;
36469
+ created_at?: number | undefined;
36470
+ }>, "many">;
36157
36471
  };
36158
36472
  type RpcMethod = keyof RpcRequest;
36159
36473
  type RpcResponse<T extends RpcMethod> = z.input<(typeof rpcResult)[T]>;