platonic-io / sympl_auction

Auction SymPL contract

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auction smart contract

Introduction

This smart contract repository is a sample SymPL contract as is used in the Auction walkthrough of Symbiont's SDK documentation. Hereby included are:

  • the smart contract auction.sympl
  • the contract definition contract.yaml
  • A pytest test to validate the smart contract test/auctions_test.py

Model

Roles

  • Creator (Key Alias)
  • Key Alias

Channel topology

  • Public channel

Actions

Action Channel Role
Create Auction Public Any
Make Bid Public Any
Close Auction Public Creator
Pass Day Public Any

Contributing

Anyone is welcome to contribute to this repository, be it in the form of features, bug fixes, documentation or additional tests. Please create a branch of your own and submit for merge via merge request. A codeowner will be assigned your merge request and provide feedback/merge it.

Running tests

Requirements:

  • Install the pytest plugin
  • Have a local-network running (we recommend using sym to get a local network up and running quickly)

Steps:

  • Change directory to the root of this repository
  • Run the following command:
pytest test/auctions_test.py --network-config=~/.symbiont/assembly-dev/dev-network/default/network-config.json --contract-path=./

About

Auction SymPL contract

License:MIT License


Languages

Language:Python 75.1%Language:Shell 13.2%Language:Handlebars 11.7%