@chainflip/rpc 1.11.0-beta.2 → 1.11.0-beta.4
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 +20 -14
- package/dist/common.d.ts +20 -14
- package/dist/parsers.cjs +10 -9
- package/dist/parsers.d.cts +40 -28
- package/dist/parsers.d.ts +40 -28
- package/dist/parsers.mjs +10 -9
- package/package.json +1 -1
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
|
}[];
|
|
@@ -777,33 +777,36 @@ declare const rpcResult: {
|
|
|
777
777
|
withdrawal_address: string;
|
|
778
778
|
}[] | undefined;
|
|
779
779
|
}>, z.ZodObject<{
|
|
780
|
+
flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
780
781
|
role: z.ZodLiteral<"operator">;
|
|
781
|
-
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>]>>;
|
|
782
|
-
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>]>>;
|
|
783
784
|
settings: z.ZodObject<{
|
|
784
785
|
fee_bps: z.ZodNumber;
|
|
785
|
-
delegation_acceptance: z.
|
|
786
|
+
delegation_acceptance: z.ZodEnum<["Allow", "Deny"]>;
|
|
786
787
|
}, "strip", z.ZodTypeAny, {
|
|
787
788
|
fee_bps: number;
|
|
788
|
-
delegation_acceptance:
|
|
789
|
+
delegation_acceptance: "Allow" | "Deny";
|
|
789
790
|
}, {
|
|
790
791
|
fee_bps: number;
|
|
791
792
|
delegation_acceptance: "Allow" | "Deny";
|
|
792
793
|
}>;
|
|
793
|
-
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
794
|
-
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">>>;
|
|
795
796
|
}, "strip", z.ZodTypeAny, {
|
|
796
797
|
role: "operator";
|
|
797
|
-
|
|
798
|
-
|
|
798
|
+
flip_balance: bigint;
|
|
799
|
+
managed_validators: Partial<Record<`cF${string}`, bigint>>;
|
|
800
|
+
delegators: Partial<Record<`cF${string}`, bigint>>;
|
|
799
801
|
settings: {
|
|
800
802
|
fee_bps: number;
|
|
801
|
-
delegation_acceptance:
|
|
803
|
+
delegation_acceptance: "Allow" | "Deny";
|
|
802
804
|
};
|
|
803
|
-
allowed: string[];
|
|
804
|
-
blocked: string[];
|
|
805
|
+
allowed: `cF${string}`[];
|
|
806
|
+
blocked: `cF${string}`[];
|
|
805
807
|
}, {
|
|
806
808
|
role: "operator";
|
|
809
|
+
flip_balance: string | number;
|
|
807
810
|
managed_validators: Record<string, string | number>;
|
|
808
811
|
delegators: Record<string, string | number>;
|
|
809
812
|
settings: {
|
|
@@ -2090,6 +2093,7 @@ declare const rpcResult: {
|
|
|
2090
2093
|
apy_bp: z.ZodNullable<z.ZodNumber>;
|
|
2091
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>]>>;
|
|
2092
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>>;
|
|
2093
2097
|
}, "strip", z.ZodTypeAny, {
|
|
2094
2098
|
role: "validator";
|
|
2095
2099
|
flip_balance: bigint;
|
|
@@ -2106,6 +2110,7 @@ declare const rpcResult: {
|
|
|
2106
2110
|
apy_bp: number | null;
|
|
2107
2111
|
restricted_balances: Partial<Record<`0x${string}`, bigint>>;
|
|
2108
2112
|
estimated_redeemable_balance: bigint;
|
|
2113
|
+
operator?: `cF${string}` | undefined;
|
|
2109
2114
|
}, {
|
|
2110
2115
|
role: "validator";
|
|
2111
2116
|
flip_balance: string | number;
|
|
@@ -2122,6 +2127,7 @@ declare const rpcResult: {
|
|
|
2122
2127
|
apy_bp: number | null;
|
|
2123
2128
|
restricted_balances: Record<string, string | number>;
|
|
2124
2129
|
estimated_redeemable_balance: string | number;
|
|
2130
|
+
operator?: string | undefined;
|
|
2125
2131
|
}>]>;
|
|
2126
2132
|
readonly cf_pool_depth: z.ZodNullable<z.ZodObject<{
|
|
2127
2133
|
asks: z.ZodObject<{
|
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
|
}[];
|
|
@@ -777,33 +777,36 @@ declare const rpcResult: {
|
|
|
777
777
|
withdrawal_address: string;
|
|
778
778
|
}[] | undefined;
|
|
779
779
|
}>, z.ZodObject<{
|
|
780
|
+
flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
780
781
|
role: z.ZodLiteral<"operator">;
|
|
781
|
-
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>]>>;
|
|
782
|
-
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>]>>;
|
|
783
784
|
settings: z.ZodObject<{
|
|
784
785
|
fee_bps: z.ZodNumber;
|
|
785
|
-
delegation_acceptance: z.
|
|
786
|
+
delegation_acceptance: z.ZodEnum<["Allow", "Deny"]>;
|
|
786
787
|
}, "strip", z.ZodTypeAny, {
|
|
787
788
|
fee_bps: number;
|
|
788
|
-
delegation_acceptance:
|
|
789
|
+
delegation_acceptance: "Allow" | "Deny";
|
|
789
790
|
}, {
|
|
790
791
|
fee_bps: number;
|
|
791
792
|
delegation_acceptance: "Allow" | "Deny";
|
|
792
793
|
}>;
|
|
793
|
-
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
794
|
-
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">>>;
|
|
795
796
|
}, "strip", z.ZodTypeAny, {
|
|
796
797
|
role: "operator";
|
|
797
|
-
|
|
798
|
-
|
|
798
|
+
flip_balance: bigint;
|
|
799
|
+
managed_validators: Partial<Record<`cF${string}`, bigint>>;
|
|
800
|
+
delegators: Partial<Record<`cF${string}`, bigint>>;
|
|
799
801
|
settings: {
|
|
800
802
|
fee_bps: number;
|
|
801
|
-
delegation_acceptance:
|
|
803
|
+
delegation_acceptance: "Allow" | "Deny";
|
|
802
804
|
};
|
|
803
|
-
allowed: string[];
|
|
804
|
-
blocked: string[];
|
|
805
|
+
allowed: `cF${string}`[];
|
|
806
|
+
blocked: `cF${string}`[];
|
|
805
807
|
}, {
|
|
806
808
|
role: "operator";
|
|
809
|
+
flip_balance: string | number;
|
|
807
810
|
managed_validators: Record<string, string | number>;
|
|
808
811
|
delegators: Record<string, string | number>;
|
|
809
812
|
settings: {
|
|
@@ -2090,6 +2093,7 @@ declare const rpcResult: {
|
|
|
2090
2093
|
apy_bp: z.ZodNullable<z.ZodNumber>;
|
|
2091
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>]>>;
|
|
2092
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>>;
|
|
2093
2097
|
}, "strip", z.ZodTypeAny, {
|
|
2094
2098
|
role: "validator";
|
|
2095
2099
|
flip_balance: bigint;
|
|
@@ -2106,6 +2110,7 @@ declare const rpcResult: {
|
|
|
2106
2110
|
apy_bp: number | null;
|
|
2107
2111
|
restricted_balances: Partial<Record<`0x${string}`, bigint>>;
|
|
2108
2112
|
estimated_redeemable_balance: bigint;
|
|
2113
|
+
operator?: `cF${string}` | undefined;
|
|
2109
2114
|
}, {
|
|
2110
2115
|
role: "validator";
|
|
2111
2116
|
flip_balance: string | number;
|
|
@@ -2122,6 +2127,7 @@ declare const rpcResult: {
|
|
|
2122
2127
|
apy_bp: number | null;
|
|
2123
2128
|
restricted_balances: Record<string, string | number>;
|
|
2124
2129
|
estimated_redeemable_balance: string | number;
|
|
2130
|
+
operator?: string | undefined;
|
|
2125
2131
|
}>]>;
|
|
2126
2132
|
readonly cf_pool_depth: z.ZodNullable<z.ZodObject<{
|
|
2127
2133
|
asks: z.ZodObject<{
|
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,20 +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({
|
|
223
|
+
flip_balance: numberOrHex,
|
|
224
224
|
role: _zod.z.literal("operator"),
|
|
225
|
-
managed_validators: _zod.z.record(
|
|
226
|
-
delegators: _zod.z.record(
|
|
225
|
+
managed_validators: _zod.z.record(accountId, numberOrHex),
|
|
226
|
+
delegators: _zod.z.record(accountId, numberOrHex),
|
|
227
227
|
settings: _zod.z.object({
|
|
228
228
|
fee_bps: _zod.z.number(),
|
|
229
|
-
delegation_acceptance: _zod.z.
|
|
229
|
+
delegation_acceptance: _zod.z.enum(["Allow", "Deny"])
|
|
230
230
|
}),
|
|
231
|
-
allowed: _zod.z.array(
|
|
232
|
-
blocked: _zod.z.array(
|
|
231
|
+
allowed: _zod.z.array(accountId).optional().default([]),
|
|
232
|
+
blocked: _zod.z.array(accountId).optional().default([])
|
|
233
233
|
});
|
|
234
234
|
var boostBalances = _zod.z.array(
|
|
235
235
|
_zod.z.object({
|
|
@@ -263,7 +263,8 @@ var validator = _zod.z.object({
|
|
|
263
263
|
bound_redeem_address: hexString.nullable(),
|
|
264
264
|
apy_bp: _zod.z.number().nullable(),
|
|
265
265
|
restricted_balances: _zod.z.record(hexString, numberOrHex),
|
|
266
|
-
estimated_redeemable_balance: numberOrHex
|
|
266
|
+
estimated_redeemable_balance: numberOrHex,
|
|
267
|
+
operator: accountId.optional()
|
|
267
268
|
});
|
|
268
269
|
var cfAccountInfo = _zod.z.discriminatedUnion("role", [
|
|
269
270
|
unregistered,
|
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
|
}[];
|
|
@@ -17336,33 +17336,36 @@ declare const broker: z.ZodObject<{
|
|
|
17336
17336
|
}[] | undefined;
|
|
17337
17337
|
}>;
|
|
17338
17338
|
declare const operator: z.ZodObject<{
|
|
17339
|
+
flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
17339
17340
|
role: z.ZodLiteral<"operator">;
|
|
17340
|
-
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>]>>;
|
|
17341
|
-
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>]>>;
|
|
17342
17343
|
settings: z.ZodObject<{
|
|
17343
17344
|
fee_bps: z.ZodNumber;
|
|
17344
|
-
delegation_acceptance: z.
|
|
17345
|
+
delegation_acceptance: z.ZodEnum<["Allow", "Deny"]>;
|
|
17345
17346
|
}, "strip", z.ZodTypeAny, {
|
|
17346
17347
|
fee_bps: number;
|
|
17347
|
-
delegation_acceptance:
|
|
17348
|
+
delegation_acceptance: "Allow" | "Deny";
|
|
17348
17349
|
}, {
|
|
17349
17350
|
fee_bps: number;
|
|
17350
17351
|
delegation_acceptance: "Allow" | "Deny";
|
|
17351
17352
|
}>;
|
|
17352
|
-
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
17353
|
-
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">>>;
|
|
17354
17355
|
}, "strip", z.ZodTypeAny, {
|
|
17355
17356
|
role: "operator";
|
|
17356
|
-
|
|
17357
|
-
|
|
17357
|
+
flip_balance: bigint;
|
|
17358
|
+
managed_validators: Partial<Record<`cF${string}`, bigint>>;
|
|
17359
|
+
delegators: Partial<Record<`cF${string}`, bigint>>;
|
|
17358
17360
|
settings: {
|
|
17359
17361
|
fee_bps: number;
|
|
17360
|
-
delegation_acceptance:
|
|
17362
|
+
delegation_acceptance: "Allow" | "Deny";
|
|
17361
17363
|
};
|
|
17362
|
-
allowed: string[];
|
|
17363
|
-
blocked: string[];
|
|
17364
|
+
allowed: `cF${string}`[];
|
|
17365
|
+
blocked: `cF${string}`[];
|
|
17364
17366
|
}, {
|
|
17365
17367
|
role: "operator";
|
|
17368
|
+
flip_balance: string | number;
|
|
17366
17369
|
managed_validators: Record<string, string | number>;
|
|
17367
17370
|
delegators: Record<string, string | number>;
|
|
17368
17371
|
settings: {
|
|
@@ -18651,6 +18654,7 @@ declare const validator: z.ZodObject<{
|
|
|
18651
18654
|
apy_bp: z.ZodNullable<z.ZodNumber>;
|
|
18652
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>]>>;
|
|
18653
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>>;
|
|
18654
18658
|
}, "strip", z.ZodTypeAny, {
|
|
18655
18659
|
role: "validator";
|
|
18656
18660
|
flip_balance: bigint;
|
|
@@ -18667,6 +18671,7 @@ declare const validator: z.ZodObject<{
|
|
|
18667
18671
|
apy_bp: number | null;
|
|
18668
18672
|
restricted_balances: Partial<Record<`0x${string}`, bigint>>;
|
|
18669
18673
|
estimated_redeemable_balance: bigint;
|
|
18674
|
+
operator?: `cF${string}` | undefined;
|
|
18670
18675
|
}, {
|
|
18671
18676
|
role: "validator";
|
|
18672
18677
|
flip_balance: string | number;
|
|
@@ -18683,6 +18688,7 @@ declare const validator: z.ZodObject<{
|
|
|
18683
18688
|
apy_bp: number | null;
|
|
18684
18689
|
restricted_balances: Record<string, string | number>;
|
|
18685
18690
|
estimated_redeemable_balance: string | number;
|
|
18691
|
+
operator?: string | undefined;
|
|
18686
18692
|
}>;
|
|
18687
18693
|
declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
18688
18694
|
role: z.ZodLiteral<"unregistered">;
|
|
@@ -18987,11 +18993,11 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
18987
18993
|
}>;
|
|
18988
18994
|
btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18989
18995
|
affiliates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18990
|
-
account_id: z.ZodString
|
|
18996
|
+
account_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
18991
18997
|
short_id: z.ZodNumber;
|
|
18992
18998
|
withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
18993
18999
|
}, "strip", z.ZodTypeAny, {
|
|
18994
|
-
account_id: string
|
|
19000
|
+
account_id: `cF${string}`;
|
|
18995
19001
|
short_id: number;
|
|
18996
19002
|
withdrawal_address: `0x${string}`;
|
|
18997
19003
|
}, {
|
|
@@ -19031,7 +19037,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
19031
19037
|
};
|
|
19032
19038
|
};
|
|
19033
19039
|
affiliates: {
|
|
19034
|
-
account_id: string
|
|
19040
|
+
account_id: `cF${string}`;
|
|
19035
19041
|
short_id: number;
|
|
19036
19042
|
withdrawal_address: `0x${string}`;
|
|
19037
19043
|
}[];
|
|
@@ -19074,33 +19080,36 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
19074
19080
|
withdrawal_address: string;
|
|
19075
19081
|
}[] | undefined;
|
|
19076
19082
|
}>, z.ZodObject<{
|
|
19083
|
+
flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
19077
19084
|
role: z.ZodLiteral<"operator">;
|
|
19078
|
-
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>]>>;
|
|
19079
|
-
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>]>>;
|
|
19080
19087
|
settings: z.ZodObject<{
|
|
19081
19088
|
fee_bps: z.ZodNumber;
|
|
19082
|
-
delegation_acceptance: z.
|
|
19089
|
+
delegation_acceptance: z.ZodEnum<["Allow", "Deny"]>;
|
|
19083
19090
|
}, "strip", z.ZodTypeAny, {
|
|
19084
19091
|
fee_bps: number;
|
|
19085
|
-
delegation_acceptance:
|
|
19092
|
+
delegation_acceptance: "Allow" | "Deny";
|
|
19086
19093
|
}, {
|
|
19087
19094
|
fee_bps: number;
|
|
19088
19095
|
delegation_acceptance: "Allow" | "Deny";
|
|
19089
19096
|
}>;
|
|
19090
|
-
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
19091
|
-
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">>>;
|
|
19092
19099
|
}, "strip", z.ZodTypeAny, {
|
|
19093
19100
|
role: "operator";
|
|
19094
|
-
|
|
19095
|
-
|
|
19101
|
+
flip_balance: bigint;
|
|
19102
|
+
managed_validators: Partial<Record<`cF${string}`, bigint>>;
|
|
19103
|
+
delegators: Partial<Record<`cF${string}`, bigint>>;
|
|
19096
19104
|
settings: {
|
|
19097
19105
|
fee_bps: number;
|
|
19098
|
-
delegation_acceptance:
|
|
19106
|
+
delegation_acceptance: "Allow" | "Deny";
|
|
19099
19107
|
};
|
|
19100
|
-
allowed: string[];
|
|
19101
|
-
blocked: string[];
|
|
19108
|
+
allowed: `cF${string}`[];
|
|
19109
|
+
blocked: `cF${string}`[];
|
|
19102
19110
|
}, {
|
|
19103
19111
|
role: "operator";
|
|
19112
|
+
flip_balance: string | number;
|
|
19104
19113
|
managed_validators: Record<string, string | number>;
|
|
19105
19114
|
delegators: Record<string, string | number>;
|
|
19106
19115
|
settings: {
|
|
@@ -20387,6 +20396,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
20387
20396
|
apy_bp: z.ZodNullable<z.ZodNumber>;
|
|
20388
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>]>>;
|
|
20389
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>>;
|
|
20390
20400
|
}, "strip", z.ZodTypeAny, {
|
|
20391
20401
|
role: "validator";
|
|
20392
20402
|
flip_balance: bigint;
|
|
@@ -20403,6 +20413,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
20403
20413
|
apy_bp: number | null;
|
|
20404
20414
|
restricted_balances: Partial<Record<`0x${string}`, bigint>>;
|
|
20405
20415
|
estimated_redeemable_balance: bigint;
|
|
20416
|
+
operator?: `cF${string}` | undefined;
|
|
20406
20417
|
}, {
|
|
20407
20418
|
role: "validator";
|
|
20408
20419
|
flip_balance: string | number;
|
|
@@ -20419,6 +20430,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
20419
20430
|
apy_bp: number | null;
|
|
20420
20431
|
restricted_balances: Record<string, string | number>;
|
|
20421
20432
|
estimated_redeemable_balance: string | number;
|
|
20433
|
+
operator?: string | undefined;
|
|
20422
20434
|
}>]>;
|
|
20423
20435
|
declare const cfAccounts: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
|
|
20424
20436
|
declare const cfPoolPriceV2: z.ZodObject<{
|
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
|
}[];
|
|
@@ -17336,33 +17336,36 @@ declare const broker: z.ZodObject<{
|
|
|
17336
17336
|
}[] | undefined;
|
|
17337
17337
|
}>;
|
|
17338
17338
|
declare const operator: z.ZodObject<{
|
|
17339
|
+
flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
17339
17340
|
role: z.ZodLiteral<"operator">;
|
|
17340
|
-
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>]>>;
|
|
17341
|
-
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>]>>;
|
|
17342
17343
|
settings: z.ZodObject<{
|
|
17343
17344
|
fee_bps: z.ZodNumber;
|
|
17344
|
-
delegation_acceptance: z.
|
|
17345
|
+
delegation_acceptance: z.ZodEnum<["Allow", "Deny"]>;
|
|
17345
17346
|
}, "strip", z.ZodTypeAny, {
|
|
17346
17347
|
fee_bps: number;
|
|
17347
|
-
delegation_acceptance:
|
|
17348
|
+
delegation_acceptance: "Allow" | "Deny";
|
|
17348
17349
|
}, {
|
|
17349
17350
|
fee_bps: number;
|
|
17350
17351
|
delegation_acceptance: "Allow" | "Deny";
|
|
17351
17352
|
}>;
|
|
17352
|
-
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
17353
|
-
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">>>;
|
|
17354
17355
|
}, "strip", z.ZodTypeAny, {
|
|
17355
17356
|
role: "operator";
|
|
17356
|
-
|
|
17357
|
-
|
|
17357
|
+
flip_balance: bigint;
|
|
17358
|
+
managed_validators: Partial<Record<`cF${string}`, bigint>>;
|
|
17359
|
+
delegators: Partial<Record<`cF${string}`, bigint>>;
|
|
17358
17360
|
settings: {
|
|
17359
17361
|
fee_bps: number;
|
|
17360
|
-
delegation_acceptance:
|
|
17362
|
+
delegation_acceptance: "Allow" | "Deny";
|
|
17361
17363
|
};
|
|
17362
|
-
allowed: string[];
|
|
17363
|
-
blocked: string[];
|
|
17364
|
+
allowed: `cF${string}`[];
|
|
17365
|
+
blocked: `cF${string}`[];
|
|
17364
17366
|
}, {
|
|
17365
17367
|
role: "operator";
|
|
17368
|
+
flip_balance: string | number;
|
|
17366
17369
|
managed_validators: Record<string, string | number>;
|
|
17367
17370
|
delegators: Record<string, string | number>;
|
|
17368
17371
|
settings: {
|
|
@@ -18651,6 +18654,7 @@ declare const validator: z.ZodObject<{
|
|
|
18651
18654
|
apy_bp: z.ZodNullable<z.ZodNumber>;
|
|
18652
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>]>>;
|
|
18653
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>>;
|
|
18654
18658
|
}, "strip", z.ZodTypeAny, {
|
|
18655
18659
|
role: "validator";
|
|
18656
18660
|
flip_balance: bigint;
|
|
@@ -18667,6 +18671,7 @@ declare const validator: z.ZodObject<{
|
|
|
18667
18671
|
apy_bp: number | null;
|
|
18668
18672
|
restricted_balances: Partial<Record<`0x${string}`, bigint>>;
|
|
18669
18673
|
estimated_redeemable_balance: bigint;
|
|
18674
|
+
operator?: `cF${string}` | undefined;
|
|
18670
18675
|
}, {
|
|
18671
18676
|
role: "validator";
|
|
18672
18677
|
flip_balance: string | number;
|
|
@@ -18683,6 +18688,7 @@ declare const validator: z.ZodObject<{
|
|
|
18683
18688
|
apy_bp: number | null;
|
|
18684
18689
|
restricted_balances: Record<string, string | number>;
|
|
18685
18690
|
estimated_redeemable_balance: string | number;
|
|
18691
|
+
operator?: string | undefined;
|
|
18686
18692
|
}>;
|
|
18687
18693
|
declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
18688
18694
|
role: z.ZodLiteral<"unregistered">;
|
|
@@ -18987,11 +18993,11 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
18987
18993
|
}>;
|
|
18988
18994
|
btc_vault_deposit_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18989
18995
|
affiliates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18990
|
-
account_id: z.ZodString
|
|
18996
|
+
account_id: z.ZodEffects<z.ZodString, `cF${string}`, string>;
|
|
18991
18997
|
short_id: z.ZodNumber;
|
|
18992
18998
|
withdrawal_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
18993
18999
|
}, "strip", z.ZodTypeAny, {
|
|
18994
|
-
account_id: string
|
|
19000
|
+
account_id: `cF${string}`;
|
|
18995
19001
|
short_id: number;
|
|
18996
19002
|
withdrawal_address: `0x${string}`;
|
|
18997
19003
|
}, {
|
|
@@ -19031,7 +19037,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
19031
19037
|
};
|
|
19032
19038
|
};
|
|
19033
19039
|
affiliates: {
|
|
19034
|
-
account_id: string
|
|
19040
|
+
account_id: `cF${string}`;
|
|
19035
19041
|
short_id: number;
|
|
19036
19042
|
withdrawal_address: `0x${string}`;
|
|
19037
19043
|
}[];
|
|
@@ -19074,33 +19080,36 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
19074
19080
|
withdrawal_address: string;
|
|
19075
19081
|
}[] | undefined;
|
|
19076
19082
|
}>, z.ZodObject<{
|
|
19083
|
+
flip_balance: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
|
|
19077
19084
|
role: z.ZodLiteral<"operator">;
|
|
19078
|
-
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>]>>;
|
|
19079
|
-
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>]>>;
|
|
19080
19087
|
settings: z.ZodObject<{
|
|
19081
19088
|
fee_bps: z.ZodNumber;
|
|
19082
|
-
delegation_acceptance: z.
|
|
19089
|
+
delegation_acceptance: z.ZodEnum<["Allow", "Deny"]>;
|
|
19083
19090
|
}, "strip", z.ZodTypeAny, {
|
|
19084
19091
|
fee_bps: number;
|
|
19085
|
-
delegation_acceptance:
|
|
19092
|
+
delegation_acceptance: "Allow" | "Deny";
|
|
19086
19093
|
}, {
|
|
19087
19094
|
fee_bps: number;
|
|
19088
19095
|
delegation_acceptance: "Allow" | "Deny";
|
|
19089
19096
|
}>;
|
|
19090
|
-
allowed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
19091
|
-
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">>>;
|
|
19092
19099
|
}, "strip", z.ZodTypeAny, {
|
|
19093
19100
|
role: "operator";
|
|
19094
|
-
|
|
19095
|
-
|
|
19101
|
+
flip_balance: bigint;
|
|
19102
|
+
managed_validators: Partial<Record<`cF${string}`, bigint>>;
|
|
19103
|
+
delegators: Partial<Record<`cF${string}`, bigint>>;
|
|
19096
19104
|
settings: {
|
|
19097
19105
|
fee_bps: number;
|
|
19098
|
-
delegation_acceptance:
|
|
19106
|
+
delegation_acceptance: "Allow" | "Deny";
|
|
19099
19107
|
};
|
|
19100
|
-
allowed: string[];
|
|
19101
|
-
blocked: string[];
|
|
19108
|
+
allowed: `cF${string}`[];
|
|
19109
|
+
blocked: `cF${string}`[];
|
|
19102
19110
|
}, {
|
|
19103
19111
|
role: "operator";
|
|
19112
|
+
flip_balance: string | number;
|
|
19104
19113
|
managed_validators: Record<string, string | number>;
|
|
19105
19114
|
delegators: Record<string, string | number>;
|
|
19106
19115
|
settings: {
|
|
@@ -20387,6 +20396,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
20387
20396
|
apy_bp: z.ZodNullable<z.ZodNumber>;
|
|
20388
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>]>>;
|
|
20389
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>>;
|
|
20390
20400
|
}, "strip", z.ZodTypeAny, {
|
|
20391
20401
|
role: "validator";
|
|
20392
20402
|
flip_balance: bigint;
|
|
@@ -20403,6 +20413,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
20403
20413
|
apy_bp: number | null;
|
|
20404
20414
|
restricted_balances: Partial<Record<`0x${string}`, bigint>>;
|
|
20405
20415
|
estimated_redeemable_balance: bigint;
|
|
20416
|
+
operator?: `cF${string}` | undefined;
|
|
20406
20417
|
}, {
|
|
20407
20418
|
role: "validator";
|
|
20408
20419
|
flip_balance: string | number;
|
|
@@ -20419,6 +20430,7 @@ declare const cfAccountInfo: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
20419
20430
|
apy_bp: number | null;
|
|
20420
20431
|
restricted_balances: Record<string, string | number>;
|
|
20421
20432
|
estimated_redeemable_balance: string | number;
|
|
20433
|
+
operator?: string | undefined;
|
|
20422
20434
|
}>]>;
|
|
20423
20435
|
declare const cfAccounts: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
|
|
20424
20436
|
declare const cfPoolPriceV2: z.ZodObject<{
|
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,20 +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({
|
|
223
|
+
flip_balance: numberOrHex,
|
|
224
224
|
role: z.literal("operator"),
|
|
225
|
-
managed_validators: z.record(
|
|
226
|
-
delegators: z.record(
|
|
225
|
+
managed_validators: z.record(accountId, numberOrHex),
|
|
226
|
+
delegators: z.record(accountId, numberOrHex),
|
|
227
227
|
settings: z.object({
|
|
228
228
|
fee_bps: z.number(),
|
|
229
|
-
delegation_acceptance: z.
|
|
229
|
+
delegation_acceptance: z.enum(["Allow", "Deny"])
|
|
230
230
|
}),
|
|
231
|
-
allowed: z.array(
|
|
232
|
-
blocked: z.array(
|
|
231
|
+
allowed: z.array(accountId).optional().default([]),
|
|
232
|
+
blocked: z.array(accountId).optional().default([])
|
|
233
233
|
});
|
|
234
234
|
var boostBalances = z.array(
|
|
235
235
|
z.object({
|
|
@@ -263,7 +263,8 @@ var validator = z.object({
|
|
|
263
263
|
bound_redeem_address: hexString.nullable(),
|
|
264
264
|
apy_bp: z.number().nullable(),
|
|
265
265
|
restricted_balances: z.record(hexString, numberOrHex),
|
|
266
|
-
estimated_redeemable_balance: numberOrHex
|
|
266
|
+
estimated_redeemable_balance: numberOrHex,
|
|
267
|
+
operator: accountId.optional()
|
|
267
268
|
});
|
|
268
269
|
var cfAccountInfo = z.discriminatedUnion("role", [
|
|
269
270
|
unregistered,
|