voting

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IERC20DepositedTopic   = "0x043d52f9acdd847f0210803c386559db9e09d492143f2072fe30ea62ff0bb639"
	IERC721DepositedTopic  = "0x7f787dd0c844dac4f8bfc4044046cdab3be531f7eefa9b740c531e48a99725e1"
	IERC1155DepositedTopic = "0x103b790f2fa3a8676ff87c3620a55f0853d0e45128a8c7e9fadf29e17c51d07a"
	INativeDepositedTopic  = "0x9a47c8733424880a9e86a368eff95da5e7d36b68474a95eb097be2e43c116f27"

	EventNameTopic = 0
)

Variables

This section is empty.

Functions

func RunVoter

func RunVoter(ctx context.Context, cfg config.Config)

Types

type EvmTransferVerifier

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

func NewTransfersVerifier

func NewTransfersVerifier(cfg config.Config) *EvmTransferVerifier

func (*EvmTransferVerifier) VerifyTransfer

func (e *EvmTransferVerifier) VerifyTransfer(ctx context.Context, txHash, eventId string, transfer *rarimocore.Transfer) error

type IERC20Parser

type IERC20Parser interface {
	ParseDepositedERC20(log types.Log) (*gobind.IERC20HandlerDepositedERC20, error)
}

type INativeParser

type INativeParser interface {
	ParseDepositedNative(log types.Log) (*gobind.INativeHandlerDepositedNative, error)
}

type ReceiptsProvider

type ReceiptsProvider interface {
	GetTxReceipt(ctx context.Context, hash common.Hash) (*types.Receipt, error)
}

Jump to

Keyboard shortcuts

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