bcnmy / hyphen-sdk

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.
MIT License
5 stars 2 forks source link

feat: allow signing deposit transactions with private keys #7

Closed ToJen closed 2 years ago

ToJen commented 2 years ago

Description

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.

This PR allows clients to use the SDK outside of the browser environment (e.g. bots, scripts and servers). Specifically, this change enables clients to provide a wallet containing a private key they control and use that to sign deposit transactions and related transactions such as approveERC20.

Other minor changes made:

Type of change

Please delete options that are not relevant.

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

Test Configuration:

Steps to reproduce

Tests Added/Updated

Coverage

The --coverage flag has been passed into jest when running the tests. Once the test suite completes, the coverage will be printed to the terminal. A new folder called coverage will also be created (not tracked by git). Go to coverage/lcov-report/index.html and open the page in the browser.

Checklist: