A proof-of-concept public on-chain registry for token tickers with admin override functionality.
It allows any user to register a token address, provided that address has not already been registered, and that there is not already a token registered with that ticker.
It allows an admin to override the provided value for a token ticker, for example, when old DAI was renamed SAI, yet the original SAI contract still shows the ticker as DAI.
See the quick_tests.ts for assertions over the basic functionality.
Currently in development, this contract has not been audited and is not intended for use on the Ethereum main-network yet.
See package.json for all scripts.
- Clone
- Install dependencies (
yarn) - Build (
yarn build)- Compile contracts (
yarn compile:solidity) - Compile typescript (
yarn copmile:typescript) - Generate contract wrappers (
yarn generate:contract_wrappers)
- Compile contracts (
- Build test artifacts (
yarn build:test)- Generate solidity test artifacts (
yarn compile:test:solidity) - Generate TS test artifacts (
yarn generate:test:contract_wrappers)
- Generate solidity test artifacts (
- Run tests (
yarn test)