An open API service indexing awesome lists of open source software.

https://github.com/crossbell-box/crossbell-contracts

Crossbell Contracts: The protocol for an ownership platform.
https://github.com/crossbell-box/crossbell-contracts

Last synced: about 1 year ago
JSON representation

Crossbell Contracts: The protocol for an ownership platform.

Awesome Lists containing this project

README

          


CrossSync Logo

Crossbell

> Cross-platform, ring a bell.




Explore the Wiki »




View Website
·
Join Discord
·
Report Bug

[![Docs](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/docs.yml/badge.svg)](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/docs.yml)
[![lint](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/lint.yml/badge.svg)](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/lint.yml)
[![tests](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/tests.yml/badge.svg)](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/tests.yml)
[![checks](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/checks.yml/badge.svg)](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/checks.yml)
[![Mythx Security Analysis](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/mythx.yml/badge.svg)](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/mythx.yml)
[![codecov](https://img.shields.io/codecov/c/github/Crossbell-Box/Crossbell-Contracts.svg?style=flat-square&logo=codecov)](https://codecov.io/gh/Crossbell-Box/Crossbell-Contracts)

## 🐳 Introduction

Crossbell is an **ownership** **platform** composed of

1. an EVM-compatible blockchain
2. a protocol implemented by a set of smart contracts

Specifically, the information generated from **social activities** will be the initial form of data-ownership by users on Crossbell.

This repository is the implementation of the protocol.

## ⚙ Development

Install foundry if you don't have one:
```shell
# install foundry
curl -L https://foundry.paradigm.xyz | bash
foundryup
```

Compile and run tests:
```shell
yarn
yarn test
#run single test function using --match-test
forge test --match-test testXXX -vvvvv
#run single test contract using --match-contract
forge test --match-contract xxxTest -vvvvv
#run a group of tests using --match-path
forge test --match-path test/... -vvvvv
```

Deploy:
```shell
forge script scripts/Deploy.s.sol:Deploy --private-key $PRIVATE_KEY --broadcast --legacy --rpc-url $RPC_URL --ffi
forge script scripts/Deploy.s.sol:Deploy --sig 'sync()' --private-key $PRIVATE_KEY --broadcast --legacy --rpc-url $RPC_URL --ffi
```