feat: 实现发行申请提交
This commit is contained in:
@@ -9,7 +9,7 @@ const client = treaty<App>(window.location.origin, {
|
||||
});
|
||||
|
||||
export async function safeClient<T, E>(
|
||||
requestPromise: Promise<{ data: T; error: E | null }>,
|
||||
requestPromise: Promise<{ data: T; error: E }>,
|
||||
options: { silent?: boolean } = {},
|
||||
) {
|
||||
const { data, error } = await requestPromise;
|
||||
|
||||
@@ -19,3 +19,9 @@ export type WithdrawBody = Omit<Parameters<typeof client.api.withdraw.post>[0],
|
||||
export type UserProfileData = Treaty.Data<typeof client.api.user.profile.get>["userProfile"];
|
||||
|
||||
export type UpdateUserProfileBody = NonNullable<Parameters<typeof client.api.user.profile.put>[0]>;
|
||||
|
||||
export type RwaIssuanceProductsData = Treaty.Data<typeof client.api.rwa.issuance.products.bundle.post>;
|
||||
|
||||
export type RwaIssuanceProductBody = NonNullable<Parameters<typeof client.api.rwa.issuance.products.bundle.post>[0]>;
|
||||
|
||||
export type RwaIssuanceCategoriesData = Treaty.Data<typeof client.api.rwa.issuance.categories.get>;
|
||||
|
||||
Reference in New Issue
Block a user