Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@web3-onboard/common

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3-onboard/common - npm Package Compare versions

Comparing version 2.1.8 to 2.2.0-alpha.1

dist/eip-1193.js

5

dist/index.d.ts

@@ -1,9 +0,6 @@

export { ProviderRpcErrorCode } from './types';
export { ProviderRpcError } from './errors';
export { createEIP1193Provider } from './eip-1193';
export { default as accountSelect } from './account-select';
export { entryModal } from './entry-modal';
export { SofiaProLight, SofiaProRegular, SofiaProSemiBold } from './fonts';
export { getCommon, bigNumberFieldsToStrings, getHardwareWalletProvider } from './hdwallets';
export { weiToEth } from './utils';
export * from './types';
export * from './validation';

37

dist/types.d.ts

@@ -57,38 +57,2 @@ import type { ConnectionInfo } from 'ethers/lib/utils';

};
export declare type AccountSelectAPI = (options: SelectAccountOptions) => Promise<Account>;
export declare type SelectAccountOptions = {
basePaths: BasePath[];
assets: Asset[];
chains: Chain[];
scanAccounts: ScanAccounts;
supportsCustomPath?: boolean;
};
export declare type BasePath = {
label: string;
value: DerivationPath;
};
export declare type DerivationPath = string;
export declare type Asset = {
label: string;
address?: string;
};
export declare type ScanAccounts = (options: ScanAccountsOptions) => Promise<Account[]>;
export declare type ScanAccountsOptions = {
derivationPath: DerivationPath;
chainId: Chain['id'];
asset: Asset;
};
export declare type AccountAddress = string;
export declare type Account = {
address: AccountAddress;
derivationPath: DerivationPath;
balance: {
asset: Asset['label'];
value: ethers.BigNumber;
};
};
export declare type AccountsList = {
all: Account[];
filtered: Account[];
};
export interface AppMetadata {

@@ -179,2 +143,3 @@ name: string;

}
export declare type AccountAddress = string;
/**

@@ -181,0 +146,0 @@ * An array of addresses

import Joi from 'joi';
import type { SelectAccountOptions } from './types';
declare type ValidateReturn = Joi.ValidationResult | null;
export declare const validateSelectAccountOptions: (data: SelectAccountOptions) => ValidateReturn;
export {};
export declare type ValidateReturn = Joi.ValidationResult | null;
export declare function validate(validator: Joi.Schema, data: unknown): ValidateReturn;
export declare const chainIdValidation: Joi.AlternativesSchema;
export declare const chainNamespaceValidation: Joi.StringSchema;
/** Related to ConnectionInfo from 'ethers/lib/utils' */
export declare const providerConnectionInfoValidation: Joi.ObjectSchema<any>;
export declare const chainValidation: Joi.ObjectSchema<any>;
{
"name": "@web3-onboard/common",
"version": "2.1.8",
"version": "2.2.0-alpha.1",
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",

@@ -39,3 +39,3 @@ "keywords": [

"url": "https://github.com/blocknative/web3-onboard.git",
"directory": "packages/core"
"directory": "packages/common"
},

@@ -45,6 +45,5 @@ "homepage": "https://www.blocknative.com/onboard",

"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"start": "sirv public --no-clear",
"type-check": "svelte-check --tsconfig ./tsconfig.json",
"build": "tsc",
"dev": "tsc -w",
"type-check": "tsc --noEmit",
"lint": "eslint -c './.eslintrc.cjs' './src' && prettier --check './src/**/*'"

@@ -62,7 +61,2 @@ },

"devDependencies": {
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.0.0",
"@rollup/plugin-replace": "^3.0.0",
"@rollup/plugin-typescript": "^8.0.0",
"@tsconfig/svelte": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^4.31.1",

@@ -73,3 +67,2 @@ "@typescript-eslint/parser": "^4.31.1",

"eslint-config-prettier": "^8.3.0",
"eslint-plugin-svelte3": "^3.2.1",
"eventemitter3": "^4.0.7",

@@ -80,3 +73,3 @@ "prettier": "^2.4.0",

"rollup-plugin-svelte": "^7.0.0",
"svelte": "^3.49.0",
"svelte": "^3.42.5",
"svelte-check": "^2.2.6",

@@ -88,8 +81,6 @@ "svelte-preprocess": "^4.9.4",

"dependencies": {
"@ethereumjs/common": "2.6.2",
"bignumber.js": "^9.0.0",
"bignumber.js": "^9.1.0",
"ethers": "5.5.4",
"joi": "^17.4.2",
"rxjs": "^7.5.2"
"joi": "^17.4.2"
}
}

Sorry, the diff of this file is too big to display

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