Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Universal Basic Income token.

NotificationsYou must be signed in to change notification settings

DemocracyEarth/ubi

Repository files navigation

Universal Basic Income.

UBI Coin

A standard for Universal Basic Income tokens.

Built in collaboration withKleros and theProof of Humanity project.

Build StatusCoverage Status

Features

  • ERC20 token that canmint new supply for verified humans over time at a given rate.
  • Tokens get streamed directly to a users wallet.
  • Interfaces withProofOfHumanity to get curated list of verified humans.
  • ProofOfHumanity registry can be updated with governance mechanism.
  • ImplementsERC20Upgradeable contracts withOpenZeppelin proxy libraries.

Built withHardhat.

Latest release isversion 0.2.0

Setup

  1. Clone Repository

    $ git clone https://github.com/DemocracyEarth/ubi.git$cd ubi
  2. Install Dependencies

    $ npm install
  3. Run Tests

    $ npx hardhattest

    To compute their code coverage runnpx hardhat coverage.

Deploy

  1. Onhardhat.config.js configure the following constants for thekovan testnet:

    INFURA_API_KEYKOVAN_PRIVATE_KEY
  2. Deploy on Ethereumkovan testnet:

    $ npx hardhat run scripts/deploy.js --network kovan
  3. 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

Upgrade

  1. Deploy new contract in a fresh address:

    $ npx hardhat run scripts/prepare.js --network kovan
  2. Upgrade the proxy contract with the freshly deployed address:

    $ npx hardhat run scripts/upgrade.js --network kovan

Verify

  1. Onhardhat.config.js configure yourEtherscan API key:

    ETHERSCAN_API_KEY
  2. Verify the contract by running:

    $ npx hardhat verify --network kovan<ADDRESS>

Contribute

These contracts are free, open source and censorship resistant. Support us viaOpen Collective.

License

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.


[8]ページ先頭

©2009-2025 Movatter.jp