Skip to content

predicatelabs/predicate-contracts

Repository files navigation

predicate-contracts

Solidity library for creating compliant smart contracts application (e.g. Uniswap V4 hooks) using the Predicate network.

Installation

This repository depends on some submodules. Please run the following command before testing.

git submodule update --init --recursive

Foundry

$ forge install PredicateLabs/predicate-contracts 

Node

npm install @predicate/predicate-contracts

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Cast

$ cast <subcommand>

Disclaimer

This library is provided as-is, without any guarantees or warranties. Use at your own risk.