dependencies last pinned 1/8/20
All listeners functions are defined inside dappHero
object.
For example to listen after a contract method result it's outputed to the DOM you can simple call:
dappHero.listenToContractOutputChange(event => {
console.log(`Event changed`, event)
})
- Custom Contract
- Network
- NFT
- ThreeBox
- User
- Fulfill the following env variables:
E2E_METAMASK_SEED=
E2E_METAMASK_ADDRESS=
E2E_METAMASK_PASSWORD=
- Run the following commands:
> yarn start // or npm run start
> yarn test:e2e // or npm run test
-
Since tests runs on Rinkeby network you will need Eth you can use Rinkeby Faucet
I. Paste this twitter link into a new browser tab
II. Change
0x0000000000000000000000000000000000000000
for your address, the one you wrote on the env file (E2E_METAMASK_ADDRESS)
III. Copy the Twitter link from your profile to the Faucet input
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It bundles in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
For getBaseContractData
file
npx eslint --fix src/modules/eth/utils/getBaseContractData.ts