0xWeb
Search…
⌃K

Openzeppelin contracts

We include the pre-built OpenZeppelin contracts, so you can access deployed contracts based on those interfaces with ease.
List of contracts:
​

e.g. ERC20 contract

import { ERC20 } from '@dequanto-contracts/openzeppelin/ERC20';
import { Web3ClientFactory } from '@dequanto/clients/Web3ClientFactory';
​
let client = Web3ClientFactory.get('eth');
let token = new ERC20('0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', client);
let balance: bigint = await token.balanceOf('0x....');
Last modified 2mo ago