Skip to content

VAR-META-Tech/alkahest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

468 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arkhai Logo

Alkahest

Contract library and SDKs for validated peer-to-peer escrow

Solidity Python TypeScript Rust License

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.

Repository Structure

This is a monorepo containing the Alkahest smart contracts and SDKs for multiple languages:

alkahest/
├── contracts/          # Solidity smart contracts and Foundry tooling
│   ├── src/           # Contract source code
│   ├── test/          # Contract tests
│   ├── script/        # Deployment scripts
│   └── lib/           # Dependencies (forge-std, EAS, OpenZeppelin)
├── sdks/              # Language-specific SDKs
│   ├── py/           # Python SDK
│   ├── rs/           # Rust SDK
│   └── ts/           # TypeScript SDK
└── docs/              # Documentation

Quick Start

Smart Contracts

The contracts are built with Foundry.

cd contracts
forge build
forge test

See contracts/README.md for more details.

SDKs

Each SDK has its own setup and usage instructions:

Documentation

Comprehensive guides and tutorials are available in the docs/ directory:

Development

Prerequisites

Building Everything

# Build contracts
cd contracts && forge build

# Build TypeScript SDK
cd sdks/ts && npm install && npm run build

# Build Python SDK
cd sdks/py && pip install -e .

# Build Rust SDK
cd sdks/rs && cargo build

Contributing

Contributions are welcome! Please check the individual README files in each directory for specific contribution guidelines.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 38.3%
  • HTML 32.9%
  • Solidity 17.4%
  • Rust 8.5%
  • Python 1.8%
  • JavaScript 0.7%
  • Other 0.4%