@manifoldxyz/frontend-provider-utils
Advanced tools
Comparing version 1.0.1-beta.1 to 1.0.1
@@ -13,2 +13,3 @@ "use strict"; | ||
_a[chains_1.Optimism.chainId] = chains_1.Optimism, | ||
_a[chains_1.Base.chainId] = chains_1.Base, | ||
_a); |
@@ -9,2 +9,3 @@ import { Chain } from '@manifoldxyz/frontend-provider-types'; | ||
export declare const Optimism: Chain; | ||
export declare const Base: Chain; | ||
export declare const Arbitrum: Chain; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Arbitrum = exports.Optimism = exports.Mumbai = exports.Matic = exports.Goerli = exports.Mainnet = exports.getTransactionLink = exports.getAddressLink = void 0; | ||
exports.Arbitrum = exports.Base = exports.Optimism = exports.Mumbai = exports.Matic = exports.Goerli = exports.Mainnet = exports.getTransactionLink = exports.getAddressLink = void 0; | ||
var getAddressLink = function (explorerUrl) { return function (address) { | ||
@@ -15,2 +15,3 @@ return "".concat(explorerUrl, "/address/").concat(address); | ||
var optimismEtherscanUrl = 'https://optimistic.etherscan.io'; | ||
var baseEtherscanUrl = 'https://basescan.org'; | ||
var arbitrumEtherscanUrl = 'https://arbiscan.io'; | ||
@@ -70,2 +71,11 @@ exports.Mainnet = { | ||
}; | ||
exports.Base = { | ||
chainId: 8453, | ||
chainName: 'Base', | ||
isTestChain: false, | ||
isLocalChain: false, | ||
multicallAddress: '0xca11bde05977b3631167028862be2a173976ca11', | ||
getExplorerAddressLink: (0, exports.getAddressLink)(baseEtherscanUrl), | ||
getExplorerTransactionLink: (0, exports.getTransactionLink)(baseEtherscanUrl), | ||
}; | ||
exports.Arbitrum = { | ||
@@ -72,0 +82,0 @@ chainId: 42161, |
@@ -61,3 +61,3 @@ "use strict"; | ||
function handleManifoldEthereum() { | ||
// Already andled | ||
// Already handled | ||
if (handled) { | ||
@@ -64,0 +64,0 @@ return; |
{ | ||
"name": "@manifoldxyz/frontend-provider-utils", | ||
"version": "1.0.1-beta.1", | ||
"version": "1.0.1", | ||
"description": "A tiny utility for detecting the Manifold Ethereum provider, an injected `window.ManifoldEthereumProvider` object", | ||
@@ -37,3 +37,3 @@ "typings": "./dist/index.d.ts", | ||
"peerDependencies": { | ||
"@manifoldxyz/frontend-provider-types": "^1.0.1-beta.1" | ||
"@manifoldxyz/frontend-provider-types": "^1.0.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "jest": { |
import { Chain } from '@manifoldxyz/frontend-provider-types'; | ||
import { Arbitrum, Goerli, Mainnet, Matic, Mumbai, Optimism } from './lib/chains'; | ||
import { Arbitrum, Goerli, Mainnet, Matic, Mumbai, Optimism, Base } from './lib/chains'; | ||
@@ -11,2 +11,3 @@ export const Chains: { [key: number]: Chain } = { | ||
[Optimism.chainId]: Optimism, | ||
[Base.chainId]: Base | ||
}; |
@@ -12,2 +12,3 @@ import { Chain } from '@manifoldxyz/frontend-provider-types'; | ||
const optimismEtherscanUrl = 'https://optimistic.etherscan.io'; | ||
const baseEtherscanUrl = 'https://basescan.org'; | ||
const arbitrumEtherscanUrl = 'https://arbiscan.io'; | ||
@@ -71,2 +72,12 @@ | ||
export const Base: Chain = { | ||
chainId: 8453, | ||
chainName: 'Base', | ||
isTestChain: false, | ||
isLocalChain: false, | ||
multicallAddress: '0xca11bde05977b3631167028862be2a173976ca11', | ||
getExplorerAddressLink: getAddressLink(baseEtherscanUrl), | ||
getExplorerTransactionLink: getTransactionLink(baseEtherscanUrl), | ||
}; | ||
export const Arbitrum: Chain = { | ||
@@ -73,0 +84,0 @@ chainId: 42161, |
@@ -77,3 +77,3 @@ import { | ||
function handleManifoldEthereum() { | ||
// Already andled | ||
// Already handled | ||
if (handled) { | ||
@@ -80,0 +80,0 @@ return; |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
28124
565
0
1