@cityofzion/bs-ethereum 2.2.2 → 2.2.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/dist/BSEthereum.js
CHANGED
|
@@ -160,9 +160,11 @@ class BSEthereum {
|
|
|
160
160
|
let transactionParams;
|
|
161
161
|
const isNative = BSEthereumHelper_1.BSEthereumHelper.normalizeHash(this.feeToken.hash) === BSEthereumHelper_1.BSEthereumHelper.normalizeHash(param.intent.tokenHash);
|
|
162
162
|
if (isNative) {
|
|
163
|
+
const gasPrice = yield provider.getGasPrice();
|
|
163
164
|
transactionParams = {
|
|
164
165
|
to: param.intent.receiverAddress,
|
|
165
166
|
value: amount,
|
|
167
|
+
gasPrice,
|
|
166
168
|
};
|
|
167
169
|
}
|
|
168
170
|
else {
|
|
@@ -57,7 +57,7 @@ class BlockscoutNeoXBDSEthereum extends RpcBDSEthereum_1.RpcBDSEthereum {
|
|
|
57
57
|
block: data.block,
|
|
58
58
|
hash: data.hash,
|
|
59
59
|
fee: ethers_1.ethers.utils.formatUnits(data.fee.value, nativeToken.decimals),
|
|
60
|
-
time: new Date(data.timestamp).getTime(),
|
|
60
|
+
time: new Date(data.timestamp).getTime() / 1000,
|
|
61
61
|
notifications: [],
|
|
62
62
|
transfers,
|
|
63
63
|
};
|
|
@@ -85,7 +85,7 @@ class BlockscoutNeoXBDSEthereum extends RpcBDSEthereum_1.RpcBDSEthereum {
|
|
|
85
85
|
block: item.block,
|
|
86
86
|
hash: item.hash,
|
|
87
87
|
fee: ethers_1.ethers.utils.formatUnits(item.fee.value, nativeToken.decimals),
|
|
88
|
-
time: new Date(item.timestamp).getTime(),
|
|
88
|
+
time: new Date(item.timestamp).getTime() / 1000,
|
|
89
89
|
notifications: [],
|
|
90
90
|
transfers,
|
|
91
91
|
});
|
|
@@ -161,7 +161,7 @@ class MoralisBDSEthereum extends RpcBDSEthereum_1.RpcBDSEthereum {
|
|
|
161
161
|
block: Number(data.block_number),
|
|
162
162
|
hash,
|
|
163
163
|
notifications: [],
|
|
164
|
-
time: new Date(data.block_timestamp).getTime(),
|
|
164
|
+
time: new Date(data.block_timestamp).getTime() / 1000,
|
|
165
165
|
transfers,
|
|
166
166
|
fee: data.transaction_fee,
|
|
167
167
|
};
|
|
@@ -226,7 +226,7 @@ class MoralisBDSEthereum extends RpcBDSEthereum_1.RpcBDSEthereum {
|
|
|
226
226
|
block: Number(item.block_number),
|
|
227
227
|
hash: item.hash,
|
|
228
228
|
notifications: [],
|
|
229
|
-
time: new Date(item.block_timestamp).getTime(),
|
|
229
|
+
time: new Date(item.block_timestamp).getTime() / 1000,
|
|
230
230
|
transfers,
|
|
231
231
|
fee: item.transaction_fee,
|
|
232
232
|
});
|