@dodoex/dodo-contract-request
v1.34.0
Published
<p align="center"> <a> <img src="https://i.postimg.cc/W4q937Db/Logo.png" alt="DODO" /> </a> </p>
Readme
DODO Contract Request
Code automatically generated by @dodoex/contract-call-generate
Installation
To install the required dependencies, use:
yarn add @dodoex/dodo-contract-request Usage
Import contract configuration
import { ethereum } from '@dodoex/dodo-contract-request/config';Call contract method
import { ContractRequests } from '@dodoex/contract-request';
import {
setContractRequests,
multiCallAddressList,
fetchERC20BalanceOf,
} from '@dodoex/dodo-contract-request';
const contractRequests = new ContractRequests({
rpc: {
1: 'https://rpc.ankr.com/eth', // Ethereum Mainnet RPC
42161: 'https://arb1.arbitrum.io/rpc', // Arbitrum RPC
},
multiCallAddressList,
batchParameters: {
batchStallTime: 10, // Batch delay time in milliseconds
batchMaxCount: 100, // Maximum number of requests in a batch
},
});
setContractRequests(contractRequests);
const balance = await fetchERC20BalanceOf(
42161,
'0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9',
'xxx',
);Add contract configuration
The contract can be configured under the packages/dodo-contract-request/contract-config folder.After configuration, the action will be called to generate the contract code, it can be merged into the main branch and executed action to publish
Roadmap
Future plans and high-priority features and enhancements can be found in the roadmap.
Milestones
Tracking larger cycles, you can view milestones to keep up with ongoing changes and updates to the library.
