Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AmbireTech/adex-protocol-substrate
Substrate implementation of the AdEx Protocol v4: OUTPACE & Registry
https://github.com/AmbireTech/adex-protocol-substrate
Last synced: 3 months ago
JSON representation
Substrate implementation of the AdEx Protocol v4: OUTPACE & Registry
- Host: GitHub
- URL: https://github.com/AmbireTech/adex-protocol-substrate
- Owner: AmbireTech
- License: unlicense
- Created: 2018-10-24T12:37:32.000Z (about 6 years ago)
- Default Branch: rebase
- Last Pushed: 2022-04-30T11:13:56.000Z (over 2 years ago)
- Last Synced: 2023-10-20T16:55:41.345Z (about 1 year ago)
- Language: Rust
- Homepage: https://www.adex.network
- Size: 98.6 KB
- Stars: 32
- Watchers: 6
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-substrate - adex-protocol-substrate, Substrate implementation of the AdEx Protocol v4: OUTPACE & Registry
- awesome-substrate - adex-protocol-substrate, Substrate implementation of the AdEx Protocol v4: OUTPACE & Registry
README
# adex-protocol-substrate
The [AdEx Protocol](https://github.com/AdExNetwork/adex-protocol) implemented on top of Substrate. Bootstrapped from [substrate-node-template](https://github.com/paritytech/substrate-node-template).
## What is it?
### OUTPACE
The [`AdExOUTPACE`](https://github.com/AdExNetwork/adex-protocol-substrate/tree/rebase/runtime/src/adex_outpace) module implements **O**ffchain **U**nidirectional **T**rustless **Pa**yment **C**hann**e**ls described here: https://github.com/AdExNetwork/adex-protocol/blob/master/OUTPACE.md
The OUTPACE module consists of:
* `channel_open`: opens a channel, therefore locking up a deposit
* `channel_withdraw_expired`: after the channel is expired, the creator may invoke this to withdraw the remainder of their deposit
* `channel_withdraw`: at any time before expiry, anyone who earned from this channel may withdraw their earnings### Registry
The upcoming `AdExRegistry` module implements the AdEx registry.
It is a component where AdEx validators can stake tokens to get exposure. Furhermore, users may launch challenges against validators to prove their misbehavior. Most of the challenges involve replicating the off-chain behavior of the [validator stack](https://github.com/adexnetwork/adex-validator-stack-js), employing a pattern referred to as counterfactuality.
For more details, read https://github.com/AdExNetwork/adex-protocol/issues/7
## Build and run
```
./build.sh
cargo run -- --dev
```With some old Rust crates, you might need to do `export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig` if you're running OpenSSL 1.1
## Bootstrap an UI
First, complete the "Prerequisites" step from https://substrate.readme.io/docs/creating-a-custom-substrate-chain
Then, execute:
```
substrate-ui-new adex-protocol-substrate
```