@chainflip/rpc 1.11.0-beta.3 → 1.11.0-beta.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 +19 -16
- package/dist/common.d.ts +19 -16
- package/dist/parsers.cjs +9 -9
- package/dist/parsers.d.cts +33 -27
- package/dist/parsers.d.ts +33 -27
- package/dist/parsers.mjs +9 -9
- package/package.json +2 -2
package/dist/common.d.cts
CHANGED
|
@@ -690,11 +690,11 @@ declare const rpcResult: {
|
|
|
690
690
|
}>;
|
|
691
691
|
btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
692
692
|
affiliates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
693
|
-
account_id: z.ZodString
|
|
693
|
+
account_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
694
694
|
short_id: z.ZodNumber;
|
|
695
695
|
withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
696
696
|
}, "strip", z.ZodTypeAny, {
|
|
697
|
-
account_id: string
|
|
697
|
+
account_id: `cF${string}`;
|
|
698
698
|
short_id: number;
|
|
699
699
|
withdrawal_address: `0x${string}`;
|
|
700
700
|
}, {
|
|
@@ -734,7 +734,7 @@ declare const rpcResult: {
|
|
|
734
734
|
};
|
|
735
735
|
};
|
|
736
736
|
affiliates: {
|
|
737
|
-
account_id: string
|
|
737
|
+
account_id: `cF${string}`;
|
|
738
738
|
short_id: number;
|
|
739
739
|
withdrawal_address: `0x${string}`;
|
|
740
740
|
}[];
|
|
@@ -779,8 +779,8 @@ declare const rpcResult: {
|
|
|
779
779
|
}>, z.ZodObject<{
|
|
780
780
|
flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
781
781
|
role: z.ZodLiteral<"operator">;
|
|
782
|
-
managed_validators: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
783
|
-
delegators: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
782
|
+
managed_validators: z.ZodRecord<z.ZodEffects<z.ZodString, `cF${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
783
|
+
delegators: z.ZodRecord<z.ZodEffects<z.ZodString, `cF${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
784
784
|
settings: z.ZodObject<{
|
|
785
785
|
fee_bps: z.ZodNumber;
|
|
786
786
|
delegation_acceptance: z.ZodEnum<["Allow", "Deny"]>;
|
|
@@ -791,19 +791,19 @@ declare const rpcResult: {
|
|
|
791
791
|
fee_bps: number;
|
|
792
792
|
delegation_acceptance: "Allow" | "Deny";
|
|
793
793
|
}>;
|
|
794
|
-
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
795
|
-
blocked: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
794
|
+
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `cF${string}`, string>, "many">>>;
|
|
795
|
+
blocked: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `cF${string}`, string>, "many">>>;
|
|
796
796
|
}, "strip", z.ZodTypeAny, {
|
|
797
797
|
role: "operator";
|
|
798
798
|
flip_balance: bigint;
|
|
799
|
-
managed_validators: Record
|
|
800
|
-
delegators: Record
|
|
799
|
+
managed_validators: Partial<Record<`cF${string}`, bigint>>;
|
|
800
|
+
delegators: Partial<Record<`cF${string}`, bigint>>;
|
|
801
801
|
settings: {
|
|
802
802
|
fee_bps: number;
|
|
803
803
|
delegation_acceptance: "Allow" | "Deny";
|
|
804
804
|
};
|
|
805
|
-
allowed: string[];
|
|
806
|
-
blocked: string[];
|
|
805
|
+
allowed: `cF${string}`[];
|
|
806
|
+
blocked: `cF${string}`[];
|
|
807
807
|
}, {
|
|
808
808
|
role: "operator";
|
|
809
809
|
flip_balance: string | number;
|
|
@@ -2093,6 +2093,7 @@ declare const rpcResult: {
|
|
|
2093
2093
|
apy_bp: z.ZodNullable<z.ZodNumber>;
|
|
2094
2094
|
restricted_balances: z.ZodRecord<z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
2095
2095
|
estimated_redeemable_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
2096
|
+
operator: z.ZodOptional<z.ZodEffects<z.ZodString, `cF${string}`, string>>;
|
|
2096
2097
|
}, "strip", z.ZodTypeAny, {
|
|
2097
2098
|
role: "validator";
|
|
2098
2099
|
flip_balance: bigint;
|
|
@@ -2109,6 +2110,7 @@ declare const rpcResult: {
|
|
|
2109
2110
|
apy_bp: number | null;
|
|
2110
2111
|
restricted_balances: Partial<Record<`0x${string}`, bigint>>;
|
|
2111
2112
|
estimated_redeemable_balance: bigint;
|
|
2113
|
+
operator?: `cF${string}` | undefined;
|
|
2112
2114
|
}, {
|
|
2113
2115
|
role: "validator";
|
|
2114
2116
|
flip_balance: string | number;
|
|
@@ -2125,6 +2127,7 @@ declare const rpcResult: {
|
|
|
2125
2127
|
apy_bp: number | null;
|
|
2126
2128
|
restricted_balances: Record<string, string | number>;
|
|
2127
2129
|
estimated_redeemable_balance: string | number;
|
|
2130
|
+
operator?: string | undefined;
|
|
2128
2131
|
}>]>;
|
|
2129
2132
|
readonly cf_pool_depth: z.ZodNullable<z.ZodObject<{
|
|
2130
2133
|
asks: z.ZodObject<{
|
|
@@ -20024,7 +20027,7 @@ declare const rpcResult: {
|
|
|
20024
20027
|
redemption_period_as_percentage: z.ZodNumber;
|
|
20025
20028
|
min_funding: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
20026
20029
|
auction_size_range: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
20027
|
-
min_active_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]
|
|
20030
|
+
min_active_bid: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
20028
20031
|
min_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
20029
20032
|
}, "strip", z.ZodTypeAny, {
|
|
20030
20033
|
epoch_duration: number;
|
|
@@ -20032,7 +20035,7 @@ declare const rpcResult: {
|
|
|
20032
20035
|
redemption_period_as_percentage: number;
|
|
20033
20036
|
min_funding: bigint;
|
|
20034
20037
|
auction_size_range: [number, number];
|
|
20035
|
-
min_active_bid: bigint;
|
|
20038
|
+
min_active_bid: bigint | null;
|
|
20036
20039
|
min_bid: bigint;
|
|
20037
20040
|
}, {
|
|
20038
20041
|
epoch_duration: number;
|
|
@@ -20040,7 +20043,7 @@ declare const rpcResult: {
|
|
|
20040
20043
|
redemption_period_as_percentage: number;
|
|
20041
20044
|
min_funding: string | number;
|
|
20042
20045
|
auction_size_range: [number, number];
|
|
20043
|
-
min_active_bid: string | number;
|
|
20046
|
+
min_active_bid: string | number | null;
|
|
20044
20047
|
min_bid: string | number;
|
|
20045
20048
|
}>, Omit<{
|
|
20046
20049
|
epoch_duration: number;
|
|
@@ -20048,7 +20051,7 @@ declare const rpcResult: {
|
|
|
20048
20051
|
redemption_period_as_percentage: number;
|
|
20049
20052
|
min_funding: bigint;
|
|
20050
20053
|
auction_size_range: [number, number];
|
|
20051
|
-
min_active_bid: bigint;
|
|
20054
|
+
min_active_bid: bigint | null;
|
|
20052
20055
|
min_bid: bigint;
|
|
20053
20056
|
}, "epoch_duration"> & {
|
|
20054
20057
|
readonly epoch_duration_blocks: number;
|
|
@@ -20058,7 +20061,7 @@ declare const rpcResult: {
|
|
|
20058
20061
|
redemption_period_as_percentage: number;
|
|
20059
20062
|
min_funding: string | number;
|
|
20060
20063
|
auction_size_range: [number, number];
|
|
20061
|
-
min_active_bid: string | number;
|
|
20064
|
+
min_active_bid: string | number | null;
|
|
20062
20065
|
min_bid: string | number;
|
|
20063
20066
|
}>;
|
|
20064
20067
|
readonly cf_flip_supply: z.ZodEffects<z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>], null>, {
|
package/dist/common.d.ts
CHANGED
|
@@ -690,11 +690,11 @@ declare const rpcResult: {
|
|
|
690
690
|
}>;
|
|
691
691
|
btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
692
692
|
affiliates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
693
|
-
account_id: z.ZodString
|
|
693
|
+
account_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
694
694
|
short_id: z.ZodNumber;
|
|
695
695
|
withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
696
696
|
}, "strip", z.ZodTypeAny, {
|
|
697
|
-
account_id: string
|
|
697
|
+
account_id: `cF${string}`;
|
|
698
698
|
short_id: number;
|
|
699
699
|
withdrawal_address: `0x${string}`;
|
|
700
700
|
}, {
|
|
@@ -734,7 +734,7 @@ declare const rpcResult: {
|
|
|
734
734
|
};
|
|
735
735
|
};
|
|
736
736
|
affiliates: {
|
|
737
|
-
account_id: string
|
|
737
|
+
account_id: `cF${string}`;
|
|
738
738
|
short_id: number;
|
|
739
739
|
withdrawal_address: `0x${string}`;
|
|
740
740
|
}[];
|
|
@@ -779,8 +779,8 @@ declare const rpcResult: {
|
|
|
779
779
|
}>, z.ZodObject<{
|
|
780
780
|
flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
781
781
|
role: z.ZodLiteral<"operator">;
|
|
782
|
-
managed_validators: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
783
|
-
delegators: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
782
|
+
managed_validators: z.ZodRecord<z.ZodEffects<z.ZodString, `cF${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
783
|
+
delegators: z.ZodRecord<z.ZodEffects<z.ZodString, `cF${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
784
784
|
settings: z.ZodObject<{
|
|
785
785
|
fee_bps: z.ZodNumber;
|
|
786
786
|
delegation_acceptance: z.ZodEnum<["Allow", "Deny"]>;
|
|
@@ -791,19 +791,19 @@ declare const rpcResult: {
|
|
|
791
791
|
fee_bps: number;
|
|
792
792
|
delegation_acceptance: "Allow" | "Deny";
|
|
793
793
|
}>;
|
|
794
|
-
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
795
|
-
blocked: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
794
|
+
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `cF${string}`, string>, "many">>>;
|
|
795
|
+
blocked: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `cF${string}`, string>, "many">>>;
|
|
796
796
|
}, "strip", z.ZodTypeAny, {
|
|
797
797
|
role: "operator";
|
|
798
798
|
flip_balance: bigint;
|
|
799
|
-
managed_validators: Record
|
|
800
|
-
delegators: Record
|
|
799
|
+
managed_validators: Partial<Record<`cF${string}`, bigint>>;
|
|
800
|
+
delegators: Partial<Record<`cF${string}`, bigint>>;
|
|
801
801
|
settings: {
|
|
802
802
|
fee_bps: number;
|
|
803
803
|
delegation_acceptance: "Allow" | "Deny";
|
|
804
804
|
};
|
|
805
|
-
allowed: string[];
|
|
806
|
-
blocked: string[];
|
|
805
|
+
allowed: `cF${string}`[];
|
|
806
|
+
blocked: `cF${string}`[];
|
|
807
807
|
}, {
|
|
808
808
|
role: "operator";
|
|
809
809
|
flip_balance: string | number;
|
|
@@ -2093,6 +2093,7 @@ declare const rpcResult: {
|
|
|
2093
2093
|
apy_bp: z.ZodNullable<z.ZodNumber>;
|
|
2094
2094
|
restricted_balances: z.ZodRecord<z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
2095
2095
|
estimated_redeemable_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
2096
|
+
operator: z.ZodOptional<z.ZodEffects<z.ZodString, `cF${string}`, string>>;
|
|
2096
2097
|
}, "strip", z.ZodTypeAny, {
|
|
2097
2098
|
role: "validator";
|
|
2098
2099
|
flip_balance: bigint;
|
|
@@ -2109,6 +2110,7 @@ declare const rpcResult: {
|
|
|
2109
2110
|
apy_bp: number | null;
|
|
2110
2111
|
restricted_balances: Partial<Record<`0x${string}`, bigint>>;
|
|
2111
2112
|
estimated_redeemable_balance: bigint;
|
|
2113
|
+
operator?: `cF${string}` | undefined;
|
|
2112
2114
|
}, {
|
|
2113
2115
|
role: "validator";
|
|
2114
2116
|
flip_balance: string | number;
|
|
@@ -2125,6 +2127,7 @@ declare const rpcResult: {
|
|
|
2125
2127
|
apy_bp: number | null;
|
|
2126
2128
|
restricted_balances: Record<string, string | number>;
|
|
2127
2129
|
estimated_redeemable_balance: string | number;
|
|
2130
|
+
operator?: string | undefined;
|
|
2128
2131
|
}>]>;
|
|
2129
2132
|
readonly cf_pool_depth: z.ZodNullable<z.ZodObject<{
|
|
2130
2133
|
asks: z.ZodObject<{
|
|
@@ -20024,7 +20027,7 @@ declare const rpcResult: {
|
|
|
20024
20027
|
redemption_period_as_percentage: z.ZodNumber;
|
|
20025
20028
|
min_funding: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
20026
20029
|
auction_size_range: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
20027
|
-
min_active_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]
|
|
20030
|
+
min_active_bid: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
20028
20031
|
min_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
20029
20032
|
}, "strip", z.ZodTypeAny, {
|
|
20030
20033
|
epoch_duration: number;
|
|
@@ -20032,7 +20035,7 @@ declare const rpcResult: {
|
|
|
20032
20035
|
redemption_period_as_percentage: number;
|
|
20033
20036
|
min_funding: bigint;
|
|
20034
20037
|
auction_size_range: [number, number];
|
|
20035
|
-
min_active_bid: bigint;
|
|
20038
|
+
min_active_bid: bigint | null;
|
|
20036
20039
|
min_bid: bigint;
|
|
20037
20040
|
}, {
|
|
20038
20041
|
epoch_duration: number;
|
|
@@ -20040,7 +20043,7 @@ declare const rpcResult: {
|
|
|
20040
20043
|
redemption_period_as_percentage: number;
|
|
20041
20044
|
min_funding: string | number;
|
|
20042
20045
|
auction_size_range: [number, number];
|
|
20043
|
-
min_active_bid: string | number;
|
|
20046
|
+
min_active_bid: string | number | null;
|
|
20044
20047
|
min_bid: string | number;
|
|
20045
20048
|
}>, Omit<{
|
|
20046
20049
|
epoch_duration: number;
|
|
@@ -20048,7 +20051,7 @@ declare const rpcResult: {
|
|
|
20048
20051
|
redemption_period_as_percentage: number;
|
|
20049
20052
|
min_funding: bigint;
|
|
20050
20053
|
auction_size_range: [number, number];
|
|
20051
|
-
min_active_bid: bigint;
|
|
20054
|
+
min_active_bid: bigint | null;
|
|
20052
20055
|
min_bid: bigint;
|
|
20053
20056
|
}, "epoch_duration"> & {
|
|
20054
20057
|
readonly epoch_duration_blocks: number;
|
|
@@ -20058,7 +20061,7 @@ declare const rpcResult: {
|
|
|
20058
20061
|
redemption_period_as_percentage: number;
|
|
20059
20062
|
min_funding: string | number;
|
|
20060
20063
|
auction_size_range: [number, number];
|
|
20061
|
-
min_active_bid: string | number;
|
|
20064
|
+
min_active_bid: string | number | null;
|
|
20062
20065
|
min_bid: string | number;
|
|
20063
20066
|
}>;
|
|
20064
20067
|
readonly cf_flip_supply: z.ZodEffects<z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>], null>, {
|
package/dist/parsers.cjs
CHANGED
|
@@ -205,6 +205,7 @@ var requestSwapParameterEncoding = _zod.z.discriminatedUnion("chain", [
|
|
|
205
205
|
)
|
|
206
206
|
})
|
|
207
207
|
]);
|
|
208
|
+
var accountId = _zod.z.string().refine((val) => val.startsWith("cF"));
|
|
208
209
|
var unregistered = _zod.z.object({
|
|
209
210
|
role: _zod.z.literal("unregistered"),
|
|
210
211
|
flip_balance: numberOrHex,
|
|
@@ -216,21 +217,19 @@ var broker = _zod.z.object({
|
|
|
216
217
|
flip_balance: numberOrHex,
|
|
217
218
|
earned_fees: chainAssetMapFactory(numberOrHex, 0),
|
|
218
219
|
btc_vault_deposit_address: _zod.z.string().nullable().optional(),
|
|
219
|
-
affiliates: _zod.z.array(
|
|
220
|
-
_zod.z.object({ account_id: _zod.z.string(), short_id: _zod.z.number(), withdrawal_address: hexString })
|
|
221
|
-
).optional().default([])
|
|
220
|
+
affiliates: _zod.z.array(_zod.z.object({ account_id: accountId, short_id: _zod.z.number(), withdrawal_address: hexString })).optional().default([])
|
|
222
221
|
});
|
|
223
222
|
var operator = _zod.z.object({
|
|
224
223
|
flip_balance: numberOrHex,
|
|
225
224
|
role: _zod.z.literal("operator"),
|
|
226
|
-
managed_validators: _zod.z.record(
|
|
227
|
-
delegators: _zod.z.record(
|
|
225
|
+
managed_validators: _zod.z.record(accountId, numberOrHex),
|
|
226
|
+
delegators: _zod.z.record(accountId, numberOrHex),
|
|
228
227
|
settings: _zod.z.object({
|
|
229
228
|
fee_bps: _zod.z.number(),
|
|
230
229
|
delegation_acceptance: _zod.z.enum(["Allow", "Deny"])
|
|
231
230
|
}),
|
|
232
|
-
allowed: _zod.z.array(
|
|
233
|
-
blocked: _zod.z.array(
|
|
231
|
+
allowed: _zod.z.array(accountId).optional().default([]),
|
|
232
|
+
blocked: _zod.z.array(accountId).optional().default([])
|
|
234
233
|
});
|
|
235
234
|
var boostBalances = _zod.z.array(
|
|
236
235
|
_zod.z.object({
|
|
@@ -264,7 +263,8 @@ var validator = _zod.z.object({
|
|
|
264
263
|
bound_redeem_address: hexString.nullable(),
|
|
265
264
|
apy_bp: _zod.z.number().nullable(),
|
|
266
265
|
restricted_balances: _zod.z.record(hexString, numberOrHex),
|
|
267
|
-
estimated_redeemable_balance: numberOrHex
|
|
266
|
+
estimated_redeemable_balance: numberOrHex,
|
|
267
|
+
operator: accountId.optional()
|
|
268
268
|
});
|
|
269
269
|
var cfAccountInfo = _zod.z.discriminatedUnion("role", [
|
|
270
270
|
unregistered,
|
|
@@ -364,7 +364,7 @@ var cfAuctionState = _zod.z.object({
|
|
|
364
364
|
redemption_period_as_percentage: _zod.z.number(),
|
|
365
365
|
min_funding: numberOrHex,
|
|
366
366
|
auction_size_range: range(_zod.z.number()),
|
|
367
|
-
min_active_bid: numberOrHex,
|
|
367
|
+
min_active_bid: numberOrHex.nullable(),
|
|
368
368
|
min_bid: numberOrHex
|
|
369
369
|
}).transform(rename({ epoch_duration: "epoch_duration_blocks" }));
|
|
370
370
|
var cfFlipSuppy = range(numberOrHex).transform(([totalIssuance, offchainFunds]) => ({
|
package/dist/parsers.d.cts
CHANGED
|
@@ -17248,11 +17248,11 @@ declare const broker: z.ZodObject<{
|
|
|
17248
17248
|
}>;
|
|
17249
17249
|
btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17250
17250
|
affiliates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17251
|
-
account_id: z.ZodString
|
|
17251
|
+
account_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
17252
17252
|
short_id: z.ZodNumber;
|
|
17253
17253
|
withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
17254
17254
|
}, "strip", z.ZodTypeAny, {
|
|
17255
|
-
account_id: string
|
|
17255
|
+
account_id: `cF${string}`;
|
|
17256
17256
|
short_id: number;
|
|
17257
17257
|
withdrawal_address: `0x${string}`;
|
|
17258
17258
|
}, {
|
|
@@ -17292,7 +17292,7 @@ declare const broker: z.ZodObject<{
|
|
|
17292
17292
|
};
|
|
17293
17293
|
};
|
|
17294
17294
|
affiliates: {
|
|
17295
|
-
account_id: string
|
|
17295
|
+
account_id: `cF${string}`;
|
|
17296
17296
|
short_id: number;
|
|
17297
17297
|
withdrawal_address: `0x${string}`;
|
|
17298
17298
|
}[];
|
|
@@ -17338,8 +17338,8 @@ declare const broker: z.ZodObject<{
|
|
|
17338
17338
|
declare const operator: z.ZodObject<{
|
|
17339
17339
|
flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
17340
17340
|
role: z.ZodLiteral<"operator">;
|
|
17341
|
-
managed_validators: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
17342
|
-
delegators: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
17341
|
+
managed_validators: z.ZodRecord<z.ZodEffects<z.ZodString, `cF${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
17342
|
+
delegators: z.ZodRecord<z.ZodEffects<z.ZodString, `cF${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
17343
17343
|
settings: z.ZodObject<{
|
|
17344
17344
|
fee_bps: z.ZodNumber;
|
|
17345
17345
|
delegation_acceptance: z.ZodEnum<["Allow", "Deny"]>;
|
|
@@ -17350,19 +17350,19 @@ declare const operator: z.ZodObject<{
|
|
|
17350
17350
|
fee_bps: number;
|
|
17351
17351
|
delegation_acceptance: "Allow" | "Deny";
|
|
17352
17352
|
}>;
|
|
17353
|
-
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
17354
|
-
blocked: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
17353
|
+
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `cF${string}`, string>, "many">>>;
|
|
17354
|
+
blocked: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `cF${string}`, string>, "many">>>;
|
|
17355
17355
|
}, "strip", z.ZodTypeAny, {
|
|
17356
17356
|
role: "operator";
|
|
17357
17357
|
flip_balance: bigint;
|
|
17358
|
-
managed_validators: Record
|
|
17359
|
-
delegators: Record
|
|
17358
|
+
managed_validators: Partial<Record<`cF${string}`, bigint>>;
|
|
17359
|
+
delegators: Partial<Record<`cF${string}`, bigint>>;
|
|
17360
17360
|
settings: {
|
|
17361
17361
|
fee_bps: number;
|
|
17362
17362
|
delegation_acceptance: "Allow" | "Deny";
|
|
17363
17363
|
};
|
|
17364
|
-
allowed: string[];
|
|
17365
|
-
blocked: string[];
|
|
17364
|
+
allowed: `cF${string}`[];
|
|
17365
|
+
blocked: `cF${string}`[];
|
|
17366
17366
|
}, {
|
|
17367
17367
|
role: "operator";
|
|
17368
17368
|
flip_balance: string | number;
|
|
@@ -18654,6 +18654,7 @@ declare const validator: z.ZodObject<{
|
|
|
18654
18654
|
apy_bp: z.ZodNullable<z.ZodNumber>;
|
|
18655
18655
|
restricted_balances: z.ZodRecord<z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
18656
18656
|
estimated_redeemable_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
18657
|
+
operator: z.ZodOptional<z.ZodEffects<z.ZodString, `cF${string}`, string>>;
|
|
18657
18658
|
}, "strip", z.ZodTypeAny, {
|
|
18658
18659
|
role: "validator";
|
|
18659
18660
|
flip_balance: bigint;
|
|
@@ -18670,6 +18671,7 @@ declare const validator: z.ZodObject<{
|
|
|
18670
18671
|
apy_bp: number | null;
|
|
18671
18672
|
restricted_balances: Partial<Record<`0x${string}`, bigint>>;
|
|
18672
18673
|
estimated_redeemable_balance: bigint;
|
|
18674
|
+
operator?: `cF${string}` | undefined;
|
|
18673
18675
|
}, {
|
|
18674
18676
|
role: "validator";
|
|
18675
18677
|
flip_balance: string | number;
|
|
@@ -18686,6 +18688,7 @@ declare const validator: z.ZodObject<{
|
|
|
18686
18688
|
apy_bp: number | null;
|
|
18687
18689
|
restricted_balances: Record<string, string | number>;
|
|
18688
18690
|
estimated_redeemable_balance: string | number;
|
|
18691
|
+
operator?: string | undefined;
|
|
18689
18692
|
}>;
|
|
18690
18693
|
declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
18691
18694
|
role: z.ZodLiteral<"unregistered">;
|
|
@@ -18990,11 +18993,11 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
18990
18993
|
}>;
|
|
18991
18994
|
btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18992
18995
|
affiliates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18993
|
-
account_id: z.ZodString
|
|
18996
|
+
account_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
18994
18997
|
short_id: z.ZodNumber;
|
|
18995
18998
|
withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
18996
18999
|
}, "strip", z.ZodTypeAny, {
|
|
18997
|
-
account_id: string
|
|
19000
|
+
account_id: `cF${string}`;
|
|
18998
19001
|
short_id: number;
|
|
18999
19002
|
withdrawal_address: `0x${string}`;
|
|
19000
19003
|
}, {
|
|
@@ -19034,7 +19037,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
19034
19037
|
};
|
|
19035
19038
|
};
|
|
19036
19039
|
affiliates: {
|
|
19037
|
-
account_id: string
|
|
19040
|
+
account_id: `cF${string}`;
|
|
19038
19041
|
short_id: number;
|
|
19039
19042
|
withdrawal_address: `0x${string}`;
|
|
19040
19043
|
}[];
|
|
@@ -19079,8 +19082,8 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
19079
19082
|
}>, z.ZodObject<{
|
|
19080
19083
|
flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
19081
19084
|
role: z.ZodLiteral<"operator">;
|
|
19082
|
-
managed_validators: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
19083
|
-
delegators: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
19085
|
+
managed_validators: z.ZodRecord<z.ZodEffects<z.ZodString, `cF${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
19086
|
+
delegators: z.ZodRecord<z.ZodEffects<z.ZodString, `cF${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
19084
19087
|
settings: z.ZodObject<{
|
|
19085
19088
|
fee_bps: z.ZodNumber;
|
|
19086
19089
|
delegation_acceptance: z.ZodEnum<["Allow", "Deny"]>;
|
|
@@ -19091,19 +19094,19 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
19091
19094
|
fee_bps: number;
|
|
19092
19095
|
delegation_acceptance: "Allow" | "Deny";
|
|
19093
19096
|
}>;
|
|
19094
|
-
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
19095
|
-
blocked: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
19097
|
+
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `cF${string}`, string>, "many">>>;
|
|
19098
|
+
blocked: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `cF${string}`, string>, "many">>>;
|
|
19096
19099
|
}, "strip", z.ZodTypeAny, {
|
|
19097
19100
|
role: "operator";
|
|
19098
19101
|
flip_balance: bigint;
|
|
19099
|
-
managed_validators: Record
|
|
19100
|
-
delegators: Record
|
|
19102
|
+
managed_validators: Partial<Record<`cF${string}`, bigint>>;
|
|
19103
|
+
delegators: Partial<Record<`cF${string}`, bigint>>;
|
|
19101
19104
|
settings: {
|
|
19102
19105
|
fee_bps: number;
|
|
19103
19106
|
delegation_acceptance: "Allow" | "Deny";
|
|
19104
19107
|
};
|
|
19105
|
-
allowed: string[];
|
|
19106
|
-
blocked: string[];
|
|
19108
|
+
allowed: `cF${string}`[];
|
|
19109
|
+
blocked: `cF${string}`[];
|
|
19107
19110
|
}, {
|
|
19108
19111
|
role: "operator";
|
|
19109
19112
|
flip_balance: string | number;
|
|
@@ -20393,6 +20396,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
20393
20396
|
apy_bp: z.ZodNullable<z.ZodNumber>;
|
|
20394
20397
|
restricted_balances: z.ZodRecord<z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
20395
20398
|
estimated_redeemable_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
20399
|
+
operator: z.ZodOptional<z.ZodEffects<z.ZodString, `cF${string}`, string>>;
|
|
20396
20400
|
}, "strip", z.ZodTypeAny, {
|
|
20397
20401
|
role: "validator";
|
|
20398
20402
|
flip_balance: bigint;
|
|
@@ -20409,6 +20413,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
20409
20413
|
apy_bp: number | null;
|
|
20410
20414
|
restricted_balances: Partial<Record<`0x${string}`, bigint>>;
|
|
20411
20415
|
estimated_redeemable_balance: bigint;
|
|
20416
|
+
operator?: `cF${string}` | undefined;
|
|
20412
20417
|
}, {
|
|
20413
20418
|
role: "validator";
|
|
20414
20419
|
flip_balance: string | number;
|
|
@@ -20425,6 +20430,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
20425
20430
|
apy_bp: number | null;
|
|
20426
20431
|
restricted_balances: Record<string, string | number>;
|
|
20427
20432
|
estimated_redeemable_balance: string | number;
|
|
20433
|
+
operator?: string | undefined;
|
|
20428
20434
|
}>]>;
|
|
20429
20435
|
declare const cfAccounts: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
|
|
20430
20436
|
declare const cfPoolPriceV2: z.ZodObject<{
|
|
@@ -21739,7 +21745,7 @@ declare const cfAuctionState: z.ZodEffects<z.ZodObject<{
|
|
|
21739
21745
|
redemption_period_as_percentage: z.ZodNumber;
|
|
21740
21746
|
min_funding: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
21741
21747
|
auction_size_range: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
21742
|
-
min_active_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]
|
|
21748
|
+
min_active_bid: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
21743
21749
|
min_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
21744
21750
|
}, "strip", z.ZodTypeAny, {
|
|
21745
21751
|
epoch_duration: number;
|
|
@@ -21747,7 +21753,7 @@ declare const cfAuctionState: z.ZodEffects<z.ZodObject<{
|
|
|
21747
21753
|
redemption_period_as_percentage: number;
|
|
21748
21754
|
min_funding: bigint;
|
|
21749
21755
|
auction_size_range: [number, number];
|
|
21750
|
-
min_active_bid: bigint;
|
|
21756
|
+
min_active_bid: bigint | null;
|
|
21751
21757
|
min_bid: bigint;
|
|
21752
21758
|
}, {
|
|
21753
21759
|
epoch_duration: number;
|
|
@@ -21755,7 +21761,7 @@ declare const cfAuctionState: z.ZodEffects<z.ZodObject<{
|
|
|
21755
21761
|
redemption_period_as_percentage: number;
|
|
21756
21762
|
min_funding: string | number;
|
|
21757
21763
|
auction_size_range: [number, number];
|
|
21758
|
-
min_active_bid: string | number;
|
|
21764
|
+
min_active_bid: string | number | null;
|
|
21759
21765
|
min_bid: string | number;
|
|
21760
21766
|
}>, Rename<{
|
|
21761
21767
|
epoch_duration: number;
|
|
@@ -21763,7 +21769,7 @@ declare const cfAuctionState: z.ZodEffects<z.ZodObject<{
|
|
|
21763
21769
|
redemption_period_as_percentage: number;
|
|
21764
21770
|
min_funding: bigint;
|
|
21765
21771
|
auction_size_range: [number, number];
|
|
21766
|
-
min_active_bid: bigint;
|
|
21772
|
+
min_active_bid: bigint | null;
|
|
21767
21773
|
min_bid: bigint;
|
|
21768
21774
|
}, {
|
|
21769
21775
|
readonly epoch_duration: "epoch_duration_blocks";
|
|
@@ -21773,7 +21779,7 @@ declare const cfAuctionState: z.ZodEffects<z.ZodObject<{
|
|
|
21773
21779
|
redemption_period_as_percentage: number;
|
|
21774
21780
|
min_funding: string | number;
|
|
21775
21781
|
auction_size_range: [number, number];
|
|
21776
|
-
min_active_bid: string | number;
|
|
21782
|
+
min_active_bid: string | number | null;
|
|
21777
21783
|
min_bid: string | number;
|
|
21778
21784
|
}>;
|
|
21779
21785
|
declare const cfFlipSuppy: z.ZodEffects<z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>], null>, {
|
package/dist/parsers.d.ts
CHANGED
|
@@ -17248,11 +17248,11 @@ declare const broker: z.ZodObject<{
|
|
|
17248
17248
|
}>;
|
|
17249
17249
|
btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17250
17250
|
affiliates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17251
|
-
account_id: z.ZodString
|
|
17251
|
+
account_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
17252
17252
|
short_id: z.ZodNumber;
|
|
17253
17253
|
withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
17254
17254
|
}, "strip", z.ZodTypeAny, {
|
|
17255
|
-
account_id: string
|
|
17255
|
+
account_id: `cF${string}`;
|
|
17256
17256
|
short_id: number;
|
|
17257
17257
|
withdrawal_address: `0x${string}`;
|
|
17258
17258
|
}, {
|
|
@@ -17292,7 +17292,7 @@ declare const broker: z.ZodObject<{
|
|
|
17292
17292
|
};
|
|
17293
17293
|
};
|
|
17294
17294
|
affiliates: {
|
|
17295
|
-
account_id: string
|
|
17295
|
+
account_id: `cF${string}`;
|
|
17296
17296
|
short_id: number;
|
|
17297
17297
|
withdrawal_address: `0x${string}`;
|
|
17298
17298
|
}[];
|
|
@@ -17338,8 +17338,8 @@ declare const broker: z.ZodObject<{
|
|
|
17338
17338
|
declare const operator: z.ZodObject<{
|
|
17339
17339
|
flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
17340
17340
|
role: z.ZodLiteral<"operator">;
|
|
17341
|
-
managed_validators: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
17342
|
-
delegators: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
17341
|
+
managed_validators: z.ZodRecord<z.ZodEffects<z.ZodString, `cF${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
17342
|
+
delegators: z.ZodRecord<z.ZodEffects<z.ZodString, `cF${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
17343
17343
|
settings: z.ZodObject<{
|
|
17344
17344
|
fee_bps: z.ZodNumber;
|
|
17345
17345
|
delegation_acceptance: z.ZodEnum<["Allow", "Deny"]>;
|
|
@@ -17350,19 +17350,19 @@ declare const operator: z.ZodObject<{
|
|
|
17350
17350
|
fee_bps: number;
|
|
17351
17351
|
delegation_acceptance: "Allow" | "Deny";
|
|
17352
17352
|
}>;
|
|
17353
|
-
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
17354
|
-
blocked: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
17353
|
+
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `cF${string}`, string>, "many">>>;
|
|
17354
|
+
blocked: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `cF${string}`, string>, "many">>>;
|
|
17355
17355
|
}, "strip", z.ZodTypeAny, {
|
|
17356
17356
|
role: "operator";
|
|
17357
17357
|
flip_balance: bigint;
|
|
17358
|
-
managed_validators: Record
|
|
17359
|
-
delegators: Record
|
|
17358
|
+
managed_validators: Partial<Record<`cF${string}`, bigint>>;
|
|
17359
|
+
delegators: Partial<Record<`cF${string}`, bigint>>;
|
|
17360
17360
|
settings: {
|
|
17361
17361
|
fee_bps: number;
|
|
17362
17362
|
delegation_acceptance: "Allow" | "Deny";
|
|
17363
17363
|
};
|
|
17364
|
-
allowed: string[];
|
|
17365
|
-
blocked: string[];
|
|
17364
|
+
allowed: `cF${string}`[];
|
|
17365
|
+
blocked: `cF${string}`[];
|
|
17366
17366
|
}, {
|
|
17367
17367
|
role: "operator";
|
|
17368
17368
|
flip_balance: string | number;
|
|
@@ -18654,6 +18654,7 @@ declare const validator: z.ZodObject<{
|
|
|
18654
18654
|
apy_bp: z.ZodNullable<z.ZodNumber>;
|
|
18655
18655
|
restricted_balances: z.ZodRecord<z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
18656
18656
|
estimated_redeemable_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
18657
|
+
operator: z.ZodOptional<z.ZodEffects<z.ZodString, `cF${string}`, string>>;
|
|
18657
18658
|
}, "strip", z.ZodTypeAny, {
|
|
18658
18659
|
role: "validator";
|
|
18659
18660
|
flip_balance: bigint;
|
|
@@ -18670,6 +18671,7 @@ declare const validator: z.ZodObject<{
|
|
|
18670
18671
|
apy_bp: number | null;
|
|
18671
18672
|
restricted_balances: Partial<Record<`0x${string}`, bigint>>;
|
|
18672
18673
|
estimated_redeemable_balance: bigint;
|
|
18674
|
+
operator?: `cF${string}` | undefined;
|
|
18673
18675
|
}, {
|
|
18674
18676
|
role: "validator";
|
|
18675
18677
|
flip_balance: string | number;
|
|
@@ -18686,6 +18688,7 @@ declare const validator: z.ZodObject<{
|
|
|
18686
18688
|
apy_bp: number | null;
|
|
18687
18689
|
restricted_balances: Record<string, string | number>;
|
|
18688
18690
|
estimated_redeemable_balance: string | number;
|
|
18691
|
+
operator?: string | undefined;
|
|
18689
18692
|
}>;
|
|
18690
18693
|
declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
18691
18694
|
role: z.ZodLiteral<"unregistered">;
|
|
@@ -18990,11 +18993,11 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
18990
18993
|
}>;
|
|
18991
18994
|
btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18992
18995
|
affiliates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18993
|
-
account_id: z.ZodString
|
|
18996
|
+
account_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
18994
18997
|
short_id: z.ZodNumber;
|
|
18995
18998
|
withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
18996
18999
|
}, "strip", z.ZodTypeAny, {
|
|
18997
|
-
account_id: string
|
|
19000
|
+
account_id: `cF${string}`;
|
|
18998
19001
|
short_id: number;
|
|
18999
19002
|
withdrawal_address: `0x${string}`;
|
|
19000
19003
|
}, {
|
|
@@ -19034,7 +19037,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
19034
19037
|
};
|
|
19035
19038
|
};
|
|
19036
19039
|
affiliates: {
|
|
19037
|
-
account_id: string
|
|
19040
|
+
account_id: `cF${string}`;
|
|
19038
19041
|
short_id: number;
|
|
19039
19042
|
withdrawal_address: `0x${string}`;
|
|
19040
19043
|
}[];
|
|
@@ -19079,8 +19082,8 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
19079
19082
|
}>, z.ZodObject<{
|
|
19080
19083
|
flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
19081
19084
|
role: z.ZodLiteral<"operator">;
|
|
19082
|
-
managed_validators: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
19083
|
-
delegators: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
19085
|
+
managed_validators: z.ZodRecord<z.ZodEffects<z.ZodString, `cF${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
19086
|
+
delegators: z.ZodRecord<z.ZodEffects<z.ZodString, `cF${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
19084
19087
|
settings: z.ZodObject<{
|
|
19085
19088
|
fee_bps: z.ZodNumber;
|
|
19086
19089
|
delegation_acceptance: z.ZodEnum<["Allow", "Deny"]>;
|
|
@@ -19091,19 +19094,19 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
19091
19094
|
fee_bps: number;
|
|
19092
19095
|
delegation_acceptance: "Allow" | "Deny";
|
|
19093
19096
|
}>;
|
|
19094
|
-
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
19095
|
-
blocked: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
19097
|
+
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `cF${string}`, string>, "many">>>;
|
|
19098
|
+
blocked: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `cF${string}`, string>, "many">>>;
|
|
19096
19099
|
}, "strip", z.ZodTypeAny, {
|
|
19097
19100
|
role: "operator";
|
|
19098
19101
|
flip_balance: bigint;
|
|
19099
|
-
managed_validators: Record
|
|
19100
|
-
delegators: Record
|
|
19102
|
+
managed_validators: Partial<Record<`cF${string}`, bigint>>;
|
|
19103
|
+
delegators: Partial<Record<`cF${string}`, bigint>>;
|
|
19101
19104
|
settings: {
|
|
19102
19105
|
fee_bps: number;
|
|
19103
19106
|
delegation_acceptance: "Allow" | "Deny";
|
|
19104
19107
|
};
|
|
19105
|
-
allowed: string[];
|
|
19106
|
-
blocked: string[];
|
|
19108
|
+
allowed: `cF${string}`[];
|
|
19109
|
+
blocked: `cF${string}`[];
|
|
19107
19110
|
}, {
|
|
19108
19111
|
role: "operator";
|
|
19109
19112
|
flip_balance: string | number;
|
|
@@ -20393,6 +20396,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
20393
20396
|
apy_bp: z.ZodNullable<z.ZodNumber>;
|
|
20394
20397
|
restricted_balances: z.ZodRecord<z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
20395
20398
|
estimated_redeemable_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
20399
|
+
operator: z.ZodOptional<z.ZodEffects<z.ZodString, `cF${string}`, string>>;
|
|
20396
20400
|
}, "strip", z.ZodTypeAny, {
|
|
20397
20401
|
role: "validator";
|
|
20398
20402
|
flip_balance: bigint;
|
|
@@ -20409,6 +20413,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
20409
20413
|
apy_bp: number | null;
|
|
20410
20414
|
restricted_balances: Partial<Record<`0x${string}`, bigint>>;
|
|
20411
20415
|
estimated_redeemable_balance: bigint;
|
|
20416
|
+
operator?: `cF${string}` | undefined;
|
|
20412
20417
|
}, {
|
|
20413
20418
|
role: "validator";
|
|
20414
20419
|
flip_balance: string | number;
|
|
@@ -20425,6 +20430,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
20425
20430
|
apy_bp: number | null;
|
|
20426
20431
|
restricted_balances: Record<string, string | number>;
|
|
20427
20432
|
estimated_redeemable_balance: string | number;
|
|
20433
|
+
operator?: string | undefined;
|
|
20428
20434
|
}>]>;
|
|
20429
20435
|
declare const cfAccounts: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
|
|
20430
20436
|
declare const cfPoolPriceV2: z.ZodObject<{
|
|
@@ -21739,7 +21745,7 @@ declare const cfAuctionState: z.ZodEffects<z.ZodObject<{
|
|
|
21739
21745
|
redemption_period_as_percentage: z.ZodNumber;
|
|
21740
21746
|
min_funding: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
21741
21747
|
auction_size_range: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
21742
|
-
min_active_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]
|
|
21748
|
+
min_active_bid: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
|
|
21743
21749
|
min_bid: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
21744
21750
|
}, "strip", z.ZodTypeAny, {
|
|
21745
21751
|
epoch_duration: number;
|
|
@@ -21747,7 +21753,7 @@ declare const cfAuctionState: z.ZodEffects<z.ZodObject<{
|
|
|
21747
21753
|
redemption_period_as_percentage: number;
|
|
21748
21754
|
min_funding: bigint;
|
|
21749
21755
|
auction_size_range: [number, number];
|
|
21750
|
-
min_active_bid: bigint;
|
|
21756
|
+
min_active_bid: bigint | null;
|
|
21751
21757
|
min_bid: bigint;
|
|
21752
21758
|
}, {
|
|
21753
21759
|
epoch_duration: number;
|
|
@@ -21755,7 +21761,7 @@ declare const cfAuctionState: z.ZodEffects<z.ZodObject<{
|
|
|
21755
21761
|
redemption_period_as_percentage: number;
|
|
21756
21762
|
min_funding: string | number;
|
|
21757
21763
|
auction_size_range: [number, number];
|
|
21758
|
-
min_active_bid: string | number;
|
|
21764
|
+
min_active_bid: string | number | null;
|
|
21759
21765
|
min_bid: string | number;
|
|
21760
21766
|
}>, Rename<{
|
|
21761
21767
|
epoch_duration: number;
|
|
@@ -21763,7 +21769,7 @@ declare const cfAuctionState: z.ZodEffects<z.ZodObject<{
|
|
|
21763
21769
|
redemption_period_as_percentage: number;
|
|
21764
21770
|
min_funding: bigint;
|
|
21765
21771
|
auction_size_range: [number, number];
|
|
21766
|
-
min_active_bid: bigint;
|
|
21772
|
+
min_active_bid: bigint | null;
|
|
21767
21773
|
min_bid: bigint;
|
|
21768
21774
|
}, {
|
|
21769
21775
|
readonly epoch_duration: "epoch_duration_blocks";
|
|
@@ -21773,7 +21779,7 @@ declare const cfAuctionState: z.ZodEffects<z.ZodObject<{
|
|
|
21773
21779
|
redemption_period_as_percentage: number;
|
|
21774
21780
|
min_funding: string | number;
|
|
21775
21781
|
auction_size_range: [number, number];
|
|
21776
|
-
min_active_bid: string | number;
|
|
21782
|
+
min_active_bid: string | number | null;
|
|
21777
21783
|
min_bid: string | number;
|
|
21778
21784
|
}>;
|
|
21779
21785
|
declare const cfFlipSuppy: z.ZodEffects<z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>, z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>], null>, {
|
package/dist/parsers.mjs
CHANGED
|
@@ -205,6 +205,7 @@ var requestSwapParameterEncoding = z.discriminatedUnion("chain", [
|
|
|
205
205
|
)
|
|
206
206
|
})
|
|
207
207
|
]);
|
|
208
|
+
var accountId = z.string().refine((val) => val.startsWith("cF"));
|
|
208
209
|
var unregistered = z.object({
|
|
209
210
|
role: z.literal("unregistered"),
|
|
210
211
|
flip_balance: numberOrHex,
|
|
@@ -216,21 +217,19 @@ var broker = z.object({
|
|
|
216
217
|
flip_balance: numberOrHex,
|
|
217
218
|
earned_fees: chainAssetMapFactory(numberOrHex, 0),
|
|
218
219
|
btc_vault_deposit_address: z.string().nullable().optional(),
|
|
219
|
-
affiliates: z.array(
|
|
220
|
-
z.object({ account_id: z.string(), short_id: z.number(), withdrawal_address: hexString })
|
|
221
|
-
).optional().default([])
|
|
220
|
+
affiliates: z.array(z.object({ account_id: accountId, short_id: z.number(), withdrawal_address: hexString })).optional().default([])
|
|
222
221
|
});
|
|
223
222
|
var operator = z.object({
|
|
224
223
|
flip_balance: numberOrHex,
|
|
225
224
|
role: z.literal("operator"),
|
|
226
|
-
managed_validators: z.record(
|
|
227
|
-
delegators: z.record(
|
|
225
|
+
managed_validators: z.record(accountId, numberOrHex),
|
|
226
|
+
delegators: z.record(accountId, numberOrHex),
|
|
228
227
|
settings: z.object({
|
|
229
228
|
fee_bps: z.number(),
|
|
230
229
|
delegation_acceptance: z.enum(["Allow", "Deny"])
|
|
231
230
|
}),
|
|
232
|
-
allowed: z.array(
|
|
233
|
-
blocked: z.array(
|
|
231
|
+
allowed: z.array(accountId).optional().default([]),
|
|
232
|
+
blocked: z.array(accountId).optional().default([])
|
|
234
233
|
});
|
|
235
234
|
var boostBalances = z.array(
|
|
236
235
|
z.object({
|
|
@@ -264,7 +263,8 @@ var validator = z.object({
|
|
|
264
263
|
bound_redeem_address: hexString.nullable(),
|
|
265
264
|
apy_bp: z.number().nullable(),
|
|
266
265
|
restricted_balances: z.record(hexString, numberOrHex),
|
|
267
|
-
estimated_redeemable_balance: numberOrHex
|
|
266
|
+
estimated_redeemable_balance: numberOrHex,
|
|
267
|
+
operator: accountId.optional()
|
|
268
268
|
});
|
|
269
269
|
var cfAccountInfo = z.discriminatedUnion("role", [
|
|
270
270
|
unregistered,
|
|
@@ -364,7 +364,7 @@ var cfAuctionState = z.object({
|
|
|
364
364
|
redemption_period_as_percentage: z.number(),
|
|
365
365
|
min_funding: numberOrHex,
|
|
366
366
|
auction_size_range: range(z.number()),
|
|
367
|
-
min_active_bid: numberOrHex,
|
|
367
|
+
min_active_bid: numberOrHex.nullable(),
|
|
368
368
|
min_bid: numberOrHex
|
|
369
369
|
}).transform(rename({ epoch_duration: "epoch_duration_blocks" }));
|
|
370
370
|
var cfFlipSuppy = range(numberOrHex).transform(([totalIssuance, offchainFunds]) => ({
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainflip/rpc",
|
|
3
|
-
"version": "1.11.0-beta.
|
|
3
|
+
"version": "1.11.0-beta.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@chainflip/utils": "0.8.17",
|
|
7
7
|
"zod": "^3.25.75"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@types/node": "^24.1
|
|
10
|
+
"@types/node": "^24.2.1",
|
|
11
11
|
"@types/ws": "^8.18.1",
|
|
12
12
|
"ws": "^8.18.3"
|
|
13
13
|
},
|