The address of the contract
The ethers.js Interface representing the contract
Optional flags specifying the default execution options for all functions
The address of the contract
Flags specifying the default execution options for all functions
A mapping from function names to ContractFunctions.
The ethers.js Interface representing the contract
Creates a Contract object from an ethers.js contract. All calls on the returned object will default to being standard CALL operations. Use this when you want your weiroll script to call a standard external contract.
The ethers.js Contract object to wrap.
Optionally specifies a non-default call type to use, such as CommandFlags.STATICCALL.
Creates a Contract object from an ethers.js contract. All calls on the returned object will default to being DELEGATECALL operations. Use this when you want your weiroll script to call a library specifically designed for use with weiroll.
The ethers.js Contract object to wrap.
Generated using TypeDoc
Provides a dynamically created interface to interact with Ethereum contracts via weiroll.
Once created using the constructor or the Contract.createContract or Contract.createLibrary functions, the returned object is automatically populated with methods that match those on the supplied contract. For instance, if your contract has a method
add(uint, uint)
, you can call it on the Contract object:Calling a contract function returns a FunctionCall object, which you can pass to Planner.add, Planner.addSubplan, or Planner.replaceState to add to the sequence of calls to plan.