service

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const MinSudtAmountByteSize = 16

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(ctx context.Context) Service

func (Service) CreateOrUpdatePoolTransactionEntry

func (svc Service) CreateOrUpdatePoolTransactionEntry(entry rpc.PoolTransactionEntry, fee hexutil.Uint64, cycles hexutil.Uint64, size hexutil.Uint64) error

func (*Service) CreatePoolTransactionEntry

func (svc *Service) CreatePoolTransactionEntry(entry rpc.PoolTransactionEntry, fee hexutil.Uint64, cycles hexutil.Uint64, size hexutil.Uint64) error

func (Service) GetUdtByTypeHash

func (svc Service) GetUdtByTypeHash(typeHash string) (*model.Udt, error)

func (Service) SavePoolTransactionEntry

func (svc Service) SavePoolTransactionEntry(message []byte)

func (Service) Subscribe

func (svc Service) Subscribe(c *websocket.Conn, topic string) error

Jump to

Keyboard shortcuts

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