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
- Creator (Key Alias)
- Key Alias
- Public channel
| Action | Channel | Role |
|---|---|---|
| Create Auction | Public | Any |
| Make Bid | Public | Any |
| Close Auction | Public | Creator |
| Pass Day | Public | Any |
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.
Requirements:
- Install the pytest plugin
- Have a local-network running (we recommend using
symto 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=./