Variable StashedResponseConst
StashedResponse: ObjectSchema<{
id: StringSchema<string>;
payload: VariantSchema<"type", [ObjectSchema<{
type: LiteralSchema<"reject", "reject">;
}, undefined, {
type: "reject";
}>, ObjectSchema<{
data: VariantSchema<"type", [ObjectSchema<{
address: StringSchema<(...)>;
type: LiteralSchema<(...), (...)>;
}, undefined, {
address: string;
type: "connect";
}>, ObjectSchema<{
bytes: StringSchema<(...)>;
signature: StringSchema<(...)>;
type: LiteralSchema<(...), (...)>;
}, undefined, {
bytes: string;
signature: string;
type: "sign-transaction-block";
}>, ObjectSchema<{
bytes: StringSchema<(...)>;
signature: StringSchema<(...)>;
type: LiteralSchema<(...), (...)>;
}, undefined, {
bytes: string;
signature: string;
type: "sign-personal-message";
}>], {
address: string;
type: "connect";
} | {
bytes: string;
signature: string;
type: "sign-transaction-block";
} | {
bytes: string;
signature: string;
type: "sign-personal-message";
}>;
type: LiteralSchema<"resolve", "resolve">;
}, undefined, {
data: {
address: string;
type: "connect";
} | {
bytes: string;
signature: string;
type: "sign-transaction-block";
} | {
bytes: string;
signature: string;
type: "sign-personal-message";
};
type: "resolve";
}>], {
type: "reject";
} | {
data: {
address: string;
type: "connect";
} | {
bytes: string;
signature: string;
type: "sign-transaction-block";
} | {
bytes: string;
signature: string;
type: "sign-personal-message";
};
type: "resolve";
}>;
source: LiteralSchema<"zksend-channel", "zksend-channel">;
}, undefined, {
id: string;
payload: {
type: "reject";
} | {
data: {
address: string;
type: "connect";
} | {
bytes: string;
signature: string;
type: "sign-transaction-block";
} | {
bytes: string;
signature: string;
type: "sign-personal-message";
};
type: "resolve";
};
source: "zksend-channel";
}> = ...
Type declaration
id: StringSchema<string>
payload: VariantSchema<"type", [ObjectSchema<{
type: LiteralSchema<"reject", "reject">;
}, undefined, {
type: "reject";
}>, ObjectSchema<{
data: VariantSchema<"type", [ObjectSchema<{
address: StringSchema<(...)>;
type: LiteralSchema<(...), (...)>;
}, undefined, {
address: string;
type: "connect";
}>, ObjectSchema<{
bytes: StringSchema<(...)>;
signature: StringSchema<(...)>;
type: LiteralSchema<(...), (...)>;
}, undefined, {
bytes: string;
signature: string;
type: "sign-transaction-block";
}>, ObjectSchema<{
bytes: StringSchema<(...)>;
signature: StringSchema<(...)>;
type: LiteralSchema<(...), (...)>;
}, undefined, {
bytes: string;
signature: string;
type: "sign-personal-message";
}>], {
address: string;
type: "connect";
} | {
bytes: string;
signature: string;
type: "sign-transaction-block";
} | {
bytes: string;
signature: string;
type: "sign-personal-message";
}>;
type: LiteralSchema<"resolve", "resolve">;
}, undefined, {
data: {
address: string;
type: "connect";
} | {
bytes: string;
signature: string;
type: "sign-transaction-block";
} | {
bytes: string;
signature: string;
type: "sign-personal-message";
};
type: "resolve";
}>], {
type: "reject";
} | {
data: {
address: string;
type: "connect";
} | {
bytes: string;
signature: string;
type: "sign-transaction-block";
} | {
bytes: string;
signature: string;
type: "sign-personal-message";
};
type: "resolve";
}>
source: LiteralSchema<"zksend-channel", "zksend-channel">
Type declaration
id: string
payload: {
type: "reject";
} | {
data: {
address: string;
type: "connect";
} | {
bytes: string;
signature: string;
type: "sign-transaction-block";
} | {
bytes: string;
signature: string;
type: "sign-personal-message";
};
type: "resolve";
}
source: "zksend-channel"