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

@manifoldxyz/frontend-provider-types

Package Overview
Dependencies
Maintainers
20
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@manifoldxyz/frontend-provider-types - npm Package Compare versions

Comparing version 1.0.0-beta.2 to 1.0.0

13

dist/ethereumProvider.d.ts
import { Contract, ContractFactory } from '@ethersproject/contracts';
import { ExternalProvider, JsonRpcProvider, Web3Provider } from '@ethersproject/providers';
import { Chain, EthereumNetwork } from './network';
import { EthereumNetwork } from './network';
import { OAuthOptions } from './oAuth';

@@ -18,3 +18,3 @@ /**

export interface InitializeOptions {
network?: EthereumNetwork;
network?: EthereumNetwork | number;
fallbackHost?: string | {

@@ -174,3 +174,3 @@ [key: number]: string;

*/
static network(): EthereumNetwork | undefined;
static network(): EthereumNetwork | number | undefined;
/**

@@ -183,9 +183,2 @@ * Get the chain ID of the current connected network

/**
* Returns the Chain for the given chainId
*
* @param chainId optional chainId to get chain data for, defaults to connected chain
* @returns chain data for the given chain (chain name, block explorer URL, etc.)
*/
static chain(chainId?: number): Chain | null;
/**
* Asks the user to switch to the given chain. Only works if there is a browser provider.

@@ -192,0 +185,0 @@ *

export declare enum EthereumNetwork {
MAINNET = 1,
RINKEBY = 4,
GOERLI = 5,
OPTIMISM = 10,
BSC = 56,
MATIC = 137,
OPTIMISM_GOERLI = 420,
BASE = 8453,
ARBITRUM = 42161,
MUMBAI = 80001
AVALANCHE_FUJI = 43113,
AVALANCHE = 43114,
ARBITRUM_GOERLI = 421613,
MUMBAI = 80001,
BASE_GOERLI = 84531,
SEPOLIA = 11155111
}

@@ -10,0 +17,0 @@ /**

@@ -7,8 +7,15 @@ "use strict";

EthereumNetwork[EthereumNetwork["MAINNET"] = 1] = "MAINNET";
EthereumNetwork[EthereumNetwork["RINKEBY"] = 4] = "RINKEBY";
EthereumNetwork[EthereumNetwork["GOERLI"] = 5] = "GOERLI";
EthereumNetwork[EthereumNetwork["OPTIMISM"] = 10] = "OPTIMISM";
EthereumNetwork[EthereumNetwork["BSC"] = 56] = "BSC";
EthereumNetwork[EthereumNetwork["MATIC"] = 137] = "MATIC";
EthereumNetwork[EthereumNetwork["OPTIMISM_GOERLI"] = 420] = "OPTIMISM_GOERLI";
EthereumNetwork[EthereumNetwork["BASE"] = 8453] = "BASE";
EthereumNetwork[EthereumNetwork["ARBITRUM"] = 42161] = "ARBITRUM";
EthereumNetwork[EthereumNetwork["AVALANCHE_FUJI"] = 43113] = "AVALANCHE_FUJI";
EthereumNetwork[EthereumNetwork["AVALANCHE"] = 43114] = "AVALANCHE";
EthereumNetwork[EthereumNetwork["ARBITRUM_GOERLI"] = 421613] = "ARBITRUM_GOERLI";
EthereumNetwork[EthereumNetwork["MUMBAI"] = 80001] = "MUMBAI";
EthereumNetwork[EthereumNetwork["BASE_GOERLI"] = 84531] = "BASE_GOERLI";
EthereumNetwork[EthereumNetwork["SEPOLIA"] = 11155111] = "SEPOLIA";
})(EthereumNetwork = exports.EthereumNetwork || (exports.EthereumNetwork = {}));
{
"name": "@manifoldxyz/frontend-provider-types",
"version": "1.0.0-beta.2",
"version": "1.0.0",
"description": "",

@@ -5,0 +5,0 @@ "typings": "./dist/index.d.ts",

import { Contract, ContractFactory } from '@ethersproject/contracts';
import { ExternalProvider, JsonRpcProvider, Web3Provider } from '@ethersproject/providers';
import { Chain, EthereumNetwork } from './network';
import { EthereumNetwork } from './network';
import { OAuthOptions } from './oAuth';

@@ -19,3 +19,3 @@

export interface InitializeOptions {
network?: EthereumNetwork;
network?: EthereumNetwork | number;
fallbackHost?: string | { [key: number]: string };

@@ -198,3 +198,3 @@ signingProvider?: Web3Provider;

*/
public static network(): EthereumNetwork | undefined;
public static network(): EthereumNetwork | number | undefined;

@@ -209,10 +209,2 @@ /**

/**
* Returns the Chain for the given chainId
*
* @param chainId optional chainId to get chain data for, defaults to connected chain
* @returns chain data for the given chain (chain name, block explorer URL, etc.)
*/
public static chain(chainId?: number): Chain | null;
/**
* Asks the user to switch to the given chain. Only works if there is a browser provider.

@@ -219,0 +211,0 @@ *

export enum EthereumNetwork {
MAINNET = 1,
RINKEBY = 4,
GOERLI = 5,
OPTIMISM = 10,
BSC = 56,
MATIC = 137,
OPTIMISM_GOERLI = 420,
BASE = 8453,
ARBITRUM = 42161,
AVALANCHE_FUJI = 43113,
AVALANCHE = 43114,
ARBITRUM_GOERLI = 421613,
MUMBAI = 80001,
BASE_GOERLI = 84531,
SEPOLIA = 11155111,
}

@@ -10,0 +17,0 @@

@@ -28,3 +28,3 @@ /**

delayAuth?: boolean;
userCallback?: (message: string) => Promise<void>;
userCallback?: (message: string) => Promise<void>;
}
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