traces

package
v1.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package traces provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.16.2 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Call

type Call struct {
	Type         string        `json:"type"`
	From         string        `json:"from"`
	To           string        `json:"to"`
	GasLimit     int           `json:"gasLimit"`
	GasUsed      int           `json:"gasUsed"`
	PrevGasLimit int           `json:"prevGasLimit"`
	Gas          string        `json:"gas"`
	GasCost      int           `json:"gasCost"`
	Input        string        `json:"input"`
	Calls        []Call        `json:"calls"`
	Logs         []Log         `json:"logs"`
	Status       string        `json:"status"`
	Storage      []StorageItem `json:"storage"`
	Success      int           `json:"success"`
	Res          string        `json:"res"`
	Depth        int           `json:"depth"`
	Value        string        `json:"value"`
}

type Client

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

func NewClient

func NewClient(cfg *Configuration) (*Client, error)

func (*Client) GetBlockTraceByNumber

func (api *Client) GetBlockTraceByNumber(ctx context.Context, param GetBlockTraceByNumberParam) (*CoreBuiltinBlockTracesDto, error)

GetBlockTraceByNumber Get block trace by number

func (*Client) GetSyncedInterval

func (api *Client) GetSyncedInterval(ctx context.Context) (*ReadSyncedIntervalResponseDto, error)

GetSyncedInterval Get synced interval

func (*Client) GetTxTraceByNumberAndHash

func (api *Client) GetTxTraceByNumberAndHash(ctx context.Context, param GetTxTraceByNumberAndHashParams) (*TransactionTraceResponse, error)

GetTxTraceByNumberAndHash Get transaction trace by block number and transaction hash

func (*Client) GetTxTraceByNumberAndOffset

func (api *Client) GetTxTraceByNumberAndOffset(ctx context.Context, param GetTxTraceByNumberAndOffsetParams) (*TransactionTraceResponse, error)

GetTxTraceByNumberAndOffset Get transaction trace by block number and offset of transaction in block

type Configuration

type Configuration struct {
	ApiKey string
	ApiURL string
	API    api
}

func NewConfiguration

func NewConfiguration(chainId uint64, apiUrl string, apiKey string) (*Configuration, error)

type CoreBuiltinBlockTracesDto

type CoreBuiltinBlockTracesDto struct {
	BlockHash      string                                      `json:"blockHash"`
	BlockNumber    float32                                     `json:"blockNumber,omitempty"`
	BlockTimestamp string                                      `json:"blockTimestamp"`
	Traces         []CoreBuiltinTransactionRootSuccessTraceDto `json:"traces"`
	Type           CoreBuiltinBlockTracesDtoType               `json:"type"`
	Version        string                                      `json:"version"`
}

CoreBuiltinBlockTracesDto defines model for CoreBuiltinBlockTracesDto.

type CoreBuiltinBlockTracesDtoType

type CoreBuiltinBlockTracesDtoType string

CoreBuiltinBlockTracesDtoType defines model for CoreBuiltinBlockTracesDto.Type.

const (
	CoreBuiltinBlockTracesDtoTypeBUILTIN             CoreBuiltinBlockTracesDtoType = "BUILTIN"
	CoreBuiltinBlockTracesDtoTypeCUSTOM              CoreBuiltinBlockTracesDtoType = "CUSTOM"
	CoreBuiltinBlockTracesDtoTypeCUSTOMGO            CoreBuiltinBlockTracesDtoType = "CUSTOM_GO"
	CoreBuiltinBlockTracesDtoTypeCUSTOMWITHOUTSTORE  CoreBuiltinBlockTracesDtoType = "CUSTOM_WITHOUT_STORE"
	CoreBuiltinBlockTracesDtoTypeOLDARBITRUMRAWTRACE CoreBuiltinBlockTracesDtoType = "OLD_ARBITRUM_RAW_TRACE"
)

Defines values for CoreBuiltinBlockTracesDtoType.

type CoreBuiltinCallTraceDto

type CoreBuiltinCallTraceDto struct {
	Calls            []CoreBuiltinCallTraceDto   `json:"calls"`
	Error            string                      `json:"error"`
	From             string                      `json:"from"`
	Gas              string                      `json:"gas"`
	GasUsed          float32                     `json:"gasUsed"`
	Input            string                      `json:"input"`
	IsParentHasError bool                        `json:"isParentHasError"`
	Output           string                      `json:"output"`
	To               string                      `json:"to"`
	Type             CoreBuiltinCallTraceDtoType `json:"type"`
	Value            string                      `json:"value"`
}

CoreBuiltinCallTraceDto defines model for CoreBuiltinCallTraceDto.

type CoreBuiltinCallTraceDtoType

type CoreBuiltinCallTraceDtoType string

CoreBuiltinCallTraceDtoType defines model for CoreBuiltinCallTraceDto.Type.

const (
	CoreBuiltinCallTraceDtoTypeCALL          CoreBuiltinCallTraceDtoType = "CALL"
	CoreBuiltinCallTraceDtoTypeCALLCODE      CoreBuiltinCallTraceDtoType = "CALLCODE"
	CoreBuiltinCallTraceDtoTypeCREATE        CoreBuiltinCallTraceDtoType = "CREATE"
	CoreBuiltinCallTraceDtoTypeCREATE2       CoreBuiltinCallTraceDtoType = "CREATE2"
	CoreBuiltinCallTraceDtoTypeDELEGATECALL  CoreBuiltinCallTraceDtoType = "DELEGATECALL"
	CoreBuiltinCallTraceDtoTypeINVALID       CoreBuiltinCallTraceDtoType = "INVALID"
	CoreBuiltinCallTraceDtoTypeSELFDESTRUCT  CoreBuiltinCallTraceDtoType = "SELFDESTRUCT"
	CoreBuiltinCallTraceDtoTypeSTATICCALL    CoreBuiltinCallTraceDtoType = "STATICCALL"
	CoreBuiltinCallTraceDtoTypeSTOP          CoreBuiltinCallTraceDtoType = "STOP"
	CoreBuiltinCallTraceDtoTypeTRANSFERETHER CoreBuiltinCallTraceDtoType = "TRANSFER_ETHER"
)

Defines values for CoreBuiltinCallTraceDtoType.

type CoreBuiltinTraceLogDto

type CoreBuiltinTraceLogDto struct {
	Contract string          `json:"contract"`
	Data     string          `json:"data"`
	Topics   [][]interface{} `json:"topics"`
}

CoreBuiltinTraceLogDto defines model for CoreBuiltinTraceLogDto.

type CoreBuiltinTransactionRootSuccessTraceDto

type CoreBuiltinTransactionRootSuccessTraceDto struct {
	Calls                []CoreBuiltinCallTraceDto                     `json:"calls"`
	Error                string                                        `json:"error"`
	Events               []CoreBuiltinTraceLogDto                      `json:"events"`
	From                 string                                        `json:"from"`
	Gas                  string                                        `json:"gas"`
	GasHex               string                                        `json:"gasHex"`
	GasPrice             string                                        `json:"gasPrice"`
	GasUsed              float32                                       `json:"gasUsed"`
	Input                string                                        `json:"input"`
	MaxFeePerGas         string                                        `json:"maxFeePerGas"`
	MaxPriorityFeePerGas string                                        `json:"maxPriorityFeePerGas"`
	Nonce                string                                        `json:"nonce"`
	Output               string                                        `json:"output"`
	RevertReason         string                                        `json:"revertReason"`
	To                   string                                        `json:"to"`
	TxHash               string                                        `json:"txHash"`
	Type                 CoreBuiltinTransactionRootSuccessTraceDtoType `json:"type"`
	Value                string                                        `json:"value"`
}

CoreBuiltinTransactionRootSuccessTraceDto defines model for CoreBuiltinTransactionRootSuccessTraceDto.

type CoreBuiltinTransactionRootSuccessTraceDtoType

type CoreBuiltinTransactionRootSuccessTraceDtoType string

CoreBuiltinTransactionRootSuccessTraceDtoType defines model for CoreBuiltinTransactionRootSuccessTraceDto.Type.

const (
	CoreBuiltinTransactionRootSuccessTraceDtoTypeCALL          CoreBuiltinTransactionRootSuccessTraceDtoType = "CALL"
	CoreBuiltinTransactionRootSuccessTraceDtoTypeCALLCODE      CoreBuiltinTransactionRootSuccessTraceDtoType = "CALLCODE"
	CoreBuiltinTransactionRootSuccessTraceDtoTypeCREATE        CoreBuiltinTransactionRootSuccessTraceDtoType = "CREATE"
	CoreBuiltinTransactionRootSuccessTraceDtoTypeCREATE2       CoreBuiltinTransactionRootSuccessTraceDtoType = "CREATE2"
	CoreBuiltinTransactionRootSuccessTraceDtoTypeDELEGATECALL  CoreBuiltinTransactionRootSuccessTraceDtoType = "DELEGATECALL"
	CoreBuiltinTransactionRootSuccessTraceDtoTypeINVALID       CoreBuiltinTransactionRootSuccessTraceDtoType = "INVALID"
	CoreBuiltinTransactionRootSuccessTraceDtoTypeSELFDESTRUCT  CoreBuiltinTransactionRootSuccessTraceDtoType = "SELFDESTRUCT"
	CoreBuiltinTransactionRootSuccessTraceDtoTypeSTATICCALL    CoreBuiltinTransactionRootSuccessTraceDtoType = "STATICCALL"
	CoreBuiltinTransactionRootSuccessTraceDtoTypeSTOP          CoreBuiltinTransactionRootSuccessTraceDtoType = "STOP"
	CoreBuiltinTransactionRootSuccessTraceDtoTypeTRANSFERETHER CoreBuiltinTransactionRootSuccessTraceDtoType = "TRANSFER_ETHER"
)

Defines values for CoreBuiltinTransactionRootSuccessTraceDtoType.

type CoreCustomBlockTraceDto

type CoreCustomBlockTraceDto struct {
	BlockHash      string                                `json:"blockHash"`
	BlockTimestamp string                                `json:"blockTimestamp"`
	Number         float32                               `json:"number"`
	Traces         []CoreCustomBlockTraceDto_Traces_Item `json:"traces"`
	Type           CoreCustomBlockTraceDtoType           `json:"type"`
	Version        string                                `json:"version"`
}

CoreCustomBlockTraceDto defines model for CoreCustomBlockTraceDto.

type CoreCustomBlockTraceDtoType

type CoreCustomBlockTraceDtoType string

CoreCustomBlockTraceDtoType defines model for CoreCustomBlockTraceDto.Type.

const (
	CoreCustomBlockTraceDtoTypeBUILTIN             CoreCustomBlockTraceDtoType = "BUILTIN"
	CoreCustomBlockTraceDtoTypeCUSTOM              CoreCustomBlockTraceDtoType = "CUSTOM"
	CoreCustomBlockTraceDtoTypeCUSTOMGO            CoreCustomBlockTraceDtoType = "CUSTOM_GO"
	CoreCustomBlockTraceDtoTypeCUSTOMWITHOUTSTORE  CoreCustomBlockTraceDtoType = "CUSTOM_WITHOUT_STORE"
	CoreCustomBlockTraceDtoTypeOLDARBITRUMRAWTRACE CoreCustomBlockTraceDtoType = "OLD_ARBITRUM_RAW_TRACE"
)

Defines values for CoreCustomBlockTraceDtoType.

type CoreCustomBlockTraceDto_Traces_Item

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

CoreCustomBlockTraceDto_Traces_Item defines model for CoreCustomBlockTraceDto.traces.Item.

func (CoreCustomBlockTraceDto_Traces_Item) AsCoreCustomErrorTransactionTraceDto

func (t CoreCustomBlockTraceDto_Traces_Item) AsCoreCustomErrorTransactionTraceDto() (CoreCustomErrorTransactionTraceDto, error)

AsCoreCustomErrorTransactionTraceDto returns the union data inside the CoreCustomBlockTraceDto_Traces_Item as a CoreCustomErrorTransactionTraceDto

func (CoreCustomBlockTraceDto_Traces_Item) AsCoreCustomRootTxEventCallstackTraceFullDto

func (t CoreCustomBlockTraceDto_Traces_Item) AsCoreCustomRootTxEventCallstackTraceFullDto() (CoreCustomRootTxEventCallstackTraceFullDto, error)

AsCoreCustomRootTxEventCallstackTraceFullDto returns the union data inside the CoreCustomBlockTraceDto_Traces_Item as a CoreCustomRootTxEventCallstackTraceFullDto

func (*CoreCustomBlockTraceDto_Traces_Item) FromCoreCustomErrorTransactionTraceDto

func (t *CoreCustomBlockTraceDto_Traces_Item) FromCoreCustomErrorTransactionTraceDto(v CoreCustomErrorTransactionTraceDto) error

FromCoreCustomErrorTransactionTraceDto overwrites any union data inside the CoreCustomBlockTraceDto_Traces_Item as the provided CoreCustomErrorTransactionTraceDto

func (*CoreCustomBlockTraceDto_Traces_Item) FromCoreCustomRootTxEventCallstackTraceFullDto

func (t *CoreCustomBlockTraceDto_Traces_Item) FromCoreCustomRootTxEventCallstackTraceFullDto(v CoreCustomRootTxEventCallstackTraceFullDto) error

FromCoreCustomRootTxEventCallstackTraceFullDto overwrites any union data inside the CoreCustomBlockTraceDto_Traces_Item as the provided CoreCustomRootTxEventCallstackTraceFullDto

func (CoreCustomBlockTraceDto_Traces_Item) MarshalJSON

func (t CoreCustomBlockTraceDto_Traces_Item) MarshalJSON() ([]byte, error)

func (*CoreCustomBlockTraceDto_Traces_Item) MergeCoreCustomErrorTransactionTraceDto

func (t *CoreCustomBlockTraceDto_Traces_Item) MergeCoreCustomErrorTransactionTraceDto(v CoreCustomErrorTransactionTraceDto) error

MergeCoreCustomErrorTransactionTraceDto performs a merge with any union data inside the CoreCustomBlockTraceDto_Traces_Item, using the provided CoreCustomErrorTransactionTraceDto

func (*CoreCustomBlockTraceDto_Traces_Item) MergeCoreCustomRootTxEventCallstackTraceFullDto

func (t *CoreCustomBlockTraceDto_Traces_Item) MergeCoreCustomRootTxEventCallstackTraceFullDto(v CoreCustomRootTxEventCallstackTraceFullDto) error

MergeCoreCustomRootTxEventCallstackTraceFullDto performs a merge with any union data inside the CoreCustomBlockTraceDto_Traces_Item, using the provided CoreCustomRootTxEventCallstackTraceFullDto

func (*CoreCustomBlockTraceDto_Traces_Item) UnmarshalJSON

func (t *CoreCustomBlockTraceDto_Traces_Item) UnmarshalJSON(b []byte) error

type CoreCustomErrorTransactionTraceDto

type CoreCustomErrorTransactionTraceDto struct {
	Error                string `json:"error"`
	GasHex               string `json:"gasHex"`
	GasPrice             string `json:"gasPrice"`
	MaxFeePerGas         string `json:"maxFeePerGas"`
	MaxPriorityFeePerGas string `json:"maxPriorityFeePerGas"`
	Nonce                string `json:"nonce"`
	TxHash               string `json:"txHash"`
}

CoreCustomErrorTransactionTraceDto defines model for CoreCustomErrorTransactionTraceDto.

type CoreCustomRootTxEventCallstackTraceFullDto

type CoreCustomRootTxEventCallstackTraceFullDto struct {
	Address              string                                           `json:"address"`
	Calls                []CoreCustomTxEventCallstackTraceDto             `json:"calls"`
	Depth                float32                                          `json:"depth"`
	DestructAddress      string                                           `json:"destructAddress"`
	ErrorDetails         string                                           `json:"errorDetails"`
	From                 string                                           `json:"from"`
	GasActual            float32                                          `json:"gasActual"`
	GasHex               string                                           `json:"gasHex"`
	GasLimit             float32                                          `json:"gasLimit"`
	GasPrice             string                                           `json:"gasPrice"`
	GasRefund            float32                                          `json:"gasRefund"`
	GasUsed              float32                                          `json:"gasUsed"`
	Input                string                                           `json:"input"`
	IntrinsicGas         float32                                          `json:"intrinsicGas"`
	Logs                 []CoreCustomTraceLogDto                          `json:"logs"`
	MaxFeePerGas         string                                           `json:"maxFeePerGas"`
	MaxPriorityFeePerGas string                                           `json:"maxPriorityFeePerGas"`
	Nonce                string                                           `json:"nonce"`
	Output               string                                           `json:"output"`
	Res                  string                                           `json:"res"`
	Status               CoreCustomRootTxEventCallstackTraceFullDtoStatus `json:"status"`
	Storage              []CustomStorageDto                               `json:"storage"`
	Success              float32                                          `json:"success"`
	Time                 string                                           `json:"time"`
	To                   string                                           `json:"to"`
	TxHash               string                                           `json:"txHash"`
	Type                 CoreCustomRootTxEventCallstackTraceFullDtoType   `json:"type"`
	Value                string                                           `json:"value"`
}

CoreCustomRootTxEventCallstackTraceFullDto defines model for CoreCustomRootTxEventCallstackTraceFullDto.

type CoreCustomRootTxEventCallstackTraceFullDtoStatus

type CoreCustomRootTxEventCallstackTraceFullDtoStatus string

CoreCustomRootTxEventCallstackTraceFullDtoStatus defines model for CoreCustomRootTxEventCallstackTraceFullDto.Status.

const (
	CoreCustomRootTxEventCallstackTraceFullDtoStatusERROR          CoreCustomRootTxEventCallstackTraceFullDtoStatus = "ERROR"
	CoreCustomRootTxEventCallstackTraceFullDtoStatusERRORUNWIND    CoreCustomRootTxEventCallstackTraceFullDtoStatus = "ERROR_UNWIND"
	CoreCustomRootTxEventCallstackTraceFullDtoStatusINVALIDOPCODE  CoreCustomRootTxEventCallstackTraceFullDtoStatus = "INVALID_OPCODE"
	CoreCustomRootTxEventCallstackTraceFullDtoStatusNOCONTRACT     CoreCustomRootTxEventCallstackTraceFullDtoStatus = "NO_CONTRACT"
	CoreCustomRootTxEventCallstackTraceFullDtoStatusOUTOFGAS       CoreCustomRootTxEventCallstackTraceFullDtoStatus = "OUT_OF_GAS"
	CoreCustomRootTxEventCallstackTraceFullDtoStatusRETURNED       CoreCustomRootTxEventCallstackTraceFullDtoStatus = "RETURNED"
	CoreCustomRootTxEventCallstackTraceFullDtoStatusREVERTED       CoreCustomRootTxEventCallstackTraceFullDtoStatus = "REVERTED"
	CoreCustomRootTxEventCallstackTraceFullDtoStatusSELFDESTRUCTED CoreCustomRootTxEventCallstackTraceFullDtoStatus = "SELFDESTRUCTED"
	CoreCustomRootTxEventCallstackTraceFullDtoStatusSTOPPED        CoreCustomRootTxEventCallstackTraceFullDtoStatus = "STOPPED"
)

Defines values for CoreCustomRootTxEventCallstackTraceFullDtoStatus.

type CoreCustomRootTxEventCallstackTraceFullDtoType

type CoreCustomRootTxEventCallstackTraceFullDtoType string

CoreCustomRootTxEventCallstackTraceFullDtoType defines model for CoreCustomRootTxEventCallstackTraceFullDto.Type.

Defines values for CoreCustomRootTxEventCallstackTraceFullDtoType.

type CoreCustomTraceLogDto

type CoreCustomTraceLogDto struct {
	Contract string          `json:"contract"`
	Data     string          `json:"data"`
	Topics   [][]interface{} `json:"topics"`
}

CoreCustomTraceLogDto defines model for CoreCustomTraceLogDto.

type CoreCustomTxEventCallstackTraceDto

type CoreCustomTxEventCallstackTraceDto struct {
	Address         string                                   `json:"address"`
	Calls           []CoreCustomTxEventCallstackTraceDto     `json:"calls"`
	Depth           float32                                  `json:"depth"`
	DestructAddress string                                   `json:"destructAddress"`
	ErrorDetails    string                                   `json:"errorDetails"`
	From            string                                   `json:"from"`
	Gas             string                                   `json:"gas"`
	GasCost         float32                                  `json:"gasCost"`
	GasLimit        float32                                  `json:"gasLimit"`
	GasUsed         float32                                  `json:"gasUsed"`
	Input           string                                   `json:"input"`
	Logs            []CoreCustomTraceLogDto                  `json:"logs"`
	Output          string                                   `json:"output"`
	PrevGasLimit    float32                                  `json:"prevGasLimit"`
	Res             string                                   `json:"res"`
	Status          CoreCustomTxEventCallstackTraceDtoStatus `json:"status"`
	Storage         []CustomStorageDto                       `json:"storage"`
	Success         float32                                  `json:"success"`
	Time            string                                   `json:"time"`
	To              string                                   `json:"to"`
	Type            string                                   `json:"type"`
	Value           string                                   `json:"value"`
}

CoreCustomTxEventCallstackTraceDto defines model for CoreCustomTxEventCallstackTraceDto.

type CoreCustomTxEventCallstackTraceDtoStatus

type CoreCustomTxEventCallstackTraceDtoStatus string

CoreCustomTxEventCallstackTraceDtoStatus defines model for CoreCustomTxEventCallstackTraceDto.Status.

const (
	CoreCustomTxEventCallstackTraceDtoStatusERROR          CoreCustomTxEventCallstackTraceDtoStatus = "ERROR"
	CoreCustomTxEventCallstackTraceDtoStatusERRORUNWIND    CoreCustomTxEventCallstackTraceDtoStatus = "ERROR_UNWIND"
	CoreCustomTxEventCallstackTraceDtoStatusINVALIDOPCODE  CoreCustomTxEventCallstackTraceDtoStatus = "INVALID_OPCODE"
	CoreCustomTxEventCallstackTraceDtoStatusNOCONTRACT     CoreCustomTxEventCallstackTraceDtoStatus = "NO_CONTRACT"
	CoreCustomTxEventCallstackTraceDtoStatusOUTOFGAS       CoreCustomTxEventCallstackTraceDtoStatus = "OUT_OF_GAS"
	CoreCustomTxEventCallstackTraceDtoStatusRETURNED       CoreCustomTxEventCallstackTraceDtoStatus = "RETURNED"
	CoreCustomTxEventCallstackTraceDtoStatusREVERTED       CoreCustomTxEventCallstackTraceDtoStatus = "REVERTED"
	CoreCustomTxEventCallstackTraceDtoStatusSELFDESTRUCTED CoreCustomTxEventCallstackTraceDtoStatus = "SELFDESTRUCTED"
	CoreCustomTxEventCallstackTraceDtoStatusSTOPPED        CoreCustomTxEventCallstackTraceDtoStatus = "STOPPED"
)

Defines values for CoreCustomTxEventCallstackTraceDtoStatus.

type CustomStorageDto

type CustomStorageDto struct {
	Key   string `json:"key"`
	Type  string `json:"type"`
	Value string `json:"value"`
}

CustomStorageDto defines model for CustomStorageDto.

type GetBlockTraceByNumberParam

type GetBlockTraceByNumberParam int

type GetTxTraceByNumberAndHashParams

type GetTxTraceByNumberAndHashParams struct {
	BlockNumber     int    `json:"blockNumber" uri:"blockNumber"`
	TransactionHash string `json:"txHash" uri:"txHash"`
}

type GetTxTraceByNumberAndOffsetParams

type GetTxTraceByNumberAndOffsetParams struct {
	BlockNumber int `json:"blockNumber" uri:"blockNumber"`
	Offset      int `json:"offset" uri:"offset"`
}

type Log

type Log struct {
	Topics   []string `json:"topics"`
	Contract string   `json:"contract"`
	Data     string   `json:"data"`
}

type PlainTransactionTraceWithTypeDto

type PlainTransactionTraceWithTypeDto struct {
	TransactionTrace []PlainTransactionTraceWithTypeDto_TransactionTrace_Item `json:"transactionTrace"`
	Type             PlainTransactionTraceWithTypeDtoType                     `json:"type"`
}

PlainTransactionTraceWithTypeDto defines model for PlainTransactionTraceWithTypeDto.

type PlainTransactionTraceWithTypeDtoType

type PlainTransactionTraceWithTypeDtoType string

PlainTransactionTraceWithTypeDtoType defines model for PlainTransactionTraceWithTypeDto.Type.

const (
	BUILTIN             PlainTransactionTraceWithTypeDtoType = "BUILTIN"
	CUSTOM              PlainTransactionTraceWithTypeDtoType = "CUSTOM"
	CUSTOMGO            PlainTransactionTraceWithTypeDtoType = "CUSTOM_GO"
	CUSTOMWITHOUTSTORE  PlainTransactionTraceWithTypeDtoType = "CUSTOM_WITHOUT_STORE"
	OLDARBITRUMRAWTRACE PlainTransactionTraceWithTypeDtoType = "OLD_ARBITRUM_RAW_TRACE"
)

Defines values for PlainTransactionTraceWithTypeDtoType.

type PlainTransactionTraceWithTypeDto_TransactionTrace_Item

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

PlainTransactionTraceWithTypeDto_TransactionTrace_Item defines model for PlainTransactionTraceWithTypeDto.transactionTrace.Item.

func (PlainTransactionTraceWithTypeDto_TransactionTrace_Item) AsCoreBuiltinTransactionRootSuccessTraceDto

AsCoreBuiltinTransactionRootSuccessTraceDto returns the union data inside the PlainTransactionTraceWithTypeDto_TransactionTrace_Item as a CoreBuiltinTransactionRootSuccessTraceDto

func (PlainTransactionTraceWithTypeDto_TransactionTrace_Item) AsCoreCustomErrorTransactionTraceDto

AsCoreCustomErrorTransactionTraceDto returns the union data inside the PlainTransactionTraceWithTypeDto_TransactionTrace_Item as a CoreCustomErrorTransactionTraceDto

func (PlainTransactionTraceWithTypeDto_TransactionTrace_Item) AsCoreCustomRootTxEventCallstackTraceFullDto

AsCoreCustomRootTxEventCallstackTraceFullDto returns the union data inside the PlainTransactionTraceWithTypeDto_TransactionTrace_Item as a CoreCustomRootTxEventCallstackTraceFullDto

func (*PlainTransactionTraceWithTypeDto_TransactionTrace_Item) FromCoreBuiltinTransactionRootSuccessTraceDto

FromCoreBuiltinTransactionRootSuccessTraceDto overwrites any union data inside the PlainTransactionTraceWithTypeDto_TransactionTrace_Item as the provided CoreBuiltinTransactionRootSuccessTraceDto

func (*PlainTransactionTraceWithTypeDto_TransactionTrace_Item) FromCoreCustomErrorTransactionTraceDto

FromCoreCustomErrorTransactionTraceDto overwrites any union data inside the PlainTransactionTraceWithTypeDto_TransactionTrace_Item as the provided CoreCustomErrorTransactionTraceDto

func (*PlainTransactionTraceWithTypeDto_TransactionTrace_Item) FromCoreCustomRootTxEventCallstackTraceFullDto

FromCoreCustomRootTxEventCallstackTraceFullDto overwrites any union data inside the PlainTransactionTraceWithTypeDto_TransactionTrace_Item as the provided CoreCustomRootTxEventCallstackTraceFullDto

func (PlainTransactionTraceWithTypeDto_TransactionTrace_Item) MarshalJSON

func (*PlainTransactionTraceWithTypeDto_TransactionTrace_Item) MergeCoreBuiltinTransactionRootSuccessTraceDto

MergeCoreBuiltinTransactionRootSuccessTraceDto performs a merge with any union data inside the PlainTransactionTraceWithTypeDto_TransactionTrace_Item, using the provided CoreBuiltinTransactionRootSuccessTraceDto

func (*PlainTransactionTraceWithTypeDto_TransactionTrace_Item) MergeCoreCustomErrorTransactionTraceDto

MergeCoreCustomErrorTransactionTraceDto performs a merge with any union data inside the PlainTransactionTraceWithTypeDto_TransactionTrace_Item, using the provided CoreCustomErrorTransactionTraceDto

func (*PlainTransactionTraceWithTypeDto_TransactionTrace_Item) MergeCoreCustomRootTxEventCallstackTraceFullDto

MergeCoreCustomRootTxEventCallstackTraceFullDto performs a merge with any union data inside the PlainTransactionTraceWithTypeDto_TransactionTrace_Item, using the provided CoreCustomRootTxEventCallstackTraceFullDto

func (*PlainTransactionTraceWithTypeDto_TransactionTrace_Item) UnmarshalJSON

type ReadSyncedIntervalResponseDto

type ReadSyncedIntervalResponseDto struct {
	From float32 `json:"from"`
	To   float32 `json:"to"`
}

ReadSyncedIntervalResponseDto defines model for ReadSyncedIntervalResponseDto.

type StorageItem

type StorageItem struct {
	Type  string `json:"type"`
	Key   string `json:"key"`
	Value string `json:"value"`
}

type TransactionTrace

type TransactionTrace struct {
	TxHash               string        `json:"txHash"`
	Nonce                string        `json:"nonce"`
	GasPrice             string        `json:"gasPrice"`
	Type                 string        `json:"type"`
	From                 string        `json:"from"`
	To                   string        `json:"to"`
	GasLimit             int           `json:"gasLimit"`
	GasActual            int           `json:"gasActual"`
	GasHex               string        `json:"gasHex"`
	GasUsed              int           `json:"gasUsed"`
	IntrinsicGas         int           `json:"intrinsicGas"`
	GasRefund            int           `json:"gasRefund"`
	Input                string        `json:"input"`
	Calls                []Call        `json:"calls"`
	Logs                 []Log         `json:"logs"`
	Status               string        `json:"status"`
	Storage              []StorageItem `json:"storage"`
	Value                string        `json:"value"`
	MaxFeePerGas         string        `json:"maxFeePerGas"`
	MaxPriorityFeePerGas string        `json:"maxPriorityFeePerGas"`
	Depth                int           `json:"depth"`
}

type TransactionTraceResponse

type TransactionTraceResponse struct {
	TransactionTrace TransactionTrace `json:"transactionTrace"`
	Type             string           `json:"type"`
}

Jump to

Keyboard shortcuts

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