func ErrIDAIssuedBefore() sdk.Error {
	return types.NewError(
		types.CodeIDAIssuedBefore, fmt.Sprintf("IDA has been issued"))
}
ErrIDAIssuedBefore - ida has been issued before.
package types
import (
	"fmt"
	sdk "github.com/cosmos/cosmos-sdk/types"
	"github.com/lino-network/lino/types"
)
func ErrAccountNotFound() sdk.Error {
	return types.NewError(types.CodeAccountNotFound, fmt.Sprintf("account not found"))
}
func ErrDeveloperAlreadyExist(username types.AccountKey) sdk.Error {
	return types.NewError(types.CodeDeveloperAlreadyExist, fmt.Sprintf("developer %v already exist", username))
}
func ErrDeveloperNotFound() sdk.Error {
	return types.NewError(types.CodeDeveloperNotFound, fmt.Sprintf("developer not found"))
}
func ErrInsufficientDeveloperDeposit() sdk.Error {
	return types.NewError(types.CodeInsufficientDeveloperDeposit, fmt.Sprintf("developer deposit(stake-in) not enough"))
}
func ErrInvalidUsername() sdk.Error {
	return types.NewError(types.CodeInvalidUsername, fmt.Sprintf("Invalid Username"))
}
func ErrInvalidWebsite() sdk.Error {
	return types.NewError(types.CodeInvalidWebsite, fmt.Sprintf("Invalid website"))
}
func ErrInvalidDescription() sdk.Error {
	return types.NewError(types.CodeInvalidDescription, fmt.Sprintf("Invalid description"))
}
func ErrInvalidAppMetadata() sdk.Error {
	return types.NewError(types.CodeInvalidAppMetadata, fmt.Sprintf("Invalid metadata"))
}
func ErrInvalidAuthorizedApp() sdk.Error {
	return types.NewError(types.CodeInvalidAuthorizedApp, fmt.Sprintf("invalid authorized app"))
}
func ErrInvalidValidityPeriod() sdk.Error {
	return types.NewError(types.CodeInvalidValidityPeriod, fmt.Sprintf("invalid grant validity period"))
}
func ErrGrantPermissionTooHigh() sdk.Error {
	return types.NewError(types.CodeGrantPermissionTooHigh, fmt.Sprintf("grant permission is too high"))
}
func ErrInvalidGrantPermission() sdk.Error {
	return types.NewError(types.CodeInvalidGrantPermission, fmt.Sprintf("grant permission is invalid"))
}
func ErrQueryFailed() sdk.Error {
	return types.NewError(types.CodeDeveloperQueryFailed, fmt.Sprintf("query developer store failed"))
}
func ErrInvalidReserveAmount(amount types.Coin) sdk.Error {
	return types.NewError(
		types.CodeInvalidReserveAmount, fmt.Sprintf("reserve amount is invalid: %s", amount.String()))
}
func ErrInvalidVoterDuty() sdk.Error {
	return types.NewError(
		types.CodeInvalidVoterDuty, fmt.Sprintf("user's duty is not voter"))
}
func ErrInvalidUserRole() sdk.Error {
	return types.NewError(
		types.CodeInvalidUserRole, fmt.Sprintf("user role is not valid to become an app"))
}
func ErrInvalidIDAName() sdk.Error {
	return types.NewError(
		types.CodeInvalidIDAName, fmt.Sprintf("ida name must be all uppercased letter, 3 to 10"))
}
func ErrInvalidIDAPrice() sdk.Error {
	return types.NewError(
		types.CodeInvalidIDAPrice, fmt.Sprintf("ida price must be [1,1000] int"))
}
func ErrIDATransferSelf() sdk.Error {
	return types.NewError(
		types.CodeIDATransferSelf, fmt.Sprintf("ida transfer receiver and sender are the same"))
}