3.0.1 • Published 5 years ago
@zapjs/zaptoken v3.0.1
@zapjs/zaptoken
This repository provides an interface tothe Zap ERC20 token contract. This package enables a Zap holder to check their balance, transfer Zap to other accounts, and delegate transfers (approvals) to other accounts and smart contracts.
Prerequisites
- Node 12.20 <=14.15
- Typescript
Usage
Using ZapToken package for ERC20 methods with Zap Token
npm install --save `@zapjs/zaptoken`
import {ZaopToken} from '@zapjs/zaptoken';
let myZapToken = new ZapToken();
Custom configuration
let myZapToken = new ZapToken({networkId,networkProvider,coordinator})
get Zap balance of an addrss
const balance = await myZapToken.balanceOf(address);
Approve Zap Token to an address
await myZapToken.approve({from,to,amount,gas})
//note : from address has to be in web3.eth.accounts
Send Zap Token to an address
await myZapToken.send({from,to,amount,gas})
//note : from address has to be in web3.eth.accounts
See more Usages of each packages :
Built With
- Lerna - The tool to manage monorepo project
- Typescript
- Mocha
- Truffle
- Ganache
3.0.1
5 years ago
3.0.0
5 years ago
2.2.2
6 years ago
2.2.1
6 years ago
2.2.0
6 years ago
2.0.18
6 years ago
2.0.17
6 years ago
2.0.16
7 years ago
2.0.15
7 years ago
2.0.14
7 years ago
2.0.13
7 years ago
2.0.12
7 years ago
2.0.11
7 years ago
2.0.10
7 years ago
2.0.9
7 years ago
2.0.8
7 years ago
2.0.7
7 years ago
2.0.6
7 years ago
2.0.5
7 years ago
2.0.4
7 years ago
2.0.3
7 years ago
2.0.2
7 years ago
2.0.0
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago