coreblocklog

package
v0.6.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScName        = "blocklog"
	ScDescription = "Block log contract"
	HScName       = wasmtypes.ScHname(0xf538ef2b)
)
View Source
const (
	ParamBlockIndex    = "n"
	ParamContractHname = "h"
	ParamFromBlock     = "f"
	ParamRequestID     = "u"
	ParamToBlock       = "t"
)
View Source
const (
	ResultBlockIndex             = "n"
	ResultBlockInfo              = "i"
	ResultEvent                  = "e"
	ResultGoverningAddress       = "g"
	ResultRequestID              = "u"
	ResultRequestIndex           = "r"
	ResultRequestProcessed       = "p"
	ResultRequestReceipt         = "d"
	ResultRequestReceipts        = "d"
	ResultStateControllerAddress = "s"
)
View Source
const (
	ViewControlAddresses           = "controlAddresses"
	ViewGetBlockInfo               = "getBlockInfo"
	ViewGetEventsForBlock          = "getEventsForBlock"
	ViewGetEventsForContract       = "getEventsForContract"
	ViewGetEventsForRequest        = "getEventsForRequest"
	ViewGetRequestIDsForBlock      = "getRequestIDsForBlock"
	ViewGetRequestReceipt          = "getRequestReceipt"
	ViewGetRequestReceiptsForBlock = "getRequestReceiptsForBlock"
	ViewIsRequestProcessed         = "isRequestProcessed"
)
View Source
const (
	HViewControlAddresses           = wasmtypes.ScHname(0x796bd223)
	HViewGetBlockInfo               = wasmtypes.ScHname(0xbe89f9b3)
	HViewGetEventsForBlock          = wasmtypes.ScHname(0x36232798)
	HViewGetEventsForContract       = wasmtypes.ScHname(0x682a1922)
	HViewGetEventsForRequest        = wasmtypes.ScHname(0x4f8d68e4)
	HViewGetRequestIDsForBlock      = wasmtypes.ScHname(0x5a20327a)
	HViewGetRequestReceipt          = wasmtypes.ScHname(0xb7f9534f)
	HViewGetRequestReceiptsForBlock = wasmtypes.ScHname(0x77e3beef)
	HViewIsRequestProcessed         = wasmtypes.ScHname(0xd57d50a9)
)

Variables

This section is empty.

Functions

func OnDispatch added in v1.0.3

func OnDispatch(index int32)

Types

type ArrayOfImmutableBytes

type ArrayOfImmutableBytes struct {
	Proxy wasmtypes.Proxy
}

func (ArrayOfImmutableBytes) GetBytes

func (ArrayOfImmutableBytes) Length

func (a ArrayOfImmutableBytes) Length() uint32

type ArrayOfImmutableRequestID

type ArrayOfImmutableRequestID struct {
	Proxy wasmtypes.Proxy
}

func (ArrayOfImmutableRequestID) GetRequestID

func (ArrayOfImmutableRequestID) Length

func (a ArrayOfImmutableRequestID) Length() uint32

type ArrayOfMutableBytes

type ArrayOfMutableBytes struct {
	Proxy wasmtypes.Proxy
}

func (ArrayOfMutableBytes) AppendBytes

func (ArrayOfMutableBytes) Clear

func (a ArrayOfMutableBytes) Clear()

func (ArrayOfMutableBytes) GetBytes

func (ArrayOfMutableBytes) Length

func (a ArrayOfMutableBytes) Length() uint32

type ArrayOfMutableRequestID

type ArrayOfMutableRequestID struct {
	Proxy wasmtypes.Proxy
}

func (ArrayOfMutableRequestID) AppendRequestID

func (ArrayOfMutableRequestID) Clear

func (a ArrayOfMutableRequestID) Clear()

func (ArrayOfMutableRequestID) GetRequestID

func (ArrayOfMutableRequestID) Length

func (a ArrayOfMutableRequestID) Length() uint32

type ControlAddressesCall

type ControlAddressesCall struct {
	Func    *wasmlib.ScView
	Results ImmutableControlAddressesResults
}

type Funcs

type Funcs struct{}
var ScFuncs Funcs

func (Funcs) ControlAddresses

func (sc Funcs) ControlAddresses(ctx wasmlib.ScViewCallContext) *ControlAddressesCall

Returns the current state controller and governing addresses and at what block index they were set.

func (Funcs) GetBlockInfo

func (sc Funcs) GetBlockInfo(ctx wasmlib.ScViewCallContext) *GetBlockInfoCall

Returns information about the given block.

func (Funcs) GetEventsForBlock

func (sc Funcs) GetEventsForBlock(ctx wasmlib.ScViewCallContext) *GetEventsForBlockCall

Returns the list of events triggered during the execution of the given block.

func (Funcs) GetEventsForContract

func (sc Funcs) GetEventsForContract(ctx wasmlib.ScViewCallContext) *GetEventsForContractCall

Returns the list of events triggered by the given contract during the execution of the given block range.

func (Funcs) GetEventsForRequest

func (sc Funcs) GetEventsForRequest(ctx wasmlib.ScViewCallContext) *GetEventsForRequestCall

Returns the list of events triggered during the execution of the given request.

func (Funcs) GetRequestIDsForBlock

func (sc Funcs) GetRequestIDsForBlock(ctx wasmlib.ScViewCallContext) *GetRequestIDsForBlockCall

Returns a list with all request IDs in the given block.

func (Funcs) GetRequestReceipt

func (sc Funcs) GetRequestReceipt(ctx wasmlib.ScViewCallContext) *GetRequestReceiptCall

Returns the receipt for the request with the given ID.

func (Funcs) GetRequestReceiptsForBlock

func (sc Funcs) GetRequestReceiptsForBlock(ctx wasmlib.ScViewCallContext) *GetRequestReceiptsForBlockCall

Returns all request receipts in the given block.

func (Funcs) IsRequestProcessed

func (sc Funcs) IsRequestProcessed(ctx wasmlib.ScViewCallContext) *IsRequestProcessedCall

Returns whether the request with ID u has been processed.

type GetBlockInfoCall

type GetBlockInfoCall struct {
	Func    *wasmlib.ScView
	Params  MutableGetBlockInfoParams
	Results ImmutableGetBlockInfoResults
}

type GetEventsForBlockCall

type GetEventsForBlockCall struct {
	Func    *wasmlib.ScView
	Params  MutableGetEventsForBlockParams
	Results ImmutableGetEventsForBlockResults
}

type GetEventsForContractCall

type GetEventsForContractCall struct {
	Func    *wasmlib.ScView
	Params  MutableGetEventsForContractParams
	Results ImmutableGetEventsForContractResults
}

type GetEventsForRequestCall

type GetEventsForRequestCall struct {
	Func    *wasmlib.ScView
	Params  MutableGetEventsForRequestParams
	Results ImmutableGetEventsForRequestResults
}

type GetRequestIDsForBlockCall

type GetRequestIDsForBlockCall struct {
	Func    *wasmlib.ScView
	Params  MutableGetRequestIDsForBlockParams
	Results ImmutableGetRequestIDsForBlockResults
}

type GetRequestReceiptCall

type GetRequestReceiptCall struct {
	Func    *wasmlib.ScView
	Params  MutableGetRequestReceiptParams
	Results ImmutableGetRequestReceiptResults
}

type ImmutableControlAddressesResults

type ImmutableControlAddressesResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableControlAddressesResults) BlockIndex

index of block where the addresses were set

func (ImmutableControlAddressesResults) GoverningAddress

governing address

func (ImmutableControlAddressesResults) StateControllerAddress

state controller address

type ImmutableGetBlockInfoParams

type ImmutableGetBlockInfoParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableGetBlockInfoParams added in v1.0.3

func NewImmutableGetBlockInfoParams() ImmutableGetBlockInfoParams

func (ImmutableGetBlockInfoParams) BlockIndex

default last block

type ImmutableGetBlockInfoResults

type ImmutableGetBlockInfoResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetBlockInfoResults) BlockIndex added in v0.3.0

index of returned block

func (ImmutableGetBlockInfoResults) BlockInfo

serialized block info

type ImmutableGetEventsForBlockParams

type ImmutableGetEventsForBlockParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableGetEventsForBlockParams added in v1.0.3

func NewImmutableGetEventsForBlockParams() ImmutableGetEventsForBlockParams

func (ImmutableGetEventsForBlockParams) BlockIndex

default last block

type ImmutableGetEventsForBlockResults

type ImmutableGetEventsForBlockResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetEventsForBlockResults) Event

Array16 of serialized events

type ImmutableGetEventsForContractParams

type ImmutableGetEventsForContractParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableGetEventsForContractParams added in v1.0.3

func NewImmutableGetEventsForContractParams() ImmutableGetEventsForContractParams

func (ImmutableGetEventsForContractParams) ContractHname

func (ImmutableGetEventsForContractParams) FromBlock

default first block

func (ImmutableGetEventsForContractParams) ToBlock

default last block

type ImmutableGetEventsForContractResults

type ImmutableGetEventsForContractResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetEventsForContractResults) Event

Array16 of serialized events

type ImmutableGetEventsForRequestParams

type ImmutableGetEventsForRequestParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableGetEventsForRequestParams added in v1.0.3

func NewImmutableGetEventsForRequestParams() ImmutableGetEventsForRequestParams

func (ImmutableGetEventsForRequestParams) RequestID

target request ID

type ImmutableGetEventsForRequestResults

type ImmutableGetEventsForRequestResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetEventsForRequestResults) Event

Array16 of serialized events

type ImmutableGetRequestIDsForBlockParams

type ImmutableGetRequestIDsForBlockParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableGetRequestIDsForBlockParams added in v1.0.3

func NewImmutableGetRequestIDsForBlockParams() ImmutableGetRequestIDsForBlockParams

func (ImmutableGetRequestIDsForBlockParams) BlockIndex

default last block

type ImmutableGetRequestIDsForBlockResults

type ImmutableGetRequestIDsForBlockResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetRequestIDsForBlockResults) BlockIndex added in v1.0.3

index of block containing request

func (ImmutableGetRequestIDsForBlockResults) RequestID

Array16 of request IDs

type ImmutableGetRequestReceiptParams

type ImmutableGetRequestReceiptParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableGetRequestReceiptParams added in v1.0.3

func NewImmutableGetRequestReceiptParams() ImmutableGetRequestReceiptParams

func (ImmutableGetRequestReceiptParams) RequestID

target request ID

type ImmutableGetRequestReceiptResults

type ImmutableGetRequestReceiptResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetRequestReceiptResults) BlockIndex

index of block containing request

func (ImmutableGetRequestReceiptResults) RequestIndex

index within block containing request

func (ImmutableGetRequestReceiptResults) RequestReceipt added in v1.0.3

serialized request receipt

type ImmutableGetRequestReceiptsForBlockParams

type ImmutableGetRequestReceiptsForBlockParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableGetRequestReceiptsForBlockParams added in v1.0.3

func NewImmutableGetRequestReceiptsForBlockParams() ImmutableGetRequestReceiptsForBlockParams

func (ImmutableGetRequestReceiptsForBlockParams) BlockIndex

default last block

type ImmutableGetRequestReceiptsForBlockResults

type ImmutableGetRequestReceiptsForBlockResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetRequestReceiptsForBlockResults) BlockIndex added in v1.0.3

index of block containing request

func (ImmutableGetRequestReceiptsForBlockResults) RequestReceipts added in v1.0.3

Array16 of request receipts

type ImmutableIsRequestProcessedParams

type ImmutableIsRequestProcessedParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableIsRequestProcessedParams added in v1.0.3

func NewImmutableIsRequestProcessedParams() ImmutableIsRequestProcessedParams

func (ImmutableIsRequestProcessedParams) RequestID

target request ID

type ImmutableIsRequestProcessedResults

type ImmutableIsRequestProcessedResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableIsRequestProcessedResults) RequestProcessed

whether request has been processed

type IsRequestProcessedCall

type IsRequestProcessedCall struct {
	Func    *wasmlib.ScView
	Params  MutableIsRequestProcessedParams
	Results ImmutableIsRequestProcessedResults
}

type MutableControlAddressesResults

type MutableControlAddressesResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableControlAddressesResults

func NewMutableControlAddressesResults() MutableControlAddressesResults

func (MutableControlAddressesResults) BlockIndex

index of block where the addresses were set

func (MutableControlAddressesResults) GoverningAddress

governing address

func (MutableControlAddressesResults) StateControllerAddress

func (s MutableControlAddressesResults) StateControllerAddress() wasmtypes.ScMutableAddress

state controller address

type MutableGetBlockInfoParams

type MutableGetBlockInfoParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableGetBlockInfoParams) BlockIndex

default last block

type MutableGetBlockInfoResults

type MutableGetBlockInfoResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetBlockInfoResults added in v1.0.3

func NewMutableGetBlockInfoResults() MutableGetBlockInfoResults

func (MutableGetBlockInfoResults) BlockIndex added in v0.3.0

index of returned block

func (MutableGetBlockInfoResults) BlockInfo

serialized block info

type MutableGetEventsForBlockParams

type MutableGetEventsForBlockParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableGetEventsForBlockParams) BlockIndex

default last block

type MutableGetEventsForBlockResults

type MutableGetEventsForBlockResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetEventsForBlockResults added in v1.0.3

func NewMutableGetEventsForBlockResults() MutableGetEventsForBlockResults

func (MutableGetEventsForBlockResults) Event

Array16 of serialized events

type MutableGetEventsForContractParams

type MutableGetEventsForContractParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableGetEventsForContractParams) ContractHname

func (MutableGetEventsForContractParams) FromBlock

default first block

func (MutableGetEventsForContractParams) ToBlock

default last block

type MutableGetEventsForContractResults

type MutableGetEventsForContractResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetEventsForContractResults added in v1.0.3

func NewMutableGetEventsForContractResults() MutableGetEventsForContractResults

func (MutableGetEventsForContractResults) Event

Array16 of serialized events

type MutableGetEventsForRequestParams

type MutableGetEventsForRequestParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableGetEventsForRequestParams) RequestID

target request ID

type MutableGetEventsForRequestResults

type MutableGetEventsForRequestResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetEventsForRequestResults added in v1.0.3

func NewMutableGetEventsForRequestResults() MutableGetEventsForRequestResults

func (MutableGetEventsForRequestResults) Event

Array16 of serialized events

type MutableGetRequestIDsForBlockParams

type MutableGetRequestIDsForBlockParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableGetRequestIDsForBlockParams) BlockIndex

default last block

type MutableGetRequestIDsForBlockResults

type MutableGetRequestIDsForBlockResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetRequestIDsForBlockResults added in v1.0.3

func NewMutableGetRequestIDsForBlockResults() MutableGetRequestIDsForBlockResults

func (MutableGetRequestIDsForBlockResults) BlockIndex added in v1.0.3

index of block containing request

func (MutableGetRequestIDsForBlockResults) RequestID

Array16 of request IDs

type MutableGetRequestReceiptParams

type MutableGetRequestReceiptParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableGetRequestReceiptParams) RequestID

target request ID

type MutableGetRequestReceiptResults

type MutableGetRequestReceiptResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetRequestReceiptResults added in v1.0.3

func NewMutableGetRequestReceiptResults() MutableGetRequestReceiptResults

func (MutableGetRequestReceiptResults) BlockIndex

index of block containing request

func (MutableGetRequestReceiptResults) RequestIndex

index within block containing request

func (MutableGetRequestReceiptResults) RequestReceipt added in v1.0.3

serialized request receipt

type MutableGetRequestReceiptsForBlockParams

type MutableGetRequestReceiptsForBlockParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableGetRequestReceiptsForBlockParams) BlockIndex

default last block

type MutableGetRequestReceiptsForBlockResults

type MutableGetRequestReceiptsForBlockResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetRequestReceiptsForBlockResults added in v1.0.3

func NewMutableGetRequestReceiptsForBlockResults() MutableGetRequestReceiptsForBlockResults

func (MutableGetRequestReceiptsForBlockResults) BlockIndex added in v1.0.3

index of block containing request

func (MutableGetRequestReceiptsForBlockResults) RequestReceipts added in v1.0.3

Array16 of request receipts

type MutableIsRequestProcessedParams

type MutableIsRequestProcessedParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableIsRequestProcessedParams) RequestID

target request ID

type MutableIsRequestProcessedResults

type MutableIsRequestProcessedResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableIsRequestProcessedResults added in v1.0.3

func NewMutableIsRequestProcessedResults() MutableIsRequestProcessedResults

func (MutableIsRequestProcessedResults) RequestProcessed

whether request has been processed

Jump to

Keyboard shortcuts

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