- Notifications
You must be signed in to change notification settings - Fork40
DemocracyEarth/ubi
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Universal Basic Income.
A standard for Universal Basic Income tokens.
Built in collaboration withKleros and theProof of Humanity project.
- ERC20 token that can
mint
new supply for verified humans over time at a given rate. - Tokens get streamed directly to a users wallet.
- Interfaces with
ProofOfHumanity
to get curated list of verified humans. ProofOfHumanity
registry can be updated with governance mechanism.- Implements
ERC20Upgradeable
contracts withOpenZeppelin proxy libraries.
Built withHardhat.
Latest release isversion 0.2.0
Clone Repository
$ git clone https://github.com/DemocracyEarth/ubi.git$cd ubi
Install Dependencies
$ npm install
Run Tests
$ npx hardhattest
To compute their code coverage run
npx hardhat coverage
.
On
hardhat.config.js
configure the following constants for thekovan
testnet:INFURA_API_KEYKOVAN_PRIVATE_KEY
Deploy on Ethereum
kovan
testnet:$ npx hardhat run scripts/deploy.js --network kovan
Interact with the console:
$ npx hardhat console --network kovan
Initalize the token with:
constUBI=awaitethers.getContractFactory("UBI")constubi=awaitUBI.attach('0x703960D03533B1D34fF4996DC6604f0Bc74ED198')// Replace with your token address
Deploy new contract in a fresh address:
$ npx hardhat run scripts/prepare.js --network kovan
Upgrade the proxy contract with the freshly deployed address:
$ npx hardhat run scripts/upgrade.js --network kovan
On
hardhat.config.js
configure yourEtherscan API key:ETHERSCAN_API_KEY
Verify the contract by running:
$ npx hardhat verify --network kovan<ADDRESS>
These contracts are free, open source and censorship resistant. Support us viaOpen Collective.
This software is under anMIT License. This is a free software built byDemocracy Earth Foundation between 2020 and 2021. Democracy Earth Foundation is a501 (c) 3 not for profit corporation from San Francisco, California with no political affiliations.