@avalabs/bridge-unified
Advanced tools
Comparing version 0.0.0-feat-unified-api-interface-20231129143853 to 0.0.0-feat-unified-api-interface-20231129155902
# @avalabs/unified-bridge | ||
## 0.0.0-feat-unified-api-interface-20231129143853 | ||
## 0.0.0-feat-unified-api-interface-20231129155902 | ||
@@ -5,0 +5,0 @@ ### Major Changes |
{ | ||
"name": "@avalabs/bridge-unified", | ||
"version": "0.0.0-feat-unified-api-interface-20231129143853", | ||
"version": "0.0.0-feat-unified-api-interface-20231129155902", | ||
"main": "dist/index.js", | ||
@@ -18,3 +18,3 @@ "type": "module", | ||
"@internal/tsup-config": "0.0.1", | ||
"eslint-config-custom": "0.0.0-feat-unified-api-interface-20231129143853" | ||
"eslint-config-custom": "0.0.0-feat-unified-api-interface-20231129155902" | ||
}, | ||
@@ -21,0 +21,0 @@ "scripts": { |
@@ -21,3 +21,3 @@ import type { Address } from 'viem'; | ||
sourceTxHash: string; | ||
sourceNetworkFee?: bigint; // TODO: should be number? currently it returns the amount in gwei | ||
sourceNetworkFee?: bigint; | ||
sourceConfirmationCount: number; | ||
@@ -24,0 +24,0 @@ requiredSourceConfirmationCount: number; |
import { type Transaction, type TransactionReceipt } from 'viem'; | ||
// returns the network fee for EVM transaction in gwei (10^-9) | ||
// returns the network fee for EVM transaction in wei (10**-18) | ||
export const getNetworkFeeEVM = (transaction: Transaction, receipt: TransactionReceipt) => { | ||
return transaction.gasPrice && BigInt(transaction.gasPrice * receipt.gasUsed); | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
312550