@chainflip/rpc 2.0.3 → 2.0.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.d.cts CHANGED
@@ -25871,45 +25871,45 @@ declare const rpcResult: {
25871
25871
  }>, "many">;
25872
25872
  readonly cf_lending_config: z.ZodObject<{
25873
25873
  ltv_thresholds: z.ZodObject<{
25874
- target: z.ZodNullable<z.ZodNumber>;
25874
+ target: z.ZodNumber;
25875
25875
  topup: z.ZodNullable<z.ZodNumber>;
25876
- soft_liquidation: z.ZodNullable<z.ZodNumber>;
25877
- soft_liquidation_abort: z.ZodNullable<z.ZodNumber>;
25878
- hard_liquidation: z.ZodNullable<z.ZodNumber>;
25879
- hard_liquidation_abort: z.ZodNullable<z.ZodNumber>;
25876
+ soft_liquidation: z.ZodNumber;
25877
+ soft_liquidation_abort: z.ZodNumber;
25878
+ hard_liquidation: z.ZodNumber;
25879
+ hard_liquidation_abort: z.ZodNumber;
25880
25880
  low_ltv: z.ZodNullable<z.ZodNumber>;
25881
25881
  }, "strip", z.ZodTypeAny, {
25882
- target: number | null;
25882
+ target: number;
25883
25883
  topup: number | null;
25884
- soft_liquidation: number | null;
25885
- soft_liquidation_abort: number | null;
25886
- hard_liquidation: number | null;
25887
- hard_liquidation_abort: number | null;
25884
+ soft_liquidation: number;
25885
+ soft_liquidation_abort: number;
25886
+ hard_liquidation: number;
25887
+ hard_liquidation_abort: number;
25888
25888
  low_ltv: number | null;
25889
25889
  }, {
25890
- target: number | null;
25890
+ target: number;
25891
25891
  topup: number | null;
25892
- soft_liquidation: number | null;
25893
- soft_liquidation_abort: number | null;
25894
- hard_liquidation: number | null;
25895
- hard_liquidation_abort: number | null;
25892
+ soft_liquidation: number;
25893
+ soft_liquidation_abort: number;
25894
+ hard_liquidation: number;
25895
+ hard_liquidation_abort: number;
25896
25896
  low_ltv: number | null;
25897
25897
  }>;
25898
25898
  network_fee_contributions: z.ZodObject<{
25899
- extra_interest: z.ZodNullable<z.ZodNumber>;
25899
+ extra_interest: z.ZodNumber;
25900
25900
  low_ltv_penalty_max: z.ZodNullable<z.ZodNumber>;
25901
- from_origination_fee: z.ZodNullable<z.ZodNumber>;
25902
- from_liquidation_fee: z.ZodNullable<z.ZodNumber>;
25901
+ from_origination_fee: z.ZodNumber;
25902
+ from_liquidation_fee: z.ZodNumber;
25903
25903
  }, "strip", z.ZodTypeAny, {
25904
- extra_interest: number | null;
25904
+ extra_interest: number;
25905
25905
  low_ltv_penalty_max: number | null;
25906
- from_origination_fee: number | null;
25907
- from_liquidation_fee: number | null;
25906
+ from_origination_fee: number;
25907
+ from_liquidation_fee: number;
25908
25908
  }, {
25909
- extra_interest: number | null;
25909
+ extra_interest: number;
25910
25910
  low_ltv_penalty_max: number | null;
25911
- from_origination_fee: number | null;
25912
- from_liquidation_fee: number | null;
25911
+ from_origination_fee: number;
25912
+ from_liquidation_fee: number;
25913
25913
  }>;
25914
25914
  fee_swap_interval_blocks: z.ZodNumber;
25915
25915
  interest_payment_interval_blocks: z.ZodNumber;
@@ -25926,19 +25926,19 @@ declare const rpcResult: {
25926
25926
  minimum_update_collateral_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
25927
25927
  }, "strip", z.ZodTypeAny, {
25928
25928
  ltv_thresholds: {
25929
- target: number | null;
25929
+ target: number;
25930
25930
  topup: number | null;
25931
- soft_liquidation: number | null;
25932
- soft_liquidation_abort: number | null;
25933
- hard_liquidation: number | null;
25934
- hard_liquidation_abort: number | null;
25931
+ soft_liquidation: number;
25932
+ soft_liquidation_abort: number;
25933
+ hard_liquidation: number;
25934
+ hard_liquidation_abort: number;
25935
25935
  low_ltv: number | null;
25936
25936
  };
25937
25937
  network_fee_contributions: {
25938
- extra_interest: number | null;
25938
+ extra_interest: number;
25939
25939
  low_ltv_penalty_max: number | null;
25940
- from_origination_fee: number | null;
25941
- from_liquidation_fee: number | null;
25940
+ from_origination_fee: number;
25941
+ from_liquidation_fee: number;
25942
25942
  };
25943
25943
  fee_swap_interval_blocks: number;
25944
25944
  interest_payment_interval_blocks: number;
@@ -25955,19 +25955,19 @@ declare const rpcResult: {
25955
25955
  minimum_update_collateral_amount_usd: bigint;
25956
25956
  }, {
25957
25957
  ltv_thresholds: {
25958
- target: number | null;
25958
+ target: number;
25959
25959
  topup: number | null;
25960
- soft_liquidation: number | null;
25961
- soft_liquidation_abort: number | null;
25962
- hard_liquidation: number | null;
25963
- hard_liquidation_abort: number | null;
25960
+ soft_liquidation: number;
25961
+ soft_liquidation_abort: number;
25962
+ hard_liquidation: number;
25963
+ hard_liquidation_abort: number;
25964
25964
  low_ltv: number | null;
25965
25965
  };
25966
25966
  network_fee_contributions: {
25967
- extra_interest: number | null;
25967
+ extra_interest: number;
25968
25968
  low_ltv_penalty_max: number | null;
25969
- from_origination_fee: number | null;
25970
- from_liquidation_fee: number | null;
25969
+ from_origination_fee: number;
25970
+ from_liquidation_fee: number;
25971
25971
  };
25972
25972
  fee_swap_interval_blocks: number;
25973
25973
  interest_payment_interval_blocks: number;
@@ -25985,7 +25985,7 @@ declare const rpcResult: {
25985
25985
  }>;
25986
25986
  readonly cf_loan_accounts: z.ZodArray<z.ZodObject<{
25987
25987
  account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
25988
- primary_collateral_asset: z.ZodUnion<[z.ZodObject<{
25988
+ collateral_topup_asset: z.ZodUnion<[z.ZodObject<{
25989
25989
  chain: z.ZodLiteral<"Bitcoin">;
25990
25990
  asset: z.ZodLiteral<"BTC">;
25991
25991
  }, "strip", z.ZodTypeAny, {
@@ -26463,7 +26463,7 @@ declare const rpcResult: {
26463
26463
  }>>;
26464
26464
  }, "strip", z.ZodTypeAny, {
26465
26465
  account: `cF${string}`;
26466
- primary_collateral_asset: {
26466
+ collateral_topup_asset: {
26467
26467
  chain: "Bitcoin";
26468
26468
  asset: "BTC";
26469
26469
  } | {
@@ -26599,7 +26599,7 @@ declare const rpcResult: {
26599
26599
  } | null;
26600
26600
  }, {
26601
26601
  account: string;
26602
- primary_collateral_asset: {
26602
+ collateral_topup_asset: {
26603
26603
  chain: "Bitcoin";
26604
26604
  asset: "BTC";
26605
26605
  } | {
package/dist/common.d.ts CHANGED
@@ -25871,45 +25871,45 @@ declare const rpcResult: {
25871
25871
  }>, "many">;
25872
25872
  readonly cf_lending_config: z.ZodObject<{
25873
25873
  ltv_thresholds: z.ZodObject<{
25874
- target: z.ZodNullable<z.ZodNumber>;
25874
+ target: z.ZodNumber;
25875
25875
  topup: z.ZodNullable<z.ZodNumber>;
25876
- soft_liquidation: z.ZodNullable<z.ZodNumber>;
25877
- soft_liquidation_abort: z.ZodNullable<z.ZodNumber>;
25878
- hard_liquidation: z.ZodNullable<z.ZodNumber>;
25879
- hard_liquidation_abort: z.ZodNullable<z.ZodNumber>;
25876
+ soft_liquidation: z.ZodNumber;
25877
+ soft_liquidation_abort: z.ZodNumber;
25878
+ hard_liquidation: z.ZodNumber;
25879
+ hard_liquidation_abort: z.ZodNumber;
25880
25880
  low_ltv: z.ZodNullable<z.ZodNumber>;
25881
25881
  }, "strip", z.ZodTypeAny, {
25882
- target: number | null;
25882
+ target: number;
25883
25883
  topup: number | null;
25884
- soft_liquidation: number | null;
25885
- soft_liquidation_abort: number | null;
25886
- hard_liquidation: number | null;
25887
- hard_liquidation_abort: number | null;
25884
+ soft_liquidation: number;
25885
+ soft_liquidation_abort: number;
25886
+ hard_liquidation: number;
25887
+ hard_liquidation_abort: number;
25888
25888
  low_ltv: number | null;
25889
25889
  }, {
25890
- target: number | null;
25890
+ target: number;
25891
25891
  topup: number | null;
25892
- soft_liquidation: number | null;
25893
- soft_liquidation_abort: number | null;
25894
- hard_liquidation: number | null;
25895
- hard_liquidation_abort: number | null;
25892
+ soft_liquidation: number;
25893
+ soft_liquidation_abort: number;
25894
+ hard_liquidation: number;
25895
+ hard_liquidation_abort: number;
25896
25896
  low_ltv: number | null;
25897
25897
  }>;
25898
25898
  network_fee_contributions: z.ZodObject<{
25899
- extra_interest: z.ZodNullable<z.ZodNumber>;
25899
+ extra_interest: z.ZodNumber;
25900
25900
  low_ltv_penalty_max: z.ZodNullable<z.ZodNumber>;
25901
- from_origination_fee: z.ZodNullable<z.ZodNumber>;
25902
- from_liquidation_fee: z.ZodNullable<z.ZodNumber>;
25901
+ from_origination_fee: z.ZodNumber;
25902
+ from_liquidation_fee: z.ZodNumber;
25903
25903
  }, "strip", z.ZodTypeAny, {
25904
- extra_interest: number | null;
25904
+ extra_interest: number;
25905
25905
  low_ltv_penalty_max: number | null;
25906
- from_origination_fee: number | null;
25907
- from_liquidation_fee: number | null;
25906
+ from_origination_fee: number;
25907
+ from_liquidation_fee: number;
25908
25908
  }, {
25909
- extra_interest: number | null;
25909
+ extra_interest: number;
25910
25910
  low_ltv_penalty_max: number | null;
25911
- from_origination_fee: number | null;
25912
- from_liquidation_fee: number | null;
25911
+ from_origination_fee: number;
25912
+ from_liquidation_fee: number;
25913
25913
  }>;
25914
25914
  fee_swap_interval_blocks: z.ZodNumber;
25915
25915
  interest_payment_interval_blocks: z.ZodNumber;
@@ -25926,19 +25926,19 @@ declare const rpcResult: {
25926
25926
  minimum_update_collateral_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
25927
25927
  }, "strip", z.ZodTypeAny, {
25928
25928
  ltv_thresholds: {
25929
- target: number | null;
25929
+ target: number;
25930
25930
  topup: number | null;
25931
- soft_liquidation: number | null;
25932
- soft_liquidation_abort: number | null;
25933
- hard_liquidation: number | null;
25934
- hard_liquidation_abort: number | null;
25931
+ soft_liquidation: number;
25932
+ soft_liquidation_abort: number;
25933
+ hard_liquidation: number;
25934
+ hard_liquidation_abort: number;
25935
25935
  low_ltv: number | null;
25936
25936
  };
25937
25937
  network_fee_contributions: {
25938
- extra_interest: number | null;
25938
+ extra_interest: number;
25939
25939
  low_ltv_penalty_max: number | null;
25940
- from_origination_fee: number | null;
25941
- from_liquidation_fee: number | null;
25940
+ from_origination_fee: number;
25941
+ from_liquidation_fee: number;
25942
25942
  };
25943
25943
  fee_swap_interval_blocks: number;
25944
25944
  interest_payment_interval_blocks: number;
@@ -25955,19 +25955,19 @@ declare const rpcResult: {
25955
25955
  minimum_update_collateral_amount_usd: bigint;
25956
25956
  }, {
25957
25957
  ltv_thresholds: {
25958
- target: number | null;
25958
+ target: number;
25959
25959
  topup: number | null;
25960
- soft_liquidation: number | null;
25961
- soft_liquidation_abort: number | null;
25962
- hard_liquidation: number | null;
25963
- hard_liquidation_abort: number | null;
25960
+ soft_liquidation: number;
25961
+ soft_liquidation_abort: number;
25962
+ hard_liquidation: number;
25963
+ hard_liquidation_abort: number;
25964
25964
  low_ltv: number | null;
25965
25965
  };
25966
25966
  network_fee_contributions: {
25967
- extra_interest: number | null;
25967
+ extra_interest: number;
25968
25968
  low_ltv_penalty_max: number | null;
25969
- from_origination_fee: number | null;
25970
- from_liquidation_fee: number | null;
25969
+ from_origination_fee: number;
25970
+ from_liquidation_fee: number;
25971
25971
  };
25972
25972
  fee_swap_interval_blocks: number;
25973
25973
  interest_payment_interval_blocks: number;
@@ -25985,7 +25985,7 @@ declare const rpcResult: {
25985
25985
  }>;
25986
25986
  readonly cf_loan_accounts: z.ZodArray<z.ZodObject<{
25987
25987
  account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
25988
- primary_collateral_asset: z.ZodUnion<[z.ZodObject<{
25988
+ collateral_topup_asset: z.ZodUnion<[z.ZodObject<{
25989
25989
  chain: z.ZodLiteral<"Bitcoin">;
25990
25990
  asset: z.ZodLiteral<"BTC">;
25991
25991
  }, "strip", z.ZodTypeAny, {
@@ -26463,7 +26463,7 @@ declare const rpcResult: {
26463
26463
  }>>;
26464
26464
  }, "strip", z.ZodTypeAny, {
26465
26465
  account: `cF${string}`;
26466
- primary_collateral_asset: {
26466
+ collateral_topup_asset: {
26467
26467
  chain: "Bitcoin";
26468
26468
  asset: "BTC";
26469
26469
  } | {
@@ -26599,7 +26599,7 @@ declare const rpcResult: {
26599
26599
  } | null;
26600
26600
  }, {
26601
26601
  account: string;
26602
- primary_collateral_asset: {
26602
+ collateral_topup_asset: {
26603
26603
  chain: "Bitcoin";
26604
26604
  asset: "BTC";
26605
26605
  } | {
package/dist/parsers.cjs CHANGED
@@ -609,19 +609,19 @@ var cfLendingPools = _zod.z.array(
609
609
  );
610
610
  var cfLendingConfig = _zod.z.object({
611
611
  ltv_thresholds: _zod.z.object({
612
- target: _zod.z.number().nullable(),
612
+ target: _zod.z.number(),
613
613
  topup: _zod.z.number().nullable(),
614
- soft_liquidation: _zod.z.number().nullable(),
615
- soft_liquidation_abort: _zod.z.number().nullable(),
616
- hard_liquidation: _zod.z.number().nullable(),
617
- hard_liquidation_abort: _zod.z.number().nullable(),
614
+ soft_liquidation: _zod.z.number(),
615
+ soft_liquidation_abort: _zod.z.number(),
616
+ hard_liquidation: _zod.z.number(),
617
+ hard_liquidation_abort: _zod.z.number(),
618
618
  low_ltv: _zod.z.number().nullable()
619
619
  }),
620
620
  network_fee_contributions: _zod.z.object({
621
- extra_interest: _zod.z.number().nullable(),
621
+ extra_interest: _zod.z.number(),
622
622
  low_ltv_penalty_max: _zod.z.number().nullable(),
623
- from_origination_fee: _zod.z.number().nullable(),
624
- from_liquidation_fee: _zod.z.number().nullable()
623
+ from_origination_fee: _zod.z.number(),
624
+ from_liquidation_fee: _zod.z.number()
625
625
  }),
626
626
  fee_swap_interval_blocks: _zod.z.number(),
627
627
  interest_payment_interval_blocks: _zod.z.number(),
@@ -639,7 +639,7 @@ var cfLendingConfig = _zod.z.object({
639
639
  });
640
640
  var cfLoanAccount = _zod.z.object({
641
641
  account: accountId,
642
- primary_collateral_asset: rpcAssetSchema,
642
+ collateral_topup_asset: rpcAssetSchema,
643
643
  ltv_ratio: numberOrHex.nullable(),
644
644
  collateral: _zod.z.array(
645
645
  _zod.z.intersection(
@@ -30173,45 +30173,45 @@ declare const cfLendingPools: z.ZodArray<z.ZodObject<{
30173
30173
  }>, "many">;
30174
30174
  declare const cfLendingConfig: z.ZodObject<{
30175
30175
  ltv_thresholds: z.ZodObject<{
30176
- target: z.ZodNullable<z.ZodNumber>;
30176
+ target: z.ZodNumber;
30177
30177
  topup: z.ZodNullable<z.ZodNumber>;
30178
- soft_liquidation: z.ZodNullable<z.ZodNumber>;
30179
- soft_liquidation_abort: z.ZodNullable<z.ZodNumber>;
30180
- hard_liquidation: z.ZodNullable<z.ZodNumber>;
30181
- hard_liquidation_abort: z.ZodNullable<z.ZodNumber>;
30178
+ soft_liquidation: z.ZodNumber;
30179
+ soft_liquidation_abort: z.ZodNumber;
30180
+ hard_liquidation: z.ZodNumber;
30181
+ hard_liquidation_abort: z.ZodNumber;
30182
30182
  low_ltv: z.ZodNullable<z.ZodNumber>;
30183
30183
  }, "strip", z.ZodTypeAny, {
30184
- target: number | null;
30184
+ target: number;
30185
30185
  topup: number | null;
30186
- soft_liquidation: number | null;
30187
- soft_liquidation_abort: number | null;
30188
- hard_liquidation: number | null;
30189
- hard_liquidation_abort: number | null;
30186
+ soft_liquidation: number;
30187
+ soft_liquidation_abort: number;
30188
+ hard_liquidation: number;
30189
+ hard_liquidation_abort: number;
30190
30190
  low_ltv: number | null;
30191
30191
  }, {
30192
- target: number | null;
30192
+ target: number;
30193
30193
  topup: number | null;
30194
- soft_liquidation: number | null;
30195
- soft_liquidation_abort: number | null;
30196
- hard_liquidation: number | null;
30197
- hard_liquidation_abort: number | null;
30194
+ soft_liquidation: number;
30195
+ soft_liquidation_abort: number;
30196
+ hard_liquidation: number;
30197
+ hard_liquidation_abort: number;
30198
30198
  low_ltv: number | null;
30199
30199
  }>;
30200
30200
  network_fee_contributions: z.ZodObject<{
30201
- extra_interest: z.ZodNullable<z.ZodNumber>;
30201
+ extra_interest: z.ZodNumber;
30202
30202
  low_ltv_penalty_max: z.ZodNullable<z.ZodNumber>;
30203
- from_origination_fee: z.ZodNullable<z.ZodNumber>;
30204
- from_liquidation_fee: z.ZodNullable<z.ZodNumber>;
30203
+ from_origination_fee: z.ZodNumber;
30204
+ from_liquidation_fee: z.ZodNumber;
30205
30205
  }, "strip", z.ZodTypeAny, {
30206
- extra_interest: number | null;
30206
+ extra_interest: number;
30207
30207
  low_ltv_penalty_max: number | null;
30208
- from_origination_fee: number | null;
30209
- from_liquidation_fee: number | null;
30208
+ from_origination_fee: number;
30209
+ from_liquidation_fee: number;
30210
30210
  }, {
30211
- extra_interest: number | null;
30211
+ extra_interest: number;
30212
30212
  low_ltv_penalty_max: number | null;
30213
- from_origination_fee: number | null;
30214
- from_liquidation_fee: number | null;
30213
+ from_origination_fee: number;
30214
+ from_liquidation_fee: number;
30215
30215
  }>;
30216
30216
  fee_swap_interval_blocks: z.ZodNumber;
30217
30217
  interest_payment_interval_blocks: z.ZodNumber;
@@ -30228,19 +30228,19 @@ declare const cfLendingConfig: z.ZodObject<{
30228
30228
  minimum_update_collateral_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
30229
30229
  }, "strip", z.ZodTypeAny, {
30230
30230
  ltv_thresholds: {
30231
- target: number | null;
30231
+ target: number;
30232
30232
  topup: number | null;
30233
- soft_liquidation: number | null;
30234
- soft_liquidation_abort: number | null;
30235
- hard_liquidation: number | null;
30236
- hard_liquidation_abort: number | null;
30233
+ soft_liquidation: number;
30234
+ soft_liquidation_abort: number;
30235
+ hard_liquidation: number;
30236
+ hard_liquidation_abort: number;
30237
30237
  low_ltv: number | null;
30238
30238
  };
30239
30239
  network_fee_contributions: {
30240
- extra_interest: number | null;
30240
+ extra_interest: number;
30241
30241
  low_ltv_penalty_max: number | null;
30242
- from_origination_fee: number | null;
30243
- from_liquidation_fee: number | null;
30242
+ from_origination_fee: number;
30243
+ from_liquidation_fee: number;
30244
30244
  };
30245
30245
  fee_swap_interval_blocks: number;
30246
30246
  interest_payment_interval_blocks: number;
@@ -30257,19 +30257,19 @@ declare const cfLendingConfig: z.ZodObject<{
30257
30257
  minimum_update_collateral_amount_usd: bigint;
30258
30258
  }, {
30259
30259
  ltv_thresholds: {
30260
- target: number | null;
30260
+ target: number;
30261
30261
  topup: number | null;
30262
- soft_liquidation: number | null;
30263
- soft_liquidation_abort: number | null;
30264
- hard_liquidation: number | null;
30265
- hard_liquidation_abort: number | null;
30262
+ soft_liquidation: number;
30263
+ soft_liquidation_abort: number;
30264
+ hard_liquidation: number;
30265
+ hard_liquidation_abort: number;
30266
30266
  low_ltv: number | null;
30267
30267
  };
30268
30268
  network_fee_contributions: {
30269
- extra_interest: number | null;
30269
+ extra_interest: number;
30270
30270
  low_ltv_penalty_max: number | null;
30271
- from_origination_fee: number | null;
30272
- from_liquidation_fee: number | null;
30271
+ from_origination_fee: number;
30272
+ from_liquidation_fee: number;
30273
30273
  };
30274
30274
  fee_swap_interval_blocks: number;
30275
30275
  interest_payment_interval_blocks: number;
@@ -30287,7 +30287,7 @@ declare const cfLendingConfig: z.ZodObject<{
30287
30287
  }>;
30288
30288
  declare const cfLoanAccount: z.ZodObject<{
30289
30289
  account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
30290
- primary_collateral_asset: z.ZodUnion<[z.ZodObject<{
30290
+ collateral_topup_asset: z.ZodUnion<[z.ZodObject<{
30291
30291
  chain: z.ZodLiteral<"Bitcoin">;
30292
30292
  asset: z.ZodLiteral<"BTC">;
30293
30293
  }, "strip", z.ZodTypeAny, {
@@ -30765,7 +30765,7 @@ declare const cfLoanAccount: z.ZodObject<{
30765
30765
  }>>;
30766
30766
  }, "strip", z.ZodTypeAny, {
30767
30767
  account: `cF${string}`;
30768
- primary_collateral_asset: {
30768
+ collateral_topup_asset: {
30769
30769
  chain: "Bitcoin";
30770
30770
  asset: "BTC";
30771
30771
  } | {
@@ -30901,7 +30901,7 @@ declare const cfLoanAccount: z.ZodObject<{
30901
30901
  } | null;
30902
30902
  }, {
30903
30903
  account: string;
30904
- primary_collateral_asset: {
30904
+ collateral_topup_asset: {
30905
30905
  chain: "Bitcoin";
30906
30906
  asset: "BTC";
30907
30907
  } | {
@@ -31038,7 +31038,7 @@ declare const cfLoanAccount: z.ZodObject<{
31038
31038
  }>;
31039
31039
  declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31040
31040
  account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
31041
- primary_collateral_asset: z.ZodUnion<[z.ZodObject<{
31041
+ collateral_topup_asset: z.ZodUnion<[z.ZodObject<{
31042
31042
  chain: z.ZodLiteral<"Bitcoin">;
31043
31043
  asset: z.ZodLiteral<"BTC">;
31044
31044
  }, "strip", z.ZodTypeAny, {
@@ -31516,7 +31516,7 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31516
31516
  }>>;
31517
31517
  }, "strip", z.ZodTypeAny, {
31518
31518
  account: `cF${string}`;
31519
- primary_collateral_asset: {
31519
+ collateral_topup_asset: {
31520
31520
  chain: "Bitcoin";
31521
31521
  asset: "BTC";
31522
31522
  } | {
@@ -31652,7 +31652,7 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31652
31652
  } | null;
31653
31653
  }, {
31654
31654
  account: string;
31655
- primary_collateral_asset: {
31655
+ collateral_topup_asset: {
31656
31656
  chain: "Bitcoin";
31657
31657
  asset: "BTC";
31658
31658
  } | {
package/dist/parsers.d.ts CHANGED
@@ -30173,45 +30173,45 @@ declare const cfLendingPools: z.ZodArray<z.ZodObject<{
30173
30173
  }>, "many">;
30174
30174
  declare const cfLendingConfig: z.ZodObject<{
30175
30175
  ltv_thresholds: z.ZodObject<{
30176
- target: z.ZodNullable<z.ZodNumber>;
30176
+ target: z.ZodNumber;
30177
30177
  topup: z.ZodNullable<z.ZodNumber>;
30178
- soft_liquidation: z.ZodNullable<z.ZodNumber>;
30179
- soft_liquidation_abort: z.ZodNullable<z.ZodNumber>;
30180
- hard_liquidation: z.ZodNullable<z.ZodNumber>;
30181
- hard_liquidation_abort: z.ZodNullable<z.ZodNumber>;
30178
+ soft_liquidation: z.ZodNumber;
30179
+ soft_liquidation_abort: z.ZodNumber;
30180
+ hard_liquidation: z.ZodNumber;
30181
+ hard_liquidation_abort: z.ZodNumber;
30182
30182
  low_ltv: z.ZodNullable<z.ZodNumber>;
30183
30183
  }, "strip", z.ZodTypeAny, {
30184
- target: number | null;
30184
+ target: number;
30185
30185
  topup: number | null;
30186
- soft_liquidation: number | null;
30187
- soft_liquidation_abort: number | null;
30188
- hard_liquidation: number | null;
30189
- hard_liquidation_abort: number | null;
30186
+ soft_liquidation: number;
30187
+ soft_liquidation_abort: number;
30188
+ hard_liquidation: number;
30189
+ hard_liquidation_abort: number;
30190
30190
  low_ltv: number | null;
30191
30191
  }, {
30192
- target: number | null;
30192
+ target: number;
30193
30193
  topup: number | null;
30194
- soft_liquidation: number | null;
30195
- soft_liquidation_abort: number | null;
30196
- hard_liquidation: number | null;
30197
- hard_liquidation_abort: number | null;
30194
+ soft_liquidation: number;
30195
+ soft_liquidation_abort: number;
30196
+ hard_liquidation: number;
30197
+ hard_liquidation_abort: number;
30198
30198
  low_ltv: number | null;
30199
30199
  }>;
30200
30200
  network_fee_contributions: z.ZodObject<{
30201
- extra_interest: z.ZodNullable<z.ZodNumber>;
30201
+ extra_interest: z.ZodNumber;
30202
30202
  low_ltv_penalty_max: z.ZodNullable<z.ZodNumber>;
30203
- from_origination_fee: z.ZodNullable<z.ZodNumber>;
30204
- from_liquidation_fee: z.ZodNullable<z.ZodNumber>;
30203
+ from_origination_fee: z.ZodNumber;
30204
+ from_liquidation_fee: z.ZodNumber;
30205
30205
  }, "strip", z.ZodTypeAny, {
30206
- extra_interest: number | null;
30206
+ extra_interest: number;
30207
30207
  low_ltv_penalty_max: number | null;
30208
- from_origination_fee: number | null;
30209
- from_liquidation_fee: number | null;
30208
+ from_origination_fee: number;
30209
+ from_liquidation_fee: number;
30210
30210
  }, {
30211
- extra_interest: number | null;
30211
+ extra_interest: number;
30212
30212
  low_ltv_penalty_max: number | null;
30213
- from_origination_fee: number | null;
30214
- from_liquidation_fee: number | null;
30213
+ from_origination_fee: number;
30214
+ from_liquidation_fee: number;
30215
30215
  }>;
30216
30216
  fee_swap_interval_blocks: z.ZodNumber;
30217
30217
  interest_payment_interval_blocks: z.ZodNumber;
@@ -30228,19 +30228,19 @@ declare const cfLendingConfig: z.ZodObject<{
30228
30228
  minimum_update_collateral_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
30229
30229
  }, "strip", z.ZodTypeAny, {
30230
30230
  ltv_thresholds: {
30231
- target: number | null;
30231
+ target: number;
30232
30232
  topup: number | null;
30233
- soft_liquidation: number | null;
30234
- soft_liquidation_abort: number | null;
30235
- hard_liquidation: number | null;
30236
- hard_liquidation_abort: number | null;
30233
+ soft_liquidation: number;
30234
+ soft_liquidation_abort: number;
30235
+ hard_liquidation: number;
30236
+ hard_liquidation_abort: number;
30237
30237
  low_ltv: number | null;
30238
30238
  };
30239
30239
  network_fee_contributions: {
30240
- extra_interest: number | null;
30240
+ extra_interest: number;
30241
30241
  low_ltv_penalty_max: number | null;
30242
- from_origination_fee: number | null;
30243
- from_liquidation_fee: number | null;
30242
+ from_origination_fee: number;
30243
+ from_liquidation_fee: number;
30244
30244
  };
30245
30245
  fee_swap_interval_blocks: number;
30246
30246
  interest_payment_interval_blocks: number;
@@ -30257,19 +30257,19 @@ declare const cfLendingConfig: z.ZodObject<{
30257
30257
  minimum_update_collateral_amount_usd: bigint;
30258
30258
  }, {
30259
30259
  ltv_thresholds: {
30260
- target: number | null;
30260
+ target: number;
30261
30261
  topup: number | null;
30262
- soft_liquidation: number | null;
30263
- soft_liquidation_abort: number | null;
30264
- hard_liquidation: number | null;
30265
- hard_liquidation_abort: number | null;
30262
+ soft_liquidation: number;
30263
+ soft_liquidation_abort: number;
30264
+ hard_liquidation: number;
30265
+ hard_liquidation_abort: number;
30266
30266
  low_ltv: number | null;
30267
30267
  };
30268
30268
  network_fee_contributions: {
30269
- extra_interest: number | null;
30269
+ extra_interest: number;
30270
30270
  low_ltv_penalty_max: number | null;
30271
- from_origination_fee: number | null;
30272
- from_liquidation_fee: number | null;
30271
+ from_origination_fee: number;
30272
+ from_liquidation_fee: number;
30273
30273
  };
30274
30274
  fee_swap_interval_blocks: number;
30275
30275
  interest_payment_interval_blocks: number;
@@ -30287,7 +30287,7 @@ declare const cfLendingConfig: z.ZodObject<{
30287
30287
  }>;
30288
30288
  declare const cfLoanAccount: z.ZodObject<{
30289
30289
  account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
30290
- primary_collateral_asset: z.ZodUnion<[z.ZodObject<{
30290
+ collateral_topup_asset: z.ZodUnion<[z.ZodObject<{
30291
30291
  chain: z.ZodLiteral<"Bitcoin">;
30292
30292
  asset: z.ZodLiteral<"BTC">;
30293
30293
  }, "strip", z.ZodTypeAny, {
@@ -30765,7 +30765,7 @@ declare const cfLoanAccount: z.ZodObject<{
30765
30765
  }>>;
30766
30766
  }, "strip", z.ZodTypeAny, {
30767
30767
  account: `cF${string}`;
30768
- primary_collateral_asset: {
30768
+ collateral_topup_asset: {
30769
30769
  chain: "Bitcoin";
30770
30770
  asset: "BTC";
30771
30771
  } | {
@@ -30901,7 +30901,7 @@ declare const cfLoanAccount: z.ZodObject<{
30901
30901
  } | null;
30902
30902
  }, {
30903
30903
  account: string;
30904
- primary_collateral_asset: {
30904
+ collateral_topup_asset: {
30905
30905
  chain: "Bitcoin";
30906
30906
  asset: "BTC";
30907
30907
  } | {
@@ -31038,7 +31038,7 @@ declare const cfLoanAccount: z.ZodObject<{
31038
31038
  }>;
31039
31039
  declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31040
31040
  account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
31041
- primary_collateral_asset: z.ZodUnion<[z.ZodObject<{
31041
+ collateral_topup_asset: z.ZodUnion<[z.ZodObject<{
31042
31042
  chain: z.ZodLiteral<"Bitcoin">;
31043
31043
  asset: z.ZodLiteral<"BTC">;
31044
31044
  }, "strip", z.ZodTypeAny, {
@@ -31516,7 +31516,7 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31516
31516
  }>>;
31517
31517
  }, "strip", z.ZodTypeAny, {
31518
31518
  account: `cF${string}`;
31519
- primary_collateral_asset: {
31519
+ collateral_topup_asset: {
31520
31520
  chain: "Bitcoin";
31521
31521
  asset: "BTC";
31522
31522
  } | {
@@ -31652,7 +31652,7 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31652
31652
  } | null;
31653
31653
  }, {
31654
31654
  account: string;
31655
- primary_collateral_asset: {
31655
+ collateral_topup_asset: {
31656
31656
  chain: "Bitcoin";
31657
31657
  asset: "BTC";
31658
31658
  } | {
package/dist/parsers.mjs CHANGED
@@ -609,19 +609,19 @@ var cfLendingPools = z.array(
609
609
  );
610
610
  var cfLendingConfig = z.object({
611
611
  ltv_thresholds: z.object({
612
- target: z.number().nullable(),
612
+ target: z.number(),
613
613
  topup: z.number().nullable(),
614
- soft_liquidation: z.number().nullable(),
615
- soft_liquidation_abort: z.number().nullable(),
616
- hard_liquidation: z.number().nullable(),
617
- hard_liquidation_abort: z.number().nullable(),
614
+ soft_liquidation: z.number(),
615
+ soft_liquidation_abort: z.number(),
616
+ hard_liquidation: z.number(),
617
+ hard_liquidation_abort: z.number(),
618
618
  low_ltv: z.number().nullable()
619
619
  }),
620
620
  network_fee_contributions: z.object({
621
- extra_interest: z.number().nullable(),
621
+ extra_interest: z.number(),
622
622
  low_ltv_penalty_max: z.number().nullable(),
623
- from_origination_fee: z.number().nullable(),
624
- from_liquidation_fee: z.number().nullable()
623
+ from_origination_fee: z.number(),
624
+ from_liquidation_fee: z.number()
625
625
  }),
626
626
  fee_swap_interval_blocks: z.number(),
627
627
  interest_payment_interval_blocks: z.number(),
@@ -639,7 +639,7 @@ var cfLendingConfig = z.object({
639
639
  });
640
640
  var cfLoanAccount = z.object({
641
641
  account: accountId,
642
- primary_collateral_asset: rpcAssetSchema,
642
+ collateral_topup_asset: rpcAssetSchema,
643
643
  ltv_ratio: numberOrHex.nullable(),
644
644
  collateral: z.array(
645
645
  z.intersection(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "0.11.0",