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.
- Host: GitHub
- URL: https://github.com/crossbell-box/crossbell-contracts
- Owner: Crossbell-Box
- Created: 2022-04-13T08:35:56.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-03T20:01:20.000Z (over 1 year ago)
- Last Synced: 2025-04-01T01:01:44.423Z (about 1 year ago)
- Language: Solidity
- Homepage: https://crossbell-box.github.io/Crossbell-Contracts
- Size: 13.3 MB
- Stars: 55
- Watchers: 3
- Forks: 7
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
Crossbell
> Cross-platform, ring a bell.
Explore the Wiki »
View Website
·
Join Discord
·
Report Bug
[](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/docs.yml)
[](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/lint.yml)
[](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/tests.yml)
[](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/checks.yml)
[](https://github.com/Crossbell-Box/Crossbell-Contracts/actions/workflows/mythx.yml)
[](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
```