@kimafinance/kima-transaction-api 1.3.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -36,8 +36,8 @@ interface RequestTxProps {
36
36
  targetAddress: string;
37
37
  originSymbol: CurrencyOptions;
38
38
  targetSymbol: CurrencyOptions;
39
- amount: number;
40
- fee: number;
39
+ amount: string;
40
+ fee: string;
41
41
  htlcCreationHash: string;
42
42
  htlcCreationVout: number;
43
43
  htlcExpirationTimestamp: string;
package/build/index.js CHANGED
@@ -75,8 +75,8 @@ async function submitKimaTransaction({ originChain, originAddress, targetChain,
75
75
  targetAddress,
76
76
  originSymbol,
77
77
  targetSymbol,
78
- amount: amount.toString(),
79
- fee: fee.toString(),
78
+ amount: amount,
79
+ fee: fee,
80
80
  htlcCreationHash,
81
81
  htlcCreationVout,
82
82
  htlcExpirationTimestamp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimafinance/kima-transaction-api",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "A wrapper around Kima's API, enabling sending and monitoring transactions (Beta version)",
5
5
  "repository": "https://github.com/kima-finance/kima-transaction-api",
6
6
  "author": "",
package/src/index.ts CHANGED
@@ -98,8 +98,8 @@ interface RequestTxProps {
98
98
  targetAddress: string;
99
99
  originSymbol: CurrencyOptions;
100
100
  targetSymbol: CurrencyOptions;
101
- amount: number;
102
- fee: number;
101
+ amount: string; // number in whole units i.e. "12.34"
102
+ fee: string; // number in whole units i.e "0.061234"
103
103
  htlcCreationHash: string;
104
104
  htlcCreationVout: number;
105
105
  htlcExpirationTimestamp: string;
@@ -151,8 +151,8 @@ export async function submitKimaTransaction({
151
151
  targetAddress,
152
152
  originSymbol,
153
153
  targetSymbol,
154
- amount: amount.toString(),
155
- fee: fee.toString(),
154
+ amount: amount,
155
+ fee: fee,
156
156
  htlcCreationHash,
157
157
  htlcCreationVout,
158
158
  htlcExpirationTimestamp,