@longdotxyz/shared 0.0.74 → 0.0.76

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.
@@ -1,5 +0,0 @@
1
- import { Hex } from "../types";
2
- export declare const NATIVE_ETH_ADDRESS: Hex;
3
- export declare const WETH_ADDRESSES: Record<number, Hex>;
4
- export declare function getWETHAddress(chainId: number): Hex;
5
- export declare function isNativeETH(address: string): boolean;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WETH_ADDRESSES = exports.NATIVE_ETH_ADDRESS = void 0;
4
- exports.getWETHAddress = getWETHAddress;
5
- exports.isNativeETH = isNativeETH;
6
- exports.NATIVE_ETH_ADDRESS = "0x0000000000000000000000000000000000000000";
7
- exports.WETH_ADDRESSES = {
8
- 1: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
9
- 8453: "0x4200000000000000000000000000000000000006",
10
- 10: "0x4200000000000000000000000000000000000006",
11
- 42161: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
12
- 137: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
13
- 56: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
14
- 43114: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
15
- };
16
- function getWETHAddress(chainId) {
17
- const weth = exports.WETH_ADDRESSES[chainId];
18
- if (!weth) {
19
- throw new Error(`WETH address not configured for chain ${chainId}`);
20
- }
21
- return weth;
22
- }
23
- function isNativeETH(address) {
24
- return address.toLowerCase() === exports.NATIVE_ETH_ADDRESS.toLowerCase();
25
- }
26
- //# sourceMappingURL=native-token.util.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"native-token.util.js","sourceRoot":"","sources":["../../src/utils/native-token.util.ts"],"names":[],"mappings":";;;AAcA,wCAMC;AAED,kCAEC;AAtBY,QAAA,kBAAkB,GAAG,4CAAmD,CAAC;AAEzE,QAAA,cAAc,GAAwB;IAC/C,CAAC,EAAE,4CAA4C;IAC/C,IAAI,EAAE,4CAA4C;IAClD,EAAE,EAAE,4CAA4C;IAChD,KAAK,EAAE,4CAA4C;IACnD,GAAG,EAAE,4CAA4C;IACjD,EAAE,EAAE,4CAA4C;IAChD,KAAK,EAAE,4CAA4C;CAC7C,CAAC;AAEX,SAAgB,cAAc,CAAC,OAAe;IAC1C,MAAM,IAAI,GAAG,sBAAc,CAAC,OAAO,CAAC,CAAC;IACrC,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,MAAM,IAAI,KAAK,CAAC,yCAAyC,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,WAAW,CAAC,OAAe;IACvC,OAAO,OAAO,CAAC,WAAW,EAAE,KAAK,0BAAkB,CAAC,WAAW,EAAE,CAAC;AACtE,CAAC"}