@dfinity/oisy-wallet-signer
Version:
A library designed to facilitate communication between a dApp and the OISY Wallet on the Internet Computer.
279 lines (278 loc) • 7.43 kB
TypeScript
import * as z from 'zod';
export declare const i18nCoreSchema: z.ZodObject<{
amount: z.ZodString;
from: z.ZodString;
to: z.ZodString;
fee: z.ZodString;
memo: z.ZodString;
}, "strict", z.ZodTypeAny, {
to: string;
amount: string;
fee: string;
memo: string;
from: string;
}, {
to: string;
amount: string;
fee: string;
memo: string;
from: string;
}>;
export declare const i18nIcrc1_transferSchema: z.ZodObject<{
title: z.ZodString;
}, "strict", z.ZodTypeAny, {
title: string;
}, {
title: string;
}>;
export declare const i18nIcrc2_approveSchema: z.ZodObject<{
title: z.ZodString;
address_is_allowed: z.ZodString;
your_account: z.ZodString;
requested_withdrawal_allowance: z.ZodString;
withdrawal_allowance: z.ZodObject<{
some: z.ZodString;
none: z.ZodString;
}, "strip", z.ZodTypeAny, {
some: string;
none: string;
}, {
some: string;
none: string;
}>;
expiration_date: z.ZodObject<{
title: z.ZodString;
none: z.ZodString;
}, "strip", z.ZodTypeAny, {
none: string;
title: string;
}, {
none: string;
title: string;
}>;
approval_fee: z.ZodString;
approver_account_transaction_fees: z.ZodString;
}, "strict", z.ZodTypeAny, {
title: string;
address_is_allowed: string;
your_account: string;
requested_withdrawal_allowance: string;
withdrawal_allowance: {
some: string;
none: string;
};
expiration_date: {
none: string;
title: string;
};
approval_fee: string;
approver_account_transaction_fees: string;
}, {
title: string;
address_is_allowed: string;
your_account: string;
requested_withdrawal_allowance: string;
withdrawal_allowance: {
some: string;
none: string;
};
expiration_date: {
none: string;
title: string;
};
approval_fee: string;
approver_account_transaction_fees: string;
}>;
export declare const i18nIcrc2_transfer_fromSchema: z.ZodObject<{
title: z.ZodString;
withdrawal_account: z.ZodString;
sending_the_transfer_request: z.ZodString;
amount_to_withdraw: z.ZodString;
fee_paid_by_withdrawal_account: z.ZodString;
}, "strict", z.ZodTypeAny, {
title: string;
withdrawal_account: string;
sending_the_transfer_request: string;
amount_to_withdraw: string;
fee_paid_by_withdrawal_account: string;
}, {
title: string;
withdrawal_account: string;
sending_the_transfer_request: string;
amount_to_withdraw: string;
fee_paid_by_withdrawal_account: string;
}>;
export declare const i18Schema: z.ZodObject<{
core: z.ZodObject<{
amount: z.ZodString;
from: z.ZodString;
to: z.ZodString;
fee: z.ZodString;
memo: z.ZodString;
}, "strict", z.ZodTypeAny, {
to: string;
amount: string;
fee: string;
memo: string;
from: string;
}, {
to: string;
amount: string;
fee: string;
memo: string;
from: string;
}>;
icrc1_transfer: z.ZodObject<{
title: z.ZodString;
}, "strict", z.ZodTypeAny, {
title: string;
}, {
title: string;
}>;
icrc2_approve: z.ZodObject<{
title: z.ZodString;
address_is_allowed: z.ZodString;
your_account: z.ZodString;
requested_withdrawal_allowance: z.ZodString;
withdrawal_allowance: z.ZodObject<{
some: z.ZodString;
none: z.ZodString;
}, "strip", z.ZodTypeAny, {
some: string;
none: string;
}, {
some: string;
none: string;
}>;
expiration_date: z.ZodObject<{
title: z.ZodString;
none: z.ZodString;
}, "strip", z.ZodTypeAny, {
none: string;
title: string;
}, {
none: string;
title: string;
}>;
approval_fee: z.ZodString;
approver_account_transaction_fees: z.ZodString;
}, "strict", z.ZodTypeAny, {
title: string;
address_is_allowed: string;
your_account: string;
requested_withdrawal_allowance: string;
withdrawal_allowance: {
some: string;
none: string;
};
expiration_date: {
none: string;
title: string;
};
approval_fee: string;
approver_account_transaction_fees: string;
}, {
title: string;
address_is_allowed: string;
your_account: string;
requested_withdrawal_allowance: string;
withdrawal_allowance: {
some: string;
none: string;
};
expiration_date: {
none: string;
title: string;
};
approval_fee: string;
approver_account_transaction_fees: string;
}>;
icrc2_transfer_from: z.ZodObject<{
title: z.ZodString;
withdrawal_account: z.ZodString;
sending_the_transfer_request: z.ZodString;
amount_to_withdraw: z.ZodString;
fee_paid_by_withdrawal_account: z.ZodString;
}, "strict", z.ZodTypeAny, {
title: string;
withdrawal_account: string;
sending_the_transfer_request: string;
amount_to_withdraw: string;
fee_paid_by_withdrawal_account: string;
}, {
title: string;
withdrawal_account: string;
sending_the_transfer_request: string;
amount_to_withdraw: string;
fee_paid_by_withdrawal_account: string;
}>;
}, "strict", z.ZodTypeAny, {
icrc1_transfer: {
title: string;
};
icrc2_approve: {
title: string;
address_is_allowed: string;
your_account: string;
requested_withdrawal_allowance: string;
withdrawal_allowance: {
some: string;
none: string;
};
expiration_date: {
none: string;
title: string;
};
approval_fee: string;
approver_account_transaction_fees: string;
};
icrc2_transfer_from: {
title: string;
withdrawal_account: string;
sending_the_transfer_request: string;
amount_to_withdraw: string;
fee_paid_by_withdrawal_account: string;
};
core: {
to: string;
amount: string;
fee: string;
memo: string;
from: string;
};
}, {
icrc1_transfer: {
title: string;
};
icrc2_approve: {
title: string;
address_is_allowed: string;
your_account: string;
requested_withdrawal_allowance: string;
withdrawal_allowance: {
some: string;
none: string;
};
expiration_date: {
none: string;
title: string;
};
approval_fee: string;
approver_account_transaction_fees: string;
};
icrc2_transfer_from: {
title: string;
withdrawal_account: string;
sending_the_transfer_request: string;
amount_to_withdraw: string;
fee_paid_by_withdrawal_account: string;
};
core: {
to: string;
amount: string;
fee: string;
memo: string;
from: string;
};
}>;
export type I18n = z.infer<typeof i18Schema>;