oken-waas
Version:
Oken Wallet as a Service SDK
70 lines (52 loc) • 1.35 kB
TypeScript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import BN from "bn.js";
export type TxID = { transactionId: string };
export interface TropixWalletETH {
ADMIN_ROLE(): Promise<string>;
DEFAULT_ADMIN_ROLE(): Promise<string>;
balanceETH(): Promise<BN>;
depositETH: {
(): Promise<TxID>;
};
getRoleAdmin({ role }: { role: string }): Promise<string>;
getRoleMember({
role,
index,
}: {
role: string;
index: number | BN | string;
}): Promise<string>;
getRoleMemberCount({ role }: { role: string }): Promise<BN>;
grantRole: {
({ role, account }: { role: string; account: string }): Promise<TxID>;
};
hasRole({
role,
account,
}: {
role: string;
account: string;
}): Promise<boolean>;
renounceRole: {
({ role, account }: { role: string; account: string }): Promise<TxID>;
};
revokeRole: {
({ role, account }: { role: string; account: string }): Promise<TxID>;
};
supportsInterface({ interfaceId }: { interfaceId: string }): Promise<boolean>;
tropETH(): Promise<string>;
updateTropETH: {
({ erc20Address }: { erc20Address: string }): Promise<TxID>;
};
withdrawETH: {
({
account,
amount,
}: {
account: string;
amount: number | BN | string;
}): Promise<TxID>;
};
}