aboutsummaryrefslogtreecommitdiffstats
path: root/dex/governance.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-09-18 14:39:31 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 10:47:31 +0800
commita70222ced6e5443470ba5dad973ac75e51a3e19d (patch)
tree0d8e3a2205f6287de63114db240da727436a16be /dex/governance.go
parent317b5a83a4a1f827a5ae5c4c85db4d9d58628bb6 (diff)
downloaddexon-a70222ced6e5443470ba5dad973ac75e51a3e19d.tar
dexon-a70222ced6e5443470ba5dad973ac75e51a3e19d.tar.gz
dexon-a70222ced6e5443470ba5dad973ac75e51a3e19d.tar.bz2
dexon-a70222ced6e5443470ba5dad973ac75e51a3e19d.tar.lz
dexon-a70222ced6e5443470ba5dad973ac75e51a3e19d.tar.xz
dexon-a70222ced6e5443470ba5dad973ac75e51a3e19d.tar.zst
dexon-a70222ced6e5443470ba5dad973ac75e51a3e19d.zip
Add udpated governance interface and app interface
Diffstat (limited to 'dex/governance.go')
-rw-r--r--dex/governance.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/dex/governance.go b/dex/governance.go
new file mode 100644
index 000000000..cb696e42c
--- /dev/null
+++ b/dex/governance.go
@@ -0,0 +1,32 @@
+package dex
+
+import (
+ "github.com/dexon-foundation/dexon-consensus-core/core/types"
+)
+
+type DexconGovernance struct {
+}
+
+// GetValidatorSet returns the current notary set.
+func (d *DexconGovernance) GetNotarySet() map[types.ValidatorID]struct{} {
+}
+
+// GetTotalOrderingK return the total ordering K constant.
+func (d *DexconGovernance) GetCCP() types.CCP {
+}
+
+// AddDKGComplaint adds a DKGComplaint.
+func (d *DexconGovernance) AddDKGComplaint(complaint *types.DKGComplaint) {
+}
+
+// GetDKGComplaints gets all the DKGComplaints of round.
+func (d *DexconGovernance) DKGComplaints(round uint64) []*types.DKGComplaint {
+}
+
+// AddDKGMasterPublicKey adds a DKGMasterPublicKey.
+func (d *DexconGovernance) AddDKGMasterPublicKey(masterPublicKey *types.DKGMasterPublicKey) {
+}
+
+// DKGMasterPublicKeys gets all the DKGMasterPublicKey of round.
+func (d *DexconGovernance) DKGMasterPublicKeys(round uint64) []*types.DKGMasterPublicKey {
+}