rpc

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DneroCliRPCServer

type DneroCliRPCServer struct {
	*DneroCliRPCService
	// contains filtered or unexported fields
}

DneroCliRPCServer is an instance of the CLI RPC service.

func NewDneroCliRPCServer

func NewDneroCliRPCServer(cfgPath, port string) (*DneroCliRPCServer, error)

NewDneroCliRPCServer creates a new instance of DneroRPCServer.

func (*DneroCliRPCServer) Start

func (t *DneroCliRPCServer) Start(ctx context.Context)

Start creates the main goroutine.

func (*DneroCliRPCServer) Stop

func (t *DneroCliRPCServer) Stop()

Stop notifies all goroutines to stop without blocking.

func (*DneroCliRPCServer) Wait

func (t *DneroCliRPCServer) Wait()

Wait blocks until all goroutines stop.

type DneroCliRPCService

type DneroCliRPCService struct {
	// contains filtered or unexported fields
}

func (*DneroCliRPCService) IsKeyUnlocked

func (t *DneroCliRPCService) IsKeyUnlocked(args *IsKeyUnlockedArgs, result *IsKeyUnlockedResult) (err error)

func (*DneroCliRPCService) ListKeys

func (t *DneroCliRPCService) ListKeys(args *ListKeysArgs, result *ListKeysResult) (err error)

func (*DneroCliRPCService) LockKey

func (t *DneroCliRPCService) LockKey(args *LockKeyArgs, result *LockKeyResult) (err error)

func (*DneroCliRPCService) NewKey

func (t *DneroCliRPCService) NewKey(args *NewKeyArgs, result *NewKeyResult) (err error)

func (*DneroCliRPCService) Send

func (t *DneroCliRPCService) Send(args *SendArgs, result *SendResult) (err error)

func (*DneroCliRPCService) UnlockKey

func (t *DneroCliRPCService) UnlockKey(args *UnlockKeyArgs, result *UnlockKeyResult) (err error)

type IsKeyUnlockedArgs

type IsKeyUnlockedArgs struct {
	Address string `json:"address"`
}

type IsKeyUnlockedResult

type IsKeyUnlockedResult struct {
	Unlocked bool `json:"unlocked"`
}

type ListKeysArgs

type ListKeysArgs struct {
}

type ListKeysResult

type ListKeysResult struct {
	Addresses []string `json:"addresses"`
}

type LockKeyArgs

type LockKeyArgs struct {
	Address string `json:"address"`
}

type LockKeyResult

type LockKeyResult struct {
	Unlocked bool `json:"unlocked"`
}

type NewKeyArgs

type NewKeyArgs struct {
	Password string `json:"password"`
}

type NewKeyResult

type NewKeyResult struct {
	Address string `json:"address"`
}

type SendArgs

type SendArgs struct {
	ChainID   string `json:"chain_id"`
	From      string `json:"from"`
	To        string `json:"to"`
	DneroWei  string `json:"dnerowei"`
	DTokenWei string `json:"dtokenwei"`
	Fee       string `json:"fee"`
	Sequence  string `json:"sequence"`
	Async     bool   `json:"async"`
}

type SendResult

type SendResult struct {
	TxHash string            `json:"hash"`
	Block  *core.BlockHeader `json:"block",rlp:"nil"`
}

type UnlockKeyArgs

type UnlockKeyArgs struct {
	Address  string `json:"address"`
	Password string `json:"password"`
}

type UnlockKeyResult

type UnlockKeyResult struct {
	Unlocked bool `json:"unlocked"`
}

Jump to

Keyboard shortcuts

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