module

package
v0.2.0-b4 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 2 Imported by: 7

Documentation

Index

Constants

View Source
const (
	// ModuleName is the module name constant used in many places
	ModuleName = "escrow"

	// StoreKey is the store key string for deployment
	StoreKey = ModuleName

	// RouterKey is the message route for deployment
	RouterKey = ModuleName
)

Variables

View Source
var (
	ErrAccountExists            = sdkerrors.RegisterWithGRPCCode(ModuleName, errAccountExists, codes.AlreadyExists, "account exists")
	ErrAccountClosed            = sdkerrors.RegisterWithGRPCCode(ModuleName, errAccountClosed, codes.FailedPrecondition, "account closed")
	ErrAccountNotFound          = sdkerrors.RegisterWithGRPCCode(ModuleName, errAccountNotFound, codes.NotFound, "account not found")
	ErrAccountOverdrawn         = sdkerrors.RegisterWithGRPCCode(ModuleName, errAccountOverdrawn, codes.FailedPrecondition, "account overdrawn")
	ErrInvalidDenomination      = sdkerrors.RegisterWithGRPCCode(ModuleName, errInvalidDenomination, codes.InvalidArgument, "invalid denomination")
	ErrPaymentExists            = sdkerrors.RegisterWithGRPCCode(ModuleName, errPaymentExists, codes.AlreadyExists, "payment exists")
	ErrPaymentClosed            = sdkerrors.RegisterWithGRPCCode(ModuleName, errPaymentClosed, codes.FailedPrecondition, "payment closed")
	ErrPaymentNotFound          = sdkerrors.RegisterWithGRPCCode(ModuleName, errPaymentNotFound, codes.NotFound, "payment not found")
	ErrPaymentRateZero          = sdkerrors.RegisterWithGRPCCode(ModuleName, errPaymentRateZero, codes.InvalidArgument, "payment rate zero")
	ErrInvalidPayment           = sdkerrors.RegisterWithGRPCCode(ModuleName, errInvalidPayment, codes.InvalidArgument, "invalid payment")
	ErrInvalidSettlement        = sdkerrors.RegisterWithGRPCCode(ModuleName, errInvalidSettlement, codes.InvalidArgument, "invalid settlement")
	ErrInvalidID                = sdkerrors.RegisterWithGRPCCode(ModuleName, errInvalidID, codes.InvalidArgument, "invalid ID")
	ErrInvalidAccount           = sdkerrors.RegisterWithGRPCCode(ModuleName, errInvalidAccount, codes.InvalidArgument, "invalid account")
	ErrInvalidAccountDepositor  = sdkerrors.RegisterWithGRPCCode(ModuleName, errInvalidAccountDepositor, codes.InvalidArgument, "invalid account depositor")
	ErrUnauthorizedDepositScope = sdkerrors.RegisterWithGRPCCode(ModuleName, errUnauthorizedDepositScope, codes.PermissionDenied, "unauthorized deposit scope")
	ErrInvalidDeposit           = sdkerrors.RegisterWithGRPCCode(ModuleName, errInvalidDeposit, codes.InvalidArgument, "invalid deposit")
	ErrInvalidAuthzScope        = sdkerrors.RegisterWithGRPCCode(ModuleName, errInvalidAuthzScope, codes.InvalidArgument, "invalid authz scope")
)

Functions

func AccountKeyPrefix

func AccountKeyPrefix() []byte

func PaymentKeyPrefix

func PaymentKeyPrefix() []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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