1.2.20 • Published 3 years ago

taalswap-js v1.2.20

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

taalswap-js

taalswap-js is package to integrate TaalSwap Ethereum Integrations

Installation

Use the package manager npm to install npm.

npm i taalswap-js

Usage

import moment from 'moment';
import Application from 'taalswap-js/models';

/* Test Version */
let app = new Application({test : true});

/* Create Contract */
let swapContract = app.getFixedSwapContract({tokenAddress : '0x3237fff7f25a354f68b2054a019c5a00135a8955', decimals : 18});

/* Deploy */
await swapContract.deploy({
    tradeValue : 0.001, 
    tokensForSale : 100, 
    startDate : moment().add(6, 'hours'),
    endDate : moment().add(16, 'hours')
});

License

MIT