Code Monkey home page Code Monkey logo

polkastarter-js's People

Contributors

alejandroarker avatar dependabot[bot] avatar matheusrmeloo avatar nytyr avatar ruiub3i avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

polkastarter-js's Issues

Not possible to connect wallet on Chrome

the whole page is not loading properly and also connecting to wallet is just not possible. The button does not react to anything. in the console i am getting bunch of errors. see below:
errorpols

Error messages

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.

SyntaxError: Cannot use import statement outside a module

Node Version: v12.19.0 & v14.15.4
Platfom: macOS Catalina 10.15.6 (19G73)

What steps will reproduce the bug?

  • create a .js file with the following code
    import Application from 'polkastarter-js/src/models'
  • node run the .js file

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)

Swap ratio on deploy

Add an optional param to deploy, swap ratio, if this value exist divide 1 by that using mathjs and use it as trade Value.

How the 1ETH/1ETH of POLS is being checked?

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....

test

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.