We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to currently (or in the future) make the contract aware of the functions it supports? Example:
Thanks to TypeChain we have a generated contract type which would be as follows for the example above:
TypeChain
start_time( overrides?: CallOverrides ): Promise<{ 0: BigNumber; }>;
I'm thinking there might be a way to pass it to the Contract class if we make it generic — taking contract type as a type argument.
Contract
The text was updated successfully, but these errors were encountered:
It would be great to see it natively supported by the package.
Till then, we can do like this:
const contract = new MulticallContract(address, ABI) as unknown as ContractType
Sorry, something went wrong.
It would be great to see it natively supported by the package. Till then, we can do like this: const contract = new MulticallContract(address, ABI) as unknown as ContractType
Will return values with typed in this expression when calling provider.all?
It would be great to see it natively supported by the package. Till then, we can do like this: const contract = new MulticallContract(address, ABI) as unknown as ContractType Will return values with typed in this expression when calling provider.all?
It would be great to see it natively supported by the package. Till then, we can do like this:
Sadly no. You'd have to provide the return datatypes manually to .all as shown above
.all
No branches or pull requests
Is there a way to currently (or in the future) make the contract aware of the functions it supports? Example:
Thanks to
TypeChain
we have a generated contract type which would be as follows for the example above:I'm thinking there might be a way to pass it to the
Contract
class if we make it generic — taking contract type as a type argument.The text was updated successfully, but these errors were encountered: