Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pickle-finance/protocol
Pickle Protocols
https://github.com/pickle-finance/protocol
Last synced: 3 months ago
JSON representation
Pickle Protocols
- Host: GitHub
- URL: https://github.com/pickle-finance/protocol
- Owner: pickle-finance
- License: mit
- Created: 2020-09-22T06:10:28.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-13T19:45:07.000Z (over 1 year ago)
- Last Synced: 2024-04-08T20:14:07.380Z (7 months ago)
- Language: Solidity
- Homepage:
- Size: 8.05 MB
- Stars: 128
- Watchers: 8
- Forks: 76
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Audit: audits/Haechi_Audit.pdf
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-dapptools - Pickle Protocol
README
# Pickle Protocol
[![circleci](https://circleci.com/gh/pickle-finance/protocol.svg?style=svg)](https://circleci.com/gh/pickle-finance/protocol)
Solidity files relating to the PICKLE protocol.
## Getting Started
We're using [dapp-tools](http://dapp.tools/) to compile, and test contracts. To get the dapp binary, you'll first need to [install Nix](https://nixos.org/guides/install-nix.html).
```bash
# Install Nix
curl -L https://nixos.org/nix/install | sh# Install dapp-tools
curl https://dapp.tools/install | sh
``````bash
git clone [email protected]:pickle-finance/protocol.git
cd protocol
dapp update
dapp build
```## Dev
```bash
# Using ganche as a caching layer
ganache-cli -f https://mainnet.infura.io/v3/DAPP_TEST_NUMBER=$(seth block-number) DAPP_TEST_TIMESTAMP=$(date +%s) DAPP_TEST_BALANCE_CREATE=10000000000000000000000000 dapp test --rpc-url http://localhost:8545 -m -vv
# Dapp tools cli args
# -vv - Verbose (Show stacktraces if fail)
# -vv - Very verbose (ALWAYS show stacktraces)
# -m - Only runs tests whos regex matches this string
```## Deploy
### Via Remix
```bash
# Flatten
hevm flatten --source-file src/ --json-file out/dapp.sol.json# Deploy file via remix
```### Via JavaScript
```bash
export SOLC_FLAGS="--optimize --optimize-runs 200"dapp build
# Export keys
export DEPLOYER_PRIVATE_KEY=
export PROVIDER_URL=# You'll need to edit the deploy.js to fit your needs
node scripts/deploy.js
```