@chainflip/rpc 2.1.9 → 2.1.10
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 +27 -27
- package/dist/common.d.mts +27 -27
- package/dist/parsers.cjs +3 -3
- package/dist/parsers.d.cts +27 -27
- package/dist/parsers.d.mts +27 -27
- package/dist/parsers.mjs +3 -3
- package/package.json +1 -1
package/dist/common.d.cts
CHANGED
|
@@ -29081,7 +29081,7 @@ declare const rpcResult: {
|
|
|
29081
29081
|
chain: string;
|
|
29082
29082
|
asset: string;
|
|
29083
29083
|
}[]>;
|
|
29084
|
-
add_collateral: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
29084
|
+
add_collateral: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
29085
29085
|
chain: z.ZodString;
|
|
29086
29086
|
asset: z.ZodString;
|
|
29087
29087
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -29138,8 +29138,8 @@ declare const rpcResult: {
|
|
|
29138
29138
|
})[], {
|
|
29139
29139
|
chain: string;
|
|
29140
29140
|
asset: string;
|
|
29141
|
-
}[]
|
|
29142
|
-
remove_collateral: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
29141
|
+
}[]>>;
|
|
29142
|
+
remove_collateral: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
29143
29143
|
chain: z.ZodString;
|
|
29144
29144
|
asset: z.ZodString;
|
|
29145
29145
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -29196,7 +29196,7 @@ declare const rpcResult: {
|
|
|
29196
29196
|
})[], {
|
|
29197
29197
|
chain: string;
|
|
29198
29198
|
asset: string;
|
|
29199
|
-
}[]
|
|
29199
|
+
}[]>>;
|
|
29200
29200
|
liquidations_enabled: z.ZodBoolean;
|
|
29201
29201
|
}, "strip", z.ZodTypeAny, {
|
|
29202
29202
|
add_boost_funds_enabled: boolean;
|
|
@@ -29339,7 +29339,8 @@ declare const rpcResult: {
|
|
|
29339
29339
|
chain: "Assethub";
|
|
29340
29340
|
asset: "USDT";
|
|
29341
29341
|
})[];
|
|
29342
|
-
|
|
29342
|
+
liquidations_enabled: boolean;
|
|
29343
|
+
add_collateral?: ({
|
|
29343
29344
|
chain: "Bitcoin";
|
|
29344
29345
|
asset: "BTC";
|
|
29345
29346
|
} | {
|
|
@@ -29384,8 +29385,8 @@ declare const rpcResult: {
|
|
|
29384
29385
|
} | {
|
|
29385
29386
|
chain: "Assethub";
|
|
29386
29387
|
asset: "USDT";
|
|
29387
|
-
})[];
|
|
29388
|
-
remove_collateral
|
|
29388
|
+
})[] | undefined;
|
|
29389
|
+
remove_collateral?: ({
|
|
29389
29390
|
chain: "Bitcoin";
|
|
29390
29391
|
asset: "BTC";
|
|
29391
29392
|
} | {
|
|
@@ -29430,8 +29431,7 @@ declare const rpcResult: {
|
|
|
29430
29431
|
} | {
|
|
29431
29432
|
chain: "Assethub";
|
|
29432
29433
|
asset: "USDT";
|
|
29433
|
-
})[];
|
|
29434
|
-
liquidations_enabled: boolean;
|
|
29434
|
+
})[] | undefined;
|
|
29435
29435
|
}, {
|
|
29436
29436
|
add_boost_funds_enabled: boolean;
|
|
29437
29437
|
stop_boosting_enabled: boolean;
|
|
@@ -29447,15 +29447,15 @@ declare const rpcResult: {
|
|
|
29447
29447
|
chain: string;
|
|
29448
29448
|
asset: string;
|
|
29449
29449
|
}[];
|
|
29450
|
-
|
|
29450
|
+
liquidations_enabled: boolean;
|
|
29451
|
+
add_collateral?: {
|
|
29451
29452
|
chain: string;
|
|
29452
29453
|
asset: string;
|
|
29453
|
-
}[];
|
|
29454
|
-
remove_collateral
|
|
29454
|
+
}[] | undefined;
|
|
29455
|
+
remove_collateral?: {
|
|
29455
29456
|
chain: string;
|
|
29456
29457
|
asset: string;
|
|
29457
|
-
}[];
|
|
29458
|
-
liquidations_enabled: boolean;
|
|
29458
|
+
}[] | undefined;
|
|
29459
29459
|
}>;
|
|
29460
29460
|
broadcast_ethereum: z.ZodObject<{
|
|
29461
29461
|
retry_enabled: z.ZodBoolean;
|
|
@@ -29832,7 +29832,8 @@ declare const rpcResult: {
|
|
|
29832
29832
|
chain: "Assethub";
|
|
29833
29833
|
asset: "USDT";
|
|
29834
29834
|
})[];
|
|
29835
|
-
|
|
29835
|
+
liquidations_enabled: boolean;
|
|
29836
|
+
add_collateral?: ({
|
|
29836
29837
|
chain: "Bitcoin";
|
|
29837
29838
|
asset: "BTC";
|
|
29838
29839
|
} | {
|
|
@@ -29877,8 +29878,8 @@ declare const rpcResult: {
|
|
|
29877
29878
|
} | {
|
|
29878
29879
|
chain: "Assethub";
|
|
29879
29880
|
asset: "USDT";
|
|
29880
|
-
})[];
|
|
29881
|
-
remove_collateral
|
|
29881
|
+
})[] | undefined;
|
|
29882
|
+
remove_collateral?: ({
|
|
29882
29883
|
chain: "Bitcoin";
|
|
29883
29884
|
asset: "BTC";
|
|
29884
29885
|
} | {
|
|
@@ -29923,8 +29924,7 @@ declare const rpcResult: {
|
|
|
29923
29924
|
} | {
|
|
29924
29925
|
chain: "Assethub";
|
|
29925
29926
|
asset: "USDT";
|
|
29926
|
-
})[];
|
|
29927
|
-
liquidations_enabled: boolean;
|
|
29927
|
+
})[] | undefined;
|
|
29928
29928
|
};
|
|
29929
29929
|
broadcast_ethereum: {
|
|
29930
29930
|
retry_enabled: boolean;
|
|
@@ -30063,15 +30063,15 @@ declare const rpcResult: {
|
|
|
30063
30063
|
chain: string;
|
|
30064
30064
|
asset: string;
|
|
30065
30065
|
}[];
|
|
30066
|
-
|
|
30066
|
+
liquidations_enabled: boolean;
|
|
30067
|
+
add_collateral?: {
|
|
30067
30068
|
chain: string;
|
|
30068
30069
|
asset: string;
|
|
30069
|
-
}[];
|
|
30070
|
-
remove_collateral
|
|
30070
|
+
}[] | undefined;
|
|
30071
|
+
remove_collateral?: {
|
|
30071
30072
|
chain: string;
|
|
30072
30073
|
asset: string;
|
|
30073
|
-
}[];
|
|
30074
|
-
liquidations_enabled: boolean;
|
|
30074
|
+
}[] | undefined;
|
|
30075
30075
|
};
|
|
30076
30076
|
broadcast_ethereum: {
|
|
30077
30077
|
retry_enabled: boolean;
|
|
@@ -30502,7 +30502,7 @@ declare const rpcResult: {
|
|
|
30502
30502
|
minimum_loan_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
30503
30503
|
minimum_supply_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
30504
30504
|
minimum_update_loan_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
30505
|
-
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
|
|
30505
|
+
minimum_update_collateral_amount_usd: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>>;
|
|
30506
30506
|
}, "strip", z.ZodTypeAny, {
|
|
30507
30507
|
ltv_thresholds: {
|
|
30508
30508
|
target: number;
|
|
@@ -30531,7 +30531,7 @@ declare const rpcResult: {
|
|
|
30531
30531
|
minimum_loan_amount_usd: bigint;
|
|
30532
30532
|
minimum_supply_amount_usd: bigint;
|
|
30533
30533
|
minimum_update_loan_amount_usd: bigint;
|
|
30534
|
-
minimum_update_collateral_amount_usd
|
|
30534
|
+
minimum_update_collateral_amount_usd?: bigint | undefined;
|
|
30535
30535
|
}, {
|
|
30536
30536
|
ltv_thresholds: {
|
|
30537
30537
|
target: number;
|
|
@@ -30560,7 +30560,7 @@ declare const rpcResult: {
|
|
|
30560
30560
|
minimum_loan_amount_usd: string | number;
|
|
30561
30561
|
minimum_supply_amount_usd: string | number;
|
|
30562
30562
|
minimum_update_loan_amount_usd: string | number;
|
|
30563
|
-
minimum_update_collateral_amount_usd
|
|
30563
|
+
minimum_update_collateral_amount_usd?: string | number | undefined;
|
|
30564
30564
|
}>;
|
|
30565
30565
|
readonly cf_loan_accounts: z.ZodArray<z.ZodObject<{
|
|
30566
30566
|
account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
package/dist/common.d.mts
CHANGED
|
@@ -29081,7 +29081,7 @@ declare const rpcResult: {
|
|
|
29081
29081
|
chain: string;
|
|
29082
29082
|
asset: string;
|
|
29083
29083
|
}[]>;
|
|
29084
|
-
add_collateral: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
29084
|
+
add_collateral: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
29085
29085
|
chain: z.ZodString;
|
|
29086
29086
|
asset: z.ZodString;
|
|
29087
29087
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -29138,8 +29138,8 @@ declare const rpcResult: {
|
|
|
29138
29138
|
})[], {
|
|
29139
29139
|
chain: string;
|
|
29140
29140
|
asset: string;
|
|
29141
|
-
}[]
|
|
29142
|
-
remove_collateral: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
29141
|
+
}[]>>;
|
|
29142
|
+
remove_collateral: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
29143
29143
|
chain: z.ZodString;
|
|
29144
29144
|
asset: z.ZodString;
|
|
29145
29145
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -29196,7 +29196,7 @@ declare const rpcResult: {
|
|
|
29196
29196
|
})[], {
|
|
29197
29197
|
chain: string;
|
|
29198
29198
|
asset: string;
|
|
29199
|
-
}[]
|
|
29199
|
+
}[]>>;
|
|
29200
29200
|
liquidations_enabled: z.ZodBoolean;
|
|
29201
29201
|
}, "strip", z.ZodTypeAny, {
|
|
29202
29202
|
add_boost_funds_enabled: boolean;
|
|
@@ -29339,7 +29339,8 @@ declare const rpcResult: {
|
|
|
29339
29339
|
chain: "Assethub";
|
|
29340
29340
|
asset: "USDT";
|
|
29341
29341
|
})[];
|
|
29342
|
-
|
|
29342
|
+
liquidations_enabled: boolean;
|
|
29343
|
+
add_collateral?: ({
|
|
29343
29344
|
chain: "Bitcoin";
|
|
29344
29345
|
asset: "BTC";
|
|
29345
29346
|
} | {
|
|
@@ -29384,8 +29385,8 @@ declare const rpcResult: {
|
|
|
29384
29385
|
} | {
|
|
29385
29386
|
chain: "Assethub";
|
|
29386
29387
|
asset: "USDT";
|
|
29387
|
-
})[];
|
|
29388
|
-
remove_collateral
|
|
29388
|
+
})[] | undefined;
|
|
29389
|
+
remove_collateral?: ({
|
|
29389
29390
|
chain: "Bitcoin";
|
|
29390
29391
|
asset: "BTC";
|
|
29391
29392
|
} | {
|
|
@@ -29430,8 +29431,7 @@ declare const rpcResult: {
|
|
|
29430
29431
|
} | {
|
|
29431
29432
|
chain: "Assethub";
|
|
29432
29433
|
asset: "USDT";
|
|
29433
|
-
})[];
|
|
29434
|
-
liquidations_enabled: boolean;
|
|
29434
|
+
})[] | undefined;
|
|
29435
29435
|
}, {
|
|
29436
29436
|
add_boost_funds_enabled: boolean;
|
|
29437
29437
|
stop_boosting_enabled: boolean;
|
|
@@ -29447,15 +29447,15 @@ declare const rpcResult: {
|
|
|
29447
29447
|
chain: string;
|
|
29448
29448
|
asset: string;
|
|
29449
29449
|
}[];
|
|
29450
|
-
|
|
29450
|
+
liquidations_enabled: boolean;
|
|
29451
|
+
add_collateral?: {
|
|
29451
29452
|
chain: string;
|
|
29452
29453
|
asset: string;
|
|
29453
|
-
}[];
|
|
29454
|
-
remove_collateral
|
|
29454
|
+
}[] | undefined;
|
|
29455
|
+
remove_collateral?: {
|
|
29455
29456
|
chain: string;
|
|
29456
29457
|
asset: string;
|
|
29457
|
-
}[];
|
|
29458
|
-
liquidations_enabled: boolean;
|
|
29458
|
+
}[] | undefined;
|
|
29459
29459
|
}>;
|
|
29460
29460
|
broadcast_ethereum: z.ZodObject<{
|
|
29461
29461
|
retry_enabled: z.ZodBoolean;
|
|
@@ -29832,7 +29832,8 @@ declare const rpcResult: {
|
|
|
29832
29832
|
chain: "Assethub";
|
|
29833
29833
|
asset: "USDT";
|
|
29834
29834
|
})[];
|
|
29835
|
-
|
|
29835
|
+
liquidations_enabled: boolean;
|
|
29836
|
+
add_collateral?: ({
|
|
29836
29837
|
chain: "Bitcoin";
|
|
29837
29838
|
asset: "BTC";
|
|
29838
29839
|
} | {
|
|
@@ -29877,8 +29878,8 @@ declare const rpcResult: {
|
|
|
29877
29878
|
} | {
|
|
29878
29879
|
chain: "Assethub";
|
|
29879
29880
|
asset: "USDT";
|
|
29880
|
-
})[];
|
|
29881
|
-
remove_collateral
|
|
29881
|
+
})[] | undefined;
|
|
29882
|
+
remove_collateral?: ({
|
|
29882
29883
|
chain: "Bitcoin";
|
|
29883
29884
|
asset: "BTC";
|
|
29884
29885
|
} | {
|
|
@@ -29923,8 +29924,7 @@ declare const rpcResult: {
|
|
|
29923
29924
|
} | {
|
|
29924
29925
|
chain: "Assethub";
|
|
29925
29926
|
asset: "USDT";
|
|
29926
|
-
})[];
|
|
29927
|
-
liquidations_enabled: boolean;
|
|
29927
|
+
})[] | undefined;
|
|
29928
29928
|
};
|
|
29929
29929
|
broadcast_ethereum: {
|
|
29930
29930
|
retry_enabled: boolean;
|
|
@@ -30063,15 +30063,15 @@ declare const rpcResult: {
|
|
|
30063
30063
|
chain: string;
|
|
30064
30064
|
asset: string;
|
|
30065
30065
|
}[];
|
|
30066
|
-
|
|
30066
|
+
liquidations_enabled: boolean;
|
|
30067
|
+
add_collateral?: {
|
|
30067
30068
|
chain: string;
|
|
30068
30069
|
asset: string;
|
|
30069
|
-
}[];
|
|
30070
|
-
remove_collateral
|
|
30070
|
+
}[] | undefined;
|
|
30071
|
+
remove_collateral?: {
|
|
30071
30072
|
chain: string;
|
|
30072
30073
|
asset: string;
|
|
30073
|
-
}[];
|
|
30074
|
-
liquidations_enabled: boolean;
|
|
30074
|
+
}[] | undefined;
|
|
30075
30075
|
};
|
|
30076
30076
|
broadcast_ethereum: {
|
|
30077
30077
|
retry_enabled: boolean;
|
|
@@ -30502,7 +30502,7 @@ declare const rpcResult: {
|
|
|
30502
30502
|
minimum_loan_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
30503
30503
|
minimum_supply_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
30504
30504
|
minimum_update_loan_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
30505
|
-
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
|
|
30505
|
+
minimum_update_collateral_amount_usd: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>>;
|
|
30506
30506
|
}, "strip", z.ZodTypeAny, {
|
|
30507
30507
|
ltv_thresholds: {
|
|
30508
30508
|
target: number;
|
|
@@ -30531,7 +30531,7 @@ declare const rpcResult: {
|
|
|
30531
30531
|
minimum_loan_amount_usd: bigint;
|
|
30532
30532
|
minimum_supply_amount_usd: bigint;
|
|
30533
30533
|
minimum_update_loan_amount_usd: bigint;
|
|
30534
|
-
minimum_update_collateral_amount_usd
|
|
30534
|
+
minimum_update_collateral_amount_usd?: bigint | undefined;
|
|
30535
30535
|
}, {
|
|
30536
30536
|
ltv_thresholds: {
|
|
30537
30537
|
target: number;
|
|
@@ -30560,7 +30560,7 @@ declare const rpcResult: {
|
|
|
30560
30560
|
minimum_loan_amount_usd: string | number;
|
|
30561
30561
|
minimum_supply_amount_usd: string | number;
|
|
30562
30562
|
minimum_update_loan_amount_usd: string | number;
|
|
30563
|
-
minimum_update_collateral_amount_usd
|
|
30563
|
+
minimum_update_collateral_amount_usd?: string | number | undefined;
|
|
30564
30564
|
}>;
|
|
30565
30565
|
readonly cf_loan_accounts: z.ZodArray<z.ZodObject<{
|
|
30566
30566
|
account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
package/dist/parsers.cjs
CHANGED
|
@@ -653,8 +653,8 @@ const cfSafeModeStatuses = zod.z.object({
|
|
|
653
653
|
borrowing: cfSupportedAssets,
|
|
654
654
|
add_lender_funds: cfSupportedAssets,
|
|
655
655
|
withdraw_lender_funds: cfSupportedAssets,
|
|
656
|
-
add_collateral: cfSupportedAssets,
|
|
657
|
-
remove_collateral: cfSupportedAssets,
|
|
656
|
+
add_collateral: cfSupportedAssets.optional(),
|
|
657
|
+
remove_collateral: cfSupportedAssets.optional(),
|
|
658
658
|
liquidations_enabled: zod.z.boolean()
|
|
659
659
|
}),
|
|
660
660
|
broadcast_ethereum: broadcastPalletSafeModeStatuses,
|
|
@@ -725,7 +725,7 @@ const cfLendingConfig = zod.z.object({
|
|
|
725
725
|
minimum_loan_amount_usd: numberOrHex,
|
|
726
726
|
minimum_supply_amount_usd: numberOrHex,
|
|
727
727
|
minimum_update_loan_amount_usd: numberOrHex,
|
|
728
|
-
minimum_update_collateral_amount_usd: numberOrHex
|
|
728
|
+
minimum_update_collateral_amount_usd: numberOrHex.optional()
|
|
729
729
|
});
|
|
730
730
|
const cfLoanAccount = zod.z.object({
|
|
731
731
|
account: accountId,
|
package/dist/parsers.d.cts
CHANGED
|
@@ -34870,7 +34870,7 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
34870
34870
|
chain: string;
|
|
34871
34871
|
asset: string;
|
|
34872
34872
|
}[]>;
|
|
34873
|
-
add_collateral: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
34873
|
+
add_collateral: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
34874
34874
|
chain: z.ZodString;
|
|
34875
34875
|
asset: z.ZodString;
|
|
34876
34876
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -34927,8 +34927,8 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
34927
34927
|
})[], {
|
|
34928
34928
|
chain: string;
|
|
34929
34929
|
asset: string;
|
|
34930
|
-
}[]
|
|
34931
|
-
remove_collateral: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
34930
|
+
}[]>>;
|
|
34931
|
+
remove_collateral: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
34932
34932
|
chain: z.ZodString;
|
|
34933
34933
|
asset: z.ZodString;
|
|
34934
34934
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -34985,7 +34985,7 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
34985
34985
|
})[], {
|
|
34986
34986
|
chain: string;
|
|
34987
34987
|
asset: string;
|
|
34988
|
-
}[]
|
|
34988
|
+
}[]>>;
|
|
34989
34989
|
liquidations_enabled: z.ZodBoolean;
|
|
34990
34990
|
}, "strip", z.ZodTypeAny, {
|
|
34991
34991
|
add_boost_funds_enabled: boolean;
|
|
@@ -35128,7 +35128,8 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35128
35128
|
chain: "Assethub";
|
|
35129
35129
|
asset: "USDT";
|
|
35130
35130
|
})[];
|
|
35131
|
-
|
|
35131
|
+
liquidations_enabled: boolean;
|
|
35132
|
+
add_collateral?: ({
|
|
35132
35133
|
chain: "Bitcoin";
|
|
35133
35134
|
asset: "BTC";
|
|
35134
35135
|
} | {
|
|
@@ -35173,8 +35174,8 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35173
35174
|
} | {
|
|
35174
35175
|
chain: "Assethub";
|
|
35175
35176
|
asset: "USDT";
|
|
35176
|
-
})[];
|
|
35177
|
-
remove_collateral
|
|
35177
|
+
})[] | undefined;
|
|
35178
|
+
remove_collateral?: ({
|
|
35178
35179
|
chain: "Bitcoin";
|
|
35179
35180
|
asset: "BTC";
|
|
35180
35181
|
} | {
|
|
@@ -35219,8 +35220,7 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35219
35220
|
} | {
|
|
35220
35221
|
chain: "Assethub";
|
|
35221
35222
|
asset: "USDT";
|
|
35222
|
-
})[];
|
|
35223
|
-
liquidations_enabled: boolean;
|
|
35223
|
+
})[] | undefined;
|
|
35224
35224
|
}, {
|
|
35225
35225
|
add_boost_funds_enabled: boolean;
|
|
35226
35226
|
stop_boosting_enabled: boolean;
|
|
@@ -35236,15 +35236,15 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35236
35236
|
chain: string;
|
|
35237
35237
|
asset: string;
|
|
35238
35238
|
}[];
|
|
35239
|
-
|
|
35239
|
+
liquidations_enabled: boolean;
|
|
35240
|
+
add_collateral?: {
|
|
35240
35241
|
chain: string;
|
|
35241
35242
|
asset: string;
|
|
35242
|
-
}[];
|
|
35243
|
-
remove_collateral
|
|
35243
|
+
}[] | undefined;
|
|
35244
|
+
remove_collateral?: {
|
|
35244
35245
|
chain: string;
|
|
35245
35246
|
asset: string;
|
|
35246
|
-
}[];
|
|
35247
|
-
liquidations_enabled: boolean;
|
|
35247
|
+
}[] | undefined;
|
|
35248
35248
|
}>;
|
|
35249
35249
|
broadcast_ethereum: z.ZodObject<{
|
|
35250
35250
|
retry_enabled: z.ZodBoolean;
|
|
@@ -35621,7 +35621,8 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35621
35621
|
chain: "Assethub";
|
|
35622
35622
|
asset: "USDT";
|
|
35623
35623
|
})[];
|
|
35624
|
-
|
|
35624
|
+
liquidations_enabled: boolean;
|
|
35625
|
+
add_collateral?: ({
|
|
35625
35626
|
chain: "Bitcoin";
|
|
35626
35627
|
asset: "BTC";
|
|
35627
35628
|
} | {
|
|
@@ -35666,8 +35667,8 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35666
35667
|
} | {
|
|
35667
35668
|
chain: "Assethub";
|
|
35668
35669
|
asset: "USDT";
|
|
35669
|
-
})[];
|
|
35670
|
-
remove_collateral
|
|
35670
|
+
})[] | undefined;
|
|
35671
|
+
remove_collateral?: ({
|
|
35671
35672
|
chain: "Bitcoin";
|
|
35672
35673
|
asset: "BTC";
|
|
35673
35674
|
} | {
|
|
@@ -35712,8 +35713,7 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35712
35713
|
} | {
|
|
35713
35714
|
chain: "Assethub";
|
|
35714
35715
|
asset: "USDT";
|
|
35715
|
-
})[];
|
|
35716
|
-
liquidations_enabled: boolean;
|
|
35716
|
+
})[] | undefined;
|
|
35717
35717
|
};
|
|
35718
35718
|
broadcast_ethereum: {
|
|
35719
35719
|
retry_enabled: boolean;
|
|
@@ -35852,15 +35852,15 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35852
35852
|
chain: string;
|
|
35853
35853
|
asset: string;
|
|
35854
35854
|
}[];
|
|
35855
|
-
|
|
35855
|
+
liquidations_enabled: boolean;
|
|
35856
|
+
add_collateral?: {
|
|
35856
35857
|
chain: string;
|
|
35857
35858
|
asset: string;
|
|
35858
|
-
}[];
|
|
35859
|
-
remove_collateral
|
|
35859
|
+
}[] | undefined;
|
|
35860
|
+
remove_collateral?: {
|
|
35860
35861
|
chain: string;
|
|
35861
35862
|
asset: string;
|
|
35862
|
-
}[];
|
|
35863
|
-
liquidations_enabled: boolean;
|
|
35863
|
+
}[] | undefined;
|
|
35864
35864
|
};
|
|
35865
35865
|
broadcast_ethereum: {
|
|
35866
35866
|
retry_enabled: boolean;
|
|
@@ -36267,7 +36267,7 @@ declare const cfLendingConfig: z.ZodObject<{
|
|
|
36267
36267
|
minimum_loan_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
36268
36268
|
minimum_supply_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
36269
36269
|
minimum_update_loan_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
36270
|
-
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
|
|
36270
|
+
minimum_update_collateral_amount_usd: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>>;
|
|
36271
36271
|
}, "strip", z.ZodTypeAny, {
|
|
36272
36272
|
ltv_thresholds: {
|
|
36273
36273
|
target: number;
|
|
@@ -36296,7 +36296,7 @@ declare const cfLendingConfig: z.ZodObject<{
|
|
|
36296
36296
|
minimum_loan_amount_usd: bigint;
|
|
36297
36297
|
minimum_supply_amount_usd: bigint;
|
|
36298
36298
|
minimum_update_loan_amount_usd: bigint;
|
|
36299
|
-
minimum_update_collateral_amount_usd
|
|
36299
|
+
minimum_update_collateral_amount_usd?: bigint | undefined;
|
|
36300
36300
|
}, {
|
|
36301
36301
|
ltv_thresholds: {
|
|
36302
36302
|
target: number;
|
|
@@ -36325,7 +36325,7 @@ declare const cfLendingConfig: z.ZodObject<{
|
|
|
36325
36325
|
minimum_loan_amount_usd: string | number;
|
|
36326
36326
|
minimum_supply_amount_usd: string | number;
|
|
36327
36327
|
minimum_update_loan_amount_usd: string | number;
|
|
36328
|
-
minimum_update_collateral_amount_usd
|
|
36328
|
+
minimum_update_collateral_amount_usd?: string | number | undefined;
|
|
36329
36329
|
}>;
|
|
36330
36330
|
declare const cfLoanAccount: z.ZodObject<{
|
|
36331
36331
|
account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
package/dist/parsers.d.mts
CHANGED
|
@@ -34870,7 +34870,7 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
34870
34870
|
chain: string;
|
|
34871
34871
|
asset: string;
|
|
34872
34872
|
}[]>;
|
|
34873
|
-
add_collateral: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
34873
|
+
add_collateral: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
34874
34874
|
chain: z.ZodString;
|
|
34875
34875
|
asset: z.ZodString;
|
|
34876
34876
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -34927,8 +34927,8 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
34927
34927
|
})[], {
|
|
34928
34928
|
chain: string;
|
|
34929
34929
|
asset: string;
|
|
34930
|
-
}[]
|
|
34931
|
-
remove_collateral: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
34930
|
+
}[]>>;
|
|
34931
|
+
remove_collateral: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
34932
34932
|
chain: z.ZodString;
|
|
34933
34933
|
asset: z.ZodString;
|
|
34934
34934
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -34985,7 +34985,7 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
34985
34985
|
})[], {
|
|
34986
34986
|
chain: string;
|
|
34987
34987
|
asset: string;
|
|
34988
|
-
}[]
|
|
34988
|
+
}[]>>;
|
|
34989
34989
|
liquidations_enabled: z.ZodBoolean;
|
|
34990
34990
|
}, "strip", z.ZodTypeAny, {
|
|
34991
34991
|
add_boost_funds_enabled: boolean;
|
|
@@ -35128,7 +35128,8 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35128
35128
|
chain: "Assethub";
|
|
35129
35129
|
asset: "USDT";
|
|
35130
35130
|
})[];
|
|
35131
|
-
|
|
35131
|
+
liquidations_enabled: boolean;
|
|
35132
|
+
add_collateral?: ({
|
|
35132
35133
|
chain: "Bitcoin";
|
|
35133
35134
|
asset: "BTC";
|
|
35134
35135
|
} | {
|
|
@@ -35173,8 +35174,8 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35173
35174
|
} | {
|
|
35174
35175
|
chain: "Assethub";
|
|
35175
35176
|
asset: "USDT";
|
|
35176
|
-
})[];
|
|
35177
|
-
remove_collateral
|
|
35177
|
+
})[] | undefined;
|
|
35178
|
+
remove_collateral?: ({
|
|
35178
35179
|
chain: "Bitcoin";
|
|
35179
35180
|
asset: "BTC";
|
|
35180
35181
|
} | {
|
|
@@ -35219,8 +35220,7 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35219
35220
|
} | {
|
|
35220
35221
|
chain: "Assethub";
|
|
35221
35222
|
asset: "USDT";
|
|
35222
|
-
})[];
|
|
35223
|
-
liquidations_enabled: boolean;
|
|
35223
|
+
})[] | undefined;
|
|
35224
35224
|
}, {
|
|
35225
35225
|
add_boost_funds_enabled: boolean;
|
|
35226
35226
|
stop_boosting_enabled: boolean;
|
|
@@ -35236,15 +35236,15 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35236
35236
|
chain: string;
|
|
35237
35237
|
asset: string;
|
|
35238
35238
|
}[];
|
|
35239
|
-
|
|
35239
|
+
liquidations_enabled: boolean;
|
|
35240
|
+
add_collateral?: {
|
|
35240
35241
|
chain: string;
|
|
35241
35242
|
asset: string;
|
|
35242
|
-
}[];
|
|
35243
|
-
remove_collateral
|
|
35243
|
+
}[] | undefined;
|
|
35244
|
+
remove_collateral?: {
|
|
35244
35245
|
chain: string;
|
|
35245
35246
|
asset: string;
|
|
35246
|
-
}[];
|
|
35247
|
-
liquidations_enabled: boolean;
|
|
35247
|
+
}[] | undefined;
|
|
35248
35248
|
}>;
|
|
35249
35249
|
broadcast_ethereum: z.ZodObject<{
|
|
35250
35250
|
retry_enabled: z.ZodBoolean;
|
|
@@ -35621,7 +35621,8 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35621
35621
|
chain: "Assethub";
|
|
35622
35622
|
asset: "USDT";
|
|
35623
35623
|
})[];
|
|
35624
|
-
|
|
35624
|
+
liquidations_enabled: boolean;
|
|
35625
|
+
add_collateral?: ({
|
|
35625
35626
|
chain: "Bitcoin";
|
|
35626
35627
|
asset: "BTC";
|
|
35627
35628
|
} | {
|
|
@@ -35666,8 +35667,8 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35666
35667
|
} | {
|
|
35667
35668
|
chain: "Assethub";
|
|
35668
35669
|
asset: "USDT";
|
|
35669
|
-
})[];
|
|
35670
|
-
remove_collateral
|
|
35670
|
+
})[] | undefined;
|
|
35671
|
+
remove_collateral?: ({
|
|
35671
35672
|
chain: "Bitcoin";
|
|
35672
35673
|
asset: "BTC";
|
|
35673
35674
|
} | {
|
|
@@ -35712,8 +35713,7 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35712
35713
|
} | {
|
|
35713
35714
|
chain: "Assethub";
|
|
35714
35715
|
asset: "USDT";
|
|
35715
|
-
})[];
|
|
35716
|
-
liquidations_enabled: boolean;
|
|
35716
|
+
})[] | undefined;
|
|
35717
35717
|
};
|
|
35718
35718
|
broadcast_ethereum: {
|
|
35719
35719
|
retry_enabled: boolean;
|
|
@@ -35852,15 +35852,15 @@ declare const cfSafeModeStatuses: z.ZodObject<{
|
|
|
35852
35852
|
chain: string;
|
|
35853
35853
|
asset: string;
|
|
35854
35854
|
}[];
|
|
35855
|
-
|
|
35855
|
+
liquidations_enabled: boolean;
|
|
35856
|
+
add_collateral?: {
|
|
35856
35857
|
chain: string;
|
|
35857
35858
|
asset: string;
|
|
35858
|
-
}[];
|
|
35859
|
-
remove_collateral
|
|
35859
|
+
}[] | undefined;
|
|
35860
|
+
remove_collateral?: {
|
|
35860
35861
|
chain: string;
|
|
35861
35862
|
asset: string;
|
|
35862
|
-
}[];
|
|
35863
|
-
liquidations_enabled: boolean;
|
|
35863
|
+
}[] | undefined;
|
|
35864
35864
|
};
|
|
35865
35865
|
broadcast_ethereum: {
|
|
35866
35866
|
retry_enabled: boolean;
|
|
@@ -36267,7 +36267,7 @@ declare const cfLendingConfig: z.ZodObject<{
|
|
|
36267
36267
|
minimum_loan_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
36268
36268
|
minimum_supply_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
36269
36269
|
minimum_update_loan_amount_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
|
|
36270
|
-
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
|
|
36270
|
+
minimum_update_collateral_amount_usd: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>>;
|
|
36271
36271
|
}, "strip", z.ZodTypeAny, {
|
|
36272
36272
|
ltv_thresholds: {
|
|
36273
36273
|
target: number;
|
|
@@ -36296,7 +36296,7 @@ declare const cfLendingConfig: z.ZodObject<{
|
|
|
36296
36296
|
minimum_loan_amount_usd: bigint;
|
|
36297
36297
|
minimum_supply_amount_usd: bigint;
|
|
36298
36298
|
minimum_update_loan_amount_usd: bigint;
|
|
36299
|
-
minimum_update_collateral_amount_usd
|
|
36299
|
+
minimum_update_collateral_amount_usd?: bigint | undefined;
|
|
36300
36300
|
}, {
|
|
36301
36301
|
ltv_thresholds: {
|
|
36302
36302
|
target: number;
|
|
@@ -36325,7 +36325,7 @@ declare const cfLendingConfig: z.ZodObject<{
|
|
|
36325
36325
|
minimum_loan_amount_usd: string | number;
|
|
36326
36326
|
minimum_supply_amount_usd: string | number;
|
|
36327
36327
|
minimum_update_loan_amount_usd: string | number;
|
|
36328
|
-
minimum_update_collateral_amount_usd
|
|
36328
|
+
minimum_update_collateral_amount_usd?: string | number | undefined;
|
|
36329
36329
|
}>;
|
|
36330
36330
|
declare const cfLoanAccount: z.ZodObject<{
|
|
36331
36331
|
account: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
package/dist/parsers.mjs
CHANGED
|
@@ -650,8 +650,8 @@ const cfSafeModeStatuses = z.object({
|
|
|
650
650
|
borrowing: cfSupportedAssets,
|
|
651
651
|
add_lender_funds: cfSupportedAssets,
|
|
652
652
|
withdraw_lender_funds: cfSupportedAssets,
|
|
653
|
-
add_collateral: cfSupportedAssets,
|
|
654
|
-
remove_collateral: cfSupportedAssets,
|
|
653
|
+
add_collateral: cfSupportedAssets.optional(),
|
|
654
|
+
remove_collateral: cfSupportedAssets.optional(),
|
|
655
655
|
liquidations_enabled: z.boolean()
|
|
656
656
|
}),
|
|
657
657
|
broadcast_ethereum: broadcastPalletSafeModeStatuses,
|
|
@@ -722,7 +722,7 @@ const cfLendingConfig = z.object({
|
|
|
722
722
|
minimum_loan_amount_usd: numberOrHex,
|
|
723
723
|
minimum_supply_amount_usd: numberOrHex,
|
|
724
724
|
minimum_update_loan_amount_usd: numberOrHex,
|
|
725
|
-
minimum_update_collateral_amount_usd: numberOrHex
|
|
725
|
+
minimum_update_collateral_amount_usd: numberOrHex.optional()
|
|
726
726
|
});
|
|
727
727
|
const cfLoanAccount = z.object({
|
|
728
728
|
account: accountId,
|