bind

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateExecuteMsg

func GenerateExecuteMsg(
	sender cosmostypes.AccAddress,
	contract cosmostypes.AccAddress,
	executeMsg interface{},
	coins cosmostypes.Coins,
) (types.MsgExecuteContract, error)

Types

type BaseContract

type BaseContract interface {
	GetAddress() cosmostypes.AccAddress
	GetClient() terra.Client

	MakeMessage(
		acc terra.Account,
		method string,
		payload interface{},
		coins cosmostypes.Coins,
	) ([]cosmostypes.Msg, error)

	Execute(
		ctx context.Context,
		acc terra.Account,
		msgs []cosmostypes.Msg,
		mode *types.BroadcastMode,
		opts *terra.CreateTxOptions,
	) (cosmostypes.TxResponse, error)

	Query(ctx context.Context, query types.Q, resp interface{}) error
}

func NewBaseContract

func NewBaseContract(addr cosmostypes.AccAddress, client terra.Client) BaseContract

Jump to

Keyboard shortcuts

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