Escrow is a prediction market protocol deployed on Polygon-compatible EVM chains.
- Foundry (Solidity +
forge test) - OpenZeppelin Contracts (SafeERC20/ReentrancyGuard)
- OpenZeppelin proxy contracts (proxy/impl pattern via TransparentUpgradeableProxy)
- Install Foundry: https://book.getfoundry.sh/getting-started/installation
- From repo root:
cd polygongit submodule update --init --recursiveforge buildforge test
forge test --match-path "test/invariants/*"
trade(marketId, directionYes, amountIn, minSharesOut)includes slippage protection.resolve(marketId, updateData)uses an oracle adapter (config.oracle) and ispayableto forward update fees (for Chainlink adapter this is0).
- See
docs/AMOY_DEPLOYMENT.mdfor testnet