Skip to content

gladiusio/gladius-contracts

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published