Awesome
CairOpen Contracts
A set of libraries to help using Cairo on StarkNet.
Examples for use in other Cairo contracts are provided in examples.
Contents
Installation
Protostar
protostar install CairOpen/cairo-contracts
Python
! Coming soon
Usage
To use the librairy in contracts then
# contracts/MyContract.cairo
%lang starknet
from cairopen.string.string import String
from cairopen.string.type import string
Libraries
String
String utilities to store and manipulation strings in Cairo. Docs
- Type
String
- Codecs & Namespace
StringCodec
- Namespace
StringUtil
- Common constants
Math
Mathematical utilities in Cairo. Docs
Binary
Binary utilities in Cairo. Docs
Hash
Hashing utilities in Cairo. Docs
Local setup
This project is built using Protostar
Makefile scripts
Tests: make test