-
Notifications
You must be signed in to change notification settings - Fork 286
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
oracles-and-oracle-networks #362
Conversation
} | ||
|
||
// Call the function to fetch the SOL price | ||
fetchSolPrice(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for wrapper functions. See CONTRIBUTING.md.
AggregatorAccount, | ||
SwitchboardProgram, | ||
} from "@switchboard-xyz/solana.js"; | ||
import * as anchor from "@project-serum/anchor"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@project-serum/anchor
does not exist anymore.
though, it’s helpful to break it up across different files. Our program will | ||
have the following files within the `programs/src` directory: | ||
code to a single `lib.rs` file and call it a day. To keep it more organized, | ||
though, it’s helpful to break it up across different files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the multiple
files template. This is mentioned in CONTRIBUTING.md.
assert(failUnlockPrice == newAccount.unlockPrice); | ||
assert(escrowBalance > 0); | ||
assert.strictEqual(failUnlockPrice, newAccount.unlockPrice); | ||
assert.isAbove(escrowBalance, 0); | ||
} catch (e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use full names. This is mentioned in CONTRIBUTING.md
], | ||
"exclude": ["node_modules"] | ||
"exclude": ["node_modules"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these from the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR seems mainly to be minor grammar fixes, updates from Switchboard's GitHub gists, and doesn't meet the CONTRIBUTING.md requirements.
Problem
anchor
importedSummary of Changes
I Made Grammar and code modifications to the article.
Fixes #
I modified the aggregator contract based on the source code reference on github
Resolved grammatic errors,
Made changes to foster concise reading
Corrected Spell Checks
Updated & replaced broken Links
Modified typescript unit test to do the following:
For the Typescript contract call script:
Note: apologies for the 2 extra edited file; a little setback from using Prettify