Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devop/get tokens #41

Closed
wants to merge 15 commits into from
Closed

Devop/get tokens #41

wants to merge 15 commits into from

Conversation

gamalielhere
Copy link
Contributor

@gamalielhere gamalielhere commented Aug 7, 2018

Devop

  • Updated CHANGELOG.md
  • Add PR label

@codecov
Copy link

codecov bot commented Aug 7, 2018

Codecov Report

Merging #41 into develop will decrease coverage by 0.16%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           develop     #41      +/-   ##
==========================================
- Coverage        4%   3.83%   -0.17%     
==========================================
  Files          377     410      +33     
  Lines         1625    1695      +70     
  Branches       107     102       -5     
==========================================
  Hits            65      65              
- Misses        1551    1621      +70     
  Partials         9       9
Impacted Files Coverage Δ
src/configs/networks/nodes/clo.js 0% <0%> (ø)
src/configs/networks/nodes/egem.js 0% <0%> (ø)
...out/components/InterfaceTokens/InterfaceTokens.vue 0% <0%> (ø) ⬆️
src/configs/networks/types/CLO.js 0% <0%> (ø)
src/configs/networks/types/ESN.js 0% <0%> (ø)
src/configs/networks/nodes/index.js 0% <0%> (ø) ⬆️
src/configs/networks/types/UBQ.js 0% <0%> (ø)
src/configs/networks/types/AKA.js 0% <0%> (ø)
src/configs/networks/types/KOV.js 0% <0%> (ø)
src/configs/networks/types/index.js 0% <0%> (ø) ⬆️
... and 105 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ec060ea...69b569c. Read the comment docs.

@gamalielhere gamalielhere added Devop Devop tasks Ready Tag for when a PR is ready to merge labels Aug 8, 2018
kvhnuke
kvhnuke previously requested changes Aug 8, 2018
@@ -0,0 +1,12 @@
const tokens = require('../../../../tokens/tokens-go.json')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use @ path

src/App.vue Outdated
const state = {
web3: window.web3 ? window.web3.setProvider(this.$store.state.Networks['ETH'][0].url) : web3,
web3: store.get('network') ? new Web3(new Web3.providers.HttpProvider(store.get('network').url)) : new Web3(new Web3.providers.HttpProvider(this.$store.state.Networks['ETH'][0].url)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is not always httpProvider, sometimes it can be websocket as well. You can simply pass the url to the web3 and it will recognize
new Web3(store.get('network').url)
https://web3js.readthedocs.io/en/1.0/getting-started.html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

to: web3.utils.toChecksumAddress(address),
data: data
}).then(res => unit.fromWei(web3.utils.toBN(res).toString(), 'ether')).catch(err => console.log(err))
}).then(res => {
const tokenBalance = unit.fromWei(web3.utils.toBN(res).toString(), 'ether')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const tokenBalance = web3.utils.toBN(res).div(10^token.decimals)

@gamalielhere gamalielhere mentioned this pull request Aug 17, 2018
1 task
@gamalielhere gamalielhere deleted the devop/get-tokens branch August 17, 2018 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Devop Devop tasks Ready Tag for when a PR is ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants