MMeSports / polkastarter-js

💥 Javascript NPM Package to make it easier to contact with the Polkstarter BackEnd in Ethereum & Polkadot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

polkastarter-js

polkastarter-js is package to integrate Polkastarter Ethereum Integrations

Installation

Use the package manager [npm] to install npm.

npm i polkastarter-js

Usage

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')
});

License

MIT

About

💥 Javascript NPM Package to make it easier to contact with the Polkstarter BackEnd in Ethereum & Polkadot


Languages

Language:JavaScript 57.0%Language:HTML 30.4%Language:CSS 12.6%