@web3-onboard/common
Advanced tools
Comparing version 2.3.2-alpha.1 to 2.3.2-alpha.2
@@ -285,3 +285,3 @@ import type { ConnectionInfo } from 'ethers/lib/utils'; | ||
/** | ||
* An optional array of tokens to be available to the dapp in the | ||
* An optional array of tokens (max of 5) to be available to the dapp in the | ||
* app state object per wallet within the wallet account and displayed | ||
@@ -308,6 +308,2 @@ * in Account Center (if enabled) | ||
/** | ||
* Required - The symbol of the token i.e. USDC, ETH, 1INCH | ||
*/ | ||
name: TokenSymbol; | ||
/** | ||
* An optional svg or url string for the icon of the token. | ||
@@ -314,0 +310,0 @@ * If an svg is used ensure the height/width is set to 100% |
@@ -22,3 +22,2 @@ import Joi from 'joi'; | ||
const secondaryTokenValidation = Joi.object({ | ||
name: Joi.string().required(), | ||
address: Joi.string().required(), | ||
@@ -33,3 +32,6 @@ icon: Joi.string().optional() | ||
token: Joi.string(), | ||
secondaryTokens: Joi.array().items(secondaryTokenValidation).optional(), | ||
secondaryTokens: Joi.array() | ||
.max(5) | ||
.items(secondaryTokenValidation) | ||
.optional(), | ||
icon: Joi.string(), | ||
@@ -36,0 +38,0 @@ color: Joi.string(), |
{ | ||
"name": "@web3-onboard/common", | ||
"version": "2.3.2-alpha.1", | ||
"version": "2.3.2-alpha.2", | ||
"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.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
20999
542