Alkahest is a library and ecosystem for peer-to-peer exchange.
Statements represent obligations within a peer-to-peer agreement, while validators represent conditions under which statements are considered valid.
These compose with each other to eventually enable trading anything for anything else, with flexible per-deal assurance guarantees.
Learn more at Alkahest Docs.
Base contracts:
Implementations:
- Statements:
- Validators:
Example workflows
- Buying string uppercasing for ERC20 tokens, with optimistic mediation: tokens for strings
- Exchanging ERC20 tokens for other ERC20 tokens: tokens for tokens
run tests:
- set
RPC_URL_MAINNET
env variable to any Ethereum mainnet RPC url - e.g. Alchemy, Infura, etc. forge test