-
Notifications
You must be signed in to change notification settings - Fork 36
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 DfTx
for Create & Resign MasterNode
#283
Conversation
Code Climate has analyzed commit 627104f and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
size-limit report 📦
|
Codecov Report
@@ Coverage Diff @@
## main #283 +/- ##
==========================================
+ Coverage 96.49% 96.89% +0.39%
==========================================
Files 85 89 +4
Lines 2228 2380 +152
Branches 287 304 +17
==========================================
+ Hits 2150 2306 +156
+ Misses 78 74 -4
Continue to review full report at Codecov.
|
DfTx
for Create & Resign MasterNode
packages/jellyfish-transaction/src/script/defi/dftx_masternode.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com>
Deploy Preview for jellyfish-defi ready! Built with commit d08aeef |
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.
1 minor change in BufferComposer
Failing test, wrong error message |
* added dftx.indexer scaffolding * rewrote oracle into forward aggregation * added controller * added client oracles.ts * fix aggregated derivation * separated price client * refactor index * added price ticker * fixed dftx indexer issues * completed prices tests * fixed existing test failures * completed oracle invalidate test * fixed update.oracle.ts uncertainty test * Added interval indexers * Fixed tests * Modified interval to use time * Aggregate if no previous entries * Invalidate changes * Median time is in seconds * Added passing tests for interval indexer * Get rid of old controller names * Added controller functionality * Added controller functionality * Added whale api and tests * Fix code smell * Improve test coverage * Add greater than for prices * Sum up previous prices * Better aggregation * Fixed tests * Update packages/whale-api-client/src/api/prices.ts Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> * Change url * Update packages/whale-api-client/src/api/oracles.ts Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> * Increase limit * Fix test * Fix tests * Fix test url * Update src/module.indexer/model/dftx/set.oracle.data.ts Co-authored-by: Ivan Lee <44192990+ivan-zynesis@users.noreply.github.com> * Convert to key * Averaged * Fix client tests * Implement forward aggregation * Comments * Add parse int pipe * Fix typo in tests * Reduce indentation depth and remove spread operator * Added invalidation * Revised algorithm * Split out into another indexer * Update src/module.indexer/model/dftx/set.oracle.data.interval.ts Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> * Update src/module.indexer/model/dftx/set.oracle.data.interval.ts Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> * PR Feedback * Fix tests Co-authored-by: Fuxing Loh <git@fuxing.dev> Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> Co-authored-by: Ivan Lee <44192990+ivan-zynesis@users.noreply.github.com>
* added dftx.indexer scaffolding * rewrote oracle into forward aggregation * added controller * added client oracles.ts * fix aggregated derivation * separated price client * refactor index * added price ticker * fixed dftx indexer issues * completed prices tests * fixed existing test failures * completed oracle invalidate test * fixed update.oracle.ts uncertainty test * Added interval indexers * Fixed tests * Modified interval to use time * Aggregate if no previous entries * Invalidate changes * Median time is in seconds * Added passing tests for interval indexer * Get rid of old controller names * Added controller functionality * Added controller functionality * Added whale api and tests * Fix code smell * Improve test coverage * Add greater than for prices * Sum up previous prices * Better aggregation * Fixed tests * Update packages/whale-api-client/src/api/prices.ts Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> * Change url * Update packages/whale-api-client/src/api/oracles.ts Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> * Increase limit * Fix test * Fix tests * Fix test url * Update src/module.indexer/model/dftx/set.oracle.data.ts Co-authored-by: Ivan Lee <44192990+ivan-zynesis@users.noreply.github.com> * Convert to key * Averaged * Fix client tests * Implement forward aggregation * Comments * Add parse int pipe * Fix typo in tests * Reduce indentation depth and remove spread operator * Added invalidation * Revised algorithm * Split out into another indexer * Update src/module.indexer/model/dftx/set.oracle.data.interval.ts Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> * Update src/module.indexer/model/dftx/set.oracle.data.interval.ts Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> * PR Feedback * Fix tests Co-authored-by: Fuxing Loh <git@fuxing.dev> Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> Co-authored-by: Ivan Lee <44192990+ivan-zynesis@users.noreply.github.com>
* added dftx.indexer scaffolding * rewrote oracle into forward aggregation * added controller * added client oracles.ts * fix aggregated derivation * separated price client * refactor index * added price ticker * fixed dftx indexer issues * completed prices tests * fixed existing test failures * completed oracle invalidate test * fixed update.oracle.ts uncertainty test * Added interval indexers * Fixed tests * Modified interval to use time * Aggregate if no previous entries * Invalidate changes * Median time is in seconds * Added passing tests for interval indexer * Get rid of old controller names * Added controller functionality * Added controller functionality * Added whale api and tests * Fix code smell * Improve test coverage * Add greater than for prices * Sum up previous prices * Better aggregation * Fixed tests * Update packages/whale-api-client/src/api/prices.ts Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> * Change url * Update packages/whale-api-client/src/api/oracles.ts Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> * Increase limit * Fix test * Fix tests * Fix test url * Update src/module.indexer/model/dftx/set.oracle.data.ts Co-authored-by: Ivan Lee <44192990+ivan-zynesis@users.noreply.github.com> * Convert to key * Averaged * Fix client tests * Implement forward aggregation * Comments * Add parse int pipe * Fix typo in tests * Reduce indentation depth and remove spread operator * Added invalidation * Revised algorithm * Split out into another indexer * Update src/module.indexer/model/dftx/set.oracle.data.interval.ts Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> * Update src/module.indexer/model/dftx/set.oracle.data.interval.ts Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> * PR Feedback * Fix tests Co-authored-by: Fuxing Loh <git@fuxing.dev> Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> Co-authored-by: Ivan Lee <44192990+ivan-zynesis@users.noreply.github.com>
What kind of PR is this?:
/kind feature
What this PR does / why we need it:
Which issue(s) does this PR fixes?:
Fixes #
Additional comments?: