Giter Site home page Giter Site logo

2022-10-holograph's Introduction

Holograph Protocol contest details

๐Ÿ“ƒ Description

Holograph provides omnichain NFT infrastructure for the web3 ecosystem. Holograph Protocol enables the creation, deployment, minting, & bridging of omnichain NFTs with complete data integrity.

๐Ÿง™ Setup Instructions and Codebase Overview:

๐Ÿ›ซ Quick Start

Install dependencies

yarn install

Setup sample env

yarn run init

Compile contracts

yarn clean-compile

Run local chains (restart ganache after every full test run)

Terminal 1

yarn ganache-x2

Run the tests

Terminal 2

yarn test

After this completes, don't forget to restart ganache. Some tests may fail upon running a second time.

Building

When the project is built, the code in the src folder gets written to the contracts folder. The files in the contracts folder are the "real" files that are used for testing and code verification on all the scanners.

Again, files from the src directory are automatically transpiled into the contracts directory each time that hardhat compiles the contracts.

๐Ÿ”Ž Contracts in Scope

File Description Lines Of Code
HolographBridge.sol primary use for FE user to make cross-chain beam request 226
HolographOperator.sol finalizes cross-chain beam 434
HolographFactory.sol combines deployment config and deploys holographable contracts 135
module/LayerZeroModule.sol controls the exit and entry points for bridging 228
enforcer/Holographer.sol wrapper for custom user contract and standards enforcer contract 83
enforcer/PA1D.sol responds to royalty info for ERC721 contracts 367
enforcer/HolographERC721.sol ERC721 standards enforcer 482
enforcer/HolographERC20.sol ERC20 standards enforcer 495
abstract/ERC721H.sol helper contract to use as base when creating custom ERC721 holographable contracts 82
abstract/ERC20H.sol helper contract to use as base when creating custom ERC20 holographable contracts 82

๐Ÿค” Areas Of Concern

  1. Bridging NFTs
    • Can bridge tokens be sent out to a secondary network?
    • Can bridge tokens be received on the secondary network?
    • Can someone bridge an NFT while not being the owner of the NFT?
    • Can a payload be constructed to exploit or spoof a bridge request?
  2. Jobs
    • Can a bridge job be created to manually select an operator?
    • Can a bridge job be created to manually select a pod?
    • Can a bridge job be completed by the primary operator?
    • Can a bridge job be completed by a secondary operator, if the primary operator has not completed the job?
    • Can a bridge job be completed by ANYONE after primary and secondary operators fail to complete a job?
    • Are job operators who fail to complete jobs slashed correctly?
  3. Operator
    • Can an operator bond to a pod?
    • Can an operator bond to a pod that does not exist?
    • Can an operator join a pod without bonding?
    • Are the bond amounts computed correct?
    • Can the bond amount be exploited? spoofed?
    • Are operators
    • Can an operator remove their bond?
    • Can an operator remove their bond after being slashed?

๐Ÿ“ Directory Structure

โ”œโ”€โ”€ config: Network configuration files
โ”œโ”€โ”€ contracts: Smart contracts that power the Holograph protocol
โ”œโ”€โ”€ deploy: Deployment scripts for the smart contracts uses Hardhat and our Hardhat and Hardhat-deploy
โ”œโ”€โ”€ deployments: Deployment build files that include contract addresses on each network
โ”œโ”€โ”€ scripts: Scripts and helper utilities
โ”œโ”€โ”€ src: Source contracts that get dynamically transpiled down into the finalized output contracts
โ””โ”€โ”€ test:Hardhat tests for the smart contracts

2022-10-holograph's People

Contributors

alexanderattar avatar itsmetechjay avatar sogoiii avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.