Rinkeby migration and example cleanup#819
Merged
dwightjl merged 5 commits intosmartcontractkit:mainfrom Jun 29, 2022
dwightjl:rinkeby-migration
Merged
Rinkeby migration and example cleanup#819dwightjl merged 5 commits intosmartcontractkit:mainfrom dwightjl:rinkeby-migration
dwightjl merged 5 commits intosmartcontractkit:mainfrom
dwightjl:rinkeby-migration
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
Author
|
Squashed and rebased to main |
Remove Parity examples, remove old samples
aelmanaa
requested changes
Jun 29, 2022
| @@ -113,7 +113,7 @@ | |||
|
|
|||
Collaborator
There was a problem hiding this comment.
please update this function (still using kovan)
function getHistoricalPrice() {
document.getElementById('get-price-field').value = "loading...";
const web3 = new Web3("https://kovan.infura.io/v3/34ed41c4cf28406885f032930d670036");
const aggregatorV3InterfaceABI = [{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"_roundId","type":"uint80"}],"name":"getRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}];
const addr = "0x9326BFA02ADD2366b30bacB125260Af641031331";
const priceFeed = new web3.eth.Contract(aggregatorV3InterfaceABI, addr);
// Valid roundId must be known. They are NOT incremental.
let validId = BigInt("18446744073709562301");
priceFeed.methods.getRoundData(validId).call()
.then((historicalRoundData) => {
document.getElementById('get-price-field').value = historicalRoundData.answer;
})
}
Contributor
Author
There was a problem hiding this comment.
I'm leaving those endpoint URLs alone for now. I need to get another endpoint started that we can use in the docs.
Co-authored-by: Amine E. <aelmanaa@users.noreply.github.com>
aelmanaa
approved these changes
Jun 29, 2022
dev-dist
added a commit
that referenced
this pull request
Feb 23, 2026
* httpConf secrets clarification (#3476) * Clarify token receiver security pattern for PTT to Solana (#3469) * Migrate from Gelato guide (#3477) * migrate from Gelato guide * update sidebar * update sidebar * update sidebar --------- Co-authored-by: Karim H. <98668332+khadni@users.noreply.github.com> Co-authored-by: Syed Asad Kazmi <36279345+SyedAsadKazmi@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on the following PR: smartcontractkit/smart-contract-examples#16