models

package
v0.4.0-alpha.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountListResponse

type AccountListResponse struct {
	Accounts []string `json:"accounts" swagger:"required"`
}

type AccountNFTsResponse

type AccountNFTsResponse struct {
	NFTIDs []string `json:"nftIds" swagger:"required"`
}

type AccountNonceResponse

type AccountNonceResponse struct {
	Nonce uint64 `json:"nonce" swagger:"required"`
}

type AccountsResponse

type AccountsResponse struct {
	AccountIDs []string `json:"accountIds" swagger:"required"`
}

type AddUserRequest

type AddUserRequest struct {
	Username    string   `json:"username" swagger:"required"`
	Password    string   `json:"password" swagger:"required"`
	Permissions []string `json:"permissions" swagger:"required"`
}

type AliasOutputMetricItem

type AliasOutputMetricItem MetricItem[*Output]

ChainMetrics Echo Swagger does not support generics such as MetricItem[Foo] Creating separate types works instead. To not create a mapper for each type, the actual service remains using MetricItem[Foo] but this model here is presented to the docs. This can be removed if we change to swag/echo-swagger

type Assets

type Assets struct {
	BaseTokens   uint64         `json:"baseTokens" swagger:"required"`
	NativeTokens []*NativeToken `json:"nativeTokens" swagger:"required"`
	NFTs         []string       `json:"nfts" swagger:"required"`
}

type AssetsResponse

type AssetsResponse struct {
	BaseTokens   uint64         `json:"baseTokens" swagger:"required"`
	NativeTokens []*NativeToken `json:"nativeTokens" swagger:"required"`
}

type BlockInfoResponse

type BlockInfoResponse struct {
	AnchorTransactionID         string    `json:"anchorTransactionId" swagger:"required"`
	BlockIndex                  uint32    `json:"blockIndex" swagger:"required"`
	GasBurned                   uint64    `json:"gasBurned" swagger:"required"`
	GasFeeCharged               uint64    `json:"gasFeeCharged" swagger:"required"`
	L1CommitmentHash            string    `json:"l1CommitmentHash" swagger:"required"`
	NumOffLedgerRequests        uint16    `json:"numOffLedgerRequests" swagger:"required"`
	NumSuccessfulRequests       uint16    `json:"numSuccessfulRequests" swagger:"required"`
	PreviousL1CommitmentHash    string    `json:"previousL1CommitmentHash" swagger:"required"`
	Timestamp                   time.Time `json:"timestamp" swagger:"required"`
	TotalBaseTokensInL2Accounts uint64    `json:"totalBaseTokensInL2Accounts" swagger:"required"`
	TotalRequests               uint16    `json:"totalRequests" swagger:"required"`
	TotalStorageDeposit         uint64    `json:"totalStorageDeposit" swagger:"required"`
	TransactionSubEssenceHash   string    `json:"transactionSubEssenceHash" swagger:"required"`
}

func MapBlockInfoResponse

func MapBlockInfoResponse(info *blocklog.BlockInfo) *BlockInfoResponse

type BlockReceiptError

type BlockReceiptError struct {
	Hash         string `json:"hash" swagger:"required"`
	ErrorMessage string `json:"errorMessage" swagger:"required"`
}

type BlockReceiptsResponse

type BlockReceiptsResponse struct {
	Receipts []*RequestReceiptResponse `json:"receipts" swagger:"required"`
}

type ChainInfoResponse

type ChainInfoResponse struct {
	IsActive        bool         `json:"isActive" swagger:"desc(Whether or not the chain is active.) required"`
	ChainID         string       `json:"chainID" swagger:"desc(ChainID (Bech32-encoded).) required"`
	EVMChainID      uint16       `json:"evmChainId" swagger:"desc(The EVM chain ID) required"`
	ChainOwnerID    string       `json:"chainOwnerId" swagger:"desc(The chain owner address (Bech32-encoded).) required"`
	Description     string       `json:"description" swagger:"desc(The description of the chain.) required"`
	GasFeePolicy    gasFeePolicy `json:"gasFeePolicy"`
	MaxBlobSize     uint32       `json:"maxBlobSize" swagger:"desc(The maximum contract blob size.) required"`
	MaxEventSize    uint16       `json:"maxEventSize" swagger:"desc(The maximum event size.) required"`                      // TODO: Clarify
	MaxEventsPerReq uint16       `json:"maxEventsPerReq" swagger:"desc(The maximum amount of events per request.) required"` // TODO: Clarify
}

func MapChainInfoResponse

func MapChainInfoResponse(chainInfo *dto.ChainInfo, evmChainID uint16) ChainInfoResponse

type ChainMetrics

type ChainMetrics struct {
	InAliasOutput                   AliasOutputMetricItem         `json:"inAliasOutput" swagger:"required"`
	InOnLedgerRequest               OnLedgerRequestMetricItem     `json:"inOnLedgerRequest" swagger:"required"`
	InOutput                        InOutputMetricItem            `json:"inOutput" swagger:"required"`
	InStateOutput                   InStateOutputMetricItem       `json:"inStateOutput" swagger:"required"`
	InTxInclusionState              TxInclusionStateMsgMetricItem `json:"inTxInclusionState" swagger:"required"`
	OutPublishGovernanceTransaction TransactionMetricItem         `json:"outPublishGovernanceTransaction" swagger:"required"`
	OutPullLatestOutput             InterfaceMetricItem           `json:"outPullLatestOutput" swagger:"required"`
	OutPullOutputByID               UTXOInputMetricItem           `json:"outPullOutputByID" swagger:"required"`
	OutPullTxInclusionState         TransactionIDMetricItem       `json:"outPullTxInclusionState" swagger:"required"`
}

func MapChainMetrics

func MapChainMetrics(metrics *dto.ChainMetrics) *ChainMetrics

type CommitteeInfoResponse

type CommitteeInfoResponse struct {
	AccessNodes    []CommitteeNode `json:"accessNodes" swagger:"desc(A list of all access nodes and their peering info.),required"`
	Active         bool            `json:"active" swagger:"desc(Whether or not the chain is active.),required"`
	CandidateNodes []CommitteeNode `json:"candidateNodes" swagger:"desc(A list of all candidate nodes and their peering info.),required"`
	ChainID        string          `json:"chainId" swagger:"desc(ChainID (Bech32-encoded).),required"`
	CommitteeNodes []CommitteeNode `json:"committeeNodes" swagger:"desc(A list of all committee nodes and their peering info.),required"`
	StateAddress   string          `json:"stateAddress" swagger:"desc(State address, if we are part of it.),required"`
}

type CommitteeNode

type CommitteeNode struct {
	AccessAPI string                    `json:"accessAPI" swagger:"required"`
	Node      PeeringNodeStatusResponse `json:"node" swagger:"required"`
}

func MapCommitteeNode

func MapCommitteeNode(status *dto.ChainNodeStatus) CommitteeNode

func MapCommitteeNodes

func MapCommitteeNodes(status []*dto.ChainNodeStatus) []CommitteeNode

type ConsensusPipeMetrics

type ConsensusPipeMetrics struct {
	EventStateTransitionMsgPipeSize int `json:"eventStateTransitionMsgPipeSize" swagger:"required"`
	EventPeerLogIndexMsgPipeSize    int `json:"eventPeerLogIndexMsgPipeSize" swagger:"required"`
	EventACSMsgPipeSize             int `json:"eventACSMsgPipeSize" swagger:"required"`
	EventVMResultMsgPipeSize        int `json:"eventVMResultMsgPipeSize" swagger:"required"`
	EventTimerMsgPipeSize           int `json:"eventTimerMsgPipeSize" swagger:"required"`
}

func MapConsensusPipeMetrics

func MapConsensusPipeMetrics(pipeMetrics chain.ConsensusPipeMetrics) *ConsensusPipeMetrics

type ConsensusWorkflowMetrics

type ConsensusWorkflowMetrics struct {
	FlagStateReceived        bool `json:"flagStateReceived" swagger:"desc(Shows if state output is received in current consensus iteration),required"`
	FlagBatchProposalSent    bool `json:"flagBatchProposalSent" swagger:"desc(Shows if batch proposal is sent out in current consensus iteration),required"`
	FlagConsensusBatchKnown  bool `` /* 135-byte string literal not displayed */
	FlagVMStarted            bool `json:"flagVMStarted" swagger:"desc(Shows if virtual machine is started in current consensus iteration),required"`
	FlagVMResultSigned       bool `` /* 131-byte string literal not displayed */
	FlagTransactionFinalized bool `` /* 132-byte string literal not displayed */
	FlagTransactionPosted    bool `json:"flagTransactionPosted" swagger:"desc(Shows if transaction is posted to L1 in current consensus iteration),required"`
	FlagTransactionSeen      bool `` /* 136-byte string literal not displayed */
	FlagInProgress           bool `` /* 129-byte string literal not displayed */

	TimeBatchProposalSent    time.Time `` /* 128-byte string literal not displayed */
	TimeConsensusBatchKnown  time.Time `` /* 149-byte string literal not displayed */
	TimeVMStarted            time.Time `json:"timeVMStarted" swagger:"desc(Shows when virtual machine was last started in current consensus iteration),required"`
	TimeVMResultSigned       time.Time `` /* 146-byte string literal not displayed */
	TimeTransactionFinalized time.Time `` /* 184-byte string literal not displayed */
	TimeTransactionPosted    time.Time `` /* 129-byte string literal not displayed */
	TimeTransactionSeen      time.Time `` /* 151-byte string literal not displayed */
	TimeCompleted            time.Time `json:"timeCompleted" swagger:"desc(Shows when algorithm was last completed in current consensus iteration),required"`

	CurrentStateIndex uint32 `json:"currentStateIndex" swagger:"desc(Shows current state index of the consensus)"`
}

type ContractCallViewRequest

type ContractCallViewRequest struct {
	ChainID       string        `json:"chainId" swagger:"desc(The chain id),required"`
	ContractName  string        `json:"contractName" swagger:"desc(The contract name),required"`
	ContractHName string        `json:"contractHName" swagger:"desc(The contract name as HName (Hex)),required"`
	FunctionName  string        `json:"functionName" swagger:"desc(The function name),required"`
	FunctionHName string        `json:"functionHName" swagger:"desc(The function name as HName (Hex)),required"`
	Arguments     dict.JSONDict `json:"arguments" swagger:"desc(Encoded arguments to be passed to the function),required"`
}

type ContractInfoResponse

type ContractInfoResponse struct {
	Description string            `json:"description" swagger:"desc(The description of the contract.),required"`
	HName       string            `json:"hName" swagger:"desc(The id (HName as Hex)) of the contract.),required"`
	Name        string            `json:"name" swagger:"desc(The name of the contract.),required"`
	ProgramHash hashing.HashValue `json:"programHash" swagger:"desc(The hash of the contract.),required"`
}

type ControlAddressesResponse

type ControlAddressesResponse struct {
	GoverningAddress string `json:"governingAddress" swagger:"required"`
	SinceBlockIndex  uint32 `json:"sinceBlockIndex" swagger:"required"`
	StateAddress     string `json:"stateAddress" swagger:"required"`
}

type DKSharesInfo

type DKSharesInfo struct {
	Address         string   `json:"address" swagger:"desc(New generated shared address.),required"`
	PeerIdentities  []string `json:"peerIdentities" swagger:"desc(Identities of the nodes sharing the key. (Hex)),required"`
	PeerIndex       *uint16  `json:"peerIndex" swagger:"desc(Index of the node returning the share, if it is a member of the sharing group.),required"`
	PublicKey       string   `json:"publicKey" swagger:"desc(Used public key. (Hex)),required"`
	PublicKeyShares []string `json:"publicKeyShares" swagger:"desc(Public key shares for all the peers. (Hex)),required"`
	Threshold       uint16   `json:"threshold" swagger:"required"`
}

DKSharesInfo stands for the DKShare representation, returned by the GET and POST methods.

type DKSharesPostRequest

type DKSharesPostRequest struct {
	PeerIdentities []string `json:"peerIdentities" swagger:"desc(Optional, Hex encoded public keys of the peers generating the DKS. (Hex)),required"`
	Threshold      uint16   `json:"threshold" swagger:"desc(Should be =< len(PeerPublicIdentities)),required"`
	TimeoutMS      uint32   `json:"timeoutMS" swagger:"desc(Timeout in milliseconds.),required"`
}

DKSharesPostRequest is a POST request for creating new DKShare.

type EventsResponse

type EventsResponse struct {
	Events []string `json:"events" swagger:"required"`
}

type FoundryOutputResponse

type FoundryOutputResponse struct {
	FoundryID string         `json:"foundryId" swagger:"required"`
	Assets    AssetsResponse `json:"assets" swagger:"required"`
}

type InOutput

type InOutput struct {
	OutputID string  `json:"outputId" swagger:"desc(The output ID),required"`
	Output   *Output `json:"output" swagger:"desc(The parsed output),required"`
}

func InOutputFromISCInOutput

func InOutputFromISCInOutput(output *nodeconnmetrics.InOutput) *InOutput

type InOutputMetricItem

type InOutputMetricItem MetricItem[*InOutput]

ChainMetrics Echo Swagger does not support generics such as MetricItem[Foo] Creating separate types works instead. To not create a mapper for each type, the actual service remains using MetricItem[Foo] but this model here is presented to the docs. This can be removed if we change to swag/echo-swagger

type InStateOutput

type InStateOutput struct {
	OutputID string  `json:"outputId" swagger:"desc(The output ID),required"`
	Output   *Output `json:"output" swagger:"desc(The parsed output),required"`
}

func InStateOutputFromISCInStateOutput

func InStateOutputFromISCInStateOutput(output *nodeconnmetrics.InStateOutput) *InStateOutput

type InStateOutputMetricItem

type InStateOutputMetricItem MetricItem[*InStateOutput]

ChainMetrics Echo Swagger does not support generics such as MetricItem[Foo] Creating separate types works instead. To not create a mapper for each type, the actual service remains using MetricItem[Foo] but this model here is presented to the docs. This can be removed if we change to swag/echo-swagger

type InfoResponse

type InfoResponse struct {
	Version   string    `json:"version" swagger:"desc(The version of the node),required"`
	PublicKey string    `json:"publicKey" swagger:"desc(The public key of the node (Hex)),required"`
	NetID     string    `json:"netID" swagger:"desc(The net id of the node),required"`
	L1Params  *L1Params `json:"l1Params" swagger:"desc(The L1 parameters),required"`
}

type InterfaceMetricItem

type InterfaceMetricItem MetricItem[interface{}]

ChainMetrics Echo Swagger does not support generics such as MetricItem[Foo] Creating separate types works instead. To not create a mapper for each type, the actual service remains using MetricItem[Foo] but this model here is presented to the docs. This can be removed if we change to swag/echo-swagger

type L1Params

type L1Params struct {
	MaxPayloadSize int                   `json:"maxPayloadSize" swagger:"desc(The max payload size),required"`
	Protocol       *ProtocolParameters   `json:"protocol" swagger:"desc(The protocol parameters),required"`
	BaseToken      *parameters.BaseToken `json:"baseToken" swagger:"desc(The base token parameters),required"`
}

func MapL1Params

func MapL1Params(l1 *parameters.L1Params) *L1Params

type MetricItem

type MetricItem[T interface{}] struct {
	Messages    uint32    `json:"messages" swagger:"required"`
	Timestamp   time.Time `json:"timestamp" swagger:"required"`
	LastMessage T         `json:"lastMessage" swagger:"required"`
}

func MapMetricItem

func MapMetricItem[T any, G any](metrics *dto.MetricItem[G], value T) MetricItem[T]

type NFTDataResponse

type NFTDataResponse struct {
	ID       string `json:"id" swagger:"required"`
	Issuer   string `json:"issuer" swagger:"required"`
	Metadata string `json:"metadata" swagger:"required"`
	Owner    string `json:"owner" swagger:"required"`
}

func MapNFTDataResponse

func MapNFTDataResponse(nft *isc.NFT) *NFTDataResponse

type NativeToken

type NativeToken struct {
	ID     string `json:"id" swagger:"required"`
	Amount string `json:"amount" swagger:"required"`
}

func MapNativeToken

func MapNativeToken(token *iotago.NativeToken) *NativeToken

func MapNativeTokens

func MapNativeTokens(tokens iotago.NativeTokens) []*NativeToken

type NativeTokenIDRegistryResponse

type NativeTokenIDRegistryResponse struct {
	NativeTokenRegistryIDs []string `json:"nativeTokenRegistryIds" swagger:"required"`
}

type NodeOwnerCertificateRequest

type NodeOwnerCertificateRequest struct {
	PublicKey    string `json:"publicKey" swagger:"desc(The public key of the node (Hex)),required"`
	OwnerAddress string `json:"ownerAddress" swagger:"desc(Node owner address. (Bech32)),required"`
}

type NodeOwnerCertificateResponse

type NodeOwnerCertificateResponse struct {
	Certificate string `json:"certificate" swagger:"desc(Certificate stating the ownership. (Hex)),required"`
}

type OffLedgerRequest

type OffLedgerRequest struct {
	ChainID string `json:"chainId" swagger:"desc(The chain id),required"`
	Request string `json:"request" swagger:"desc(Offledger Request (Hex)),required"`
}

type OnLedgerRequest

type OnLedgerRequest struct {
	ID       string  `json:"id" swagger:"desc(The request ID),required"`
	OutputID string  `json:"outputId" swagger:"desc(The output ID),required"`
	Output   *Output `json:"output" swagger:"desc(The parsed output),required"`
	Raw      string  `json:"raw" swagger:"desc(The raw data of the request (Hex)),required"`
}

func OnLedgerRequestFromISC

func OnLedgerRequestFromISC(request isc.OnLedgerRequest) *OnLedgerRequest

type OnLedgerRequestMetricItem

type OnLedgerRequestMetricItem MetricItem[*OnLedgerRequest]

ChainMetrics Echo Swagger does not support generics such as MetricItem[Foo] Creating separate types works instead. To not create a mapper for each type, the actual service remains using MetricItem[Foo] but this model here is presented to the docs. This can be removed if we change to swag/echo-swagger

type Output

type Output struct {
	OutputType iotago.OutputType `json:"outputType" swagger:"desc(The output type),required"`
	Raw        string            `json:"raw" swagger:"desc(The raw data of the output (Hex)),required"`
}

func OutputFromIotaGoOutput

func OutputFromIotaGoOutput(output iotago.Output) *Output

type OutputID

type OutputID struct {
	OutputID string `json:"outputId" swagger:"desc(The output ID),required"`
}

func OutputIDFromIotaGoOutputID

func OutputIDFromIotaGoOutputID(outputID iotago.OutputID) *OutputID

type PeeringNodeIdentityResponse

type PeeringNodeIdentityResponse struct {
	PublicKey string `json:"publicKey" swagger:"desc(The peers public key encoded in Hex),required"`
	NetID     string `json:"netId" swagger:"desc(The NetID of the peer),required"`
	IsTrusted bool   `json:"isTrusted" swagger:"Desc(Whether or not the peer is trusted),required"`
}

type PeeringNodePublicKeyRequest

type PeeringNodePublicKeyRequest struct {
	PublicKey string `json:"publicKey" swagger:"desc(The peers public key encoded in Hex),required"`
}

type PeeringNodeStatusResponse

type PeeringNodeStatusResponse struct {
	IsAlive   bool   `json:"isAlive" swagger:"desc(Whether or not the peer is activated),required"`
	NetID     string `json:"netId" swagger:"desc(The NetID of the peer),required"`
	NumUsers  int    `json:"numUsers" swagger:"desc(The amount of users attached to the peer),required"`
	PublicKey string `json:"publicKey" swagger:"desc(The peers public key encoded in Hex),required"`
	IsTrusted bool   `json:"isTrusted" swagger:"Desc(Whether or not the peer is trusted),required"`
}

type PeeringTrustRequest

type PeeringTrustRequest struct {
	PublicKey string `json:"publicKey" swagger:"desc(The peers public key encoded in Hex),required"`
	NetID     string `json:"netId" swagger:"desc(The NetID of the peer),required"`
}

type ProtocolParameters

type ProtocolParameters struct {
	// The version of the protocol running.
	Version byte `json:"version" swagger:"desc(The protocol version),required"`
	// The human friendly name of the network.
	NetworkName string `json:"networkName" swagger:"desc(The network name),required"`
	// The HRP prefix used for Bech32 addresses in the network.
	Bech32HRP iotago.NetworkPrefix `json:"bech32Hrp" swagger:"desc(The human readable network prefix),required"`
	// The minimum pow score of the network.
	MinPoWScore uint32 `json:"minPowScore" swagger:"desc(The minimal PoW score),required"`
	// The below max depth parameter of the network.
	BelowMaxDepth uint8 `json:"belowMaxDepth" swagger:"desc(The networks max depth),required"`
	// The rent structure used by given node/network.
	RentStructure RentStructure `json:"rentStructure" swagger:"desc(The rent structure of the protocol),required"`
	// TokenSupply defines the current token supply on the network.
	TokenSupply string `json:"tokenSupply" swagger:"desc(The token supply),required"`
}

type ReceiptError

type ReceiptError struct {
	ContractID    isc.Hname     `json:"contractId" swagger:"required"`
	ErrorID       uint16        `json:"errorId" swagger:"required"`
	ErrorCode     string        `json:"errorCode" swagger:"required"`
	Message       string        `json:"message" swagger:"required"`
	MessageFormat string        `json:"messageFormat" swagger:"required"`
	Parameters    []interface{} `json:"parameters" swagger:"required"`
}

func MapReceiptError

func MapReceiptError(err *isc.VMError) *ReceiptError

type ReceiptResponse

type ReceiptResponse struct {
	Request       string           `json:"request" swagger:"required"`
	Error         *ReceiptError    `json:"error"`
	GasBudget     uint64           `json:"gasBudget" swagger:"required"`
	GasBurned     uint64           `json:"gasBurned" swagger:"required"`
	GasFeeCharged uint64           `json:"gasFeeCharged" swagger:"required"`
	BlockIndex    uint32           `json:"blockIndex" swagger:"required"`
	RequestIndex  uint16           `json:"requestIndex" swagger:"required"`
	GasBurnLog    []gas.BurnRecord `json:"gasBurnLog" swagger:"required"`
}

func MapReceiptResponse

func MapReceiptResponse(receipt *isc.Receipt, resolvedError *isc.VMError) *ReceiptResponse

type RentStructure

type RentStructure struct {
	// Defines the rent of a single virtual byte denoted in IOTA tokens.
	VByteCost uint32 `json:"vByteCost" swagger:"desc(The virtual byte cost),required"`
	// Defines the factor to be used for data only fields.
	VBFactorData iotago.VByteCostFactor `json:"vByteFactorData" swagger:"desc(The virtual byte factor for data fields),required"`
	// defines the factor to be used for key/lookup generating fields.
	VBFactorKey iotago.VByteCostFactor `json:"vByteFactorKey" swagger:"desc(The virtual byte factor for key/lookup generating fields),required"`
}

RentStructure defines the parameters of rent cost calculations on objects which take node resources.

type RequestDetail

type RequestDetail struct {
	Allowance     *Assets          `json:"allowance" swagger:"required"`
	CallTarget    isc.CallTarget   `json:"callTarget" swagger:"required"`
	Assets        *Assets          `json:"fungibleTokens" swagger:"required"`
	GasGudget     uint64           `json:"gasGudget" swagger:"required"`
	IsEVM         bool             `json:"isEVM" swagger:"required"`
	IsOffLedger   bool             `json:"isOffLedger" swagger:"required"`
	NFT           *NFTDataResponse `json:"nft" swagger:"required"`
	Params        dict.JSONDict    `json:"params" swagger:"required"`
	RequestID     string           `json:"requestId" swagger:"required"`
	SenderAccount string           `json:"senderAccount" swagger:"required"`
	TargetAddress string           `json:"targetAddress" swagger:"required"`
}

func MapRequestDetail

func MapRequestDetail(request isc.Request) *RequestDetail

type RequestIDResponse

type RequestIDResponse struct {
	RequestID string `json:"requestId" swagger:"desc(The request ID of the given transaction ID.)"`
}

type RequestIDsResponse

type RequestIDsResponse struct {
	RequestIDs []string `json:"requestIds" swagger:"required"`
}

type RequestProcessedResponse

type RequestProcessedResponse struct {
	ChainID     string `json:"chainId" swagger:"required"`
	RequestID   string `json:"requestId" swagger:"required"`
	IsProcessed bool   `json:"isProcessed" swagger:"required"`
}

type RequestReceiptResponse

type RequestReceiptResponse struct {
	BlockIndex    uint32             `json:"blockIndex" swagger:"required"`
	Error         *BlockReceiptError `json:"error" swagger:"required"`
	GasBudget     uint64             `json:"gasBudget" swagger:"required"`
	GasBurnLog    *gas.BurnLog       `json:"gasBurnLog" swagger:"required"`
	GasBurned     uint64             `json:"gasBurned" swagger:"required"`
	GasFeeCharged uint64             `json:"gasFeeCharged" swagger:"required"`
	Request       *RequestDetail     `json:"request" swagger:"required"`
	RequestIndex  uint16             `json:"requestIndex" swagger:"required"`
}

type StateTransaction

type StateTransaction struct {
	StateIndex    uint32 `json:"stateIndex" swagger:"desc(The state index),required"`
	TransactionID string `json:"txId" swagger:"desc(The transaction ID),required"`
}

func StateTransactionFromISCStateTransaction

func StateTransactionFromISCStateTransaction(transaction *nodeconnmetrics.StateTransaction) *StateTransaction

type Transaction

type Transaction struct {
	TransactionID string `json:"txId" swagger:"desc(The transaction ID),required"`
}

func TransactionFromIotaGoTransaction

func TransactionFromIotaGoTransaction(transaction *iotago.Transaction) *Transaction

func TransactionFromIotaGoTransactionID

func TransactionFromIotaGoTransactionID(txID *iotago.TransactionID) *Transaction

type TransactionIDMetricItem

type TransactionIDMetricItem MetricItem[*Transaction]

ChainMetrics Echo Swagger does not support generics such as MetricItem[Foo] Creating separate types works instead. To not create a mapper for each type, the actual service remains using MetricItem[Foo] but this model here is presented to the docs. This can be removed if we change to swag/echo-swagger

type TransactionMetricItem

type TransactionMetricItem MetricItem[*Transaction]

ChainMetrics Echo Swagger does not support generics such as MetricItem[Foo] Creating separate types works instead. To not create a mapper for each type, the actual service remains using MetricItem[Foo] but this model here is presented to the docs. This can be removed if we change to swag/echo-swagger

type TxInclusionStateMsg

type TxInclusionStateMsg struct {
	TransactionID string `json:"txId" swagger:"desc(The transaction ID),required"`
	State         string `json:"state" swagger:"desc(The inclusion state),required"`
}

func TxInclusionStateMsgFromISCTxInclusionStateMsg

func TxInclusionStateMsgFromISCTxInclusionStateMsg(inclusionState *nodeconnmetrics.TxInclusionStateMsg) *TxInclusionStateMsg

type TxInclusionStateMsgMetricItem

type TxInclusionStateMsgMetricItem MetricItem[*TxInclusionStateMsg]

ChainMetrics Echo Swagger does not support generics such as MetricItem[Foo] Creating separate types works instead. To not create a mapper for each type, the actual service remains using MetricItem[Foo] but this model here is presented to the docs. This can be removed if we change to swag/echo-swagger

type UTXOInputMetricItem

type UTXOInputMetricItem MetricItem[*OutputID]

ChainMetrics Echo Swagger does not support generics such as MetricItem[Foo] Creating separate types works instead. To not create a mapper for each type, the actual service remains using MetricItem[Foo] but this model here is presented to the docs. This can be removed if we change to swag/echo-swagger

type UpdateUserPasswordRequest

type UpdateUserPasswordRequest struct {
	Password string `json:"password" swagger:"required"`
}

type UpdateUserPermissionsRequest

type UpdateUserPermissionsRequest struct {
	Permissions []string `json:"permissions" swagger:"required"`
}

type User

type User struct {
	Username    string   `json:"username" swagger:"required"`
	Permissions []string `json:"permissions" swagger:"required"`
}

Jump to

Keyboard shortcuts

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