-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add appointOracle RPC #336
Conversation
✔️ Deploy Preview for jellyfish-defi ready! 🔨 Explore the source changes: 53942ca 🔍 Inspect the deploy log: https://app.netlify.com/sites/jellyfish-defi/deploys/60b858c29535ec0008e92c71 😎 Browse the preview: https://deploy-preview-336--jellyfish-defi.netlify.app |
size-limit report 📦
|
Code Climate has analyzed commit e8e0086 and detected 0 issues on this pull request. View more on Code Climate. |
Codecov Report
@@ Coverage Diff @@
## main #336 +/- ##
==========================================
+ Coverage 97.06% 97.07% +0.01%
==========================================
Files 92 93 +1
Lines 2589 2598 +9
Branches 329 331 +2
==========================================
+ Hits 2513 2522 +9
Misses 76 76
Continue to review full report at Codecov.
|
packages/jellyfish-api-core/__tests__/category/oracle/appointOracle.test.ts
Show resolved
Hide resolved
packages/jellyfish-api-core/__tests__/category/oracle/appointOracle.test.ts
Outdated
Show resolved
Hide resolved
packages/jellyfish-api-core/__tests__/category/oracle/appointOracle.test.ts
Show resolved
Hide resolved
Ahmed has approved this PR. But I remove the wrong comments after that. |
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.
Should test a few more edge conditions, I will merge first since I can see you wan to avoid conflicts as you have many staged commits.
* @param {UTXO[]} [options.utxos = []] | ||
* @param {string} [options.utxos.txid] | ||
* @param {number} [options.utxos.vout] | ||
* @return {Promise<string>} |
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.
should document that what is return is actually an txid
packages/jellyfish-api-core/__tests__/category/oracle/appointOracle.test.ts
Show resolved
Hide resolved
{ currency: 'USD', token: 'TESLA' }, | ||
{ currency: 'EUR', token: 'APPLE' } |
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.
should test anomalous text length, e.g. 1 char, 15 char
What kind of PR is this?:
/kind feature
What this PR does / why we need it:
Add appointoracle rpc
Which issue(s) does this PR fixes?:
Fixes part of #202
Additional comments?: