dcrm

package
v0.0.0-...-e59d3c4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const (
	SUCCESS string = "Success"
	FAIL    string = "Error"
	NULLRET string = "Null"
	REPEAT  string = "Repeat"
	PENDING string = "Pending"
)

Variables

View Source
var RPCTEST bool = false

Functions

func RpcInit

func RpcInit(port int)

Types

type Enode

type Enode struct {
	Enode string
}

type EnodeStatus

type EnodeStatus struct {
	Enode  string
	Status string
}

type GroupID

type GroupID struct {
	Gid  string
	Sgid string
}

type GroupInfo

type GroupInfo struct {
	Gid    string
	Count  int
	Enodes []string
}

type Result

type Result struct {
	Status string // Success, Error, Null, Repeat, Pending
	Tip    string
	Error  string
	Data   interface{}
}

type Service

type Service struct{}

func (*Service) AcceptLockOut

func (this *Service) AcceptLockOut(raw string) map[string]interface{}

func (*Service) AcceptReShare

func (this *Service) AcceptReShare(raw string) map[string]interface{}

func (*Service) AcceptReqAddr

func (this *Service) AcceptReqAddr(raw string) map[string]interface{}

func (*Service) AcceptSign

func (this *Service) AcceptSign(raw string) map[string]interface{}

func (*Service) BroadcastInSDKGroupAll

func (this *Service) BroadcastInSDKGroupAll(gid, msg string) map[string]interface{}

func (*Service) CreateGroup

func (this *Service) CreateGroup(threshold string, enodes []string) map[string]interface{}

func (*Service) CreateSDKGroup

func (this *Service) CreateSDKGroup(threshold string, enodes []string, subGroup bool) map[string]interface{}

func (*Service) GetAccounts

func (this *Service) GetAccounts(account, mode string) map[string]interface{}

gid = "",get all pubkey of all gid gid != "",get all pubkey by gid

func (*Service) GetAccountsBalance

func (this *Service) GetAccountsBalance(pubkey string, account string) map[string]interface{}

func (*Service) GetBalance

func (this *Service) GetBalance(account string, cointype string, dcrmaddr string) map[string]interface{}

func (*Service) GetCurNodeLockOutInfo

func (this *Service) GetCurNodeLockOutInfo(account string) map[string]interface{}

func (*Service) GetCurNodeReShareInfo

func (this *Service) GetCurNodeReShareInfo() map[string]interface{}

func (*Service) GetCurNodeReqAddrInfo

func (this *Service) GetCurNodeReqAddrInfo(account string) map[string]interface{}

func (*Service) GetCurNodeSignInfo

func (this *Service) GetCurNodeSignInfo(account string) map[string]interface{}

func (*Service) GetDcrmAddr

func (this *Service) GetDcrmAddr(pubkey string) map[string]interface{}

func (*Service) GetEnode

func (this *Service) GetEnode() map[string]interface{}

func (*Service) GetEnodeStatus

func (this *Service) GetEnodeStatus(enode string) map[string]interface{}

func (*Service) GetGroupByID

func (this *Service) GetGroupByID(gid string) map[string]interface{}

func (*Service) GetLockOutNonce

func (this *Service) GetLockOutNonce(account string) map[string]interface{}

func (*Service) GetLockOutStatus

func (this *Service) GetLockOutStatus(key string) map[string]interface{}

func (*Service) GetReShareNonce

func (this *Service) GetReShareNonce(account string) map[string]interface{}

func (*Service) GetReShareStatus

func (this *Service) GetReShareStatus(key string) map[string]interface{}

func (*Service) GetReqAddrNonce

func (this *Service) GetReqAddrNonce(account string) map[string]interface{}

func (*Service) GetReqAddrStatus

func (this *Service) GetReqAddrStatus(key string) map[string]interface{}

func (*Service) GetSDKGroup

func (this *Service) GetSDKGroup(enode string) map[string]interface{}

func (*Service) GetSDKGroup4Dcrm

func (this *Service) GetSDKGroup4Dcrm() map[string]interface{}

func (*Service) GetSDKGroupAll

func (this *Service) GetSDKGroupAll() map[string]interface{}

TEST

func (*Service) GetSDKGroupPerson

func (this *Service) GetSDKGroupPerson(enode string) map[string]interface{}

func (*Service) GetSignNonce

func (this *Service) GetSignNonce(account string) map[string]interface{}

func (*Service) GetSignStatus

func (this *Service) GetSignStatus(key string) map[string]interface{}

func (*Service) GetVersion

func (this *Service) GetVersion() map[string]interface{}

func (*Service) LockOut

func (this *Service) LockOut(raw string) map[string]interface{}

func (*Service) ReShare

func (this *Service) ReShare(raw string) map[string]interface{}

func (*Service) ReqDcrmAddr

func (this *Service) ReqDcrmAddr(raw string) map[string]interface{}

this will be called by dcrm_reqDcrmAddr raw: tx raw data return pubkey and coins addr

func (*Service) ReshareGroup

func (this *Service) ReshareGroup(threshold string, enodes []string) map[string]interface{}

func (*Service) SendToGroupAllNodes

func (this *Service) SendToGroupAllNodes(gid, msg string) map[string]interface{}

func (*Service) Sign

func (this *Service) Sign(raw string) map[string]interface{}

type Version

type Version struct {
	Version string
}

Jump to

Keyboard shortcuts

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