contracts

package
v0.5.3-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

README

CPChain Smart Contract
======================

This module is smart contract of cpchain, including dpor, pdash, proxy, and reward.


dpor
####

Dpor contracts are built-in contracts to support consensus of cpchain, including rnode, campaign, admission and rpt.

rnode
*****

Rnode contract is for nodes to join and quit rnodes, and for other contracts to check if a node is rnode.

campaign
********

Campaign contract is for nodes to claim campaign, and checks if nodes satisfy all requirements to become candidates.

admission
*********

Admission contract is for campaign contract to check the proofs submitted by nodes.
The verification is done in go functions which are called by admission contract through primitive contract.

rpt
****

Rpt contract provides weight configs for reputation calculation.

pdash
#####

Pdash contracts are currently not used, and may be removed in the future.

proxy
#####

Proxy contract is a mechanism that realizes upgradable contract.
Proxy contract needs improvements and is currently unused.
It will open in the future.

reward
######

reward contract is a fund pool game which can be accessed in out mobile app.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL