dp-contract-proxy-kit
Version:
Enable batched transactions and contract account interactions using a unique deterministic Gnosis Safe.
16 lines (15 loc) • 797 B
TypeScript
import { Address } from '../../utils/basicTypes';
import { CallOptions, EthersTransactionResult, SendOptions } from '../../utils/transactions';
import { Contract } from '../EthLibAdapter';
import EthersAdapter from './';
declare class EthersV4ContractAdapter implements Contract {
contract: any;
ethersAdapter: EthersAdapter;
constructor(contract: any, ethersAdapter: EthersAdapter);
get address(): Address;
call(methodName: string, params: any[], options?: CallOptions): Promise<any>;
send(methodName: string, params: any[], options?: SendOptions): Promise<EthersTransactionResult>;
estimateGas(methodName: string, params: any[], options?: CallOptions): Promise<number>;
encode(methodName: string, params: any[]): string;
}
export default EthersV4ContractAdapter;