Documentation ¶
Index ¶
- Constants
- Variables
- func KeyTestPubAddr() (crypto.PrivKey, crypto.PubKey, crypto.Address)
- func NewTestCoins() std.Coins
- func NewTestFee() std.Fee
- func NewTestTx(t *testing.T, chainID string, msgs []std.Msg, privs []crypto.PrivKey, ...) std.Tx
- func NewTestTxWithMemo(t *testing.T, chainID string, msgs []std.Msg, privs []crypto.PrivKey, ...) std.Tx
- func NewTestTxWithSignBytes(msgs []std.Msg, privs []crypto.PrivKey, fee std.Fee, signBytes []byte, ...) std.Tx
- func TestAddress(name string) crypto.Address
- func TestBech32Address(name string) crypto.Bech32Address
- type MsgCounter
- type MsgCounter2
- type MsgNoRoute
- type TestMsg
Constants ¶
View Source
const ( RouteMsgCounter = "MsgCounter" RouteMsgCounter2 = "MsgCounter2" )
Variables ¶
View Source
var Package = amino.RegisterPackage(amino.NewPackage( "github.com/gnolang/gno/tm2/pkg/sdk/testutils", "sdk.testutils", amino.GetCallersDirname(), ).WithDependencies().WithTypes( &TestMsg{}, "TestMsg", MsgCounter{}, MsgNoRoute{}, MsgCounter2{}, ))
Functions ¶
func NewTestFee ¶
func NewTestTxWithMemo ¶
func NewTestTxWithSignBytes ¶
func TestAddress ¶
func TestBech32Address ¶
func TestBech32Address(name string) crypto.Bech32Address
Types ¶
type MsgCounter ¶
ValidateBasic() fails on negative counters. Otherwise it's up to the handlers
func (MsgCounter) GetSignBytes ¶
func (msg MsgCounter) GetSignBytes() []byte
func (MsgCounter) GetSigners ¶
func (msg MsgCounter) GetSigners() []crypto.Address
func (MsgCounter) Type ¶
func (msg MsgCounter) Type() string
func (MsgCounter) ValidateBasic ¶
func (msg MsgCounter) ValidateBasic() error
type MsgCounter2 ¶
type MsgCounter2 struct {
Counter int64
}
Another counter msg. Duplicate of MsgCounter
func (MsgCounter2) GetSignBytes ¶
func (msg MsgCounter2) GetSignBytes() []byte
func (MsgCounter2) GetSigners ¶
func (msg MsgCounter2) GetSigners() []crypto.Address
func (MsgCounter2) Type ¶
func (msg MsgCounter2) Type() string
func (MsgCounter2) ValidateBasic ¶
func (msg MsgCounter2) ValidateBasic() error
type MsgNoRoute ¶
type MsgNoRoute struct {
MsgCounter
}
a msg we dont know how to route
func (MsgNoRoute) Route ¶
func (tx MsgNoRoute) Route() string
type TestMsg ¶
msg type for testing
func NewTestMsg ¶
func (*TestMsg) GetSignBytes ¶
func (*TestMsg) GetSigners ¶
func (*TestMsg) ValidateBasic ¶
Click to show internal directories.
Click to hide internal directories.