https://github.com/limechain/ae_sophia
https://github.com/limechain/ae_sophia
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/limechain/ae_sophia
- Owner: LimeChain
- Created: 2018-10-12T09:59:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-28T13:50:12.000Z (over 7 years ago)
- Last Synced: 2025-01-23T08:18:13.360Z (over 1 year ago)
- Language: JavaScript
- Size: 193 KB
- Stars: 2
- Watchers: 18
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About this repo
## Overview
This repo is representation of Solidity ERC721,ERC20 and its Flavours and Ownable smart contracts written in Sophia language and based on the Aeternity blockchain. It is based on the Openzeppelin version of the contracts.
## Structure
The main components of this repo:
- contracts directory - containing the Sophia contracts
- test directory - containing the mocha-based unit tests and the
- docker directory and docker-compose - you need to bring up the network via docker-compose if you want to run the unit tests.
## Running the tests
In order to run the unit tests one should do the following:
1. spawn up the test network `docker-compose up -d` or `aeproject epoch`
2. Wait for the network to be responding and healthy
3. Run `npm test` or `aeproject test`
## Nonce Disclaimer
There is a nonce problem in the whole system. We mitigate it in the unit tests through keeping local nonce. It might be buggy. If it gives you problems, restart your docker network and remove the nonce.txt file