@web3-onboard/injected-wallets
Advanced tools
Comparing version 2.0.5 to 2.0.6
import Joi from 'joi'; | ||
const walletModule = Joi.object({ | ||
label: Joi.string().required(), | ||
getIcon: Joi.function().arity(1).required(), | ||
getInterface: Joi.function().arity(1).required(), | ||
getIcon: Joi.function().arity(0).required(), | ||
getInterface: Joi.function().maxArity(1).required(), | ||
injectedNamespace: Joi.string().required(), | ||
checkProviderIdentity: Joi.function().arity(1).required().required(), | ||
checkProviderIdentity: Joi.function().arity(1).required(), | ||
platforms: Joi.array().items(Joi.string()) | ||
@@ -9,0 +9,0 @@ }); |
{ | ||
"name": "@web3-onboard/injected-wallets", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Injected wallets module for web3-onboard", | ||
@@ -28,3 +28,3 @@ "module": "dist/index.js", | ||
"dependencies": { | ||
"@web3-onboard/common": "^2.0.2", | ||
"@web3-onboard/common": "^2.0.7", | ||
"joi": "^17.4.2", | ||
@@ -31,0 +31,0 @@ "lodash.uniqby": "^4.7.0" |
@@ -114,6 +114,11 @@ # @web3-onboard/injected-wallets | ||
injectedNamespace: 'ethereum', | ||
// A unique property on the provider that is used to identify the provider | ||
// A function that returns a bool indicating whether or not the provider is | ||
// of a certain identity. In this case, a unique property on the provider | ||
// is used to identify the provider. | ||
// In most cases this is in the format: `is<provider-name>`. | ||
// Example: window.ethereum.isEQLWallet | ||
providerIdentityFlag: 'isEQLWallet', | ||
// You may also include custom logic here if checking for the property | ||
// isn't sufficient. | ||
checkProviderIdentity: ({ provider }) => | ||
!!provider && !!provider[ProviderIdentityFlag.MetaMask], | ||
// A method that returns a string of the wallet icon which will be displayed | ||
@@ -120,0 +125,0 @@ getIcon: async () => (await import('<PATH_TO_ICON>')).default, |
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
285266
142
Updated@web3-onboard/common@^2.0.7