Skip to content

Usage

Most of the usage of Ethers proxies are transparent, it means you don't have to directly instanciate the Ethers proxies classes but instead Tulipe performs some automatic instantiations and provides you with simple methods to do so.

When your DApp initialize :

  • dapp.provider is automatically filled with an instance of VEProviderProxy
  • dapp.signer is automatically filled with an instance of VESignerProxy
  • and the contracts you have configured in tulipe.config.js file are used to fill dapp.contracts.* with instances of VEContractProxy

And those methods create Ethers proxies instances :

  • dapp.contracts.add(). See ContractsList API
  • dapp.transactions.add(). See TransactionsList API

In case you work in some advanced scenarios and want to directly instanciate the Ethers proxies classes, see: Instantiation.

Released under the MIT License.