Comments (4)
Hello! Thanks for making this issue. The get-stats
script right now is hard coded to an address. You'll need to deploy your contracts and then change the address in the script to point to whoever you want to check the total user value for.
Have you run the migrations first?
yarn
truffle migrate --reset --network live
yarn start
Good question about the mapping. There is an object tokenPriceFeedMapping
. You need to map the address of the token to the address of the price feed for that token in that object. For example, if you want to find the price of LINK in USD, you'd add the LINK token address for Kovan, and the LINK/USD price feed for kovan.
Does that clarify? I can add this information to the blog if that makes sense.
from chainlink_defi.
Thank you for your reply. I have currently deployed the contracts to Kovan and am using Yarn to test the dapp.
I will set the get-stats.js script to my token and see if I get a different result.
I will mess around with it some more and see if I can get things to work. I still don't have any idea as to why the issue-token.js doesn't return any data from the network. Any ideas?
from chainlink_defi.
Thank you for your reply. I have currently deployed the contracts to Kovan and am using Yarn to test the dapp.
I will set the get-stats.js script to my token and see if I get a different result.
I will mess around with it some more and see if I can get things to work. I still don't have any idea as to why the issue-token.js doesn't return any data from the network. Any ideas?
Hmm... You may have to post the exact error here. We will have to make sure you're connected to the network properly. Are you able to deploy your smart contracts on the kovan network?
from chainlink_defi.
Closing due to inactivity.
from chainlink_defi.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chainlink_defi.