Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
/ orai Public archive

Monolithic repository of everything Oraichain

License

Notifications You must be signed in to change notification settings

oraichain/orai

Repository files navigation

Oraichain

Banner! Banner!

License

Warning

Oraichain Labs, the team behind Oraichain and this repo orai, has fully shifted its focus to Our Wasmd fork repository, where we continue to build interoperability solutions for the future!

Please read our Upgrade guideline to understand the reasons for the change.

As a result, this repository is no longer maintained, and all relevant code has been migrated.

The last production version of this repo is v0.42.4.

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.

Getting Started

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.

Prerequisites

Hardware requirements

Please visit the official hardware requirement for Oraichain mainnet here

Installing

  • 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

Protobuf & protobuf swagger generation

  • Install Docker

  • 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'

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the Apache 2.0 license - see the LICENSE file for details.