@web3-onboard/common
Advanced tools
Comparing version 2.1.8 to 2.2.0-alpha.1
@@ -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'; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
3
15
16
0
434323
2134
1
- Removed@ethereumjs/common@2.6.2
- Removedrxjs@^7.5.2
- Removed@ethereumjs/common@2.6.2(transitive)
- Removed@types/bn.js@5.1.6(transitive)
- Removed@types/node@22.9.0(transitive)
- Removed@types/pbkdf2@3.1.2(transitive)
- Removed@types/secp256k1@4.0.6(transitive)
- Removedbase-x@3.0.10(transitive)
- Removedblakejs@1.2.1(transitive)
- Removedbn.js@5.2.1(transitive)
- Removedbrowserify-aes@1.2.0(transitive)
- Removedbs58@4.0.1(transitive)
- Removedbs58check@2.1.2(transitive)
- Removedbuffer-xor@1.0.3(transitive)
- Removedcipher-base@1.0.4(transitive)
- Removedcrc-32@1.2.2(transitive)
- Removedcreate-hash@1.2.0(transitive)
- Removedcreate-hmac@1.1.7(transitive)
- Removedelliptic@6.6.0(transitive)
- Removedethereum-cryptography@0.1.3(transitive)
- Removedethereumjs-util@7.1.5(transitive)
- Removedevp_bytestokey@1.0.3(transitive)
- Removedhash-base@3.1.0(transitive)
- Removedkeccak@3.0.4(transitive)
- Removedmd5.js@1.3.5(transitive)
- Removednode-addon-api@2.0.25.1.0(transitive)
- Removednode-gyp-build@4.8.2(transitive)
- Removedpbkdf2@3.1.2(transitive)
- Removedrandombytes@2.1.0(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedripemd160@2.0.2(transitive)
- Removedrlp@2.2.7(transitive)
- Removedrxjs@7.8.1(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsecp256k1@4.0.4(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedsha.js@2.4.11(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedtslib@2.8.1(transitive)
- Removedundici-types@6.19.8(transitive)
- Removedutil-deprecate@1.0.2(transitive)
Updatedbignumber.js@^9.1.0