good morning!!!!

Skip to content
Snippets Groups Projects
Select Git revision
  • 6cb0f1286a46e5f74cc9f588695feba928743669
  • master default protected
  • velo
  • multiReserve
  • MKR
  • uniV3Positions
  • truffleVerify
  • finalMerge
8 results

contracts

  • Clone with SSH
  • Clone with HTTPS
  • usdi contracts

    repository url: gfx.cafe: https://gfx.cafe/ip/contracts

    mirrors: github: https://github.com/gfx-labs/ip-contracts

    Looking for the app? Click here

    setup

    to setup the repo first run

    npm run setup

    then cp SAMPLE.env .env and fill up .env with some values

    compile

    to compile the contracts, simply run

    npm run compile

    test

    npm run test

    repository

    *
    ├───test - test suites
    │   └───mainnet/* - simulation of deployment and basic user interaction. npx hardhat test test/mainnet/index.ts
    │   └───governance/* - simulation of governance processes. npx hardhat test test/governance/index.ts
    ├───contracts
    │   ├───_external - external contracts copied into the repository, e.g. openzeppelin, uniswap, chainlink
    │   ├── genesis- genesis related contracts
    │   │   └── wavepool.sol - for distribution of IPT. permissioned claim
    │   ├── governance - governance related contracts
    │   │   ├── governor - governor is a reimplmentation of Governor Bravo, aptly named Governor Charlie. It uses a custom proxy system
    │   │   │   ├── GovernorDelegate.sol - Delegate for governor contract
    │   │   │   ├── GovernorDelegator.sol - Delegator for governor contract
    │   │   │   ├── GovernorStorage.sol - Storage structs for governor contract
    │   │   │   ├── IGovernor.sol - Interface & events for governor contract
    │   │   │   ├── IIpt.sol - Helper IIpt interface
    │   │   │   └── Structs.sol - Structs shared by governance
    │   │   └─ token
    │   │       ├── IToken.sol - Interface & events for governance token
    │   │       ├── TokenDelegate.sol - Delegate for governance token
    │   │       ├── TokenDelegator.sol - Delegator for governance token
    │   │       └── TokenStorage.sol - Storage structs for governance token
    │   ├── lending - contracts related to the IP lending system
    │   │   ├── IVaultController.sol - Interface & events for vault controller
    │   │   ├── IVault.sol - Interface & events for vault
    │   │   ├── VaultController.sol - Vault controller, master of all vaults. manages interest across all vaults
    │   │   └── Vault.sol - individual vault, simply an accounting wallet
    │   ├── oracle
    │   │   ├── External
    │   │   │   ├── ChainlinkOracleRelay.sol - an oracle which hooks to a chainlink oracle
    │   │   │   └── UniswapV3OracleRelay.sol - an oracle which hooks to a uniswap v3 pool
    │   │   ├── Logic
    │   │   │   └── AnchoredViewRelay.sol - an oracle which consumes two oracle relays and constructs an anchored view
    │   │   ├── IOracleRelay.sol - generic interface for an oracle relay which can report a price
    │   │   ├── IOracleMaster.sol - Interface for the oracle master
    │   │   └── OracleMaster.sol - Oracle master is effecitvely an address book of oracle relays
    │   ├── token
    │   │   └── UFragments.sol - the amplforth ufragments contract
    │   ├───IUSDI.sol - interface & events for USDI
    │   └───USDI.sol - relabancing erc20 token
    └───hardhat.config.ts - configuration for hardhat