diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-02 13:25:24 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 2ed84953c3a7fc3cc81fcf683f7c8c440f3d9255 (patch) | |
tree | 01a6bf66cdbbe07b7b86bd46836bd1461d7d5769 /dex | |
parent | ae50cee06c456481b12908fb59b573e19e989f1b (diff) | |
download | dexon-2ed84953c3a7fc3cc81fcf683f7c8c440f3d9255.tar.gz dexon-2ed84953c3a7fc3cc81fcf683f7c8c440f3d9255.tar.zst dexon-2ed84953c3a7fc3cc81fcf683f7c8c440f3d9255.zip |
core: vm: add governance contract skeleton
Diffstat (limited to 'dex')
-rw-r--r-- | dex/governance.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/dex/governance.go b/dex/governance.go index 44df77361..95109690a 100644 --- a/dex/governance.go +++ b/dex/governance.go @@ -15,13 +15,13 @@ func NewDexconGovernance() *DexconGovernance { return &DexconGovernance{} } -// GetConfiguration return the total ordering K constant. -func (d *DexconGovernance) GetConfiguration(round uint64) *types.Config { +// Configuration return the total ordering K constant. +func (d *DexconGovernance) Configuration(round uint64) *types.Config { return &types.Config{} } -// GetCRS returns the CRS for a given round. -func (d *DexconGovernance) GetCRS(round uint64) coreCommon.Hash { +// CRS returns the CRS for a given round. +func (d *DexconGovernance) CRS(round uint64) coreCommon.Hash { return coreCommon.Hash{} } @@ -29,8 +29,8 @@ func (d *DexconGovernance) GetCRS(round uint64) coreCommon.Hash { func (d *DexconGovernance) ProposeCRS(round uint64, signedCRS []byte) { } -// GetValidatorSet returns the current notary set. -func (d *DexconGovernance) GetNodeSet(round uint64) []crypto.PublicKey { +// NodeSet returns the current notary set. +func (d *DexconGovernance) NodeSet(round uint64) []crypto.PublicKey { return nil } @@ -38,7 +38,7 @@ func (d *DexconGovernance) GetNodeSet(round uint64) []crypto.PublicKey { func (d *DexconGovernance) AddDKGComplaint(complaint *types.DKGComplaint) { } -// GetDKGComplaints gets all the DKGComplaints of round. +// DKGComplaints gets all the DKGComplaints of round. func (d *DexconGovernance) DKGComplaints(round uint64) []*types.DKGComplaint { return nil } |