Documentation
¶
Index ¶
- Constants
- func OnDispatch(index int32)
- type ArrayOfImmutableBytes
- type ArrayOfImmutableRequestID
- type ArrayOfMutableBytes
- type ArrayOfMutableRequestID
- type ControlAddressesCall
- type Funcs
- func (sc Funcs) ControlAddresses(ctx wasmlib.ScViewCallContext) *ControlAddressesCall
- func (sc Funcs) GetBlockInfo(ctx wasmlib.ScViewCallContext) *GetBlockInfoCall
- func (sc Funcs) GetEventsForBlock(ctx wasmlib.ScViewCallContext) *GetEventsForBlockCall
- func (sc Funcs) GetEventsForContract(ctx wasmlib.ScViewCallContext) *GetEventsForContractCall
- func (sc Funcs) GetEventsForRequest(ctx wasmlib.ScViewCallContext) *GetEventsForRequestCall
- func (sc Funcs) GetRequestIDsForBlock(ctx wasmlib.ScViewCallContext) *GetRequestIDsForBlockCall
- func (sc Funcs) GetRequestReceipt(ctx wasmlib.ScViewCallContext) *GetRequestReceiptCall
- func (sc Funcs) GetRequestReceiptsForBlock(ctx wasmlib.ScViewCallContext) *GetRequestReceiptsForBlockCall
- func (sc Funcs) IsRequestProcessed(ctx wasmlib.ScViewCallContext) *IsRequestProcessedCall
- type GetBlockInfoCall
- type GetEventsForBlockCall
- type GetEventsForContractCall
- type GetEventsForRequestCall
- type GetRequestIDsForBlockCall
- type GetRequestReceiptCall
- type GetRequestReceiptsForBlockCall
- type ImmutableControlAddressesResults
- type ImmutableGetBlockInfoParams
- type ImmutableGetBlockInfoResults
- type ImmutableGetEventsForBlockParams
- type ImmutableGetEventsForBlockResults
- type ImmutableGetEventsForContractParams
- type ImmutableGetEventsForContractResults
- type ImmutableGetEventsForRequestParams
- type ImmutableGetEventsForRequestResults
- type ImmutableGetRequestIDsForBlockParams
- type ImmutableGetRequestIDsForBlockResults
- type ImmutableGetRequestReceiptParams
- type ImmutableGetRequestReceiptResults
- type ImmutableGetRequestReceiptsForBlockParams
- type ImmutableGetRequestReceiptsForBlockResults
- type ImmutableIsRequestProcessedParams
- type ImmutableIsRequestProcessedResults
- type IsRequestProcessedCall
- type MutableControlAddressesResults
- type MutableGetBlockInfoParams
- type MutableGetBlockInfoResults
- type MutableGetEventsForBlockParams
- type MutableGetEventsForBlockResults
- type MutableGetEventsForContractParams
- type MutableGetEventsForContractResults
- type MutableGetEventsForRequestParams
- type MutableGetEventsForRequestResults
- type MutableGetRequestIDsForBlockParams
- type MutableGetRequestIDsForBlockResults
- type MutableGetRequestReceiptParams
- type MutableGetRequestReceiptResults
- type MutableGetRequestReceiptsForBlockParams
- type MutableGetRequestReceiptsForBlockResults
- type MutableIsRequestProcessedParams
- type MutableIsRequestProcessedResults
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" ResultRequestRecord = "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 ¶
func (ArrayOfImmutableBytes) GetBytes ¶
func (a ArrayOfImmutableBytes) GetBytes(index uint32) wasmtypes.ScImmutableBytes
func (ArrayOfImmutableBytes) Length ¶
func (a ArrayOfImmutableBytes) Length() uint32
type ArrayOfImmutableRequestID ¶
func (ArrayOfImmutableRequestID) GetRequestID ¶
func (a ArrayOfImmutableRequestID) GetRequestID(index uint32) wasmtypes.ScImmutableRequestID
func (ArrayOfImmutableRequestID) Length ¶
func (a ArrayOfImmutableRequestID) Length() uint32
type ArrayOfMutableBytes ¶
func (ArrayOfMutableBytes) AppendBytes ¶
func (a ArrayOfMutableBytes) AppendBytes() wasmtypes.ScMutableBytes
func (ArrayOfMutableBytes) Clear ¶
func (a ArrayOfMutableBytes) Clear()
func (ArrayOfMutableBytes) GetBytes ¶
func (a ArrayOfMutableBytes) GetBytes(index uint32) wasmtypes.ScMutableBytes
func (ArrayOfMutableBytes) Length ¶
func (a ArrayOfMutableBytes) Length() uint32
type ArrayOfMutableRequestID ¶
func (ArrayOfMutableRequestID) AppendRequestID ¶
func (a ArrayOfMutableRequestID) AppendRequestID() wasmtypes.ScMutableRequestID
func (ArrayOfMutableRequestID) Clear ¶
func (a ArrayOfMutableRequestID) Clear()
func (ArrayOfMutableRequestID) GetRequestID ¶
func (a ArrayOfMutableRequestID) GetRequestID(index uint32) wasmtypes.ScMutableRequestID
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
func (Funcs) GetBlockInfo ¶
func (sc Funcs) GetBlockInfo(ctx wasmlib.ScViewCallContext) *GetBlockInfoCall
func (Funcs) GetEventsForBlock ¶
func (sc Funcs) GetEventsForBlock(ctx wasmlib.ScViewCallContext) *GetEventsForBlockCall
func (Funcs) GetEventsForContract ¶
func (sc Funcs) GetEventsForContract(ctx wasmlib.ScViewCallContext) *GetEventsForContractCall
func (Funcs) GetEventsForRequest ¶
func (sc Funcs) GetEventsForRequest(ctx wasmlib.ScViewCallContext) *GetEventsForRequestCall
func (Funcs) GetRequestIDsForBlock ¶
func (sc Funcs) GetRequestIDsForBlock(ctx wasmlib.ScViewCallContext) *GetRequestIDsForBlockCall
func (Funcs) GetRequestReceipt ¶
func (sc Funcs) GetRequestReceipt(ctx wasmlib.ScViewCallContext) *GetRequestReceiptCall
func (Funcs) GetRequestReceiptsForBlock ¶
func (sc Funcs) GetRequestReceiptsForBlock(ctx wasmlib.ScViewCallContext) *GetRequestReceiptsForBlockCall
func (Funcs) IsRequestProcessed ¶
func (sc Funcs) IsRequestProcessed(ctx wasmlib.ScViewCallContext) *IsRequestProcessedCall
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 GetRequestReceiptsForBlockCall ¶
type GetRequestReceiptsForBlockCall struct {
Func *wasmlib.ScView
Params MutableGetRequestReceiptsForBlockParams
Results ImmutableGetRequestReceiptsForBlockResults
}
type ImmutableControlAddressesResults ¶
func (ImmutableControlAddressesResults) BlockIndex ¶
func (s ImmutableControlAddressesResults) BlockIndex() wasmtypes.ScImmutableUint32
the addresses have been set as state controller address or governing address since the following block index
func (ImmutableControlAddressesResults) GoverningAddress ¶
func (s ImmutableControlAddressesResults) GoverningAddress() wasmtypes.ScImmutableAddress
func (ImmutableControlAddressesResults) StateControllerAddress ¶
func (s ImmutableControlAddressesResults) StateControllerAddress() wasmtypes.ScImmutableAddress
type ImmutableGetBlockInfoParams ¶
func NewImmutableGetBlockInfoParams ¶ added in v1.0.3
func NewImmutableGetBlockInfoParams() ImmutableGetBlockInfoParams
func (ImmutableGetBlockInfoParams) BlockIndex ¶
func (s ImmutableGetBlockInfoParams) BlockIndex() wasmtypes.ScImmutableUint32
type ImmutableGetBlockInfoResults ¶
func (ImmutableGetBlockInfoResults) BlockIndex ¶ added in v0.3.0
func (s ImmutableGetBlockInfoResults) BlockIndex() wasmtypes.ScImmutableUint32
func (ImmutableGetBlockInfoResults) BlockInfo ¶
func (s ImmutableGetBlockInfoResults) BlockInfo() wasmtypes.ScImmutableBytes
type ImmutableGetEventsForBlockParams ¶
func NewImmutableGetEventsForBlockParams ¶ added in v1.0.3
func NewImmutableGetEventsForBlockParams() ImmutableGetEventsForBlockParams
func (ImmutableGetEventsForBlockParams) BlockIndex ¶
func (s ImmutableGetEventsForBlockParams) BlockIndex() wasmtypes.ScImmutableUint32
type ImmutableGetEventsForBlockResults ¶
func (ImmutableGetEventsForBlockResults) Event ¶
func (s ImmutableGetEventsForBlockResults) Event() ArrayOfImmutableBytes
native contract, so this is an Array16
type ImmutableGetEventsForContractParams ¶
func NewImmutableGetEventsForContractParams ¶ added in v1.0.3
func NewImmutableGetEventsForContractParams() ImmutableGetEventsForContractParams
func (ImmutableGetEventsForContractParams) ContractHname ¶
func (s ImmutableGetEventsForContractParams) ContractHname() wasmtypes.ScImmutableHname
func (ImmutableGetEventsForContractParams) FromBlock ¶
func (s ImmutableGetEventsForContractParams) FromBlock() wasmtypes.ScImmutableUint32
func (ImmutableGetEventsForContractParams) ToBlock ¶
func (s ImmutableGetEventsForContractParams) ToBlock() wasmtypes.ScImmutableUint32
type ImmutableGetEventsForContractResults ¶
func (ImmutableGetEventsForContractResults) Event ¶
func (s ImmutableGetEventsForContractResults) Event() ArrayOfImmutableBytes
native contract, so this is an Array16
type ImmutableGetEventsForRequestParams ¶
func NewImmutableGetEventsForRequestParams ¶ added in v1.0.3
func NewImmutableGetEventsForRequestParams() ImmutableGetEventsForRequestParams
func (ImmutableGetEventsForRequestParams) RequestID ¶
func (s ImmutableGetEventsForRequestParams) RequestID() wasmtypes.ScImmutableRequestID
type ImmutableGetEventsForRequestResults ¶
func (ImmutableGetEventsForRequestResults) Event ¶
func (s ImmutableGetEventsForRequestResults) Event() ArrayOfImmutableBytes
native contract, so this is an Array16
type ImmutableGetRequestIDsForBlockParams ¶
func NewImmutableGetRequestIDsForBlockParams ¶ added in v1.0.3
func NewImmutableGetRequestIDsForBlockParams() ImmutableGetRequestIDsForBlockParams
func (ImmutableGetRequestIDsForBlockParams) BlockIndex ¶
func (s ImmutableGetRequestIDsForBlockParams) BlockIndex() wasmtypes.ScImmutableUint32
type ImmutableGetRequestIDsForBlockResults ¶
func (ImmutableGetRequestIDsForBlockResults) RequestID ¶
func (s ImmutableGetRequestIDsForBlockResults) RequestID() ArrayOfImmutableRequestID
native contract, so this is an Array16
type ImmutableGetRequestReceiptParams ¶
func NewImmutableGetRequestReceiptParams ¶ added in v1.0.3
func NewImmutableGetRequestReceiptParams() ImmutableGetRequestReceiptParams
func (ImmutableGetRequestReceiptParams) RequestID ¶
func (s ImmutableGetRequestReceiptParams) RequestID() wasmtypes.ScImmutableRequestID
type ImmutableGetRequestReceiptResults ¶
func (ImmutableGetRequestReceiptResults) BlockIndex ¶
func (s ImmutableGetRequestReceiptResults) BlockIndex() wasmtypes.ScImmutableUint32
func (ImmutableGetRequestReceiptResults) RequestIndex ¶
func (s ImmutableGetRequestReceiptResults) RequestIndex() wasmtypes.ScImmutableUint16
func (ImmutableGetRequestReceiptResults) RequestRecord ¶
func (s ImmutableGetRequestReceiptResults) RequestRecord() wasmtypes.ScImmutableBytes
type ImmutableGetRequestReceiptsForBlockParams ¶
func NewImmutableGetRequestReceiptsForBlockParams ¶ added in v1.0.3
func NewImmutableGetRequestReceiptsForBlockParams() ImmutableGetRequestReceiptsForBlockParams
func (ImmutableGetRequestReceiptsForBlockParams) BlockIndex ¶
func (s ImmutableGetRequestReceiptsForBlockParams) BlockIndex() wasmtypes.ScImmutableUint32
type ImmutableGetRequestReceiptsForBlockResults ¶
func (ImmutableGetRequestReceiptsForBlockResults) RequestRecord ¶
func (s ImmutableGetRequestReceiptsForBlockResults) RequestRecord() ArrayOfImmutableBytes
native contract, so this is an Array16
type ImmutableIsRequestProcessedParams ¶
func NewImmutableIsRequestProcessedParams ¶ added in v1.0.3
func NewImmutableIsRequestProcessedParams() ImmutableIsRequestProcessedParams
func (ImmutableIsRequestProcessedParams) RequestID ¶
func (s ImmutableIsRequestProcessedParams) RequestID() wasmtypes.ScImmutableRequestID
type ImmutableIsRequestProcessedResults ¶
func (ImmutableIsRequestProcessedResults) RequestProcessed ¶
func (s ImmutableIsRequestProcessedResults) RequestProcessed() wasmtypes.ScImmutableBool
type IsRequestProcessedCall ¶
type IsRequestProcessedCall struct {
Func *wasmlib.ScView
Params MutableIsRequestProcessedParams
Results ImmutableIsRequestProcessedResults
}
type MutableControlAddressesResults ¶
func NewMutableControlAddressesResults ¶
func NewMutableControlAddressesResults() MutableControlAddressesResults
func (MutableControlAddressesResults) BlockIndex ¶
func (s MutableControlAddressesResults) BlockIndex() wasmtypes.ScMutableUint32
the addresses have been set as state controller address or governing address since the following block index
func (MutableControlAddressesResults) GoverningAddress ¶
func (s MutableControlAddressesResults) GoverningAddress() wasmtypes.ScMutableAddress
func (MutableControlAddressesResults) StateControllerAddress ¶
func (s MutableControlAddressesResults) StateControllerAddress() wasmtypes.ScMutableAddress
type MutableGetBlockInfoParams ¶
func (MutableGetBlockInfoParams) BlockIndex ¶
func (s MutableGetBlockInfoParams) BlockIndex() wasmtypes.ScMutableUint32
type MutableGetBlockInfoResults ¶
func NewMutableGetBlockInfoResults ¶ added in v1.0.3
func NewMutableGetBlockInfoResults() MutableGetBlockInfoResults
func (MutableGetBlockInfoResults) BlockIndex ¶ added in v0.3.0
func (s MutableGetBlockInfoResults) BlockIndex() wasmtypes.ScMutableUint32
func (MutableGetBlockInfoResults) BlockInfo ¶
func (s MutableGetBlockInfoResults) BlockInfo() wasmtypes.ScMutableBytes
type MutableGetEventsForBlockParams ¶
func (MutableGetEventsForBlockParams) BlockIndex ¶
func (s MutableGetEventsForBlockParams) BlockIndex() wasmtypes.ScMutableUint32
type MutableGetEventsForBlockResults ¶
func NewMutableGetEventsForBlockResults ¶ added in v1.0.3
func NewMutableGetEventsForBlockResults() MutableGetEventsForBlockResults
func (MutableGetEventsForBlockResults) Event ¶
func (s MutableGetEventsForBlockResults) Event() ArrayOfMutableBytes
native contract, so this is an Array16
type MutableGetEventsForContractParams ¶
func (MutableGetEventsForContractParams) ContractHname ¶
func (s MutableGetEventsForContractParams) ContractHname() wasmtypes.ScMutableHname
func (MutableGetEventsForContractParams) FromBlock ¶
func (s MutableGetEventsForContractParams) FromBlock() wasmtypes.ScMutableUint32
func (MutableGetEventsForContractParams) ToBlock ¶
func (s MutableGetEventsForContractParams) ToBlock() wasmtypes.ScMutableUint32
type MutableGetEventsForContractResults ¶
func NewMutableGetEventsForContractResults ¶ added in v1.0.3
func NewMutableGetEventsForContractResults() MutableGetEventsForContractResults
func (MutableGetEventsForContractResults) Event ¶
func (s MutableGetEventsForContractResults) Event() ArrayOfMutableBytes
native contract, so this is an Array16
type MutableGetEventsForRequestParams ¶
func (MutableGetEventsForRequestParams) RequestID ¶
func (s MutableGetEventsForRequestParams) RequestID() wasmtypes.ScMutableRequestID
type MutableGetEventsForRequestResults ¶
func NewMutableGetEventsForRequestResults ¶ added in v1.0.3
func NewMutableGetEventsForRequestResults() MutableGetEventsForRequestResults
func (MutableGetEventsForRequestResults) Event ¶
func (s MutableGetEventsForRequestResults) Event() ArrayOfMutableBytes
native contract, so this is an Array16
type MutableGetRequestIDsForBlockParams ¶
func (MutableGetRequestIDsForBlockParams) BlockIndex ¶
func (s MutableGetRequestIDsForBlockParams) BlockIndex() wasmtypes.ScMutableUint32
type MutableGetRequestIDsForBlockResults ¶
func NewMutableGetRequestIDsForBlockResults ¶ added in v1.0.3
func NewMutableGetRequestIDsForBlockResults() MutableGetRequestIDsForBlockResults
func (MutableGetRequestIDsForBlockResults) RequestID ¶
func (s MutableGetRequestIDsForBlockResults) RequestID() ArrayOfMutableRequestID
native contract, so this is an Array16
type MutableGetRequestReceiptParams ¶
func (MutableGetRequestReceiptParams) RequestID ¶
func (s MutableGetRequestReceiptParams) RequestID() wasmtypes.ScMutableRequestID
type MutableGetRequestReceiptResults ¶
func NewMutableGetRequestReceiptResults ¶ added in v1.0.3
func NewMutableGetRequestReceiptResults() MutableGetRequestReceiptResults
func (MutableGetRequestReceiptResults) BlockIndex ¶
func (s MutableGetRequestReceiptResults) BlockIndex() wasmtypes.ScMutableUint32
func (MutableGetRequestReceiptResults) RequestIndex ¶
func (s MutableGetRequestReceiptResults) RequestIndex() wasmtypes.ScMutableUint16
func (MutableGetRequestReceiptResults) RequestRecord ¶
func (s MutableGetRequestReceiptResults) RequestRecord() wasmtypes.ScMutableBytes
type MutableGetRequestReceiptsForBlockParams ¶
func (MutableGetRequestReceiptsForBlockParams) BlockIndex ¶
func (s MutableGetRequestReceiptsForBlockParams) BlockIndex() wasmtypes.ScMutableUint32
type MutableGetRequestReceiptsForBlockResults ¶
func NewMutableGetRequestReceiptsForBlockResults ¶ added in v1.0.3
func NewMutableGetRequestReceiptsForBlockResults() MutableGetRequestReceiptsForBlockResults
func (MutableGetRequestReceiptsForBlockResults) RequestRecord ¶
func (s MutableGetRequestReceiptsForBlockResults) RequestRecord() ArrayOfMutableBytes
native contract, so this is an Array16
type MutableIsRequestProcessedParams ¶
func (MutableIsRequestProcessedParams) RequestID ¶
func (s MutableIsRequestProcessedParams) RequestID() wasmtypes.ScMutableRequestID
type MutableIsRequestProcessedResults ¶
func NewMutableIsRequestProcessedResults ¶ added in v1.0.3
func NewMutableIsRequestProcessedResults() MutableIsRequestProcessedResults
func (MutableIsRequestProcessedResults) RequestProcessed ¶
func (s MutableIsRequestProcessedResults) RequestProcessed() wasmtypes.ScMutableBool
Click to show internal directories.
Click to hide internal directories.