Oraichain is the world’s first AI-powered oracle and ecosystem for blockchains.
Beyond data oracles, Oraichain aims to become the first AI Layer 1 in the Blockchain sphere with a complete AI ecosystem, serving as a foundational layer for the creation of a new generation of smart contracts and Dapps. With AI as the cornerstone, Oraichain has developed many essential and innovative products and services including AI price feeds, fully on-chain VRF, Data Hub, AI Marketplace with 100+ AI APIs, AI-based NFT generation and NFT copyright protection, Royalty Protocol, AI-powered Yield Aggregator Platform, and Cosmwasm IDE.
This repository contains the source code & how to build the Oraichain mainnet, a Cosmos-based blockchain network that levarages the CosmWasm technology to integrate AI into the ecosystem.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
-
If you want to build the binary using Docker (recommended), then you only need Docker.
-
If you want to build the binary from scratch, you will need:
-
Go 1.15+
-
Make
-
Wasmvm library: https://github.com/CosmWasm/wasmvm/releases/download/v0.13.0/libwasmvm_muslc.a (you can download it and put in /lib/libwasmvm_muslc.a). The file is used by CosmWasm when building the binary
-
Please visit the official hardware requirement for Oraichain mainnet here
- Install Golang
Please visit the official Golang website to download & install Go
- Install make
Normally, for Linux-based machines, you already have Make installed by default.
- Install libwasmvm
the wasmd module of CosmWasm uses a wasm vm library, which should be included when building the chain binary. Hence, we need to download and place it in a specific location.
For Linux based machines, please run the following command:
sudo wget https://github.com/CosmWasm/wasmvm/releases/download/v0.13.0/libwasmvm_muslc.a -O /lib/libwasmvm_muslc.a
- Download Go dependencies
go get ./...
- Build the binary
make install
- Verify the binary version
oraid version
We recommend using Docker to deploy the network. To do so, please type:
docker build -t <image:tag> -f Dockerfile.prod .
-
Start the proto docker:
docker-compose up -d proto
-
Install neccessary tools:
docker-compose exec proto ash -c 'apk add build-base bash && go get ./...'
-
Gen protobuf:
docker-compose exec proto ash -c 'make proto-gen'
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
This project is licensed under the Apache 2.0 license - see the LICENSE file for details.