handlers

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package handlers handles translating transactions into [RosettaTypes.Operation]s.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BurnOps

func BurnOps(tx *evmClient.LoadedTransaction, startIndex int) []*RosettaTypes.Operation

BurnOps constructs a list of [RosettaTypes.Operation]s for an Optimism Withdrawal or "burn" transaction.

func FeeOps

FeeOps returns the fee operations for a given transaction.

func GenerateOp added in v0.2.0

func GenerateOp(opIndex int64, relatedOps []*types.OperationIdentifier, opType string, opStatus string, address string, amount *types.Amount, metadata map[string]interface{}) *types.Operation

func MintOps

func MintOps(tx *evmClient.LoadedTransaction, startIndex int) []*RosettaTypes.Operation

MintOps constructs a list of [RosettaTypes.Operation]s for an Optimism Deposit or "mint" transaction.

func TraceOps

func TraceOps(
	calls []*evmClient.FlatCall,
	startIndex int,
) []*RosettaTypes.Operation

Types

This section is empty.

Jump to

Keyboard shortcuts

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