service

package
v0.0.0-...-269d6e4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	chainapi.UnimplementedChainApiServiceServer
	// contains filtered or unexported fields
}

Service implements the chainservice for NEAR.

func NewService

func NewService(
	listener net.Listener,
	daemonName string,
	contractClients map[string]*contractclient.BridgeProvider,
) (*Service, error)

NewService creates a new Service.

func (*Service) Close

func (s *Service) Close() error

Close stops the server and cleans up all internally created resources.

func (*Service) HasDeposit

func (s *Service) HasDeposit(
	ctx context.Context,
	req *chainapi.HasDepositRequest,
) (*chainapi.HasDepositResponse, error)

HasDeposit returns whether or not the specified account id has deposited funds.

func (*Service) OwnsPublicKey

func (s *Service) OwnsPublicKey(
	ctx context.Context,
	req *chainapi.OwnsPublicKeyRequest,
) (*chainapi.OwnsPublicKeyResponse, error)

OwnsPublicKey returns whether or not the specified account owns the provided public key.

Jump to

Keyboard shortcuts

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