https://github.com/cardinal-cryptography/common-bench
https://github.com/cardinal-cryptography/common-bench
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cardinal-cryptography/common-bench
- Owner: Cardinal-Cryptography
- Created: 2024-04-04T10:35:48.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-04T12:33:19.000Z (about 2 years ago)
- Last Synced: 2025-02-26T10:46:27.710Z (over 1 year ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to build Common
```
git clone https://github.com/Cardinal-Cryptography/common-amm
cd common-amm
make build-and-wrap-all ## might require cargo-contract 3.2.0, alternatively use make build-and-wrap-all-dockerized
npm run compile
```
# How to start local node with timers
```
cd polkadot-sdk ## polkadot-sdk fork by Cardinal-Cryptography
git checkout old-timings ## or wasmi-to-v0.32.0-beta.8
cargo run --profile production --bin substrate-node -- --dev 2> node.log
```
# How to deploy Common
```
cd common-amm
git checkout quick_deploy ## this branch reduces number of tokens/pairs deployed
npm run deploy-local ## prints, among others, the router address needed below
npm run spawn-dex-data
```
# How to run trades:
Send 50 single-swap trades from Alice (one trade per block):
```
./send_trades.py --common /path/to/common-amm --node-log /path/to/node.log --router [ADDR] --trades 50
```
Please omit `--node-log` if running Substrate version without timers