gladiusio / gladius-contracts

Backend of the Gladius Marketplace

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gladius Marketplace Backend

Build Status

Installation & Testing

  • npm install
  • npm run test

Platform Requirements

  • Node.js, >=7.6.0
  • Golang 1.11+

Deployment

There's an interactive CLI in the go folder that can be used to deploy and interact with the contacts on the network of your choosing. Just run go run main.go in that directory, or build your own with go build

You can also use truffle to deploy, just run: truffle migrate --network {your_network}

Code Overview

Market.sol (Market Contract)

The Marketplace contract will hold all information regarding the Gladius Marketplace. This includes which pools are added to the marketplace and who the owners are. In addition the Marketplace has the ability to create and track all pools via the Pool Factory contract.

Pool.sol (PoolFactory and Pool Contracts)

The PoolFactory contract creates and tracks Pool contracts. Pool contracts contain information regarding the P2P network, application server, etc... . We use a factory pattern to create Pool's because it allows us to be more flexible with deploying contacts.

About

Backend of the Gladius Marketplace

License:GNU General Public License v3.0


Languages

Language:Go 95.1%Language:JavaScript 4.9%