Documentation ¶
Index ¶
- func CallExternalFunc(ctx Context, id crosstypes.ChainID, callInfo types.ContractCallInfo, ...) []byte
- func IsSimulation(ctx sdk.Context) bool
- func NewContractHandler(k Keeper, stateProvider StateProvider, ...) *contractHandler
- func NewQuerier(handler sdk.Handler, keeper Keeper, contractHandler cross.ContractHandler) sdk.Querier
- type Context
- type Contract
- type Keeper
- type Method
- type StateProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallExternalFunc ¶ added in v0.0.5
func CallExternalFunc(ctx Context, id crosstypes.ChainID, callInfo types.ContractCallInfo, signers []sdk.AccAddress) []byte
CallExternalFunc calls a contract function on external chain
func IsSimulation ¶ added in v0.0.5
func NewContractHandler ¶
func NewContractHandler(k Keeper, stateProvider StateProvider, channelResolver crosstypes.ChannelResolver) *contractHandler
func NewQuerier ¶
func NewQuerier(handler sdk.Handler, keeper Keeper, contractHandler cross.ContractHandler) sdk.Querier
NewQuerier is the module level router for state queries
Types ¶
type Context ¶
type Context interface { Signers() []sdk.AccAddress Args() [][]byte EventManager() *sdk.EventManager // contains filtered or unexported methods }
func NewContext ¶
func NewContext(signers []sdk.AccAddress, args [][]byte, rtInfo cross.ContractRuntimeInfo) Context
type Contract ¶
type Contract interface {
CallMethod(ctx Context, store cross.Store, method string) ([]byte, error)
}
func NewContract ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) GetContractStateStore ¶
type StateProvider ¶
Click to show internal directories.
Click to hide internal directories.