New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@avalabs/bridge-unified

Package Overview
Dependencies
Maintainers
1
Versions
188
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@avalabs/bridge-unified - npm Package Compare versions

Comparing version 0.0.0-feat-unified-api-interface-20231129143853 to 0.0.0-feat-unified-api-interface-20231129155902

2

CHANGELOG.md
# @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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc