Skip to content

Commit

Permalink
chore: update hono type
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Jan 17, 2025
1 parent 3479a89 commit 818b024
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ const WithdrawModalContent = ({ dismiss }: { dismiss: () => void }) => {
toRss3?: boolean
}) => {
const amountBigInt = from(amount, 18)[0]
// @ts-expect-error FIXME: remove this line after API is back
await apiClient.wallets.transactions.withdraw.$post({
json: {
address,
Expand Down
21 changes: 21 additions & 0 deletions packages/shared/src/hono.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15677,6 +15677,27 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
status: 200;
};
};
} & {
"/withdraw": {
$post: {
input: {
json: {
amount: string;
address: string;
TOTPCode?: string | undefined;
toRss3?: boolean | undefined;
};
};
output: {
code: 0;
data: {
transactionHash: string;
};
};
outputFormat: "json";
status: 200;
};
};
} & {
"/claim-check": {
$get: {
Expand Down

0 comments on commit 818b024

Please sign in to comment.