-
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
feat(jellyfish-api-core): Add futureswap
RPC
#1273
Conversation
Code Climate has analyzed commit 403236c and detected 0 issues on this pull request. View more on Code Climate. |
✅ Deploy Preview for jellyfish-defi ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Codecov Report
@@ Coverage Diff @@
## main #1273 +/- ##
==========================================
+ Coverage 88.44% 90.72% +2.28%
==========================================
Files 337 348 +11
Lines 9675 10008 +333
Branches 1177 1222 +45
==========================================
+ Hits 8557 9080 +523
+ Misses 1063 881 -182
+ Partials 55 47 -8
Continue to review full report at Codecov.
|
Docker build preview for jellyfish/apps is ready! Built with commit 00913fa
|
a58b30a
to
a9990a2
Compare
…jellyfish into surangap/dfi2203-futures � Conflicts: � docs/node/CATEGORIES/08-account.md � packages/jellyfish-api-core/src/category/account.ts
This reverts commit 4d137e2.
cf90ff6
to
8a71f88
Compare
What if user passed in arbitrary UTXO? |
Some typos: Activat |
packages/jellyfish-api-core/__tests__/category/account/futureswap.test.ts
Outdated
Show resolved
Hide resolved
packages/jellyfish-api-core/__tests__/category/account/futureswap.test.ts
Outdated
Show resolved
Hide resolved
packages/jellyfish-api-core/__tests__/category/account/futureswap.test.ts
Outdated
Show resolved
Hide resolved
packages/jellyfish-api-core/__tests__/category/account/futureswap.test.ts
Outdated
Show resolved
Hide resolved
What happened if the oracle is removed after futureswap? |
invalid price -> https://github.com/DeFiCh/jellyfish/pull/1273/files#diff-ee8fba519a7bc06607fd3b0ea91b884d54fd950efd18398dcd9601ea0f771d00R549 |
packages/jellyfish-api-core/__tests__/category/account/futureswap.test.ts
Outdated
Show resolved
Hide resolved
db26ee4
…jellyfish into surangap/dfi2203-futures
This is the final one. If you passed in an arbitrary address like bcrt1qcnfukr6c78wlz2tqpv8vxe0zu339c06pmm3l30 as the address parameter of futureswap. You should get Received message: "RpcApiError: 'Incorrect authorization for bcrt1qcnfukr6c78wlz2tqpv8vxe0zu339c06pmm3l30', code: -5, method: futureswap" |
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.
🚀 LGTM
What this PR does / why we need it:
Add
futureswap
RPCWhich issue(s) does this PR fixes?:
Fixes part of #1268
Additional comments?:
DeFiCh/ain#1155