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

chore: bump sdk version #32

Closed ToJen closed 1 year ago

ToJen commented 1 year ago

Description

Type of change

How Has This Been Tested?

Test Configuration:

Steps to reproduce

Using New Sample Function

Signature: async DepositManager.getTransferFee(request: GetTransferFeeRequest) => Promise<GetTransferFeeResponse>

Sample Request:

  const request: GetTransferFeeRequest = {
      fromChainId: -123,
      toChainId: -456,
      tokenAddress: "0xabc",
      amount: "1234567890",
  };

  const response = await depositManager.getTransferFee(request);

Sample Response:

{
  code: 200,
  message: "successfuly...",
  gasFee: "0",
  transferFee: "0.36006636000000003",
  transferFeePercentage: "0.12002212",
  reward: "0",
  netTransferFee: "0.36006636000000003",
  amountToGet: "299.63993364"
}

Automated Tests Added/Updated

Coverage

Checklist: