Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitfinexcom/eosfinex-custody-contract
https://github.com/bitfinexcom/eosfinex-custody-contract
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bitfinexcom/eosfinex-custody-contract
- Owner: bitfinexcom
- License: mit
- Created: 2021-03-11T17:23:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-12T17:10:33.000Z (almost 4 years ago)
- Last Synced: 2024-04-16T10:47:07.665Z (8 months ago)
- Language: C++
- Size: 27.3 KB
- Stars: 18
- Watchers: 8
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-eosio - Eosfinex Custody Smart Contract - Eosfinex exchange smart contract. (Developers / Code examples)
README
# Eosfinex Custody Smart Contract
This is the eosfinex custody contract for production deployment on the EOS mainnet. The contract test cases and audit has been done by **EOS Argentina**. Many thanks to them for their hard work and dedication to the EOS community.## Build & deploy
After cloning this repository, running the following commands would build and deploy the contract to the account eosfinexeos1. The contract can be built with eosio.cdt version 1.7.0-1. Please **note** that you may need to deploy the handmade eosfinex.abi included in this repo and not the version generated by eosio-cpp.```
cd eosfinex-custody-contract
make
cleos -u https://api.eosfinex.com set contract eosfinexeos1 . eosfinex.wasm eosfinex.abi
```## Build contracts for tesing
```
cd eosfinex-custody-contract
rm -f eosfinex.wasm eosfinex.abi
USE_CHAIN_ID_FOR_TESTS=yes make
```## Build & run tests
```
cd eosfinex-custody-contract
mkdir -p tests/build
cd tests/build
cmake -DCONTRACTS_BUILD_FOLDER=/path/to/eosio.contracts/build ..
make
./unit_test
```## License
MIT