Repository containing Hyphen SDK code that helps you integrate Hyphen cross-chain asset transfer protocol in your Dapp. Hyphen SDK provides you simple to use methods that connects directly with Hyphen liquidity pools on supported chains and hyphen nodes to fetch information related to cross chain transfer transactions.
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
adds a new method to the DepositManager class called getTransferFee which calls our Transfer Fee API thereby providing the functionality within the SDK and replaces the need to call the now deprecated LiquidityPoolManager.adminFee smart contract function.
refactors the tag field to dAppName in the deposit function.
Type of change
Please delete options that are not relevant.
[X] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[X] This change requires a documentation update
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
[X] Manual Testing
Tested Hyphen-UI locally using by pointing its Hyphen-SDK dependency to my local changes. Performed a few transfers and they worked .
Description
This change:
getTransferFee
which calls our Transfer Fee API thereby providing the functionality within the SDK and replaces the need to call the now deprecatedLiquidityPoolManager.adminFee
smart contract function.tag
field todAppName
in thedeposit
function.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
getTransferFee
functionalityTest Configuration:
Nothing special yet but note that for e2e tests, a .env file has to be created based on the .env.example template file under test/e2e/.
Steps to reproduce
yarn
to install the new dependencies.yarn dev
.yarn test:unit
to run unit tests alone (with coverage).yarn e2e
to run e2e tests alone.yarn test
to run the full test suite.Automated Tests Added/Updated
test/unit
folder which has a similar folder structure as thesrc
folder.Coverage
Based on unit tests only:![Screen Shot 2022-05-27 at 6 45 25 AM](https://user-images.githubusercontent.com/13075885/170685102-421ecbed-fa27-4f5c-993f-1c074edbcf04.png)
Checklist: