model

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddModel

func AddModel(
	suite *utils.TestSuite,
	msg *modeltypes.MsgCreateModel,
	signerName string,
	signerAccount *dclauthtypes.Account,
) (*sdk.TxResponse, error)

func AddModelByDifferentVendor

func AddModelByDifferentVendor(suite *utils.TestSuite)

func AddModelByNonVendor

func AddModelByNonVendor(suite *utils.TestSuite)

func AddModelTwice

func AddModelTwice(suite *utils.TestSuite)

func AddModelVersion

func AddModelVersion(
	suite *utils.TestSuite,
	msg *modeltypes.MsgCreateModelVersion,
	signerName string,
	signerAccount *dclauthtypes.Account,
) (*sdk.TxResponse, error)

func GetModel

func GetModel(
	suite *utils.TestSuite,
	vid int32,
	pid int32,
) (*modeltypes.Model, error)

func GetModelForInvalidVidPid

func GetModelForInvalidVidPid(suite *utils.TestSuite)

func GetModelForUnknown

func GetModelForUnknown(suite *utils.TestSuite)

func GetModelVersion

func GetModelVersion(
	suite *utils.TestSuite,
	vid int32,
	pid int32,
	softwareVersion uint32,
) (*modeltypes.ModelVersion, error)

func GetModels

func GetModels(suite *utils.TestSuite) (res []modeltypes.Model, err error)

func GetVendorModels

func GetVendorModels(
	suite *utils.TestSuite,
	vid int32,
) (*modeltypes.VendorProducts, error)

func ModelDemo

func ModelDemo(suite *utils.TestSuite)

func NewMsgCreateModel

func NewMsgCreateModel(vid int32, pid int32, signer string) *modeltypes.MsgCreateModel

func NewMsgCreateModelVersion

func NewMsgCreateModelVersion(
	vid int32,
	pid int32,
	softwareVersion uint32,
	softwareVersionString string,
	signer string,
) *modeltypes.MsgCreateModelVersion

func NewMsgUpdateModel

func NewMsgUpdateModel(vid int32, pid int32, signer string) *modeltypes.MsgUpdateModel

func NewMsgUpdateModelVersion

func NewMsgUpdateModelVersion(
	vid int32,
	pid int32,
	softwareVersion uint32,
	signer string,
) *modeltypes.MsgUpdateModelVersion

func UpdateModel

func UpdateModel(
	suite *utils.TestSuite,
	msg *modeltypes.MsgUpdateModel,
	signerName string,
	signerAccount *dclauthtypes.Account,
) (*sdk.TxResponse, error)

func UpdateModelVersion

func UpdateModelVersion(
	suite *utils.TestSuite,
	msg *modeltypes.MsgUpdateModelVersion,
	signerName string,
	signerAccount *dclauthtypes.Account,
) (*sdk.TxResponse, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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