@chainflip/rpc 1.11.14 → 2.0.0

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
@@ -46,6 +46,7 @@ var _parserscjs = require('./parsers.cjs');
46
46
 
47
47
  var rpcResult = {
48
48
  broker_request_swap_deposit_address: _parserscjs.brokerRequestSwapDepositAddress,
49
+ broker_request_account_creation_deposit_address: _parserscjs.brokerRequestSwapDepositAddress,
49
50
  broker_request_swap_parameter_encoding: _parserscjs.requestSwapParameterEncoding,
50
51
  cf_request_swap_parameter_encoding: _parserscjs.requestSwapParameterEncoding,
51
52
  cf_accounts: _parserscjs.cfAccounts,
package/dist/common.d.cts CHANGED
@@ -94,6 +94,22 @@ type RpcRequest = WithHash<{
94
94
  fillOrKillParams: FillOrKillParams,
95
95
  dcaParams?: Nullish<DcaParams>
96
96
  ];
97
+ broker_request_account_creation_deposit_address: [
98
+ asset: UncheckedAssetAndChain,
99
+ refundAddress: string,
100
+ boostFee: Nullish<number>,
101
+ signatureData: {
102
+ Ethereum: {
103
+ signature: HexString;
104
+ signer: HexString;
105
+ sigType: 'Eip712';
106
+ };
107
+ },
108
+ transactionMetadata: {
109
+ nonce: number;
110
+ expiryBlock: number;
111
+ }
112
+ ];
97
113
  broker_request_swap_parameter_encoding: RequestSwapParameterEncodingParams;
98
114
  cf_request_swap_parameter_encoding: [
99
115
  brokerAccountId: string,
@@ -220,6 +236,25 @@ declare const rpcResult: {
220
236
  source_chain_expiry_block: string | number;
221
237
  channel_opening_fee: string;
222
238
  }>;
239
+ readonly broker_request_account_creation_deposit_address: z.ZodObject<{
240
+ address: z.ZodString;
241
+ issued_block: z.ZodNumber;
242
+ channel_id: z.ZodNumber;
243
+ source_chain_expiry_block: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
244
+ channel_opening_fee: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ address: string;
247
+ issued_block: number;
248
+ channel_id: number;
249
+ source_chain_expiry_block: bigint;
250
+ channel_opening_fee: bigint;
251
+ }, {
252
+ address: string;
253
+ issued_block: number;
254
+ channel_id: number;
255
+ source_chain_expiry_block: string | number;
256
+ channel_opening_fee: string;
257
+ }>;
223
258
  readonly broker_request_swap_parameter_encoding: z.ZodDiscriminatedUnion<"chain", [z.ZodObject<{
224
259
  chain: z.ZodLiteral<"Bitcoin">;
225
260
  nulldata_payload: z.ZodEffects<z.ZodString, `0x${string}`, string>;
@@ -26059,7 +26094,7 @@ declare const rpcResult: {
26059
26094
  chain: "Assethub";
26060
26095
  asset: "USDT";
26061
26096
  }>]>;
26062
- ltv_ratio: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
26097
+ ltv_ratio: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>>;
26063
26098
  collateral: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
26064
26099
  chain: z.ZodLiteral<"Bitcoin">;
26065
26100
  asset: z.ZodLiteral<"BTC">;
@@ -26459,7 +26494,7 @@ declare const rpcResult: {
26459
26494
  chain: "Assethub";
26460
26495
  asset: "USDT";
26461
26496
  };
26462
- ltv_ratio: bigint;
26497
+ ltv_ratio: bigint | null;
26463
26498
  collateral: (({
26464
26499
  chain: "Bitcoin";
26465
26500
  asset: "BTC";
@@ -26595,7 +26630,7 @@ declare const rpcResult: {
26595
26630
  chain: "Assethub";
26596
26631
  asset: "USDT";
26597
26632
  };
26598
- ltv_ratio: string | number;
26633
+ ltv_ratio: string | number | null;
26599
26634
  collateral: (({
26600
26635
  chain: "Bitcoin";
26601
26636
  asset: "BTC";
package/dist/common.d.ts CHANGED
@@ -94,6 +94,22 @@ type RpcRequest = WithHash<{
94
94
  fillOrKillParams: FillOrKillParams,
95
95
  dcaParams?: Nullish<DcaParams>
96
96
  ];
97
+ broker_request_account_creation_deposit_address: [
98
+ asset: UncheckedAssetAndChain,
99
+ refundAddress: string,
100
+ boostFee: Nullish<number>,
101
+ signatureData: {
102
+ Ethereum: {
103
+ signature: HexString;
104
+ signer: HexString;
105
+ sigType: 'Eip712';
106
+ };
107
+ },
108
+ transactionMetadata: {
109
+ nonce: number;
110
+ expiryBlock: number;
111
+ }
112
+ ];
97
113
  broker_request_swap_parameter_encoding: RequestSwapParameterEncodingParams;
98
114
  cf_request_swap_parameter_encoding: [
99
115
  brokerAccountId: string,
@@ -220,6 +236,25 @@ declare const rpcResult: {
220
236
  source_chain_expiry_block: string | number;
221
237
  channel_opening_fee: string;
222
238
  }>;
239
+ readonly broker_request_account_creation_deposit_address: z.ZodObject<{
240
+ address: z.ZodString;
241
+ issued_block: z.ZodNumber;
242
+ channel_id: z.ZodNumber;
243
+ source_chain_expiry_block: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
244
+ channel_opening_fee: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ address: string;
247
+ issued_block: number;
248
+ channel_id: number;
249
+ source_chain_expiry_block: bigint;
250
+ channel_opening_fee: bigint;
251
+ }, {
252
+ address: string;
253
+ issued_block: number;
254
+ channel_id: number;
255
+ source_chain_expiry_block: string | number;
256
+ channel_opening_fee: string;
257
+ }>;
223
258
  readonly broker_request_swap_parameter_encoding: z.ZodDiscriminatedUnion<"chain", [z.ZodObject<{
224
259
  chain: z.ZodLiteral<"Bitcoin">;
225
260
  nulldata_payload: z.ZodEffects<z.ZodString, `0x${string}`, string>;
@@ -26059,7 +26094,7 @@ declare const rpcResult: {
26059
26094
  chain: "Assethub";
26060
26095
  asset: "USDT";
26061
26096
  }>]>;
26062
- ltv_ratio: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
26097
+ ltv_ratio: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>>;
26063
26098
  collateral: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
26064
26099
  chain: z.ZodLiteral<"Bitcoin">;
26065
26100
  asset: z.ZodLiteral<"BTC">;
@@ -26459,7 +26494,7 @@ declare const rpcResult: {
26459
26494
  chain: "Assethub";
26460
26495
  asset: "USDT";
26461
26496
  };
26462
- ltv_ratio: bigint;
26497
+ ltv_ratio: bigint | null;
26463
26498
  collateral: (({
26464
26499
  chain: "Bitcoin";
26465
26500
  asset: "BTC";
@@ -26595,7 +26630,7 @@ declare const rpcResult: {
26595
26630
  chain: "Assethub";
26596
26631
  asset: "USDT";
26597
26632
  };
26598
- ltv_ratio: string | number;
26633
+ ltv_ratio: string | number | null;
26599
26634
  collateral: (({
26600
26635
  chain: "Bitcoin";
26601
26636
  asset: "BTC";
package/dist/common.mjs CHANGED
@@ -46,6 +46,7 @@ import {
46
46
  import { rpcResponse } from "./parsers.mjs";
47
47
  var rpcResult = {
48
48
  broker_request_swap_deposit_address: brokerRequestSwapDepositAddress,
49
+ broker_request_account_creation_deposit_address: brokerRequestSwapDepositAddress,
49
50
  broker_request_swap_parameter_encoding: requestSwapParameterEncoding,
50
51
  cf_request_swap_parameter_encoding: requestSwapParameterEncoding,
51
52
  cf_accounts: cfAccounts,
package/dist/parsers.cjs CHANGED
@@ -630,7 +630,7 @@ var cfLendingConfig = _zod.z.object({
630
630
  var cfLoanAccount = _zod.z.object({
631
631
  account: accountId,
632
632
  primary_collateral_asset: rpcAssetSchema,
633
- ltv_ratio: numberOrHex,
633
+ ltv_ratio: numberOrHex.nullable(),
634
634
  collateral: _zod.z.array(
635
635
  _zod.z.intersection(
636
636
  rpcAssetSchema,
@@ -30377,7 +30377,7 @@ declare const cfLoanAccount: z.ZodObject<{
30377
30377
  chain: "Assethub";
30378
30378
  asset: "USDT";
30379
30379
  }>]>;
30380
- ltv_ratio: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
30380
+ ltv_ratio: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>>;
30381
30381
  collateral: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
30382
30382
  chain: z.ZodLiteral<"Bitcoin">;
30383
30383
  asset: z.ZodLiteral<"BTC">;
@@ -30777,7 +30777,7 @@ declare const cfLoanAccount: z.ZodObject<{
30777
30777
  chain: "Assethub";
30778
30778
  asset: "USDT";
30779
30779
  };
30780
- ltv_ratio: bigint;
30780
+ ltv_ratio: bigint | null;
30781
30781
  collateral: (({
30782
30782
  chain: "Bitcoin";
30783
30783
  asset: "BTC";
@@ -30913,7 +30913,7 @@ declare const cfLoanAccount: z.ZodObject<{
30913
30913
  chain: "Assethub";
30914
30914
  asset: "USDT";
30915
30915
  };
30916
- ltv_ratio: string | number;
30916
+ ltv_ratio: string | number | null;
30917
30917
  collateral: (({
30918
30918
  chain: "Bitcoin";
30919
30919
  asset: "BTC";
@@ -31128,7 +31128,7 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31128
31128
  chain: "Assethub";
31129
31129
  asset: "USDT";
31130
31130
  }>]>;
31131
- ltv_ratio: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
31131
+ ltv_ratio: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>>;
31132
31132
  collateral: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
31133
31133
  chain: z.ZodLiteral<"Bitcoin">;
31134
31134
  asset: z.ZodLiteral<"BTC">;
@@ -31528,7 +31528,7 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31528
31528
  chain: "Assethub";
31529
31529
  asset: "USDT";
31530
31530
  };
31531
- ltv_ratio: bigint;
31531
+ ltv_ratio: bigint | null;
31532
31532
  collateral: (({
31533
31533
  chain: "Bitcoin";
31534
31534
  asset: "BTC";
@@ -31664,7 +31664,7 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31664
31664
  chain: "Assethub";
31665
31665
  asset: "USDT";
31666
31666
  };
31667
- ltv_ratio: string | number;
31667
+ ltv_ratio: string | number | null;
31668
31668
  collateral: (({
31669
31669
  chain: "Bitcoin";
31670
31670
  asset: "BTC";
package/dist/parsers.d.ts CHANGED
@@ -30377,7 +30377,7 @@ declare const cfLoanAccount: z.ZodObject<{
30377
30377
  chain: "Assethub";
30378
30378
  asset: "USDT";
30379
30379
  }>]>;
30380
- ltv_ratio: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
30380
+ ltv_ratio: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>>;
30381
30381
  collateral: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
30382
30382
  chain: z.ZodLiteral<"Bitcoin">;
30383
30383
  asset: z.ZodLiteral<"BTC">;
@@ -30777,7 +30777,7 @@ declare const cfLoanAccount: z.ZodObject<{
30777
30777
  chain: "Assethub";
30778
30778
  asset: "USDT";
30779
30779
  };
30780
- ltv_ratio: bigint;
30780
+ ltv_ratio: bigint | null;
30781
30781
  collateral: (({
30782
30782
  chain: "Bitcoin";
30783
30783
  asset: "BTC";
@@ -30913,7 +30913,7 @@ declare const cfLoanAccount: z.ZodObject<{
30913
30913
  chain: "Assethub";
30914
30914
  asset: "USDT";
30915
30915
  };
30916
- ltv_ratio: string | number;
30916
+ ltv_ratio: string | number | null;
30917
30917
  collateral: (({
30918
30918
  chain: "Bitcoin";
30919
30919
  asset: "BTC";
@@ -31128,7 +31128,7 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31128
31128
  chain: "Assethub";
31129
31129
  asset: "USDT";
31130
31130
  }>]>;
31131
- ltv_ratio: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
31131
+ ltv_ratio: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>>;
31132
31132
  collateral: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
31133
31133
  chain: z.ZodLiteral<"Bitcoin">;
31134
31134
  asset: z.ZodLiteral<"BTC">;
@@ -31528,7 +31528,7 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31528
31528
  chain: "Assethub";
31529
31529
  asset: "USDT";
31530
31530
  };
31531
- ltv_ratio: bigint;
31531
+ ltv_ratio: bigint | null;
31532
31532
  collateral: (({
31533
31533
  chain: "Bitcoin";
31534
31534
  asset: "BTC";
@@ -31664,7 +31664,7 @@ declare const cfLoanAccounts: z.ZodArray<z.ZodObject<{
31664
31664
  chain: "Assethub";
31665
31665
  asset: "USDT";
31666
31666
  };
31667
- ltv_ratio: string | number;
31667
+ ltv_ratio: string | number | null;
31668
31668
  collateral: (({
31669
31669
  chain: "Bitcoin";
31670
31670
  asset: "BTC";
package/dist/parsers.mjs CHANGED
@@ -630,7 +630,7 @@ var cfLendingConfig = z.object({
630
630
  var cfLoanAccount = z.object({
631
631
  account: accountId,
632
632
  primary_collateral_asset: rpcAssetSchema,
633
- ltv_ratio: numberOrHex,
633
+ ltv_ratio: numberOrHex.nullable(),
634
634
  collateral: z.array(
635
635
  z.intersection(
636
636
  rpcAssetSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "1.11.14",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "0.11.0",