corecontracts

package
v0.4.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0, BSD-2-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapRequestReceiptResponse

func MapRequestReceiptResponse(vmService interfaces.VMService, chainID isc.ChainID, receipt *blocklog.RequestReceipt) (*models.RequestReceiptResponse, error)

func NewCoreContractsController

func NewCoreContractsController(vmService interfaces.VMService) interfaces.APIController

Types

type Blob

type Blob struct {
	Hash string
	Size uint32
}

type BlobInfoResponse

type BlobInfoResponse struct {
	Fields map[string]uint32
}

type BlobListResponse

type BlobListResponse struct {
	Blobs []Blob
}

type BlobValueResponse

type BlobValueResponse struct {
	ValueData string
}

type Controller

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

func (*Controller) Name

func (c *Controller) Name() string

func (*Controller) RegisterAdmin

func (c *Controller) RegisterAdmin(adminAPI echoswagger.ApiGroup, mocker interfaces.Mocker)

func (*Controller) RegisterPublic

func (c *Controller) RegisterPublic(publicAPI echoswagger.ApiGroup, mocker interfaces.Mocker)

type ErrorMessageFormatResponse

type ErrorMessageFormatResponse struct {
	MessageFormat string
}

type GovChainInfoResponse

type GovChainInfoResponse struct {
	ChainID         string       `json:"chainID" swagger:"desc(ChainID (Bech32-encoded).)"`
	ChainOwnerID    string       `json:"chainOwnerId" swagger:"desc(The chain owner address (Bech32-encoded).)"`
	Description     string       `json:"description" swagger:"desc(The description of the chain.)"`
	GasFeePolicy    gasFeePolicy `json:"gasFeePolicy"`
	MaxBlobSize     uint32       `json:"maxBlobSize" swagger:"desc(The maximum contract blob size.)"`
	MaxEventSize    uint16       `json:"maxEventSize" swagger:"desc(The maximum event size.)"`                      // TODO: Clarify
	MaxEventsPerReq uint16       `json:"maxEventsPerReq" swagger:"desc(The maximum amount of events per request.)"` // TODO: Clarify
}

func MapGovChainInfoResponse

func MapGovChainInfoResponse(chainInfo *governance.ChainInfo) GovChainInfoResponse

Jump to

Keyboard shortcuts

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