UNPKG

@asset-projects/ethers-wrapper

Version:
33 lines (32 loc) 2.41 kB
import { ethers, type Signer } from 'ethers'; /** * @param signer ethers.Signer; * @param transactionRequest: ethers.utils.Deferrable<ethers.providers.TransactionRequest>; * @returns Promise<ethers.BigNumber | undefined>; */ export declare const transactionEstimateGas: (signer: Signer, transactionRequest: ethers.utils.Deferrable<ethers.providers.TransactionRequest>) => Promise<ethers.BigNumber | undefined>; /** * @param signer ethers.Signer; * @param transactionRequest: ethers.utils.Deferrable<ethers.providers.TransactionRequest>; * @returns Promise<string<DataHexString>>; */ export declare const callTransaction: (signer: Signer, transactionRequest: ethers.utils.Deferrable<ethers.providers.TransactionRequest>) => Promise<string | undefined>; /** * @param signer ethers.Signer; * @param transactionRequest: ethers.utils.Deferrable<ethers.providers.TransactionRequest>; * @return Promise<ethers.providers.TransactionResponse | undefined>; */ export declare const sendTransaction: (signer: Signer, transactionRequest: ethers.utils.Deferrable<ethers.providers.TransactionRequest>) => Promise<ethers.providers.TransactionResponse | undefined>; /** * @param signer ethers.Signer; * @param legacyTxRequest Omit<ethers.utils.Deferrable<ethers.providers.TransactionRequest>, 'type' | 'maxFeePerGas' | 'maxPriorityFeePerGas'> * @returns Promise<ethers.providers.TransactionResponse | undefined>; */ export declare const sendLegacyTransaction: (signer: Signer, legacyTxRequest: Omit<ethers.utils.Deferrable<ethers.providers.TransactionRequest>, 'type' | 'maxFeePerGas' | 'maxPriorityFeePerGas'>) => Promise<ethers.providers.TransactionResponse | undefined>; /** * @param signer ethers.Signer; * @param eip1559TxRequest: Omit<ethers.utils.Deferrable<ethers.providers.TransactionRequest>, 'type' | 'gasPrice'> * @returns Promise<ethers.providers.TransactionResponse | undefined>; */ export declare const sendEIP1559Transaction: (signer: Signer, eip1559TxRequest: Omit<ethers.utils.Deferrable<ethers.providers.TransactionRequest>, 'type' | 'gasPrice'>) => Promise<ethers.providers.TransactionResponse | undefined>; export declare const sendEtherTransaction: (signer: Signer, to: string, value: ethers.BigNumberish, txRequestOptions?: Omit<ethers.utils.Deferrable<ethers.providers.TransactionRequest>, "to" | "value"> | undefined) => Promise<ethers.providers.TransactionResponse | undefined>;