Protected constructorProtected
Private allocationsPrivate compilationsPrivate contractsPrivate ensPrivate ensPrivate networkPrivate providerPrivate referencePrivate registryPrivate userPrivate driveProtected encodeProtected
Protected encodeProtected
This method is asynchronous.
Constructs a contract instance encoder for a given instance of a contract in this project. Unlike [[forInstance]], this method doesn't require an artifact; it will automatically detect the class of the given contract. If it's not in the project, or the encoder can't identify it, you'll get an exception.
The address of the contract instance to encoder for. If an invalid address is provided, this method will throw an exception.
You can include this argument to specify that this should be based on the addresses content's at a specific block (if say the contract has since self-destructed).
This method is asynchronous.
Constructs a contract encoder for a given contract in this project.
The contract the encoder is for. If you want to encode contract creation transactions, it must have all of its libraries linked.
Note: The contract must be one that the encoder knows about; otherwise you will have problems.
This method is asynchronous.
Constructs a contract encoder for a given contract in this project.
The contract the encoder is for. If you want to encode contract creation transactions, it must have all of its libraries linked.
Note: The contract must be one that the encoder knows about; otherwise you will have problems.
This method is asynchronous.
Constructs a contract instance encoder for a given contract instance.
The artifact for the contract the encoder is for. If you want to encode contract creation transactions, it must have all of its libraries linked.
Note: The contract must be one that the encoder knows about; otherwise you will have problems.
Optional address: stringThe address of the contract instance. If omitted, but the project encoder has a provider or network ID, it will be autodetected. If there is no provider or network ID, it must be included.
If an invalid address is provided, this method will throw an exception.
Protected getProtected
Protected getProtected getProtected getProtected initPrivate recognizePrivate recognizePrivate recognizeProtected resolveProtected
Private resolvePrivate respondThis method is asynchronous.
This method recognizes user input for a given data type and attempts to interpret it as a value of that type. It will throw a [[TypeMismatchError]] if it cannot do this.
For documentation of the accepted forms of input, see [[ContractEncoder.encodeTransaction]].
The data type that the given value is to be interpreted as.
The value to be interpreted. This can take a number of forms depending on the data type, as documented above.
The interpreted value wrapped as a [[Format.Values.Value|Value]] object.
This method is asynchronous.
This is a restricted version of [[wrap]], which only handles elementary types and values (those that can be used as mapping keys in Solidity); it's present here for type convenience. See the [[wrap]] and [[ContractEncoder.encodeTransaction]] documentation for further information.
Protected wrapProtected
Generated using TypeDoc
The ProjectEncoder class. Can wrap values; can also encode transactions and resolve overloads if sufficient information is provided. See below for a method listing.