model

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 13 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 AddModelByVendorWithNonAssociatedProductIDs added in v1.4.0

func AddModelByVendorWithNonAssociatedProductIDs(suite *utils.TestSuite)

func AddModelByVendorWithProductIDs added in v1.4.0

func AddModelByVendorWithProductIDs(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 DeleteModelByVendorWithNonAssociatedProductIDs added in v1.4.0

func DeleteModelByVendorWithNonAssociatedProductIDs(suite *utils.TestSuite)

func DeleteModelVersion added in v1.1.1

func DeleteModelVersion(suite *utils.TestSuite)

func DeleteModelVersionBeforeDeletingModel added in v1.4.3

func DeleteModelVersionBeforeDeletingModel(suite *utils.TestSuite)

func DeleteModelVersionCertified added in v1.1.1

func DeleteModelVersionCertified(suite *utils.TestSuite)

func DeleteModelVersionDifferentVid added in v1.1.1

func DeleteModelVersionDifferentVid(suite *utils.TestSuite)

func DeleteModelVersionDoesNotExist added in v1.1.1

func DeleteModelVersionDoesNotExist(suite *utils.TestSuite)

func DeleteModelVersionNotByCreator added in v1.1.1

func DeleteModelVersionNotByCreator(suite *utils.TestSuite)

func DeleteModelWithAssociatedModelVersions added in v1.1.1

func DeleteModelWithAssociatedModelVersions(suite *utils.TestSuite)

func DeleteModelWithAssociatedModelVersionsCertified added in v1.1.1

func DeleteModelWithAssociatedModelVersionsCertified(suite *utils.TestSuite)

func Demo added in v0.10.0

func Demo(suite *utils.TestSuite)

func DemoWithHexVidAndPid added in v0.10.0

func DemoWithHexVidAndPid(suite *utils.TestSuite)

func GetModel

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

func GetModelByHexVidPid added in v0.10.0

func GetModelByHexVidPid(
	suite *utils.TestSuite,
	vid string,
	pid string,
) (*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 GetVendorModelsByHexVid added in v0.10.0

func GetVendorModelsByHexVid(
	suite *utils.TestSuite,
	vid string,
) (*modeltypes.VendorProducts, error)

func NewMsgCertifyModelVersion added in v1.1.1

func NewMsgCertifyModelVersion(
	signer string,
	softwareVersion uint32,
	softwareVersionString string,
	vid int32,
	pid int32,
) *types.MsgCertifyModel

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 NewMsgDeleteModel added in v1.1.1

func NewMsgDeleteModel(vid int32, pid int32, signer string) *modeltypes.MsgDeleteModel

func NewMsgDeleteModelVersion added in v1.1.1

func NewMsgDeleteModelVersion(vid int32, pid int32, softwareVersion uint32, signer string) *modeltypes.MsgDeleteModelVersion

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 UpdateByVendorWithProductIDs added in v1.4.0

func UpdateByVendorWithProductIDs(suite *utils.TestSuite)

func UpdateModel

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

func UpdateModelByVendorWithNonAssociatedProductIDs added in v1.4.0

func UpdateModelByVendorWithNonAssociatedProductIDs(suite *utils.TestSuite)

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