Documentation ¶
Overview ¶
Package models provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.13.0 DO NOT EDIT.
Index ¶
- type Account
- type Address
- type AddressFilter
- type AddressParam
- type BlockNumParam
- type CallData
- type CountResponse
- type Counter
- type Dag
- type DagsPaginatedResponse
- type EventLog
- type GetAddressDagsParams
- type GetAddressPbftsParams
- type GetAddressTransactionsParams
- type GetAddressYieldParams
- type GetHoldersParams
- type GetTotalYieldParams
- type GetValidatorParams
- type GetValidatorsParams
- type GetValidatorsTotalParams
- type Hash
- type HashParam
- type HoldersPaginatedResponse
- type InternalTransactionsResponse
- type LastTimestamp
- type PaginatedResponse
- type PaginationFilter
- type PaginationParam
- type Pbft
- type PbftsPaginatedResponse
- type Period
- type StatsResponse
- type Timestamp
- type Transaction
- type TransactionLogsResponse
- type TransactionType
- type TransactionsPaginatedResponse
- type Validator
- type ValidatorsPaginatedResponse
- type Week
- type WeekParam
- type WeekResponse
- type YieldResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockNumParam ¶ added in v0.2.1
type BlockNumParam = Counter
BlockNumParam defines model for blockNumParam.
type CountResponse ¶
type CountResponse struct {
Total Counter `json:"total"`
}
CountResponse defines model for CountResponse.
type Dag ¶
type Dag struct { Hash Hash `json:"hash"` Level Counter `json:"level"` Timestamp Timestamp `json:"timestamp"` TransactionCount Counter `json:"transactionCount"` }
Dag defines model for Dag.
type DagsPaginatedResponse ¶
type DagsPaginatedResponse = PaginatedResponse
DagsPaginatedResponse defines model for DagsPaginatedResponse.
type EventLog ¶ added in v0.2.1
type EventLog struct { Address Address `json:"address"` Data string `json:"data"` LogIndex Counter `json:"logIndex"` Name string `json:"name"` Params any `json:"params"` Removed bool `json:"removed"` Topics []string `json:"topics"` TransactionHash Hash `json:"transactionHash"` TransactionIndex Counter `json:"transactionIndex"` }
EventLog defines model for EventLog.
type GetAddressDagsParams ¶
type GetAddressDagsParams struct { // Pagination Pagination Pagination PaginationParam `form:"pagination" json:"pagination"` }
GetAddressDagsParams defines parameters for GetAddressDags.
type GetAddressPbftsParams ¶
type GetAddressPbftsParams struct { // Pagination Pagination Pagination PaginationParam `form:"pagination" json:"pagination"` }
GetAddressPbftsParams defines parameters for GetAddressPbfts.
type GetAddressTransactionsParams ¶
type GetAddressTransactionsParams struct { // Pagination Pagination Pagination PaginationParam `form:"pagination" json:"pagination"` }
GetAddressTransactionsParams defines parameters for GetAddressTransactions.
type GetAddressYieldParams ¶ added in v0.2.1
type GetAddressYieldParams struct { // BlockNumber Block Number BlockNumber *BlockNumParam `form:"blockNumber,omitempty" json:"blockNumber,omitempty"` }
GetAddressYieldParams defines parameters for GetAddressYield.
type GetHoldersParams ¶ added in v0.2.1
type GetHoldersParams struct { // Pagination Pagination Pagination PaginationParam `form:"pagination" json:"pagination"` }
GetHoldersParams defines parameters for GetHolders.
type GetTotalYieldParams ¶ added in v0.2.1
type GetTotalYieldParams struct { // BlockNumber Block Number BlockNumber *BlockNumParam `form:"blockNumber,omitempty" json:"blockNumber,omitempty"` }
GetTotalYieldParams defines parameters for GetTotalYield.
type GetValidatorParams ¶
type GetValidatorParams struct { // Week Week to filter by Week *WeekParam `form:"week,omitempty" json:"week,omitempty"` }
GetValidatorParams defines parameters for GetValidator.
type GetValidatorsParams ¶
type GetValidatorsParams struct { // Week Week to filter by Week *WeekParam `form:"week,omitempty" json:"week,omitempty"` // Pagination Pagination Pagination PaginationParam `form:"pagination" json:"pagination"` }
GetValidatorsParams defines parameters for GetValidators.
type GetValidatorsTotalParams ¶
type GetValidatorsTotalParams struct { // Week Week to filter by Week *WeekParam `form:"week,omitempty" json:"week,omitempty"` }
GetValidatorsTotalParams defines parameters for GetValidatorsTotal.
type HoldersPaginatedResponse ¶ added in v0.2.1
type HoldersPaginatedResponse = PaginatedResponse
HoldersPaginatedResponse defines model for HoldersPaginatedResponse.
type InternalTransactionsResponse ¶ added in v0.2.1
type InternalTransactionsResponse struct {
Data []Transaction `json:"data"`
}
InternalTransactionsResponse defines model for InternalTransactionsResponse.
type PaginatedResponse ¶
type PaginatedResponse struct { End Counter `json:"end"` HasNext bool `json:"hasNext"` Start Counter `json:"start"` Total Counter `json:"total"` }
PaginatedResponse defines model for PaginatedResponse.
type PaginationFilter ¶
PaginationFilter defines model for PaginationFilter.
type PaginationParam ¶
type PaginationParam = PaginationFilter
PaginationParam defines model for paginationParam.
type Pbft ¶
type Pbft struct { Author Address `json:"author"` Hash Hash `json:"hash"` Number Counter `json:"number"` Timestamp Timestamp `json:"timestamp"` TransactionCount Counter `json:"transactionCount"` }
Pbft defines model for Pbft.
type PbftsPaginatedResponse ¶
type PbftsPaginatedResponse = PaginatedResponse
PbftsPaginatedResponse defines model for PbftsPaginatedResponse.
type Period ¶
type Period struct { EndDate Timestamp `json:"endDate"` HasNext bool `json:"hasNext"` StartDate Timestamp `json:"startDate"` }
Period defines model for Period.
type StatsResponse ¶
type StatsResponse struct { DagsCount Counter `json:"dagsCount"` LastDagTimestamp *LastTimestamp `json:"lastDagTimestamp" rlp:"nil"` LastPbftTimestamp *LastTimestamp `json:"lastPbftTimestamp" rlp:"nil"` LastTransactionTimestamp *LastTimestamp `json:"lastTransactionTimestamp" rlp:"nil"` PbftCount Counter `json:"pbftCount"` TransactionsCount Counter `json:"transactionsCount"` }
StatsResponse defines model for StatsResponse.
type Transaction ¶
type Transaction struct { BlockNumber Counter `json:"blockNumber"` Calldata *CallData `json:"calldata,omitempty" rlp:"nil"` From Address `json:"from"` GasCost Counter `json:"gasCost"` Hash Hash `json:"hash"` Input string `json:"input"` Status bool `json:"status"` Timestamp Timestamp `json:"timestamp"` To Address `json:"to"` Type TransactionType `json:"type"` Value string `json:"value"` }
Transaction defines model for Transaction.
type TransactionLogsResponse ¶ added in v0.2.1
type TransactionLogsResponse struct {
Data []EventLog `json:"data"`
}
TransactionLogsResponse defines model for TransactionLogsResponse.
type TransactionType ¶
type TransactionType uint8
TransactionType defines model for Transaction.Type.
const ( ContractCall TransactionType = 1 ContractCreation TransactionType = 2 InternalContractCall TransactionType = 4 InternalContractCreation TransactionType = 5 InternalTransfer TransactionType = 3 Transfer TransactionType = 0 )
Defines values for TransactionType.
type TransactionsPaginatedResponse ¶
type TransactionsPaginatedResponse = PaginatedResponse
TransactionsPaginatedResponse defines model for TransactionsPaginatedResponse.
type Validator ¶
type Validator struct { Address Address `json:"address"` PbftCount Counter `json:"pbftCount"` Rank uint64 `json:"rank" rlp:"-"` Yield string `json:"yield,omitempty" rlp:"-"` }
Validator defines model for Validator.
type ValidatorsPaginatedResponse ¶
type ValidatorsPaginatedResponse = PaginatedResponse
ValidatorsPaginatedResponse defines model for ValidatorsPaginatedResponse.
type WeekResponse ¶
type WeekResponse struct { EndDate Timestamp `json:"endDate"` HasNext bool `json:"hasNext"` StartDate Timestamp `json:"startDate"` Week *int32 `json:"week"` Year *int32 `json:"year"` }
WeekResponse defines model for WeekResponse.
type YieldResponse ¶ added in v0.2.1
type YieldResponse struct { FromBlock Counter `json:"fromBlock"` ToBlock Counter `json:"toBlock"` Yield string `json:"yield"` }
YieldResponse defines model for YieldResponse.