-
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
sendTokensToAddress
RPC
#323
Conversation
Code Climate has analyzed commit 65b56b0 and detected 0 issues on this pull request. View more on Code Climate. |
size-limit report 📦
|
BehaviorTest fails when source address is provided but passes when an empty object is passed. Fails at it('should create a transaction with source address provided', async () => {
const to = await client.wallet.getNewAddress()
const from = await client.wallet.getNewAddress()
const transactionHex = await client.account.sendTokensToAddress({ [from]: '2@DFI' }, { [to]: '10@DBTC' })
expect(typeof transactionHex).toStrictEqual('string')
}) Error |
✔️ Deploy Preview for jellyfish-defi ready! 🔨 Explore the source changes: 1d81213 🔍 Inspect the deploy log: https://app.netlify.com/sites/jellyfish-defi/deploys/60d047ced1f0420008ebce48 😎 Browse the preview: https://deploy-preview-323--jellyfish-defi.netlify.app |
Codecov Report
@@ Coverage Diff @@
## main #323 +/- ##
==========================================
+ Coverage 97.06% 97.21% +0.15%
==========================================
Files 92 94 +2
Lines 2589 2696 +107
Branches 329 346 +17
==========================================
+ Hits 2513 2621 +108
+ Misses 76 75 -1
Continue to review full report at Codecov.
|
Take note of conflicts too. |
packages/jellyfish-api-core/__tests__/category/account/sendTokensToAddress.test.ts
Outdated
Show resolved
Hide resolved
packages/jellyfish-api-core/__tests__/category/account/sendTokensToAddress.test.ts
Outdated
Show resolved
Hide resolved
packages/jellyfish-api-core/__tests__/category/account/sendTokensToAddress.test.ts
Outdated
Show resolved
Hide resolved
i'm good overall |
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.
- take note of small details
- improve on code testing, don't declare and use a global variable if you don't have to, use additional describe blocks if you need to.
packages/jellyfish-api-core/__tests__/category/account/sendTokensToAddress.test.ts
Outdated
Show resolved
Hide resolved
packages/jellyfish-api-core/__tests__/category/account/sendTokensToAddress.test.ts
Outdated
Show resolved
Hide resolved
refactor your test |
Co-authored-by: Fuxing Loh <[email protected]>
Co-authored-by: Fuxing Loh <[email protected]>
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.
thanks this looks great ❤️
* Added basic APR * Fix client tests * PR suggestions * PR suggestions * Fix code smell * PR suggestions * Update packages/whale-api-client/src/api/poolpairs.ts * Add error for non dfi * Refactor code smell Refactor types to be cleaner by referencing instead of declaring Error should not fail but return undefined Should return fractional number not percentages Updated ttl to 60 minutes Co-authored-by: Fuxing Loh <[email protected]> Co-authored-by: Fuxing Loh <[email protected]>
* Added basic APR * Fix client tests * PR suggestions * PR suggestions * Fix code smell * PR suggestions * Update packages/whale-api-client/src/api/poolpairs.ts * Add error for non dfi * Refactor code smell Refactor types to be cleaner by referencing instead of declaring Error should not fail but return undefined Should return fractional number not percentages Updated ttl to 60 minutes Co-authored-by: Fuxing Loh <[email protected]> Co-authored-by: Fuxing Loh <[email protected]>
* Added basic APR * Fix client tests * PR suggestions * PR suggestions * Fix code smell * PR suggestions * Update packages/whale-api-client/src/api/poolpairs.ts * Add error for non dfi * Refactor code smell Refactor types to be cleaner by referencing instead of declaring Error should not fail but return undefined Should return fractional number not percentages Updated ttl to 60 minutes Co-authored-by: Fuxing Loh <[email protected]> Co-authored-by: Fuxing Loh <[email protected]>
What kind of PR is this?:
/kind feature
What this PR does / why we need it:
Add sendTokensToAddress RPC
Which issue(s) does this PR fixes?:
Fixes part of #48
Additional comments?