"web3-abi": "https://github.com/gatechain/web3-abi#3.1.4"
- dist/umd/web3-abi.x.x.x.js // window.web3Abi
- ethers | window.ethers
- web3-contract | window.web3Contract
import { Web3Contract } from "web3-contract";
const contract = new Web3Contract({...})
contract.registerContract(SelfBridgeV1Contract)
// 1. use coustom contract address
const fee = await contract.SelfBridgeV1Contract?.getFee(5, 85, {
address: 'xxxxxxxxx',
})
// 2. use config contract address
const fee = await contract.SelfBridgeV1Contract?.getFee(5, 85)
版本 | 修改 | 备注 |
---|---|---|
3.1.4 | add PerpetualTemp | abigen: 1.0.7 |
3.1.3 | 修改 readme | web3-contract: 3.1.0 ethers: 5.7.2 |
3.1.1 | import abi json | web3-contract: 3.1.0 ethers: 5.7.2 |
3.0.7 | (old) web3-contract: 3.0.1 , ethers: 5.7.2 |
名称 | 描述 |
---|---|
erc20 | erc20 |
BridgeV1 | 跨链合约 |
erc1155 | erc1155 |
erc720 | erc720 |
NFT_exchange | NFT_exchange |
NFT_proxy | NFT_proxy |
wgt | wgt = WETH = Wrapped token |
UniswapV2Pair | uniswapV2 |
UniswapV2Router02 | uniswapV2 |
UniswapV3SwapRouter | uniswapV3 |
PerpetualTemp | withdrawMerkleProofTemp zk 跨链提现 |