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: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PubLock  sync.Mutex
	SignLock sync.Mutex
	KeyFile  string
)

Functions

func AcceptLockOut

func AcceptLockOut(raw string) (string, string, error)

func AcceptReqAddr

func AcceptReqAddr(raw string) (string, string, error)

func Call

func Call(msg interface{})

func CheckRealEosAccount

func CheckRealEosAccount(accountName, ownerkey, activekey string) (ok bool)

func CreateRealEosAccount

func CreateRealEosAccount(accountName string, ownerkey string, activekey string) error

func ExsitPubKey

func ExsitPubKey(account string, cointype string) (string, bool)

func GetAccounts

func GetAccounts(gid, mode string) (interface{}, string, error)

func GetAccountsBalance

func GetAccountsBalance(pubkey string) (interface{}, string, error)

func GetBalance

func GetBalance(account string, cointype string, dcrmaddr string) (string, string, error)

func GetEosAccount

func GetEosAccount() (acct, owner, active string)

func GetLockOutNonce

func GetLockOutNonce(account string, cointype string, dcrmaddr string) (string, string, error)

func GetLockOutReply

func GetLockOutReply() ([]string, string, error)

func GetLockOutStatus

func GetLockOutStatus(key string) (string, string, error)

func GetPubKeyData

func GetPubKeyData(key string, account string, cointype string) (string, string, error)

func GetReqAddrNonce

func GetReqAddrNonce(account string) (string, string, error)

func GetReqAddrReply

func GetReqAddrReply() ([]string, string, error)

func GetReqAddrStatus

func GetReqAddrStatus(key string) (string, string, error)

func Init

func Init(groupId string)

func LockOut

func LockOut(raw string) (string, string, error)

func ReqDcrmAddr

func ReqDcrmAddr(raw string, mode string) (string, string, error)

func SendReqToGroup

func SendReqToGroup(msg string, rpctype string) (string, string, error)

func SetUpMsgList

func SetUpMsgList(msg string)

func Start

func Start()

Types

type AccountInfo

type AccountInfo struct {
	AccountName string                 `json:"account_name"`
	RamQuato    uint32                 `json:"ram_quato"`
	NetWeight   uint32                 `json:"net_weight"`
	CpuWeight   uint32                 `json:"cpu_weight"`
	NetLimit    Limit                  `json:"net_limit"`
	CpuLimit    Limit                  `json:"cpu_limit"`
	RamUsage    uint32                 `json:"ram_usage"`
	Perms       Permissions            `json:"permissions"`
	Error       map[string]interface{} `json:"error"`
}

type Auth

type Auth struct {
	Threshold int   `json:"threshold"`
	Keys      []Key `json:"keys"`
}

type DcrmAccountsBalanceRes

type DcrmAccountsBalanceRes struct {
	PubKey   string
	Balances []SubAddressBalance
}

type DcrmAddrRes

type DcrmAddrRes struct {
	Account  string
	PubKey   string
	DcrmAddr string
	Cointype string
}

type DcrmPubkeyRes

type DcrmPubkeyRes struct {
	Account     string
	PubKey      string
	DcrmAddress map[string]string
}

type Key

type Key struct {
	Key    string `json:"key"`
	Weight int    `json:"weight"`
}

type Limit

type Limit struct {
	Used      int64 `used`
	Available int64 `available`
	Max       int64 `max`
}

type Permission

type Permission struct {
	PermName     string `json:"perm_name"`
	Parent       string `json:"parent"`
	RequiredAuth Auth   `json:"required_auth"`
}

type Permissions

type Permissions []Permission

func (Permissions) Len

func (p Permissions) Len() int

func (Permissions) Less

func (p Permissions) Less(i, j int) bool

func (Permissions) Swap

func (p Permissions) Swap(i, j int)

type SubAddressBalance

type SubAddressBalance struct {
	Cointype string
	DcrmAddr string
	Balance  string
}

Directories

Path Synopsis
bch
bnb
btc
Package helpers provides convenience functions to simplify wallet code.
Package helpers provides convenience functions to simplify wallet code.
config
提供api的节点地址
提供api的节点地址
eos
erc20/abi
Package abi implements the Ethereum ABI (Application Binary Interface).
Package abi implements the Ethereum ABI (Application Binary Interface).
eth
eth/sha3
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
evt
trx
xrp
dev

Jump to

Keyboard shortcuts

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