dcrm

package
v0.0.0-...-eb4c3ac Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

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 GroupInfo

type GroupInfo struct {
	Gid    string
	Mode   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) AcceptReqAddr

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

func (*Service) CreateSDKGroup

func (this *Service) CreateSDKGroup(mode string, enodes []string) string

func (*Service) GetAccounts

func (this *Service) GetAccounts(gid, 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) 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() map[string]interface{}

func (*Service) GetCurNodeReqAddrInfo

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

func (*Service) GetEnode

func (this *Service) GetEnode() string

func (*Service) GetEnodeStatus

func (this *Service) GetEnodeStatus(enode string) string

func (*Service) GetLockOutNonce

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

func (*Service) GetLockOutStatus

func (this *Service) GetLockOutStatus(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) GetSDKGids

func (this *Service) GetSDKGids() []string

func (*Service) GetSDKGroup

func (this *Service) GetSDKGroup(enode string) string

func (*Service) GetSDKGroup4Dcrm

func (this *Service) GetSDKGroup4Dcrm() string

func (*Service) GetSDKGroupPerson

func (this *Service) GetSDKGroupPerson(enode string) string

func (*Service) LockOut

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

func (*Service) ReqDcrmAddr

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

this will be called by dcrm_reqDcrmAddr raw: tx raw data model: "0" self-group; "1" non self-group return pubkey and coins addr

Jump to

Keyboard shortcuts

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