polkastarter-js is package to integrate Polkastarter Ethereum Integrations
Use the package manager [npm] to install npm.
npm i polkastarter-js
import moment from 'moment';
import Application from 'polkastarter-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')
});