Documentation ¶
Index ¶
- Constants
- func BuildURL(uri string) string
- func GenTx(txf clienttx.Factory, gen client.TxConfig, msgs []sdk.Msg, signer string) (sdk.Tx, error)
- func ParseUint(num string) uint64
- func RandString() string
- func ReadResponseBody(resp *http.Response) ([]byte, error)
- func SendDeleteRequest(uri string, body []byte, account string, passphrase string) ([]byte, error)
- func SendGetRequest(uri string) ([]byte, error)
- func SendPatchRequest(uri string, body []byte, account string, passphrase string) ([]byte, error)
- func SendPostRequest(uri string, body []byte, account string, passphrase string) ([]byte, error)
- func SendPutRequest(uri string, body []byte, account string, passphrase string) ([]byte, error)
- type RESTError
- type TestSuite
- func (suite *TestSuite) AssertNotFound(err error)
- func (suite *TestSuite) BroadcastTx(txBytes []byte) (*sdk.TxResponse, error)
- func (suite *TestSuite) BuildAndBroadcastTx(msgs []sdk.Msg, signer string, account *dclauthtypes.Account) (*sdk.TxResponse, error)
- func (suite *TestSuite) BuildTx(msgs []sdk.Msg, signer string, account *dclauthtypes.Account) []byte
- func (suite *TestSuite) GetAddress(uid string) sdk.AccAddress
- func (suite *TestSuite) GetGRPCConn() *grpc.ClientConn
- func (suite *TestSuite) QueryREST(uri string, resp proto.Message) error
Constants ¶
View Source
const (
BaseURL = "http://127.0.0.1:26640"
)
Variables ¶
This section is empty.
Functions ¶
func GenTx ¶ added in v0.6.0
func GenTx(txf clienttx.Factory, gen client.TxConfig, msgs []sdk.Msg, signer string) (sdk.Tx, error)
GenTx generates a signed mock transaction.
func RandString ¶
func RandString() string
func SendDeleteRequest ¶
func SendGetRequest ¶
func SendPatchRequest ¶
func SendPostRequest ¶
Types ¶
type RESTError ¶ added in v0.6.0
type RESTError struct {
// contains filtered or unexported fields
}
type TestSuite ¶ added in v0.6.0
type TestSuite struct { T *testing.T EncodingConfig simappparams.EncodingConfig ChainID string Kr keyring.Keyring Txf clienttx.Factory Rest bool }
func (*TestSuite) AssertNotFound ¶ added in v0.6.0
func (*TestSuite) BroadcastTx ¶ added in v0.6.0
func (suite *TestSuite) BroadcastTx(txBytes []byte) (*sdk.TxResponse, error)
func (*TestSuite) BuildAndBroadcastTx ¶ added in v0.6.0
func (suite *TestSuite) BuildAndBroadcastTx( msgs []sdk.Msg, signer string, account *dclauthtypes.Account, ) (*sdk.TxResponse, error)
func (*TestSuite) BuildTx ¶ added in v0.6.0
func (suite *TestSuite) BuildTx( msgs []sdk.Msg, signer string, account *dclauthtypes.Account, ) []byte
Generates Protobuf-encoded bytes.
func (*TestSuite) GetAddress ¶ added in v0.6.0
func (suite *TestSuite) GetAddress(uid string) sdk.AccAddress
func (*TestSuite) GetGRPCConn ¶ added in v0.6.0
func (suite *TestSuite) GetGRPCConn() *grpc.ClientConn
Click to show internal directories.
Click to hide internal directories.