@descent-protocol/sdk
Version:
A Typescript library for interacting with the Descent Protocol
13 lines (10 loc) • 480 B
text/typescript
import { InterfaceAbi, Signer, ethers } from 'ethers';
/**
* This is a contract object that is used to interact with the smart contract.
* @param {string} provider - The provider to use for the contract.
* @param {string} contractAddress - The address of the contract.
* @param {array} abi - The abi of the contract.
*/
export const Contract = (contractAddress: string, abi: InterfaceAbi, signer: Signer) => {
return new ethers.Contract(contractAddress, abi, signer);
};