rpc

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 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 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"`
	ThetaWei string `json:"thetawei"`
	TFuelWei string `json:"tfuelwei"`
	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 ThetaCliRPCServer

type ThetaCliRPCServer struct {
	*ThetaCliRPCService
	// contains filtered or unexported fields
}

ThetaCliRPCServer is an instance of the CLI RPC service.

func NewThetaCliRPCServer

func NewThetaCliRPCServer(cfgPath, port string) (*ThetaCliRPCServer, error)

NewThetaCliRPCServer creates a new instance of ThetaRPCServer.

func (*ThetaCliRPCServer) Start

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

Start creates the main goroutine.

func (*ThetaCliRPCServer) Stop

func (t *ThetaCliRPCServer) Stop()

Stop notifies all goroutines to stop without blocking.

func (*ThetaCliRPCServer) Wait

func (t *ThetaCliRPCServer) Wait()

Wait blocks until all goroutines stop.

type ThetaCliRPCService

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

func (*ThetaCliRPCService) IsKeyUnlocked

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

func (*ThetaCliRPCService) ListKeys

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

func (*ThetaCliRPCService) LockKey

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

func (*ThetaCliRPCService) NewKey

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

func (*ThetaCliRPCService) Send

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

func (*ThetaCliRPCService) UnlockKey

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

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