polkastarter / polkastarter-js Goto Github PK
View Code? Open in Web Editor NEW๐ฅ Javascript NPM Package to make it easier to contact with the Polkstarter BackEnd in Ethereum & Polkadot
License: MIT License
๐ฅ Javascript NPM Package to make it easier to contact with the Polkstarter BackEnd in Ethereum & Polkadot
License: MIT License
On the test suite we should check not only failing txs when we know we don't meet a require, we should also check the message.
Node Version: v12.19.0 & v14.15.4
Platfom: macOS Catalina 10.15.6 (19G73)
What steps will reproduce the bug?
import Application from 'polkastarter-js/src/models'
Expected behaviour
Library to be imported.
Actual behaviour
SystemError returned
.../node_modules/polkastarter-js/src/models/index.js:1
import Web3 from "web3";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at wrapSafe (internal/modules/cjs/loader.js:979:16)
at Module._compile (internal/modules/cjs/loader.js:1027:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at ModuleWrap.<anonymous> (internal/modules/esm/translators.js:199:29)
at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
at async Loader.import (internal/modules/esm/loader.js:166:24)
at async Object.loadESM (internal/process/esm_loader.js:68:5)
Additional information
I tried adding "type": "module"
to my package.json to no avail
I tried running the .js file with the flag --experimental-specifier-resolution=node
to no avail
I tried adding "type": "module"
to the package.json in polkastarter-js node module and the following error occurs
.../node_modules/polkastarter-js/src/models/ERC20TokenContract.js:2
import { ierc20 } from "../interfaces";
^^^^^^
SyntaxError: The requested module '../interfaces' does not provide an export named 'ierc20'
at ModuleJob._instantiate (internal/modules/esm/module_job.js:104:21)
at async ModuleJob.run (internal/modules/esm/module_job.js:149:5)
at async Loader.import (internal/modules/esm/loader.js:166:24)
at async Object.loadESM (internal/process/esm_loader.js:68:5)
Add an optional param to deploy, swap ratio, if this value exist divide 1 by that using mathjs and use it as trade Value.
Incorrect decimal calculation for tokensAllocated
Hello Dear Devs
Firstly my apologies for reporting it here, but I've struggled to get an answer for that on telegram and other means, but it was just horrible experience there and I was either ignored or wasn't understood...
As we know for most IDOs that starts on Polkastarter, participants can be eligible for the POLS pools either by holding 3000 POLS min 7 days or being provider of 1ETH/ETH worth of POLS.
I am not a programmer nor I understand deep enough the blockchain technology, so a doubt arouse in me when I provided required liquidity but stupidly exactly 1ETH/ETH of POLS. I say stupidly because later I've noticed on the blockchain that this 1ETH was transferred to 0.99999 ETH....
Now I have heard(at least that information I was able to get after hours of battle on telegram :D) that the Polkastarter projects are using some kind of program on blockchain that checks automatically for this 3000 POLS & 1ETH/1ETHPOLS addresses.
As you may understand me now, I am a bit concerned now if my address would be catch by this system, by your code(?) or not.
Please can you clarify this for me?
Thanks and again apologies for bothering, but I've tried everything...
Failed claim on DOSE and rainmaker. Give 'Fail with error 'ready to redeem' error msg.
And a warning on Metamask
0x64fe9a015ba8f02c38af52721d430e6fbfe96dd9
DOSE: https://bscscan.com/tx/0xd8665ac60360895733ecc5a7dcfa2926e9c1b122750552bc6b3955a0d6753af0
Rainmaker: https://bscscan.com/tx/0x6cd835ff2e957751ac02aa938a58eb324c884a205e7d540832be87dfc7252044
Fail with error "ready to redeem"
https://files.slack.com/files-tmb/T025ZBXD8VA-F036G8C3DGB-aca617473b/image_480.png
Metamask error
https://files.slack.com/files-pri/T025ZBXD8VA-F03761YNVKJ/image.png
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.