Coder Social home page Coder Social logo

smart-contracts's Introduction

Identity.com Smart Contracts

Summary

The smart contracts of the Identity.com marketplace.

Identity.com grants users, requesters, and validators around the world entry to accessible, reusable identity verification powered by CVC tokens.

Contracts

Functional Contracts

CvcOntology:

Holds the list of all recognized Credential Items available for sale in the ecosystem.

CvcPricing:

Stores actual prices for Credential Items available for sale. It allows registered Identity Validators to set or delete prices for specific Credential Items.

CvcEscrow:

Provides an escrow service for the Identity.com marketplace. It controls an escrow placement's lifecycle which involves transferring a pre-approved amount funds

CvcValidatorRegistry:

A registry for Identity Validators (IDV). It is part of the marketplace access control mechanism.

Support Contracts

  • CvcMigrator
  • CvcProxy
  • EternalStorage
  • ImplementationStorage
  • Initializable
  • Ownable
  • Pausable
  • Migrations

For details on the migration and proxy patterns used in Identity.com, see migrations/README.md

Project structure

The project follows the Truffle framework basic structure:

  • migrations folder for the migration files
  • contracts folder for smart contract source code files
  • test for smart contracts unit tests
  • truffle.js file at the top level for network management.

Testing

All tests are running against Truffle's Ganache. We have the docker-compose.yml file with default setup for ganache to speed up environment setup. See package.json for available testing commands.

Running migrations

Setup connection to your ethereum node (ganache/privatenet/testnet/mainnet). Run deploy-contracts npm command. Resulting JSON artifacts with ABIs and network addresses will be in artifacts/deployed folder.

smart-contracts's People

Contributors

dankelleher avatar titus-civic avatar

Watchers

 avatar  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.