UNPKG

myria-core-sdk

Version:

Latest version SDK

15 lines (14 loc) 997 B
import Web3 from "web3"; import { SendOptions, TxResult } from "../types/CommonTypes"; import MContract from "./Contract"; import { provider as Provider } from 'web3-core'; import { GenericERC20Network } from "../types"; export declare class WithdrawalContract extends MContract { constructor(provider: Provider, networkId: number, web3: Web3, sendOptions?: SendOptions, networks?: GenericERC20Network); buildOptionsWithNonceAndGas(options?: SendOptions): Promise<SendOptions>; withdrawal(ownerKey: string, assetType: string, options?: SendOptions): Promise<TxResult>; withdrawalNft(ownerKey: string, assetType: string, tokenId: string, options?: SendOptions): Promise<TxResult>; withdrawAndMint(ownerKey: string, assetType: string, mintingBlob: string, options?: SendOptions): Promise<TxResult>; getWithdrawalBalance(ownerKey: string, assetId: string, options?: SendOptions): Promise<TxResult>; getEthKey(starkKey: string, options?: SendOptions): Promise<TxResult>; }