voter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const DataInstructionCodeIndex = 0

Variables

This section is empty.

Functions

func NewFTOperator

func NewFTOperator(chain string, log *logan.Entry, rarimo *grpc.ClientConn) *ftOperator

func NewNFTOperator

func NewNFTOperator(chain string, solana *rpc.Client, rarimo *grpc.ClientConn) *nftOperator

func NewNativeOperator

func NewNativeOperator(chain string, log *logan.Entry, rarimo *grpc.ClientConn) *nativeOperator

Types

type IOperator

type IOperator interface {
	ParseTransaction(ctx context.Context, accounts []solana.PublicKey, instruction solana.CompiledInstruction, transfer *rarimotypes.Transfer) error
}

type TransferOperator

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

func NewTransferOperator

func NewTransferOperator(cfg config.Config) *TransferOperator

func (*TransferOperator) VerifyTransfer

func (t *TransferOperator) VerifyTransfer(ctx context.Context, tx, eventId string, transfer *rarimotypes.Transfer) error

Jump to

Keyboard shortcuts

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