All Projects → pickle-finance → protocol

pickle-finance / protocol

Licence: MIT license
Pickle Protocols

Programming Languages

solidity
1140 projects
javascript
184084 projects - #8 most used programming language
typescript
32286 projects
python
139335 projects - #7 most used programming language
Vyper
9 projects
shell
77523 projects

Pickle Protocol

circleci

Solidity files relating to the PICKLE protocol.

Getting Started

We're using dapp-tools to compile, and test contracts. To get the dapp binary, you'll first need to install Nix.

# Install Nix
curl -L https://nixos.org/nix/install | sh

# Install dapp-tools
curl https://dapp.tools/install | sh
git clone [email protected]:pickle-finance/protocol.git
cd protocol
dapp update
dapp build

Dev

# Using ganche as a caching layer
ganache-cli -f https://mainnet.infura.io/v3/<URL>

DAPP_TEST_NUMBER=$(seth block-number) DAPP_TEST_TIMESTAMP=$(date +%s) DAPP_TEST_BALANCE_CREATE=10000000000000000000000000 dapp test --rpc-url http://localhost:8545 -m <test to run> -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

# Flatten
hevm flatten --source-file src/<sol> --json-file out/dapp.sol.json

# Deploy file via remix

Via JavaScript

export SOLC_FLAGS="--optimize --optimize-runs 200"

dapp build

# Export keys
export DEPLOYER_PRIVATE_KEY=<PRIVATE_KEY>
export PROVIDER_URL=<RPC_URL>

# You'll need to edit the deploy.js to fit your needs
node scripts/deploy.js
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].