This is a demo frontend for the Snowflake identity protocol written in React. It utilizes the web3-react library. For more information on Snowflake, please refer to the white paper.
Visit the live dashboard.
- Create a smart contract on Rinkeby that appropriately inherits from the canonical
SnowflakeResolver
contract. For examples, see here. In order to be accepted to the dashboard, your smart contract source code must be verified on Etherscan. - Note the checksummed address of your smart contract and make a folder with this name in src/components/resolvers/Rinkeby.
- Create an
index.js
file in the folder. - This file should export the following exports:
default
: A React Component wrapped in React.lazy. This component will receive a user's EIN in the props asein
.export default lazy(() => import('./ResolverComponent'))
.
extraDataComponent
: An optional React Component wrapped in React.lazy. This component will receive a user's EIN in the props asein
and a functionsendExtraData
. This function should be called with thebytes
argument to be passed to your resolver on sign-up.export default lazy(() => import('./ExtraDataComponent'))
.
ABI
: The ABI of your contract.logo
: A 256x256 png logo for your resolver.requiredAllowance
: An optional HYDRO amount a user must set as their initial allowance for your resolver on sign-up.
Hints
- Check out the existing Status Resolver for best practices patterns.