A custom provider which implements all metamask inpage api.
You can use it for auto testing(puppeter), or develop a custom wallet client.
Usage:
import {
initProvider
} from 'metamask-provider-simulator'
const myTestEnvFlag = tru
const myProvider = initProvider(
rpcUrl,
chainid,
privateKey,
() => {
return myTestEnvFlag
}
);
// then window.ethereum is available to use
// myProvider is window.ethereum
fill .env file with your configs. rpcurl, chainid, privatekey
yarn serve
yarn install
yarn serve
yarn build
yarn lint