types

package
v1.11.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 41 Imported by: 2

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// EventAttributeDenomKey is the attribute key for a marker.
	EventAttributeDenomKey string = "denom"

	// EventTypeDestroy emitted when a marker is deleted during abci-begin_event
	EventTypeDestroy string = "marker_destroyed"

	// EventTelemetryLabelAddress address label for telemetry metrics
	EventTelemetryLabelAddress string = "address"
	// EventTelemetryLabelToAddress to address label for telemetry metrics
	EventTelemetryLabelToAddress string = "to_address"
	// EventTelemetryLabelFromAddress from address label for telemetry metrics
	EventTelemetryLabelFromAddress string = "from_address"
	// EventTelemetryLabelCoins coins label for telemetry metrics
	EventTelemetryLabelCoins string = "coins"
	// EventTelemetryLabelDenom denom label for telemetry metrics
	EventTelemetryLabelDenom string = "denom"
	// EventTelemetryLabelManager manager label for telemetry metrics
	EventTelemetryLabelManager string = "manager"
	// EventTelemetryLabelAdministrator administrator label for telemetry metrics
	EventTelemetryLabelAdministrator string = "administrator"
	// EventTelemetryKeyBurn burn telemetry metrics key
	EventTelemetryKeyBurn string = "burn"
	// EventTelemetryKeyMint mint telemetry metrics key
	EventTelemetryKeyMint string = "mint"
	// EventTelemetryKeyTransfer transfer telemetry metrics key
	EventTelemetryKeyTransfer string = "transfer"
	// EventTelemetryKeyWithdraw withdraw telemetry metrics key
	EventTelemetryKeyWithdraw string = "withdraw"
)
View Source
const (
	// ModuleName is the name of the module
	ModuleName = "marker"

	// StoreKey is string representation of the store key for marker
	StoreKey = ModuleName

	// RouterKey to be used for routing msgs
	RouterKey = ModuleName

	// QuerierRoute to be used for queries
	QuerierRoute = ModuleName

	// CoinPoolName to be used for coin pool associated with mint/burn activities.
	CoinPoolName = ModuleName

	// DefaultParamspace is the name used for the parameter subspace for this module.
	DefaultParamspace = ModuleName
)
View Source
const (
	TypeAddMarkerRequest    = "addmarker"
	TypeAddAccessRequest    = "addaccess"
	TypeDeleteAccessRequest = "deleteaccess"
	TypeFinalizeRequest     = "finalize"
	TypeActivateRequest     = "activate"
	TypeCancelRequest       = "cancel"
	TypeDeleteRequest       = "delete"
	TypeMintRequest         = "mint"
	TypeBurnRequest         = "burn"
	TypeWithdrawRequest     = "withdraw"
	TypeTransferRequest     = "transfer"
	TypeSetMetadataRequest  = "setmetadata"
	TypeGrantAllowance      = "grantallowance"
)
View Source
const (
	// DefaultEnableGovernance (true) indicates that governance proposals are allowed for managing markers
	DefaultEnableGovernance = true
	// DefaultMaxTotalSupply is the upper bound to enforce on supply for markers.
	DefaultMaxTotalSupply = uint64(100000000000)
	// DefaultUnrestrictedDenomRegex is a regex that denoms created by normal requests must pass.
	DefaultUnrestrictedDenomRegex = `[a-zA-Z][a-zA-Z0-9\-\.]{2,83}`
)
View Source
const (
	// ProposalTypeAddMarker to add a new marker
	ProposalTypeAddMarker string = "AddMarker"
	// ProposalTypeIncreaseSupply to mint coins
	ProposalTypeIncreaseSupply string = "IncreaseSupply"
	// ProposalTypeDecreaseSupply to burn coins
	ProposalTypeDecreaseSupply string = "DecreaseSupply"
	// ProposalTypeSetAdministrator to set permissions for an account address on marker account
	ProposalTypeSetAdministrator string = "SetAdministrator"
	// ProposalTypeRemoveAdministrator to remove an existing address and all permissions from marker account
	ProposalTypeRemoveAdministrator string = "RemoveAdministrator"
	// ProposalTypeChangeStatus to transition the status of a marker account.
	ProposalTypeChangeStatus string = "ChangeStatus"
	// ProposalTypeWithdrawEscrow is a proposal to withdraw coins from marker escrow and transfer to a specified account
	ProposalTypeWithdrawEscrow string = "WithdrawEscrow"
	// ProposalTypeSetDenomMetadata is a proposal to set denom metatdata.
	ProposalTypeSetDenomMetadata string = "SetDenomMetadata"
)
View Source
const (
	QueryMarkers      = "all" // all instead of markers to prevent uri stuttering  in '/custom/marker/all'
	QueryMarker       = "detail"
	QueryHolders      = "holders"
	QueryMarkerSupply = "supply"
	QueryMarkerEscrow = "escrow"
	QueryMarkerAccess = "accesscontrol"
	QueryMarkerAssets = "assets"
)

Variables

View Source
var (
	ErrInvalidLengthAccessgrant        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccessgrant          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccessgrant = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthAuthz        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuthz          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAuthz = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrEmptyAccessGrantAddress = sdkerrors.Register(ModuleName, 2, "access grant address is empty")
	ErrAccessTypeInvalid       = sdkerrors.Register(ModuleName, 3, "invalid access type")
	ErrDuplicateAccessEntry    = sdkerrors.Register(ModuleName, 4, "access list contains duplicate entry")
	ErrInvalidMarkerStatus     = sdkerrors.Register(ModuleName, 5, "invalid marker status")
	ErrAccessTypeNotGranted    = sdkerrors.Register(ModuleName, 6, "access type not granted")
	ErrMarkerNotFound          = sdkerrors.Register(ModuleName, 7, "marker not found")
)

x/marker module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMarker        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMarker          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMarker = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// ParamStoreKeyEnableGovernance indicates if governance proposal management of markers is enabled
	ParamStoreKeyEnableGovernance = []byte("EnableGovernance")
	// ParamStoreKeyMaxTotalSupply is maximum supply to allow a marker to create
	ParamStoreKeyMaxTotalSupply = []byte("MaxTotalSupply")
	// ParamStoreKeyUnrestrictedDenomRegex is the validation regex for validating denoms supplied by users.
	ParamStoreKeyUnrestrictedDenomRegex = []byte("UnrestrictedDenomRegex")
)
View Source
var (
	ErrInvalidLengthProposals        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposals          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposals = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// SIPrefixSymbol is used to look up the symbol for a SIPrefix enum entry.
	SIPrefixSymbol = map[SIPrefix]string{
		SI_PREFIX_NONE: "",

		SI_PREFIX_DEKA:  "da",
		SI_PREFIX_HECTO: "h",
		SI_PREFIX_KILO:  "k",
		SI_PREFIX_MEGA:  "M",
		SI_PREFIX_GIGA:  "G",
		SI_PREFIX_TERA:  "T",
		SI_PREFIX_PETA:  "P",
		SI_PREFIX_EXA:   "E",
		SI_PREFIX_ZETTA: "Z",
		SI_PREFIX_YOTTA: "Y",

		SI_PREFIX_DECI:  "d",
		SI_PREFIX_CENTI: "c",
		SI_PREFIX_MILLI: "m",
		SI_PREFIX_MICRO: "µ",
		SI_PREFIX_NANO:  "n",
		SI_PREFIX_PICO:  "p",
		SI_PREFIX_FEMTO: "f",
		SI_PREFIX_ATTO:  "a",
		SI_PREFIX_ZEPTO: "z",
		SI_PREFIX_YOCTO: "y",
	}

	// SIPrefixSymbolMap is used to look up the SIPrefix enum entry for a symbol.
	// Some SIPrefix values might appear more than once in this map, e.g. "u" and "µ" are both for SI_PREFIX_MICRO.
	SIPrefixSymbolMap map[string]SIPrefix

	// SIPrefixName is used to look up the name for a SIPrefix enum entry.
	// The values are all lower-case.
	SIPrefixName map[SIPrefix]string

	// SIPrefixSymbolMap is used to look up the SIPrefix enum entry for a name.
	// The keys are all lower-case.
	// Some SIPrefix values might appear more than once in this map, e.g. "" and "none" are both for SI_PREFIX_NONE.
	SIPrefixNameMap map[string]SIPrefix
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Access_name = map[int32]string{
	0: "ACCESS_UNSPECIFIED",
	1: "ACCESS_MINT",
	2: "ACCESS_BURN",
	3: "ACCESS_DEPOSIT",
	4: "ACCESS_WITHDRAW",
	5: "ACCESS_DELETE",
	6: "ACCESS_ADMIN",
	7: "ACCESS_TRANSFER",
}
View Source
var Access_value = map[string]int32{
	"ACCESS_UNSPECIFIED": 0,
	"ACCESS_MINT":        1,
	"ACCESS_BURN":        2,
	"ACCESS_DEPOSIT":     3,
	"ACCESS_WITHDRAW":    4,
	"ACCESS_DELETE":      5,
	"ACCESS_ADMIN":       6,
	"ACCESS_TRANSFER":    7,
}
View Source
var MarkerStatus_name = map[int32]string{
	0: "MARKER_STATUS_UNSPECIFIED",
	1: "MARKER_STATUS_PROPOSED",
	2: "MARKER_STATUS_FINALIZED",
	3: "MARKER_STATUS_ACTIVE",
	4: "MARKER_STATUS_CANCELLED",
	5: "MARKER_STATUS_DESTROYED",
}
View Source
var MarkerStatus_value = map[string]int32{
	"MARKER_STATUS_UNSPECIFIED": 0,
	"MARKER_STATUS_PROPOSED":    1,
	"MARKER_STATUS_FINALIZED":   2,
	"MARKER_STATUS_ACTIVE":      3,
	"MARKER_STATUS_CANCELLED":   4,
	"MARKER_STATUS_DESTROYED":   5,
}
View Source
var (
	// MarkerStoreKeyPrefix prefix for marker-address reference (improves iterator performance over auth accounts)
	MarkerStoreKeyPrefix = []byte{0x02}
)
View Source
var MarkerType_name = map[int32]string{
	0: "MARKER_TYPE_UNSPECIFIED",
	1: "MARKER_TYPE_COIN",
	2: "MARKER_TYPE_RESTRICTED",
}
View Source
var MarkerType_value = map[string]int32{
	"MARKER_TYPE_UNSPECIFIED": 0,
	"MARKER_TYPE_COIN":        1,
	"MARKER_TYPE_RESTRICTED":  2,
}
View Source
var (

	// ModuleCdc references the global x/account module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/account and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var SIPrefix_name = map[int32]string{
	0:   "SI_PREFIX_NONE",
	1:   "SI_PREFIX_DEKA",
	2:   "SI_PREFIX_HECTO",
	3:   "SI_PREFIX_KILO",
	6:   "SI_PREFIX_MEGA",
	9:   "SI_PREFIX_GIGA",
	12:  "SI_PREFIX_TERA",
	15:  "SI_PREFIX_PETA",
	18:  "SI_PREFIX_EXA",
	21:  "SI_PREFIX_ZETTA",
	24:  "SI_PREFIX_YOTTA",
	-1:  "SI_PREFIX_DECI",
	-2:  "SI_PREFIX_CENTI",
	-3:  "SI_PREFIX_MILLI",
	-6:  "SI_PREFIX_MICRO",
	-9:  "SI_PREFIX_NANO",
	-12: "SI_PREFIX_PICO",
	-15: "SI_PREFIX_FEMTO",
	-18: "SI_PREFIX_ATTO",
	-21: "SI_PREFIX_ZEPTO",
	-24: "SI_PREFIX_YOCTO",
}
View Source
var SIPrefix_value = map[string]int32{
	"SI_PREFIX_NONE":  0,
	"SI_PREFIX_DEKA":  1,
	"SI_PREFIX_HECTO": 2,
	"SI_PREFIX_KILO":  3,
	"SI_PREFIX_MEGA":  6,
	"SI_PREFIX_GIGA":  9,
	"SI_PREFIX_TERA":  12,
	"SI_PREFIX_PETA":  15,
	"SI_PREFIX_EXA":   18,
	"SI_PREFIX_ZETTA": 21,
	"SI_PREFIX_YOTTA": 24,
	"SI_PREFIX_DECI":  -1,
	"SI_PREFIX_CENTI": -2,
	"SI_PREFIX_MILLI": -3,
	"SI_PREFIX_MICRO": -6,
	"SI_PREFIX_NANO":  -9,
	"SI_PREFIX_PICO":  -12,
	"SI_PREFIX_FEMTO": -15,
	"SI_PREFIX_ATTO":  -18,
	"SI_PREFIX_ZEPTO": -21,
	"SI_PREFIX_YOCTO": -24,
}

Functions

func GetRootCoinName added in v1.0.0

func GetRootCoinName(md banktypes.Metadata) string

GetRootCoinName gathers all the names (Denom or Alias) and tries to find a common root name for them all. An empty string indicates that there is no common root among all the names.

func MarkerAddress

func MarkerAddress(denom string) (sdk.AccAddress, error)

MarkerAddress returns the module account address for the given denomination

func MarkerStoreKey

func MarkerStoreKey(addr sdk.AccAddress) []byte

MarkerStoreKey turn an address to key used to get it from the account store

func MustGetMarkerAddress

func MustGetMarkerAddress(denom string) sdk.AccAddress

MustGetMarkerAddress returns the module account address for the given denomination, panics on error

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for marker module

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers implementations for the tx messages

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers all the necessary types and interfaces for the account module.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SplitMarkerStoreKey

func SplitMarkerStoreKey(key []byte) sdk.AccAddress

SplitMarkerStoreKey returns an account address given a store key, uses the length prefix to determine length of AccAddress

func ValidMarkerStatus

func ValidMarkerStatus(markerStatus MarkerStatus) bool

ValidMarkerStatus returns true if the marker status is valid and false otherwise.

func ValidateDenomMetadataBasic added in v1.0.0

func ValidateDenomMetadataBasic(md banktypes.Metadata) error

ValidateDenomMetadataBasic performs validation of the denom metadata fields. It checks that:

  • Base and Display denominations are valid coin denominations
  • Base and Display denominations are present in the DenomUnit slice
  • The first denomination unit entry is the Base denomination and has Exponent 0
  • Denomination units are sorted in ascending order by Exponent
  • Description is no more than 200 characters.
  • All Denomination unit Denom and Alias strings contain the same root name.
  • That root name is a valid coin denomination.
  • All Denomination unit Denom and Alias strings are valid coin denominations
  • All Denomination unit Denom and Alias strings are a SI prefix + the root name (or just the root name).
  • All Denomination unit Denom and Alias strings are unique.
  • All Denomination unit Aliases have the same SI prefix as their Denom (but maybe different forms, e.g. name vs symbol)
  • All Denomination unit Exponents are {SI prefix exponent of the Denom} - {SI prefix exponent of the base}.

func ValidateGrants

func ValidateGrants(grants ...AccessGrant) error

ValidateGrants checks a collection of grants and returns any errors encountered or nil

func ValidateGrantsForMarkerType added in v1.7.0

func ValidateGrantsForMarkerType(markerType MarkerType, grants ...AccessGrant) error

ValidateGrantsForMarkerType checks a collection of grants and returns any errors encountered or nil

Types

type Access

type Access int32

Access defines the different types of permissions that a marker supports granting to an address.

const (
	// ACCESS_UNSPECIFIED defines a no-op vote option.
	Access_Unknown Access = 0
	// ACCESS_MINT is the ability to increase the supply of a marker
	Access_Mint Access = 1
	// ACCESS_BURN is the ability to decrease the supply of the marker using coin held by the marker.
	Access_Burn Access = 2
	// ACCESS_DEPOSIT is the ability to set a marker reference to this marker in the metadata/scopes module
	Access_Deposit Access = 3
	// ACCESS_WITHDRAW is the ability to remove marker references to this marker in from metadata/scopes or
	// transfer coin from this marker account to another account.
	Access_Withdraw Access = 4
	// ACCESS_DELETE is the ability to move a proposed, finalized or active marker into the cancelled state. This
	// access also allows cancelled markers to be marked for deletion
	Access_Delete Access = 5
	// ACCESS_ADMIN is the ability to add access grants for accounts to the list of marker permissions.
	Access_Admin Access = 6
	// ACCESS_TRANSFER is the ability to invoke a send operation using the marker module to facilitate exchange.
	// This access right is only supported on RESTRICTED markers.
	Access_Transfer Access = 7
)

func AccessByName

func AccessByName(name string) Access

AccessByName returns the Access value given a name of the access type. Normalizes input with proper ACCESS_ prefix and case of name.

func (Access) EnumDescriptor

func (Access) EnumDescriptor() ([]byte, []int)

func (Access) IsOneOf added in v1.7.0

func (right Access) IsOneOf(rights ...Access) bool

IsOneOf returns true if the specified Access right is any of the provided options.

func (Access) String

func (x Access) String() string

type AccessGrant

type AccessGrant struct {
	Address     string     `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Permissions AccessList `` /* 140-byte string literal not displayed */
}

AccessGrant associates a colelction of permisssions with an address for delegated marker account control.

func GrantsForAddress

func GrantsForAddress(account sdk.AccAddress, grants ...AccessGrant) AccessGrant

GrantsForAddress return

func NewAccessGrant

func NewAccessGrant(address sdk.AccAddress, access AccessList) *AccessGrant

NewAccessGrant creates a new AccessGrant object

func (*AccessGrant) AddAccess

func (ag *AccessGrant) AddAccess(access Access) error

AddAccess adds the specified access type to the current access grant

func (*AccessGrant) Descriptor

func (*AccessGrant) Descriptor() ([]byte, []int)

func (*AccessGrant) Equal

func (this *AccessGrant) Equal(that interface{}) bool

func (AccessGrant) GetAccessList

func (ag AccessGrant) GetAccessList() AccessList

GetAccessList returns the current list of access this grant holds

func (AccessGrant) GetAddress

func (ag AccessGrant) GetAddress() sdk.AccAddress

GetAddress returns the account address the access grant belongs to

func (AccessGrant) HasAccess

func (ag AccessGrant) HasAccess(access Access) bool

HasAccess returns true if the current grant contains the specified access type

func (*AccessGrant) Marshal

func (m *AccessGrant) Marshal() (dAtA []byte, err error)

func (*AccessGrant) MarshalTo

func (m *AccessGrant) MarshalTo(dAtA []byte) (int, error)

func (*AccessGrant) MarshalToSizedBuffer

func (m *AccessGrant) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AccessGrant) MergeAdd

func (ag *AccessGrant) MergeAdd(other AccessGrant) error

MergeAdd looks for any missing permissions in the given grant and adds them to this instance.

func (*AccessGrant) MergeRemove

func (ag *AccessGrant) MergeRemove(other AccessGrant) error

MergeRemove looks for permissions in this instance that exist in the given grant and removes them.

func (*AccessGrant) ProtoMessage

func (*AccessGrant) ProtoMessage()

func (*AccessGrant) RemoveAccess

func (ag *AccessGrant) RemoveAccess(access Access) error

RemoveAccess removes the specified access type from the current access grant

func (*AccessGrant) Reset

func (m *AccessGrant) Reset()

func (*AccessGrant) Size

func (m *AccessGrant) Size() (n int)

func (AccessGrant) String

func (ag AccessGrant) String() string

String implements stringer

func (*AccessGrant) Unmarshal

func (m *AccessGrant) Unmarshal(dAtA []byte) error

func (AccessGrant) Validate

func (ag AccessGrant) Validate() error

Validate performs checks to ensure this acccess grant is properly formed.

func (*AccessGrant) XXX_DiscardUnknown

func (m *AccessGrant) XXX_DiscardUnknown()

func (*AccessGrant) XXX_Marshal

func (m *AccessGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccessGrant) XXX_Merge

func (m *AccessGrant) XXX_Merge(src proto.Message)

func (*AccessGrant) XXX_Size

func (m *AccessGrant) XXX_Size() int

func (*AccessGrant) XXX_Unmarshal

func (m *AccessGrant) XXX_Unmarshal(b []byte) error

type AccessGrantI

type AccessGrantI interface {
	proto.Message
	Validate() error
	GetAddress() sdk.AccAddress

	HasAccess(Access) bool
	GetAccessList() []Access

	AddAccess(Access) error
	RemoveAccess(Access) error

	MergeAdd(AccessGrant) error
	MergeRemove(AccessGrant) error
}

AccessGrantI defines an interface for interacting with roles assigned to a given address.

type AccessList

type AccessList = []Access

AccessList is an array of access permissions

func AccessListByNames

func AccessListByNames(names string) AccessList

AccessListByNames takes a comma separate list of names and returns an AccessList for the values

type AccountKeeper

type AccountKeeper interface {
	IterateAccounts(ctx sdk.Context, process func(authtypes.AccountI) (stop bool))
	GetAccount(sdk.Context, sdk.AccAddress) authtypes.AccountI
	SetAccount(sdk.Context, authtypes.AccountI)
	NewAccount(sdk.Context, authtypes.AccountI) authtypes.AccountI
}

AccountKeeper defines the expected account keeper (noalias)

type AddMarkerProposal added in v0.2.1

type AddMarkerProposal struct {
	Title                  string                                  `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description            string                                  `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Amount                 github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
	Manager                string                                  `protobuf:"bytes,4,opt,name=manager,proto3" json:"manager,omitempty"`
	Status                 MarkerStatus                            `protobuf:"varint,5,opt,name=status,proto3,enum=provenance.marker.v1.MarkerStatus" json:"status,omitempty"`
	MarkerType             MarkerType                              `` /* 129-byte string literal not displayed */
	AccessList             []AccessGrant                           `protobuf:"bytes,7,rep,name=access_list,json=accessList,proto3" json:"access_list"`
	SupplyFixed            bool                                    `protobuf:"varint,8,opt,name=supply_fixed,json=supplyFixed,proto3" json:"supply_fixed,omitempty"`
	AllowGovernanceControl bool                                    `` /* 130-byte string literal not displayed */
}

AddMarkerProposal defines defines a governance proposal to create a new marker

func NewAddMarkerProposal added in v0.2.1

func NewAddMarkerProposal(
	title,
	description string,
	denom string,
	totalSupply sdk.Int,
	manager sdk.AccAddress,
	status MarkerStatus,
	markerType MarkerType,
	access []AccessGrant,
	fixed bool,
	allowGov bool,
) *AddMarkerProposal

NewAddMarkerProposal creates a new proposal

func (*AddMarkerProposal) Descriptor added in v0.2.1

func (*AddMarkerProposal) Descriptor() ([]byte, []int)

func (*AddMarkerProposal) Equal added in v0.2.1

func (this *AddMarkerProposal) Equal(that interface{}) bool

func (*AddMarkerProposal) GetAccessList added in v0.2.1

func (m *AddMarkerProposal) GetAccessList() []AccessGrant

func (*AddMarkerProposal) GetAllowGovernanceControl added in v0.2.1

func (m *AddMarkerProposal) GetAllowGovernanceControl() bool

func (*AddMarkerProposal) GetDescription added in v0.2.1

func (m *AddMarkerProposal) GetDescription() string

func (*AddMarkerProposal) GetManager added in v0.2.1

func (m *AddMarkerProposal) GetManager() string

func (*AddMarkerProposal) GetMarkerType added in v0.2.1

func (m *AddMarkerProposal) GetMarkerType() MarkerType

func (*AddMarkerProposal) GetStatus added in v0.2.1

func (m *AddMarkerProposal) GetStatus() MarkerStatus

func (*AddMarkerProposal) GetSupplyFixed added in v0.2.1

func (m *AddMarkerProposal) GetSupplyFixed() bool

func (*AddMarkerProposal) GetTitle added in v0.2.1

func (m *AddMarkerProposal) GetTitle() string

func (*AddMarkerProposal) Marshal added in v0.2.1

func (m *AddMarkerProposal) Marshal() (dAtA []byte, err error)

func (*AddMarkerProposal) MarshalTo added in v0.2.1

func (m *AddMarkerProposal) MarshalTo(dAtA []byte) (int, error)

func (*AddMarkerProposal) MarshalToSizedBuffer added in v0.2.1

func (m *AddMarkerProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (AddMarkerProposal) ProposalRoute added in v0.2.1

func (amp AddMarkerProposal) ProposalRoute() string

func (AddMarkerProposal) ProposalType added in v0.2.1

func (amp AddMarkerProposal) ProposalType() string

func (*AddMarkerProposal) ProtoMessage added in v0.2.1

func (*AddMarkerProposal) ProtoMessage()

func (*AddMarkerProposal) Reset added in v0.2.1

func (m *AddMarkerProposal) Reset()

func (*AddMarkerProposal) Size added in v0.2.1

func (m *AddMarkerProposal) Size() (n int)

func (AddMarkerProposal) String added in v0.2.1

func (amp AddMarkerProposal) String() string

func (*AddMarkerProposal) Unmarshal added in v0.2.1

func (m *AddMarkerProposal) Unmarshal(dAtA []byte) error

func (AddMarkerProposal) ValidateBasic added in v0.2.1

func (amp AddMarkerProposal) ValidateBasic() error

func (*AddMarkerProposal) XXX_DiscardUnknown added in v0.2.1

func (m *AddMarkerProposal) XXX_DiscardUnknown()

func (*AddMarkerProposal) XXX_Marshal added in v0.2.1

func (m *AddMarkerProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddMarkerProposal) XXX_Merge added in v0.2.1

func (m *AddMarkerProposal) XXX_Merge(src proto.Message)

func (*AddMarkerProposal) XXX_Size added in v0.2.1

func (m *AddMarkerProposal) XXX_Size() int

func (*AddMarkerProposal) XXX_Unmarshal added in v0.2.1

func (m *AddMarkerProposal) XXX_Unmarshal(b []byte) error

type Balance

type Balance struct {
	// address is the address of the balance holder.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// coins defines the different coins this balance holds.
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}

Balance defines an account address and balance pair used in queries for accounts holding a marker

func (*Balance) Descriptor

func (*Balance) Descriptor() ([]byte, []int)

func (*Balance) Marshal

func (m *Balance) Marshal() (dAtA []byte, err error)

func (*Balance) MarshalTo

func (m *Balance) MarshalTo(dAtA []byte) (int, error)

func (*Balance) MarshalToSizedBuffer

func (m *Balance) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Balance) ProtoMessage

func (*Balance) ProtoMessage()

func (*Balance) Reset

func (m *Balance) Reset()

func (*Balance) Size

func (m *Balance) Size() (n int)

func (*Balance) String

func (m *Balance) String() string

func (*Balance) Unmarshal

func (m *Balance) Unmarshal(dAtA []byte) error

func (*Balance) XXX_DiscardUnknown

func (m *Balance) XXX_DiscardUnknown()

func (*Balance) XXX_Marshal

func (m *Balance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Balance) XXX_Merge

func (m *Balance) XXX_Merge(src proto.Message)

func (*Balance) XXX_Size

func (m *Balance) XXX_Size() int

func (*Balance) XXX_Unmarshal

func (m *Balance) XXX_Unmarshal(b []byte) error

type BankKeeper

type BankKeeper interface {
	//
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin

	// Used in the Get all marker Holders Query function
	IterateAllBalances(ctx sdk.Context, cb func(address sdk.AccAddress, coin sdk.Coin) (stop bool))

	// Required for moving coins between Marker Module account and marker accounts
	InputOutputCoins(ctx sdk.Context, inputs []types.Input, outputs []types.Output) error

	// Used by RESTRICTED_COIN markers for transfer between accounts.
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error

	// used for unit-test only.
	SetBalance(ctx sdk.Context, addr sdk.AccAddress, balance sdk.Coin) error

	// These two Params methods are required for controlling SendEnabled flags.
	GetParams(ctx sdk.Context) types.Params
	SetParams(ctx sdk.Context, params types.Params)

	SendEnabledCoin(ctx sdk.Context, coin sdk.Coin) bool
	SendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error

	BlockedAddr(addr sdk.AccAddress) bool

	// Keeper ---------
	GetSupply(ctx sdk.Context, denom string) sdk.Coin

	GetDenomMetaData(ctx sdk.Context, denom string) types.Metadata
	SetDenomMetaData(ctx sdk.Context, denomMetaData types.Metadata)
	IterateAllDenomMetaData(ctx sdk.Context, cb func(types.Metadata) bool)

	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
}

BankKeeper defines the expected bank keeper (keeper, sendkeeper, viewkeeper) (noalias)

type ChangeStatusProposal

type ChangeStatusProposal struct {
	Title       string       `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string       `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Denom       string       `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
	NewStatus   MarkerStatus `` /* 128-byte string literal not displayed */
}

ChangeStatusProposal defines a governance proposal to administer a marker to change its status

func NewChangeStatusProposal

func NewChangeStatusProposal(title, description, denom string, status MarkerStatus) *ChangeStatusProposal

func (*ChangeStatusProposal) Descriptor

func (*ChangeStatusProposal) Descriptor() ([]byte, []int)

func (*ChangeStatusProposal) Equal

func (this *ChangeStatusProposal) Equal(that interface{}) bool

func (*ChangeStatusProposal) GetDenom

func (m *ChangeStatusProposal) GetDenom() string

func (*ChangeStatusProposal) GetDescription

func (m *ChangeStatusProposal) GetDescription() string

func (*ChangeStatusProposal) GetNewStatus

func (m *ChangeStatusProposal) GetNewStatus() MarkerStatus

func (*ChangeStatusProposal) GetTitle

func (m *ChangeStatusProposal) GetTitle() string

func (*ChangeStatusProposal) Marshal

func (m *ChangeStatusProposal) Marshal() (dAtA []byte, err error)

func (*ChangeStatusProposal) MarshalTo

func (m *ChangeStatusProposal) MarshalTo(dAtA []byte) (int, error)

func (*ChangeStatusProposal) MarshalToSizedBuffer

func (m *ChangeStatusProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (ChangeStatusProposal) ProposalRoute

func (csp ChangeStatusProposal) ProposalRoute() string

func (ChangeStatusProposal) ProposalType

func (csp ChangeStatusProposal) ProposalType() string

func (*ChangeStatusProposal) ProtoMessage

func (*ChangeStatusProposal) ProtoMessage()

func (*ChangeStatusProposal) Reset

func (m *ChangeStatusProposal) Reset()

func (*ChangeStatusProposal) Size

func (m *ChangeStatusProposal) Size() (n int)

func (ChangeStatusProposal) String

func (csp ChangeStatusProposal) String() string

func (*ChangeStatusProposal) Unmarshal

func (m *ChangeStatusProposal) Unmarshal(dAtA []byte) error

func (ChangeStatusProposal) ValidateBasic

func (csp ChangeStatusProposal) ValidateBasic() error

func (*ChangeStatusProposal) XXX_DiscardUnknown

func (m *ChangeStatusProposal) XXX_DiscardUnknown()

func (*ChangeStatusProposal) XXX_Marshal

func (m *ChangeStatusProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChangeStatusProposal) XXX_Merge

func (m *ChangeStatusProposal) XXX_Merge(src proto.Message)

func (*ChangeStatusProposal) XXX_Size

func (m *ChangeStatusProposal) XXX_Size() int

func (*ChangeStatusProposal) XXX_Unmarshal

func (m *ChangeStatusProposal) XXX_Unmarshal(b []byte) error

type EventDenomUnit added in v1.2.0

type EventDenomUnit struct {
	Denom    string   `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Exponent string   `protobuf:"bytes,2,opt,name=exponent,proto3" json:"exponent,omitempty"`
	Aliases  []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"`
}

EventDenomUnit denom units for set denom metadata event

func (*EventDenomUnit) Descriptor added in v1.2.0

func (*EventDenomUnit) Descriptor() ([]byte, []int)

func (*EventDenomUnit) GetAliases added in v1.2.0

func (m *EventDenomUnit) GetAliases() []string

func (*EventDenomUnit) GetDenom added in v1.2.0

func (m *EventDenomUnit) GetDenom() string

func (*EventDenomUnit) GetExponent added in v1.2.0

func (m *EventDenomUnit) GetExponent() string

func (*EventDenomUnit) Marshal added in v1.2.0

func (m *EventDenomUnit) Marshal() (dAtA []byte, err error)

func (*EventDenomUnit) MarshalTo added in v1.2.0

func (m *EventDenomUnit) MarshalTo(dAtA []byte) (int, error)

func (*EventDenomUnit) MarshalToSizedBuffer added in v1.2.0

func (m *EventDenomUnit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventDenomUnit) ProtoMessage added in v1.2.0

func (*EventDenomUnit) ProtoMessage()

func (*EventDenomUnit) Reset added in v1.2.0

func (m *EventDenomUnit) Reset()

func (*EventDenomUnit) Size added in v1.2.0

func (m *EventDenomUnit) Size() (n int)

func (*EventDenomUnit) String added in v1.2.0

func (m *EventDenomUnit) String() string

func (*EventDenomUnit) Unmarshal added in v1.2.0

func (m *EventDenomUnit) Unmarshal(dAtA []byte) error

func (*EventDenomUnit) XXX_DiscardUnknown added in v1.2.0

func (m *EventDenomUnit) XXX_DiscardUnknown()

func (*EventDenomUnit) XXX_Marshal added in v1.2.0

func (m *EventDenomUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventDenomUnit) XXX_Merge added in v1.2.0

func (m *EventDenomUnit) XXX_Merge(src proto.Message)

func (*EventDenomUnit) XXX_Size added in v1.2.0

func (m *EventDenomUnit) XXX_Size() int

func (*EventDenomUnit) XXX_Unmarshal added in v1.2.0

func (m *EventDenomUnit) XXX_Unmarshal(b []byte) error

type EventMarkerAccess added in v1.2.0

type EventMarkerAccess struct {
	Address     string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Permissions []string `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"`
}

EventMarkerAccess event access permissions for address

func (*EventMarkerAccess) Descriptor added in v1.2.0

func (*EventMarkerAccess) Descriptor() ([]byte, []int)

func (*EventMarkerAccess) GetAddress added in v1.2.0

func (m *EventMarkerAccess) GetAddress() string

func (*EventMarkerAccess) GetPermissions added in v1.2.0

func (m *EventMarkerAccess) GetPermissions() []string

func (*EventMarkerAccess) Marshal added in v1.2.0

func (m *EventMarkerAccess) Marshal() (dAtA []byte, err error)

func (*EventMarkerAccess) MarshalTo added in v1.2.0

func (m *EventMarkerAccess) MarshalTo(dAtA []byte) (int, error)

func (*EventMarkerAccess) MarshalToSizedBuffer added in v1.2.0

func (m *EventMarkerAccess) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMarkerAccess) ProtoMessage added in v1.2.0

func (*EventMarkerAccess) ProtoMessage()

func (*EventMarkerAccess) Reset added in v1.2.0

func (m *EventMarkerAccess) Reset()

func (*EventMarkerAccess) Size added in v1.2.0

func (m *EventMarkerAccess) Size() (n int)

func (*EventMarkerAccess) String added in v1.2.0

func (m *EventMarkerAccess) String() string

func (*EventMarkerAccess) Unmarshal added in v1.2.0

func (m *EventMarkerAccess) Unmarshal(dAtA []byte) error

func (*EventMarkerAccess) XXX_DiscardUnknown added in v1.2.0

func (m *EventMarkerAccess) XXX_DiscardUnknown()

func (*EventMarkerAccess) XXX_Marshal added in v1.2.0

func (m *EventMarkerAccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMarkerAccess) XXX_Merge added in v1.2.0

func (m *EventMarkerAccess) XXX_Merge(src proto.Message)

func (*EventMarkerAccess) XXX_Size added in v1.2.0

func (m *EventMarkerAccess) XXX_Size() int

func (*EventMarkerAccess) XXX_Unmarshal added in v1.2.0

func (m *EventMarkerAccess) XXX_Unmarshal(b []byte) error

type EventMarkerActivate added in v1.2.0

type EventMarkerActivate struct {
	Denom         string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

EventMarkerActivate event emitted when marker is activated

func NewEventMarkerActivate added in v1.2.0

func NewEventMarkerActivate(denom string, administrator string) *EventMarkerActivate

func (*EventMarkerActivate) Descriptor added in v1.2.0

func (*EventMarkerActivate) Descriptor() ([]byte, []int)

func (*EventMarkerActivate) GetAdministrator added in v1.2.0

func (m *EventMarkerActivate) GetAdministrator() string

func (*EventMarkerActivate) GetDenom added in v1.2.0

func (m *EventMarkerActivate) GetDenom() string

func (*EventMarkerActivate) Marshal added in v1.2.0

func (m *EventMarkerActivate) Marshal() (dAtA []byte, err error)

func (*EventMarkerActivate) MarshalTo added in v1.2.0

func (m *EventMarkerActivate) MarshalTo(dAtA []byte) (int, error)

func (*EventMarkerActivate) MarshalToSizedBuffer added in v1.2.0

func (m *EventMarkerActivate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMarkerActivate) ProtoMessage added in v1.2.0

func (*EventMarkerActivate) ProtoMessage()

func (*EventMarkerActivate) Reset added in v1.2.0

func (m *EventMarkerActivate) Reset()

func (*EventMarkerActivate) Size added in v1.2.0

func (m *EventMarkerActivate) Size() (n int)

func (*EventMarkerActivate) String added in v1.2.0

func (m *EventMarkerActivate) String() string

func (*EventMarkerActivate) Unmarshal added in v1.2.0

func (m *EventMarkerActivate) Unmarshal(dAtA []byte) error

func (*EventMarkerActivate) XXX_DiscardUnknown added in v1.2.0

func (m *EventMarkerActivate) XXX_DiscardUnknown()

func (*EventMarkerActivate) XXX_Marshal added in v1.2.0

func (m *EventMarkerActivate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMarkerActivate) XXX_Merge added in v1.2.0

func (m *EventMarkerActivate) XXX_Merge(src proto.Message)

func (*EventMarkerActivate) XXX_Size added in v1.2.0

func (m *EventMarkerActivate) XXX_Size() int

func (*EventMarkerActivate) XXX_Unmarshal added in v1.2.0

func (m *EventMarkerActivate) XXX_Unmarshal(b []byte) error

type EventMarkerAdd added in v1.2.0

type EventMarkerAdd struct {
	Denom      string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Amount     string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Status     string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	Manager    string `protobuf:"bytes,4,opt,name=manager,proto3" json:"manager,omitempty"`
	MarkerType string `protobuf:"bytes,5,opt,name=marker_type,json=markerType,proto3" json:"marker_type,omitempty"`
}

EventMarkerAdd event emitted when marker is added

func NewEventMarkerAdd added in v1.2.0

func NewEventMarkerAdd(denom string, amount string, status string, manager string, markerType string) *EventMarkerAdd

func (*EventMarkerAdd) Descriptor added in v1.2.0

func (*EventMarkerAdd) Descriptor() ([]byte, []int)

func (*EventMarkerAdd) GetAmount added in v1.2.0

func (m *EventMarkerAdd) GetAmount() string

func (*EventMarkerAdd) GetDenom added in v1.2.0

func (m *EventMarkerAdd) GetDenom() string

func (*EventMarkerAdd) GetManager added in v1.2.0

func (m *EventMarkerAdd) GetManager() string

func (*EventMarkerAdd) GetMarkerType added in v1.2.0

func (m *EventMarkerAdd) GetMarkerType() string

func (*EventMarkerAdd) GetStatus added in v1.2.0

func (m *EventMarkerAdd) GetStatus() string

func (*EventMarkerAdd) Marshal added in v1.2.0

func (m *EventMarkerAdd) Marshal() (dAtA []byte, err error)

func (*EventMarkerAdd) MarshalTo added in v1.2.0

func (m *EventMarkerAdd) MarshalTo(dAtA []byte) (int, error)

func (*EventMarkerAdd) MarshalToSizedBuffer added in v1.2.0

func (m *EventMarkerAdd) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMarkerAdd) ProtoMessage added in v1.2.0

func (*EventMarkerAdd) ProtoMessage()

func (*EventMarkerAdd) Reset added in v1.2.0

func (m *EventMarkerAdd) Reset()

func (*EventMarkerAdd) Size added in v1.2.0

func (m *EventMarkerAdd) Size() (n int)

func (*EventMarkerAdd) String added in v1.2.0

func (m *EventMarkerAdd) String() string

func (*EventMarkerAdd) Unmarshal added in v1.2.0

func (m *EventMarkerAdd) Unmarshal(dAtA []byte) error

func (*EventMarkerAdd) XXX_DiscardUnknown added in v1.2.0

func (m *EventMarkerAdd) XXX_DiscardUnknown()

func (*EventMarkerAdd) XXX_Marshal added in v1.2.0

func (m *EventMarkerAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMarkerAdd) XXX_Merge added in v1.2.0

func (m *EventMarkerAdd) XXX_Merge(src proto.Message)

func (*EventMarkerAdd) XXX_Size added in v1.2.0

func (m *EventMarkerAdd) XXX_Size() int

func (*EventMarkerAdd) XXX_Unmarshal added in v1.2.0

func (m *EventMarkerAdd) XXX_Unmarshal(b []byte) error

type EventMarkerAddAccess added in v1.2.0

type EventMarkerAddAccess struct {
	Access        EventMarkerAccess `protobuf:"bytes,1,opt,name=access,proto3" json:"access"`
	Denom         string            `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string            `protobuf:"bytes,3,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

EventMarkerAddAccess event emitted when marker access is added

func NewEventMarkerAddAccess added in v1.2.0

func NewEventMarkerAddAccess(accessGrant AccessGrantI, denom string, administrator string) *EventMarkerAddAccess

func (*EventMarkerAddAccess) Descriptor added in v1.2.0

func (*EventMarkerAddAccess) Descriptor() ([]byte, []int)

func (*EventMarkerAddAccess) GetAccess added in v1.2.0

func (m *EventMarkerAddAccess) GetAccess() EventMarkerAccess

func (*EventMarkerAddAccess) GetAdministrator added in v1.2.0

func (m *EventMarkerAddAccess) GetAdministrator() string

func (*EventMarkerAddAccess) GetDenom added in v1.2.0

func (m *EventMarkerAddAccess) GetDenom() string

func (*EventMarkerAddAccess) Marshal added in v1.2.0

func (m *EventMarkerAddAccess) Marshal() (dAtA []byte, err error)

func (*EventMarkerAddAccess) MarshalTo added in v1.2.0

func (m *EventMarkerAddAccess) MarshalTo(dAtA []byte) (int, error)

func (*EventMarkerAddAccess) MarshalToSizedBuffer added in v1.2.0

func (m *EventMarkerAddAccess) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMarkerAddAccess) ProtoMessage added in v1.2.0

func (*EventMarkerAddAccess) ProtoMessage()

func (*EventMarkerAddAccess) Reset added in v1.2.0

func (m *EventMarkerAddAccess) Reset()

func (*EventMarkerAddAccess) Size added in v1.2.0

func (m *EventMarkerAddAccess) Size() (n int)

func (*EventMarkerAddAccess) String added in v1.2.0

func (m *EventMarkerAddAccess) String() string

func (*EventMarkerAddAccess) Unmarshal added in v1.2.0

func (m *EventMarkerAddAccess) Unmarshal(dAtA []byte) error

func (*EventMarkerAddAccess) XXX_DiscardUnknown added in v1.2.0

func (m *EventMarkerAddAccess) XXX_DiscardUnknown()

func (*EventMarkerAddAccess) XXX_Marshal added in v1.2.0

func (m *EventMarkerAddAccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMarkerAddAccess) XXX_Merge added in v1.2.0

func (m *EventMarkerAddAccess) XXX_Merge(src proto.Message)

func (*EventMarkerAddAccess) XXX_Size added in v1.2.0

func (m *EventMarkerAddAccess) XXX_Size() int

func (*EventMarkerAddAccess) XXX_Unmarshal added in v1.2.0

func (m *EventMarkerAddAccess) XXX_Unmarshal(b []byte) error

type EventMarkerBurn added in v1.2.0

type EventMarkerBurn struct {
	Amount        string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Denom         string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string `protobuf:"bytes,3,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

EventMarkerBurn event emitted when coin is burned from marker

func NewEventMarkerBurn added in v1.2.0

func NewEventMarkerBurn(amount string, denom string, administrator string) *EventMarkerBurn

func (*EventMarkerBurn) Descriptor added in v1.2.0

func (*EventMarkerBurn) Descriptor() ([]byte, []int)

func (*EventMarkerBurn) GetAdministrator added in v1.2.0

func (m *EventMarkerBurn) GetAdministrator() string

func (*EventMarkerBurn) GetAmount added in v1.2.0

func (m *EventMarkerBurn) GetAmount() string

func (*EventMarkerBurn) GetDenom added in v1.2.0

func (m *EventMarkerBurn) GetDenom() string

func (*EventMarkerBurn) Marshal added in v1.2.0

func (m *EventMarkerBurn) Marshal() (dAtA []byte, err error)

func (*EventMarkerBurn) MarshalTo added in v1.2.0

func (m *EventMarkerBurn) MarshalTo(dAtA []byte) (int, error)

func (*EventMarkerBurn) MarshalToSizedBuffer added in v1.2.0

func (m *EventMarkerBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMarkerBurn) ProtoMessage added in v1.2.0

func (*EventMarkerBurn) ProtoMessage()

func (*EventMarkerBurn) Reset added in v1.2.0

func (m *EventMarkerBurn) Reset()

func (*EventMarkerBurn) Size added in v1.2.0

func (m *EventMarkerBurn) Size() (n int)

func (*EventMarkerBurn) String added in v1.2.0

func (m *EventMarkerBurn) String() string

func (*EventMarkerBurn) Unmarshal added in v1.2.0

func (m *EventMarkerBurn) Unmarshal(dAtA []byte) error

func (*EventMarkerBurn) XXX_DiscardUnknown added in v1.2.0

func (m *EventMarkerBurn) XXX_DiscardUnknown()

func (*EventMarkerBurn) XXX_Marshal added in v1.2.0

func (m *EventMarkerBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMarkerBurn) XXX_Merge added in v1.2.0

func (m *EventMarkerBurn) XXX_Merge(src proto.Message)

func (*EventMarkerBurn) XXX_Size added in v1.2.0

func (m *EventMarkerBurn) XXX_Size() int

func (*EventMarkerBurn) XXX_Unmarshal added in v1.2.0

func (m *EventMarkerBurn) XXX_Unmarshal(b []byte) error

type EventMarkerCancel added in v1.2.0

type EventMarkerCancel struct {
	Denom         string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

EventMarkerCancel event emitted when marker is cancelled

func NewEventMarkerCancel added in v1.2.0

func NewEventMarkerCancel(denom string, administrator string) *EventMarkerCancel

func (*EventMarkerCancel) Descriptor added in v1.2.0

func (*EventMarkerCancel) Descriptor() ([]byte, []int)

func (*EventMarkerCancel) GetAdministrator added in v1.2.0

func (m *EventMarkerCancel) GetAdministrator() string

func (*EventMarkerCancel) GetDenom added in v1.2.0

func (m *EventMarkerCancel) GetDenom() string

func (*EventMarkerCancel) Marshal added in v1.2.0

func (m *EventMarkerCancel) Marshal() (dAtA []byte, err error)

func (*EventMarkerCancel) MarshalTo added in v1.2.0

func (m *EventMarkerCancel) MarshalTo(dAtA []byte) (int, error)

func (*EventMarkerCancel) MarshalToSizedBuffer added in v1.2.0

func (m *EventMarkerCancel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMarkerCancel) ProtoMessage added in v1.2.0

func (*EventMarkerCancel) ProtoMessage()

func (*EventMarkerCancel) Reset added in v1.2.0

func (m *EventMarkerCancel) Reset()

func (*EventMarkerCancel) Size added in v1.2.0

func (m *EventMarkerCancel) Size() (n int)

func (*EventMarkerCancel) String added in v1.2.0

func (m *EventMarkerCancel) String() string

func (*EventMarkerCancel) Unmarshal added in v1.2.0

func (m *EventMarkerCancel) Unmarshal(dAtA []byte) error

func (*EventMarkerCancel) XXX_DiscardUnknown added in v1.2.0

func (m *EventMarkerCancel) XXX_DiscardUnknown()

func (*EventMarkerCancel) XXX_Marshal added in v1.2.0

func (m *EventMarkerCancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMarkerCancel) XXX_Merge added in v1.2.0

func (m *EventMarkerCancel) XXX_Merge(src proto.Message)

func (*EventMarkerCancel) XXX_Size added in v1.2.0

func (m *EventMarkerCancel) XXX_Size() int

func (*EventMarkerCancel) XXX_Unmarshal added in v1.2.0

func (m *EventMarkerCancel) XXX_Unmarshal(b []byte) error

type EventMarkerDelete added in v1.2.0

type EventMarkerDelete struct {
	Denom         string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

EventMarkerDelete event emitted when marker is deleted

func NewEventMarkerDelete added in v1.2.0

func NewEventMarkerDelete(denom string, administrator string) *EventMarkerDelete

func (*EventMarkerDelete) Descriptor added in v1.2.0

func (*EventMarkerDelete) Descriptor() ([]byte, []int)

func (*EventMarkerDelete) GetAdministrator added in v1.2.0

func (m *EventMarkerDelete) GetAdministrator() string

func (*EventMarkerDelete) GetDenom added in v1.2.0

func (m *EventMarkerDelete) GetDenom() string

func (*EventMarkerDelete) Marshal added in v1.2.0

func (m *EventMarkerDelete) Marshal() (dAtA []byte, err error)

func (*EventMarkerDelete) MarshalTo added in v1.2.0

func (m *EventMarkerDelete) MarshalTo(dAtA []byte) (int, error)

func (*EventMarkerDelete) MarshalToSizedBuffer added in v1.2.0

func (m *EventMarkerDelete) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMarkerDelete) ProtoMessage added in v1.2.0

func (*EventMarkerDelete) ProtoMessage()

func (*EventMarkerDelete) Reset added in v1.2.0

func (m *EventMarkerDelete) Reset()

func (*EventMarkerDelete) Size added in v1.2.0

func (m *EventMarkerDelete) Size() (n int)

func (*EventMarkerDelete) String added in v1.2.0

func (m *EventMarkerDelete) String() string

func (*EventMarkerDelete) Unmarshal added in v1.2.0

func (m *EventMarkerDelete) Unmarshal(dAtA []byte) error

func (*EventMarkerDelete) XXX_DiscardUnknown added in v1.2.0

func (m *EventMarkerDelete) XXX_DiscardUnknown()

func (*EventMarkerDelete) XXX_Marshal added in v1.2.0

func (m *EventMarkerDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMarkerDelete) XXX_Merge added in v1.2.0

func (m *EventMarkerDelete) XXX_Merge(src proto.Message)

func (*EventMarkerDelete) XXX_Size added in v1.2.0

func (m *EventMarkerDelete) XXX_Size() int

func (*EventMarkerDelete) XXX_Unmarshal added in v1.2.0

func (m *EventMarkerDelete) XXX_Unmarshal(b []byte) error

type EventMarkerDeleteAccess added in v1.2.0

type EventMarkerDeleteAccess struct {
	RemoveAddress string `protobuf:"bytes,1,opt,name=remove_address,json=removeAddress,proto3" json:"remove_address,omitempty"`
	Denom         string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string `protobuf:"bytes,3,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

EventMarkerDeleteAccess event emitted when marker access is revoked

func NewEventMarkerDeleteAccess added in v1.2.0

func NewEventMarkerDeleteAccess(removeAddress string, denom string, administrator string) *EventMarkerDeleteAccess

func (*EventMarkerDeleteAccess) Descriptor added in v1.2.0

func (*EventMarkerDeleteAccess) Descriptor() ([]byte, []int)

func (*EventMarkerDeleteAccess) GetAdministrator added in v1.2.0

func (m *EventMarkerDeleteAccess) GetAdministrator() string

func (*EventMarkerDeleteAccess) GetDenom added in v1.2.0

func (m *EventMarkerDeleteAccess) GetDenom() string

func (*EventMarkerDeleteAccess) GetRemoveAddress added in v1.2.0

func (m *EventMarkerDeleteAccess) GetRemoveAddress() string

func (*EventMarkerDeleteAccess) Marshal added in v1.2.0

func (m *EventMarkerDeleteAccess) Marshal() (dAtA []byte, err error)

func (*EventMarkerDeleteAccess) MarshalTo added in v1.2.0

func (m *EventMarkerDeleteAccess) MarshalTo(dAtA []byte) (int, error)

func (*EventMarkerDeleteAccess) MarshalToSizedBuffer added in v1.2.0

func (m *EventMarkerDeleteAccess) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMarkerDeleteAccess) ProtoMessage added in v1.2.0

func (*EventMarkerDeleteAccess) ProtoMessage()

func (*EventMarkerDeleteAccess) Reset added in v1.2.0

func (m *EventMarkerDeleteAccess) Reset()

func (*EventMarkerDeleteAccess) Size added in v1.2.0

func (m *EventMarkerDeleteAccess) Size() (n int)

func (*EventMarkerDeleteAccess) String added in v1.2.0

func (m *EventMarkerDeleteAccess) String() string

func (*EventMarkerDeleteAccess) Unmarshal added in v1.2.0

func (m *EventMarkerDeleteAccess) Unmarshal(dAtA []byte) error

func (*EventMarkerDeleteAccess) XXX_DiscardUnknown added in v1.2.0

func (m *EventMarkerDeleteAccess) XXX_DiscardUnknown()

func (*EventMarkerDeleteAccess) XXX_Marshal added in v1.2.0

func (m *EventMarkerDeleteAccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMarkerDeleteAccess) XXX_Merge added in v1.2.0

func (m *EventMarkerDeleteAccess) XXX_Merge(src proto.Message)

func (*EventMarkerDeleteAccess) XXX_Size added in v1.2.0

func (m *EventMarkerDeleteAccess) XXX_Size() int

func (*EventMarkerDeleteAccess) XXX_Unmarshal added in v1.2.0

func (m *EventMarkerDeleteAccess) XXX_Unmarshal(b []byte) error

type EventMarkerFinalize added in v1.2.0

type EventMarkerFinalize struct {
	Denom         string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

EventMarkerFinalize event emitted when marker is finalized

func NewEventMarkerFinalize added in v1.2.0

func NewEventMarkerFinalize(denom string, administrator string) *EventMarkerFinalize

func (*EventMarkerFinalize) Descriptor added in v1.2.0

func (*EventMarkerFinalize) Descriptor() ([]byte, []int)

func (*EventMarkerFinalize) GetAdministrator added in v1.2.0

func (m *EventMarkerFinalize) GetAdministrator() string

func (*EventMarkerFinalize) GetDenom added in v1.2.0

func (m *EventMarkerFinalize) GetDenom() string

func (*EventMarkerFinalize) Marshal added in v1.2.0

func (m *EventMarkerFinalize) Marshal() (dAtA []byte, err error)

func (*EventMarkerFinalize) MarshalTo added in v1.2.0

func (m *EventMarkerFinalize) MarshalTo(dAtA []byte) (int, error)

func (*EventMarkerFinalize) MarshalToSizedBuffer added in v1.2.0

func (m *EventMarkerFinalize) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMarkerFinalize) ProtoMessage added in v1.2.0

func (*EventMarkerFinalize) ProtoMessage()

func (*EventMarkerFinalize) Reset added in v1.2.0

func (m *EventMarkerFinalize) Reset()

func (*EventMarkerFinalize) Size added in v1.2.0

func (m *EventMarkerFinalize) Size() (n int)

func (*EventMarkerFinalize) String added in v1.2.0

func (m *EventMarkerFinalize) String() string

func (*EventMarkerFinalize) Unmarshal added in v1.2.0

func (m *EventMarkerFinalize) Unmarshal(dAtA []byte) error

func (*EventMarkerFinalize) XXX_DiscardUnknown added in v1.2.0

func (m *EventMarkerFinalize) XXX_DiscardUnknown()

func (*EventMarkerFinalize) XXX_Marshal added in v1.2.0

func (m *EventMarkerFinalize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMarkerFinalize) XXX_Merge added in v1.2.0

func (m *EventMarkerFinalize) XXX_Merge(src proto.Message)

func (*EventMarkerFinalize) XXX_Size added in v1.2.0

func (m *EventMarkerFinalize) XXX_Size() int

func (*EventMarkerFinalize) XXX_Unmarshal added in v1.2.0

func (m *EventMarkerFinalize) XXX_Unmarshal(b []byte) error

type EventMarkerMint added in v1.2.0

type EventMarkerMint struct {
	Amount        string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Denom         string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string `protobuf:"bytes,3,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

EventMarkerMint event emitted when additional marker supply is minted

func NewEventMarkerMint added in v1.2.0

func NewEventMarkerMint(amount string, denom string, administrator string) *EventMarkerMint

func (*EventMarkerMint) Descriptor added in v1.2.0

func (*EventMarkerMint) Descriptor() ([]byte, []int)

func (*EventMarkerMint) GetAdministrator added in v1.2.0

func (m *EventMarkerMint) GetAdministrator() string

func (*EventMarkerMint) GetAmount added in v1.2.0

func (m *EventMarkerMint) GetAmount() string

func (*EventMarkerMint) GetDenom added in v1.2.0

func (m *EventMarkerMint) GetDenom() string

func (*EventMarkerMint) Marshal added in v1.2.0

func (m *EventMarkerMint) Marshal() (dAtA []byte, err error)

func (*EventMarkerMint) MarshalTo added in v1.2.0

func (m *EventMarkerMint) MarshalTo(dAtA []byte) (int, error)

func (*EventMarkerMint) MarshalToSizedBuffer added in v1.2.0

func (m *EventMarkerMint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMarkerMint) ProtoMessage added in v1.2.0

func (*EventMarkerMint) ProtoMessage()

func (*EventMarkerMint) Reset added in v1.2.0

func (m *EventMarkerMint) Reset()

func (*EventMarkerMint) Size added in v1.2.0

func (m *EventMarkerMint) Size() (n int)

func (*EventMarkerMint) String added in v1.2.0

func (m *EventMarkerMint) String() string

func (*EventMarkerMint) Unmarshal added in v1.2.0

func (m *EventMarkerMint) Unmarshal(dAtA []byte) error

func (*EventMarkerMint) XXX_DiscardUnknown added in v1.2.0

func (m *EventMarkerMint) XXX_DiscardUnknown()

func (*EventMarkerMint) XXX_Marshal added in v1.2.0

func (m *EventMarkerMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMarkerMint) XXX_Merge added in v1.2.0

func (m *EventMarkerMint) XXX_Merge(src proto.Message)

func (*EventMarkerMint) XXX_Size added in v1.2.0

func (m *EventMarkerMint) XXX_Size() int

func (*EventMarkerMint) XXX_Unmarshal added in v1.2.0

func (m *EventMarkerMint) XXX_Unmarshal(b []byte) error

type EventMarkerSetDenomMetadata added in v1.2.0

type EventMarkerSetDenomMetadata struct {
	MetadataBase        string            `protobuf:"bytes,1,opt,name=metadata_base,json=metadataBase,proto3" json:"metadata_base,omitempty"`
	MetadataDescription string            `protobuf:"bytes,2,opt,name=metadata_description,json=metadataDescription,proto3" json:"metadata_description,omitempty"`
	MetadataDisplay     string            `protobuf:"bytes,3,opt,name=metadata_display,json=metadataDisplay,proto3" json:"metadata_display,omitempty"`
	MetadataDenomUnits  []*EventDenomUnit `protobuf:"bytes,4,rep,name=metadata_denom_units,json=metadataDenomUnits,proto3" json:"metadata_denom_units,omitempty"`
	Administrator       string            `protobuf:"bytes,5,opt,name=administrator,proto3" json:"administrator,omitempty"`
	MetadataName        string            `protobuf:"bytes,6,opt,name=metadata_name,json=metadataName,proto3" json:"metadata_name,omitempty"`
	MetadataSymbol      string            `protobuf:"bytes,7,opt,name=metadata_symbol,json=metadataSymbol,proto3" json:"metadata_symbol,omitempty"`
}

EventMarkerSetDenomMetadata event emitted when metadata is set on marker with denom

func NewEventMarkerSetDenomMetadata added in v1.2.0

func NewEventMarkerSetDenomMetadata(metadata banktypes.Metadata, administrator string) *EventMarkerSetDenomMetadata

func (*EventMarkerSetDenomMetadata) Descriptor added in v1.2.0

func (*EventMarkerSetDenomMetadata) Descriptor() ([]byte, []int)

func (*EventMarkerSetDenomMetadata) GetAdministrator added in v1.2.0

func (m *EventMarkerSetDenomMetadata) GetAdministrator() string

func (*EventMarkerSetDenomMetadata) GetMetadataBase added in v1.2.0

func (m *EventMarkerSetDenomMetadata) GetMetadataBase() string

func (*EventMarkerSetDenomMetadata) GetMetadataDenomUnits added in v1.2.0

func (m *EventMarkerSetDenomMetadata) GetMetadataDenomUnits() []*EventDenomUnit

func (*EventMarkerSetDenomMetadata) GetMetadataDescription added in v1.2.0

func (m *EventMarkerSetDenomMetadata) GetMetadataDescription() string

func (*EventMarkerSetDenomMetadata) GetMetadataDisplay added in v1.2.0

func (m *EventMarkerSetDenomMetadata) GetMetadataDisplay() string

func (*EventMarkerSetDenomMetadata) GetMetadataName added in v1.7.0

func (m *EventMarkerSetDenomMetadata) GetMetadataName() string

func (*EventMarkerSetDenomMetadata) GetMetadataSymbol added in v1.7.0

func (m *EventMarkerSetDenomMetadata) GetMetadataSymbol() string

func (*EventMarkerSetDenomMetadata) Marshal added in v1.2.0

func (m *EventMarkerSetDenomMetadata) Marshal() (dAtA []byte, err error)

func (*EventMarkerSetDenomMetadata) MarshalTo added in v1.2.0

func (m *EventMarkerSetDenomMetadata) MarshalTo(dAtA []byte) (int, error)

func (*EventMarkerSetDenomMetadata) MarshalToSizedBuffer added in v1.2.0

func (m *EventMarkerSetDenomMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMarkerSetDenomMetadata) ProtoMessage added in v1.2.0

func (*EventMarkerSetDenomMetadata) ProtoMessage()

func (*EventMarkerSetDenomMetadata) Reset added in v1.2.0

func (m *EventMarkerSetDenomMetadata) Reset()

func (*EventMarkerSetDenomMetadata) Size added in v1.2.0

func (m *EventMarkerSetDenomMetadata) Size() (n int)

func (*EventMarkerSetDenomMetadata) String added in v1.2.0

func (m *EventMarkerSetDenomMetadata) String() string

func (*EventMarkerSetDenomMetadata) Unmarshal added in v1.2.0

func (m *EventMarkerSetDenomMetadata) Unmarshal(dAtA []byte) error

func (*EventMarkerSetDenomMetadata) XXX_DiscardUnknown added in v1.2.0

func (m *EventMarkerSetDenomMetadata) XXX_DiscardUnknown()

func (*EventMarkerSetDenomMetadata) XXX_Marshal added in v1.2.0

func (m *EventMarkerSetDenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMarkerSetDenomMetadata) XXX_Merge added in v1.2.0

func (m *EventMarkerSetDenomMetadata) XXX_Merge(src proto.Message)

func (*EventMarkerSetDenomMetadata) XXX_Size added in v1.2.0

func (m *EventMarkerSetDenomMetadata) XXX_Size() int

func (*EventMarkerSetDenomMetadata) XXX_Unmarshal added in v1.2.0

func (m *EventMarkerSetDenomMetadata) XXX_Unmarshal(b []byte) error

type EventMarkerTransfer added in v1.2.0

type EventMarkerTransfer struct {
	Amount        string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Denom         string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string `protobuf:"bytes,3,opt,name=administrator,proto3" json:"administrator,omitempty"`
	ToAddress     string `protobuf:"bytes,4,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	FromAddress   string `protobuf:"bytes,5,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
}

EventMarkerTransfer event emitted when coins are transfered to from account to another

func NewEventMarkerTransfer added in v1.2.0

func NewEventMarkerTransfer(amount string, denom string, administrator string, toAddress string, fromAddress string) *EventMarkerTransfer

func (*EventMarkerTransfer) Descriptor added in v1.2.0

func (*EventMarkerTransfer) Descriptor() ([]byte, []int)

func (*EventMarkerTransfer) GetAdministrator added in v1.2.0

func (m *EventMarkerTransfer) GetAdministrator() string

func (*EventMarkerTransfer) GetAmount added in v1.2.0

func (m *EventMarkerTransfer) GetAmount() string

func (*EventMarkerTransfer) GetDenom added in v1.2.0

func (m *EventMarkerTransfer) GetDenom() string

func (*EventMarkerTransfer) GetFromAddress added in v1.2.0

func (m *EventMarkerTransfer) GetFromAddress() string

func (*EventMarkerTransfer) GetToAddress added in v1.2.0

func (m *EventMarkerTransfer) GetToAddress() string

func (*EventMarkerTransfer) Marshal added in v1.2.0

func (m *EventMarkerTransfer) Marshal() (dAtA []byte, err error)

func (*EventMarkerTransfer) MarshalTo added in v1.2.0

func (m *EventMarkerTransfer) MarshalTo(dAtA []byte) (int, error)

func (*EventMarkerTransfer) MarshalToSizedBuffer added in v1.2.0

func (m *EventMarkerTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMarkerTransfer) ProtoMessage added in v1.2.0

func (*EventMarkerTransfer) ProtoMessage()

func (*EventMarkerTransfer) Reset added in v1.2.0

func (m *EventMarkerTransfer) Reset()

func (*EventMarkerTransfer) Size added in v1.2.0

func (m *EventMarkerTransfer) Size() (n int)

func (*EventMarkerTransfer) String added in v1.2.0

func (m *EventMarkerTransfer) String() string

func (*EventMarkerTransfer) Unmarshal added in v1.2.0

func (m *EventMarkerTransfer) Unmarshal(dAtA []byte) error

func (*EventMarkerTransfer) XXX_DiscardUnknown added in v1.2.0

func (m *EventMarkerTransfer) XXX_DiscardUnknown()

func (*EventMarkerTransfer) XXX_Marshal added in v1.2.0

func (m *EventMarkerTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMarkerTransfer) XXX_Merge added in v1.2.0

func (m *EventMarkerTransfer) XXX_Merge(src proto.Message)

func (*EventMarkerTransfer) XXX_Size added in v1.2.0

func (m *EventMarkerTransfer) XXX_Size() int

func (*EventMarkerTransfer) XXX_Unmarshal added in v1.2.0

func (m *EventMarkerTransfer) XXX_Unmarshal(b []byte) error

type EventMarkerWithdraw added in v1.2.0

type EventMarkerWithdraw struct {
	Coins         string `protobuf:"bytes,1,opt,name=coins,proto3" json:"coins,omitempty"`
	Denom         string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string `protobuf:"bytes,3,opt,name=administrator,proto3" json:"administrator,omitempty"`
	ToAddress     string `protobuf:"bytes,4,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
}

EventMarkerWithdraw event emitted when coins are withdrew from marker

func NewEventMarkerWithdraw added in v1.2.0

func NewEventMarkerWithdraw(coins string, denom string, administrator string, toAddress string) *EventMarkerWithdraw

func (*EventMarkerWithdraw) Descriptor added in v1.2.0

func (*EventMarkerWithdraw) Descriptor() ([]byte, []int)

func (*EventMarkerWithdraw) GetAdministrator added in v1.2.0

func (m *EventMarkerWithdraw) GetAdministrator() string

func (*EventMarkerWithdraw) GetCoins added in v1.2.0

func (m *EventMarkerWithdraw) GetCoins() string

func (*EventMarkerWithdraw) GetDenom added in v1.2.0

func (m *EventMarkerWithdraw) GetDenom() string

func (*EventMarkerWithdraw) GetToAddress added in v1.2.0

func (m *EventMarkerWithdraw) GetToAddress() string

func (*EventMarkerWithdraw) Marshal added in v1.2.0

func (m *EventMarkerWithdraw) Marshal() (dAtA []byte, err error)

func (*EventMarkerWithdraw) MarshalTo added in v1.2.0

func (m *EventMarkerWithdraw) MarshalTo(dAtA []byte) (int, error)

func (*EventMarkerWithdraw) MarshalToSizedBuffer added in v1.2.0

func (m *EventMarkerWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMarkerWithdraw) ProtoMessage added in v1.2.0

func (*EventMarkerWithdraw) ProtoMessage()

func (*EventMarkerWithdraw) Reset added in v1.2.0

func (m *EventMarkerWithdraw) Reset()

func (*EventMarkerWithdraw) Size added in v1.2.0

func (m *EventMarkerWithdraw) Size() (n int)

func (*EventMarkerWithdraw) String added in v1.2.0

func (m *EventMarkerWithdraw) String() string

func (*EventMarkerWithdraw) Unmarshal added in v1.2.0

func (m *EventMarkerWithdraw) Unmarshal(dAtA []byte) error

func (*EventMarkerWithdraw) XXX_DiscardUnknown added in v1.2.0

func (m *EventMarkerWithdraw) XXX_DiscardUnknown()

func (*EventMarkerWithdraw) XXX_Marshal added in v1.2.0

func (m *EventMarkerWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMarkerWithdraw) XXX_Merge added in v1.2.0

func (m *EventMarkerWithdraw) XXX_Merge(src proto.Message)

func (*EventMarkerWithdraw) XXX_Size added in v1.2.0

func (m *EventMarkerWithdraw) XXX_Size() int

func (*EventMarkerWithdraw) XXX_Unmarshal added in v1.2.0

func (m *EventMarkerWithdraw) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	// params defines all the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// A collection of marker accounts to create on start
	Markers []MarkerAccount `protobuf:"bytes,2,rep,name=markers,proto3" json:"markers"`
}

GenesisState defines the account module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns the initial module genesis state.

func GetGenesisStateFromAppState

func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) GenesisState

GetGenesisStateFromAppState returns x/marker GenesisState given raw application genesis state.

func NewGenesisState

func NewGenesisState(params Params, markers []MarkerAccount) *GenesisState

NewGenesisState creates a new GenesisState object

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (state GenesisState) Validate() error

Validate ensures a genesis state is valid.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type MarkerAccount

type MarkerAccount struct {
	// base cosmos account information including address and coin holdings.
	*types.BaseAccount `` /* 136-byte string literal not displayed */
	// Address that owns the marker configuration.  This account must sign any requests
	// to change marker config (only valid for statuses prior to finalization)
	Manager string `protobuf:"bytes,2,opt,name=manager,proto3" json:"manager,omitempty" json:"manager,omitempty"`
	// Access control lists
	AccessControl []AccessGrant `protobuf:"bytes,3,rep,name=access_control,json=accessControl,proto3" json:"access_control"`
	// Indicates the current status of this marker record.
	Status MarkerStatus `protobuf:"varint,4,opt,name=status,proto3,enum=provenance.marker.v1.MarkerStatus" json:"status,omitempty"`
	// value denomination and total supply for the token.
	Denom string `protobuf:"bytes,5,opt,name=denom,proto3" json:"denom,omitempty"`
	// the total supply expected for a marker.  This is the amount that is minted when a marker is created.
	Supply github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */
	// Marker type information
	MarkerType MarkerType `` /* 158-byte string literal not displayed */
	// A fixed supply will mint additional coin automatically if the total supply decreases below a set value.  This
	// may occur if the coin is burned or an account holding the coin is slashed. (default: true)
	SupplyFixed bool `protobuf:"varint,8,opt,name=supply_fixed,json=supplyFixed,proto3" json:"supply_fixed,omitempty"`
	// indicates that governance based control is allowed for this marker
	AllowGovernanceControl bool `` /* 130-byte string literal not displayed */
}

MarkerAccount holds the marker configuration information in addition to a base account structure.

func NewEmptyMarkerAccount

func NewEmptyMarkerAccount(denom, manager string, grants []AccessGrant) *MarkerAccount

NewEmptyMarkerAccount creates a new empty marker account in a Proposed state

func NewMarkerAccount

func NewMarkerAccount(
	baseAcc *authtypes.BaseAccount,
	totalSupply sdk.Coin,
	manager sdk.AccAddress,
	accessControls []AccessGrant,
	status MarkerStatus,
	markerType MarkerType,
) *MarkerAccount

NewMarkerAccount creates a marker account initialized over a given base account.

func (*MarkerAccount) AddressHasAccess

func (ma *MarkerAccount) AddressHasAccess(addr sdk.AccAddress, role Access) bool

AddressHasAccess returns true if the provided address has been assigned the provided role within the current MarkerAccount AccessControl

func (*MarkerAccount) AddressListForPermission

func (ma *MarkerAccount) AddressListForPermission(role Access) []sdk.AccAddress

AddressListForPermission returns a list of all addresses with the provided rule within the current MarkerAccount AccessControl list

func (MarkerAccount) Clone

func (ma MarkerAccount) Clone() *MarkerAccount

Clone makes a MarkerAccount instance copy

func (*MarkerAccount) Descriptor

func (*MarkerAccount) Descriptor() ([]byte, []int)

func (*MarkerAccount) GetAccessList

func (ma *MarkerAccount) GetAccessList() []AccessGrant

GetAccessList returns the full access list for the marker

func (MarkerAccount) GetAddress

func (ma MarkerAccount) GetAddress() sdk.AccAddress

GetAddress returns the address of the marker account.

func (MarkerAccount) GetDenom

func (ma MarkerAccount) GetDenom() string

GetDenom the denomination of the coin associated with this marker

func (MarkerAccount) GetManager

func (ma MarkerAccount) GetManager() sdk.AccAddress

GetManager returns the address of the account that is responsible for the proposed marker.

func (MarkerAccount) GetMarkerType

func (ma MarkerAccount) GetMarkerType() MarkerType

GetMarkerType returns the type of the marker account.

func (MarkerAccount) GetPubKey

func (ma MarkerAccount) GetPubKey() cryptotypes.PubKey

GetPubKey implements authtypes.Account (but there are no public keys associated with the account for signing)

func (MarkerAccount) GetStatus

func (ma MarkerAccount) GetStatus() MarkerStatus

GetStatus returns the status of the marker account.

func (MarkerAccount) GetSupply

func (ma MarkerAccount) GetSupply() sdk.Coin

GetSupply implements authtypes.Account

func (*MarkerAccount) GrantAccess

func (ma *MarkerAccount) GrantAccess(access AccessGrantI) error

GrantAccess appends the access grant to the marker account.

func (MarkerAccount) HasFixedSupply

func (ma MarkerAccount) HasFixedSupply() bool

HasFixedSupply return true if the total supply for the marker is considered "fixed" and should be controlled with an invariant check

func (MarkerAccount) HasGovernanceEnabled added in v0.3.0

func (ma MarkerAccount) HasGovernanceEnabled() bool

HasGovernanceEnabled returns true if this marker allows governance proposals to control this marker

func (*MarkerAccount) Marshal

func (m *MarkerAccount) Marshal() (dAtA []byte, err error)

func (*MarkerAccount) MarshalTo

func (m *MarkerAccount) MarshalTo(dAtA []byte) (int, error)

func (*MarkerAccount) MarshalToSizedBuffer

func (m *MarkerAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MarkerAccount) ProtoMessage

func (*MarkerAccount) ProtoMessage()

func (*MarkerAccount) Reset

func (m *MarkerAccount) Reset()

func (*MarkerAccount) RevokeAccess

func (ma *MarkerAccount) RevokeAccess(addr sdk.AccAddress) error

RevokeAccess removes any AccessGrant for the given address on this marker.

func (*MarkerAccount) SetManager

func (ma *MarkerAccount) SetManager(manager sdk.AccAddress) error

SetManager sets the manager/owner address for proposed marker accounts

func (*MarkerAccount) SetPubKey

func (ma *MarkerAccount) SetPubKey(pubKey cryptotypes.PubKey) error

SetPubKey implements authtypes.Account (but there are no public keys associated with the account for signing)

func (*MarkerAccount) SetSequence

func (ma *MarkerAccount) SetSequence(seq uint64) error

SetSequence implements authtypes.Account (but you can't set a sequence as you can't sign tx for this account)

func (*MarkerAccount) SetStatus

func (ma *MarkerAccount) SetStatus(status MarkerStatus) error

SetStatus sets the status of the marker to the provided value.

func (*MarkerAccount) SetSupply

func (ma *MarkerAccount) SetSupply(total sdk.Coin) error

SetSupply sets the total supply amount to track

func (*MarkerAccount) Size

func (m *MarkerAccount) Size() (n int)

func (*MarkerAccount) Unmarshal

func (m *MarkerAccount) Unmarshal(dAtA []byte) error

func (MarkerAccount) Validate

func (ma MarkerAccount) Validate() error

Validate performs minimal sanity checking over the current MarkerAccount instance

func (*MarkerAccount) XXX_DiscardUnknown

func (m *MarkerAccount) XXX_DiscardUnknown()

func (*MarkerAccount) XXX_Marshal

func (m *MarkerAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MarkerAccount) XXX_Merge

func (m *MarkerAccount) XXX_Merge(src proto.Message)

func (*MarkerAccount) XXX_Size

func (m *MarkerAccount) XXX_Size() int

func (*MarkerAccount) XXX_Unmarshal

func (m *MarkerAccount) XXX_Unmarshal(b []byte) error

type MarkerAccountI

type MarkerAccountI interface {
	proto.Message

	authtypes.AccountI
	Clone() *MarkerAccount

	Validate() error

	GetDenom() string
	GetManager() sdk.AccAddress
	GetMarkerType() MarkerType

	GetStatus() MarkerStatus
	SetStatus(MarkerStatus) error

	GetSupply() sdk.Coin
	SetSupply(sdk.Coin) error
	HasFixedSupply() bool

	GrantAccess(AccessGrantI) error
	RevokeAccess(sdk.AccAddress) error
	GetAccessList() []AccessGrant

	AddressHasAccess(sdk.AccAddress, Access) bool
	AddressListForPermission(Access) []sdk.AccAddress

	HasGovernanceEnabled() bool
}

MarkerAccountI defines the required method interface for a marker account

type MarkerStatus

type MarkerStatus int32

MarkerStatus defines the various states a marker account can be in.

const (
	// MARKER_STATUS_UNSPECIFIED - Unknown/Invalid Marker Status
	StatusUndefined MarkerStatus = 0
	// MARKER_STATUS_PROPOSED - Initial configuration period, updates allowed, token supply not created.
	StatusProposed MarkerStatus = 1
	// MARKER_STATUS_FINALIZED - Configuration finalized, ready for supply creation
	StatusFinalized MarkerStatus = 2
	// MARKER_STATUS_ACTIVE - Supply is created, rules are in force.
	StatusActive MarkerStatus = 3
	// MARKER_STATUS_CANCELLED - Marker has been cancelled, pending destroy
	StatusCancelled MarkerStatus = 4
	// MARKER_STATUS_DESTROYED - Marker supply has all been recalled, marker is considered destroyed and no further
	// actions allowed.
	StatusDestroyed MarkerStatus = 5
)

func MarkerStatusFromString

func MarkerStatusFromString(str string) (MarkerStatus, error)

MarkerStatusFromString returns a MarkerStatus from a string. It returns an error if the string is invalid.

func MustGetMarkerStatus

func MustGetMarkerStatus(str string) MarkerStatus

MustGetMarkerStatus turns the string into a MarkerStatus typed value ... panics if invalid.

func (MarkerStatus) EnumDescriptor

func (MarkerStatus) EnumDescriptor() ([]byte, []int)

func (MarkerStatus) Format

func (rt MarkerStatus) Format(s fmt.State, verb rune)

Format implements the fmt.Formatter interface.

func (MarkerStatus) IsOneOf added in v1.0.0

func (rt MarkerStatus) IsOneOf(statuses ...MarkerStatus) bool

IsOneOf checks to see if this MarkerStatus is equal to one of the provided statuses.

func (MarkerStatus) Marshal

func (rt MarkerStatus) Marshal() ([]byte, error)

Marshal needed for protobuf compatibility.

func (MarkerStatus) MarshalJSON

func (rt MarkerStatus) MarshalJSON() ([]byte, error)

MarshalJSON using string.

func (MarkerStatus) String

func (rt MarkerStatus) String() string

String implements the Stringer interface.

func (*MarkerStatus) Unmarshal

func (rt *MarkerStatus) Unmarshal(data []byte) error

Unmarshal needed for protobuf compatibility.

func (*MarkerStatus) UnmarshalJSON

func (rt *MarkerStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON decodes from JSON string version of this status

type MarkerTransferAuthorization added in v1.7.0

type MarkerTransferAuthorization struct {
	// transfer_limit is the total amount the grantee can transfer
	TransferLimit github_com_cosmos_cosmos_sdk_types.Coins `` /* 144-byte string literal not displayed */
}

MarkerTransferAuthorization gives the grantee permissions to execute a marker transfer on behalf of the granter's account.

func NewMarkerTransferAuthorization added in v1.7.0

func NewMarkerTransferAuthorization(transferLimit sdk.Coins) *MarkerTransferAuthorization

NewMarkerTransferAuthorization creates a new MarkerTransferAuthorization object.

func (MarkerTransferAuthorization) Accept added in v1.7.0

Accept implements Authorization.Accept.

func (MarkerTransferAuthorization) DecreaseTransferLimit added in v1.7.0

func (a MarkerTransferAuthorization) DecreaseTransferLimit(amount sdk.Coin) (sdk.Coins, bool)

DecreaseTransferLimit will return the decreased transfer limit and if it is negative

func (*MarkerTransferAuthorization) Descriptor added in v1.7.0

func (*MarkerTransferAuthorization) Descriptor() ([]byte, []int)

func (*MarkerTransferAuthorization) GetTransferLimit added in v1.7.0

func (*MarkerTransferAuthorization) Marshal added in v1.7.0

func (m *MarkerTransferAuthorization) Marshal() (dAtA []byte, err error)

func (*MarkerTransferAuthorization) MarshalTo added in v1.7.0

func (m *MarkerTransferAuthorization) MarshalTo(dAtA []byte) (int, error)

func (*MarkerTransferAuthorization) MarshalToSizedBuffer added in v1.7.0

func (m *MarkerTransferAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (MarkerTransferAuthorization) MsgTypeURL added in v1.7.0

func (a MarkerTransferAuthorization) MsgTypeURL() string

MsgTypeURL implements Authorization.MsgTypeURL.

func (*MarkerTransferAuthorization) ProtoMessage added in v1.7.0

func (*MarkerTransferAuthorization) ProtoMessage()

func (*MarkerTransferAuthorization) Reset added in v1.7.0

func (m *MarkerTransferAuthorization) Reset()

func (*MarkerTransferAuthorization) Size added in v1.7.0

func (m *MarkerTransferAuthorization) Size() (n int)

func (*MarkerTransferAuthorization) String added in v1.7.0

func (m *MarkerTransferAuthorization) String() string

func (*MarkerTransferAuthorization) Unmarshal added in v1.7.0

func (m *MarkerTransferAuthorization) Unmarshal(dAtA []byte) error

func (MarkerTransferAuthorization) ValidateBasic added in v1.7.0

func (a MarkerTransferAuthorization) ValidateBasic() error

ValidateBasic implements Authorization.ValidateBasic.

func (*MarkerTransferAuthorization) XXX_DiscardUnknown added in v1.7.0

func (m *MarkerTransferAuthorization) XXX_DiscardUnknown()

func (*MarkerTransferAuthorization) XXX_Marshal added in v1.7.0

func (m *MarkerTransferAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MarkerTransferAuthorization) XXX_Merge added in v1.7.0

func (m *MarkerTransferAuthorization) XXX_Merge(src proto.Message)

func (*MarkerTransferAuthorization) XXX_Size added in v1.7.0

func (m *MarkerTransferAuthorization) XXX_Size() int

func (*MarkerTransferAuthorization) XXX_Unmarshal added in v1.7.0

func (m *MarkerTransferAuthorization) XXX_Unmarshal(b []byte) error

type MarkerType

type MarkerType int32

MarkerType defines the types of marker

const (
	// MARKER_TYPE_UNSPECIFIED is an invalid/unknown marker type.
	MarkerType_Unknown MarkerType = 0
	// MARKER_TYPE_COIN is a marker that represents a standard fungible coin (default).
	MarkerType_Coin MarkerType = 1
	// MARKER_TYPE_RESTRICTED is a marker that represents a denom with send_enabled = false.
	MarkerType_RestrictedCoin MarkerType = 2
)

func MarkerTypeFromString

func MarkerTypeFromString(str string) (MarkerType, error)

MarkerTypeFromString returns a MarkerType from a string. It returns an error if the string is invalid.

func (MarkerType) EnumDescriptor

func (MarkerType) EnumDescriptor() ([]byte, []int)

func (MarkerType) String

func (x MarkerType) String() string

type MsgActivateRequest

type MsgActivateRequest struct {
	Denom         string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

MsgActivateRequest defines the Msg/Activate request type

func NewMsgActivateRequest added in v1.2.0

func NewMsgActivateRequest(denom string, admin sdk.AccAddress) *MsgActivateRequest

NewMsgActivateRequest

func (*MsgActivateRequest) Descriptor

func (*MsgActivateRequest) Descriptor() ([]byte, []int)

func (*MsgActivateRequest) GetAdministrator

func (m *MsgActivateRequest) GetAdministrator() string

func (*MsgActivateRequest) GetDenom

func (m *MsgActivateRequest) GetDenom() string

func (MsgActivateRequest) GetSignBytes

func (msg MsgActivateRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgActivateRequest) GetSigners

func (msg MsgActivateRequest) GetSigners() []sdk.AccAddress

GetSigners indicates that the message must have been signed by the address provided.

func (*MsgActivateRequest) Marshal

func (m *MsgActivateRequest) Marshal() (dAtA []byte, err error)

func (*MsgActivateRequest) MarshalTo

func (m *MsgActivateRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgActivateRequest) MarshalToSizedBuffer

func (m *MsgActivateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgActivateRequest) ProtoMessage

func (*MsgActivateRequest) ProtoMessage()

func (*MsgActivateRequest) Reset

func (m *MsgActivateRequest) Reset()

func (MsgActivateRequest) Route

func (msg MsgActivateRequest) Route() string

Route returns the name of the module.

func (*MsgActivateRequest) Size

func (m *MsgActivateRequest) Size() (n int)

func (*MsgActivateRequest) String

func (m *MsgActivateRequest) String() string

func (MsgActivateRequest) Type

func (msg MsgActivateRequest) Type() string

Type returns the message action.

func (*MsgActivateRequest) Unmarshal

func (m *MsgActivateRequest) Unmarshal(dAtA []byte) error

func (MsgActivateRequest) ValidateBasic

func (msg MsgActivateRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgActivateRequest) XXX_DiscardUnknown

func (m *MsgActivateRequest) XXX_DiscardUnknown()

func (*MsgActivateRequest) XXX_Marshal

func (m *MsgActivateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgActivateRequest) XXX_Merge

func (m *MsgActivateRequest) XXX_Merge(src proto.Message)

func (*MsgActivateRequest) XXX_Size

func (m *MsgActivateRequest) XXX_Size() int

func (*MsgActivateRequest) XXX_Unmarshal

func (m *MsgActivateRequest) XXX_Unmarshal(b []byte) error

type MsgActivateResponse

type MsgActivateResponse struct {
}

MsgActivateResponse defines the Msg/Activate response type

func (*MsgActivateResponse) Descriptor

func (*MsgActivateResponse) Descriptor() ([]byte, []int)

func (*MsgActivateResponse) Marshal

func (m *MsgActivateResponse) Marshal() (dAtA []byte, err error)

func (*MsgActivateResponse) MarshalTo

func (m *MsgActivateResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgActivateResponse) MarshalToSizedBuffer

func (m *MsgActivateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgActivateResponse) ProtoMessage

func (*MsgActivateResponse) ProtoMessage()

func (*MsgActivateResponse) Reset

func (m *MsgActivateResponse) Reset()

func (*MsgActivateResponse) Size

func (m *MsgActivateResponse) Size() (n int)

func (*MsgActivateResponse) String

func (m *MsgActivateResponse) String() string

func (*MsgActivateResponse) Unmarshal

func (m *MsgActivateResponse) Unmarshal(dAtA []byte) error

func (*MsgActivateResponse) XXX_DiscardUnknown

func (m *MsgActivateResponse) XXX_DiscardUnknown()

func (*MsgActivateResponse) XXX_Marshal

func (m *MsgActivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgActivateResponse) XXX_Merge

func (m *MsgActivateResponse) XXX_Merge(src proto.Message)

func (*MsgActivateResponse) XXX_Size

func (m *MsgActivateResponse) XXX_Size() int

func (*MsgActivateResponse) XXX_Unmarshal

func (m *MsgActivateResponse) XXX_Unmarshal(b []byte) error

type MsgAddAccessRequest

type MsgAddAccessRequest struct {
	Denom         string        `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string        `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
	Access        []AccessGrant `protobuf:"bytes,3,rep,name=access,proto3" json:"access"`
}

MsgAddAccessRequest defines the Msg/AddAccess request type

func NewMsgAddAccessRequest added in v1.2.0

func NewMsgAddAccessRequest(denom string, admin sdk.AccAddress, access AccessGrant) *MsgAddAccessRequest

NewAddAccessRequest

func (*MsgAddAccessRequest) Descriptor

func (*MsgAddAccessRequest) Descriptor() ([]byte, []int)

func (*MsgAddAccessRequest) GetAccess

func (m *MsgAddAccessRequest) GetAccess() []AccessGrant

func (*MsgAddAccessRequest) GetAdministrator

func (m *MsgAddAccessRequest) GetAdministrator() string

func (*MsgAddAccessRequest) GetDenom

func (m *MsgAddAccessRequest) GetDenom() string

func (MsgAddAccessRequest) GetSignBytes

func (msg MsgAddAccessRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgAddAccessRequest) GetSigners

func (msg MsgAddAccessRequest) GetSigners() []sdk.AccAddress

GetSigners indicates that the message must have been signed by the address provided.

func (*MsgAddAccessRequest) Marshal

func (m *MsgAddAccessRequest) Marshal() (dAtA []byte, err error)

func (*MsgAddAccessRequest) MarshalTo

func (m *MsgAddAccessRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgAddAccessRequest) MarshalToSizedBuffer

func (m *MsgAddAccessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAddAccessRequest) ProtoMessage

func (*MsgAddAccessRequest) ProtoMessage()

func (*MsgAddAccessRequest) Reset

func (m *MsgAddAccessRequest) Reset()

func (MsgAddAccessRequest) Route

func (msg MsgAddAccessRequest) Route() string

Route returns the name of the module.

func (*MsgAddAccessRequest) Size

func (m *MsgAddAccessRequest) Size() (n int)

func (*MsgAddAccessRequest) String

func (m *MsgAddAccessRequest) String() string

func (MsgAddAccessRequest) Type

func (msg MsgAddAccessRequest) Type() string

Type returns the message action.

func (*MsgAddAccessRequest) Unmarshal

func (m *MsgAddAccessRequest) Unmarshal(dAtA []byte) error

func (MsgAddAccessRequest) ValidateBasic

func (msg MsgAddAccessRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgAddAccessRequest) XXX_DiscardUnknown

func (m *MsgAddAccessRequest) XXX_DiscardUnknown()

func (*MsgAddAccessRequest) XXX_Marshal

func (m *MsgAddAccessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAddAccessRequest) XXX_Merge

func (m *MsgAddAccessRequest) XXX_Merge(src proto.Message)

func (*MsgAddAccessRequest) XXX_Size

func (m *MsgAddAccessRequest) XXX_Size() int

func (*MsgAddAccessRequest) XXX_Unmarshal

func (m *MsgAddAccessRequest) XXX_Unmarshal(b []byte) error

type MsgAddAccessResponse

type MsgAddAccessResponse struct {
}

MsgAddAccessResponse defines the Msg/AddAccess response type

func (*MsgAddAccessResponse) Descriptor

func (*MsgAddAccessResponse) Descriptor() ([]byte, []int)

func (*MsgAddAccessResponse) Marshal

func (m *MsgAddAccessResponse) Marshal() (dAtA []byte, err error)

func (*MsgAddAccessResponse) MarshalTo

func (m *MsgAddAccessResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgAddAccessResponse) MarshalToSizedBuffer

func (m *MsgAddAccessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAddAccessResponse) ProtoMessage

func (*MsgAddAccessResponse) ProtoMessage()

func (*MsgAddAccessResponse) Reset

func (m *MsgAddAccessResponse) Reset()

func (*MsgAddAccessResponse) Size

func (m *MsgAddAccessResponse) Size() (n int)

func (*MsgAddAccessResponse) String

func (m *MsgAddAccessResponse) String() string

func (*MsgAddAccessResponse) Unmarshal

func (m *MsgAddAccessResponse) Unmarshal(dAtA []byte) error

func (*MsgAddAccessResponse) XXX_DiscardUnknown

func (m *MsgAddAccessResponse) XXX_DiscardUnknown()

func (*MsgAddAccessResponse) XXX_Marshal

func (m *MsgAddAccessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAddAccessResponse) XXX_Merge

func (m *MsgAddAccessResponse) XXX_Merge(src proto.Message)

func (*MsgAddAccessResponse) XXX_Size

func (m *MsgAddAccessResponse) XXX_Size() int

func (*MsgAddAccessResponse) XXX_Unmarshal

func (m *MsgAddAccessResponse) XXX_Unmarshal(b []byte) error

type MsgAddMarkerRequest

type MsgAddMarkerRequest struct {
	Amount                 github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
	Manager                string                                  `protobuf:"bytes,3,opt,name=manager,proto3" json:"manager,omitempty"`
	FromAddress            string                                  `protobuf:"bytes,4,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	Status                 MarkerStatus                            `protobuf:"varint,5,opt,name=status,proto3,enum=provenance.marker.v1.MarkerStatus" json:"status,omitempty"`
	MarkerType             MarkerType                              `` /* 129-byte string literal not displayed */
	AccessList             []AccessGrant                           `protobuf:"bytes,7,rep,name=access_list,json=accessList,proto3" json:"access_list"`
	SupplyFixed            bool                                    `protobuf:"varint,8,opt,name=supply_fixed,json=supplyFixed,proto3" json:"supply_fixed,omitempty"`
	AllowGovernanceControl bool                                    `` /* 130-byte string literal not displayed */
}

MsgAddMarkerRequest defines the Msg/AddMarker request type

func NewMsgAddMarkerRequest added in v1.2.0

func NewMsgAddMarkerRequest(
	denom string, totalSupply sdk.Int, fromAddress sdk.AccAddress, manager sdk.AccAddress, markerType MarkerType, supplyFixed bool, allowGovernanceControl bool,
) *MsgAddMarkerRequest

NewMsgAddMarkerRequest creates a new marker in a proposed state with a given total supply a denomination

func (*MsgAddMarkerRequest) Descriptor

func (*MsgAddMarkerRequest) Descriptor() ([]byte, []int)

func (*MsgAddMarkerRequest) GetAccessList

func (m *MsgAddMarkerRequest) GetAccessList() []AccessGrant

func (*MsgAddMarkerRequest) GetAllowGovernanceControl

func (m *MsgAddMarkerRequest) GetAllowGovernanceControl() bool

func (*MsgAddMarkerRequest) GetFromAddress

func (m *MsgAddMarkerRequest) GetFromAddress() string

func (*MsgAddMarkerRequest) GetManager

func (m *MsgAddMarkerRequest) GetManager() string

func (*MsgAddMarkerRequest) GetMarkerType

func (m *MsgAddMarkerRequest) GetMarkerType() MarkerType

func (MsgAddMarkerRequest) GetSignBytes

func (msg MsgAddMarkerRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgAddMarkerRequest) GetSigners

func (msg MsgAddMarkerRequest) GetSigners() []sdk.AccAddress

GetSigners indicates that the message must have been signed by the address provided.

func (*MsgAddMarkerRequest) GetStatus

func (m *MsgAddMarkerRequest) GetStatus() MarkerStatus

func (*MsgAddMarkerRequest) GetSupplyFixed

func (m *MsgAddMarkerRequest) GetSupplyFixed() bool

func (*MsgAddMarkerRequest) Marshal

func (m *MsgAddMarkerRequest) Marshal() (dAtA []byte, err error)

func (*MsgAddMarkerRequest) MarshalTo

func (m *MsgAddMarkerRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgAddMarkerRequest) MarshalToSizedBuffer

func (m *MsgAddMarkerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAddMarkerRequest) ProtoMessage

func (*MsgAddMarkerRequest) ProtoMessage()

func (*MsgAddMarkerRequest) Reset

func (m *MsgAddMarkerRequest) Reset()

func (MsgAddMarkerRequest) Route

func (msg MsgAddMarkerRequest) Route() string

Route returns the name of the module.

func (*MsgAddMarkerRequest) Size

func (m *MsgAddMarkerRequest) Size() (n int)

func (*MsgAddMarkerRequest) String

func (m *MsgAddMarkerRequest) String() string

func (MsgAddMarkerRequest) Type

func (msg MsgAddMarkerRequest) Type() string

Type returns the message action.

func (*MsgAddMarkerRequest) Unmarshal

func (m *MsgAddMarkerRequest) Unmarshal(dAtA []byte) error

func (MsgAddMarkerRequest) ValidateBasic

func (msg MsgAddMarkerRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgAddMarkerRequest) XXX_DiscardUnknown

func (m *MsgAddMarkerRequest) XXX_DiscardUnknown()

func (*MsgAddMarkerRequest) XXX_Marshal

func (m *MsgAddMarkerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAddMarkerRequest) XXX_Merge

func (m *MsgAddMarkerRequest) XXX_Merge(src proto.Message)

func (*MsgAddMarkerRequest) XXX_Size

func (m *MsgAddMarkerRequest) XXX_Size() int

func (*MsgAddMarkerRequest) XXX_Unmarshal

func (m *MsgAddMarkerRequest) XXX_Unmarshal(b []byte) error

type MsgAddMarkerResponse

type MsgAddMarkerResponse struct {
}

MsgAddMarkerResponse defines the Msg/AddMarker response type

func (*MsgAddMarkerResponse) Descriptor

func (*MsgAddMarkerResponse) Descriptor() ([]byte, []int)

func (*MsgAddMarkerResponse) Marshal

func (m *MsgAddMarkerResponse) Marshal() (dAtA []byte, err error)

func (*MsgAddMarkerResponse) MarshalTo

func (m *MsgAddMarkerResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgAddMarkerResponse) MarshalToSizedBuffer

func (m *MsgAddMarkerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAddMarkerResponse) ProtoMessage

func (*MsgAddMarkerResponse) ProtoMessage()

func (*MsgAddMarkerResponse) Reset

func (m *MsgAddMarkerResponse) Reset()

func (*MsgAddMarkerResponse) Size

func (m *MsgAddMarkerResponse) Size() (n int)

func (*MsgAddMarkerResponse) String

func (m *MsgAddMarkerResponse) String() string

func (*MsgAddMarkerResponse) Unmarshal

func (m *MsgAddMarkerResponse) Unmarshal(dAtA []byte) error

func (*MsgAddMarkerResponse) XXX_DiscardUnknown

func (m *MsgAddMarkerResponse) XXX_DiscardUnknown()

func (*MsgAddMarkerResponse) XXX_Marshal

func (m *MsgAddMarkerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAddMarkerResponse) XXX_Merge

func (m *MsgAddMarkerResponse) XXX_Merge(src proto.Message)

func (*MsgAddMarkerResponse) XXX_Size

func (m *MsgAddMarkerResponse) XXX_Size() int

func (*MsgAddMarkerResponse) XXX_Unmarshal

func (m *MsgAddMarkerResponse) XXX_Unmarshal(b []byte) error

type MsgBurnRequest

type MsgBurnRequest struct {
	Amount        github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
	Administrator string                                  `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

MsgBurnRequest defines the Msg/Burn request type

func NewMsgBurnRequest added in v1.2.0

func NewMsgBurnRequest(admin sdk.AccAddress, amount sdk.Coin) *MsgBurnRequest

NewMsgBurnRequest creates a burn supply message

func (*MsgBurnRequest) Descriptor

func (*MsgBurnRequest) Descriptor() ([]byte, []int)

func (*MsgBurnRequest) GetAdministrator

func (m *MsgBurnRequest) GetAdministrator() string

func (MsgBurnRequest) GetSignBytes

func (msg MsgBurnRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgBurnRequest) GetSigners

func (msg MsgBurnRequest) GetSigners() []sdk.AccAddress

GetSigners indicates that the message must have been signed by the address provided.

func (*MsgBurnRequest) Marshal

func (m *MsgBurnRequest) Marshal() (dAtA []byte, err error)

func (*MsgBurnRequest) MarshalTo

func (m *MsgBurnRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgBurnRequest) MarshalToSizedBuffer

func (m *MsgBurnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBurnRequest) ProtoMessage

func (*MsgBurnRequest) ProtoMessage()

func (*MsgBurnRequest) Reset

func (m *MsgBurnRequest) Reset()

func (MsgBurnRequest) Route

func (msg MsgBurnRequest) Route() string

Route returns the name of the module.

func (*MsgBurnRequest) Size

func (m *MsgBurnRequest) Size() (n int)

func (*MsgBurnRequest) String

func (m *MsgBurnRequest) String() string

func (MsgBurnRequest) Type

func (msg MsgBurnRequest) Type() string

Type returns the message action.

func (*MsgBurnRequest) Unmarshal

func (m *MsgBurnRequest) Unmarshal(dAtA []byte) error

func (MsgBurnRequest) ValidateBasic

func (msg MsgBurnRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgBurnRequest) XXX_DiscardUnknown

func (m *MsgBurnRequest) XXX_DiscardUnknown()

func (*MsgBurnRequest) XXX_Marshal

func (m *MsgBurnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBurnRequest) XXX_Merge

func (m *MsgBurnRequest) XXX_Merge(src proto.Message)

func (*MsgBurnRequest) XXX_Size

func (m *MsgBurnRequest) XXX_Size() int

func (*MsgBurnRequest) XXX_Unmarshal

func (m *MsgBurnRequest) XXX_Unmarshal(b []byte) error

type MsgBurnResponse

type MsgBurnResponse struct {
}

MsgBurnResponse defines the Msg/Burn response type

func (*MsgBurnResponse) Descriptor

func (*MsgBurnResponse) Descriptor() ([]byte, []int)

func (*MsgBurnResponse) Marshal

func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)

func (*MsgBurnResponse) MarshalTo

func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgBurnResponse) MarshalToSizedBuffer

func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBurnResponse) ProtoMessage

func (*MsgBurnResponse) ProtoMessage()

func (*MsgBurnResponse) Reset

func (m *MsgBurnResponse) Reset()

func (*MsgBurnResponse) Size

func (m *MsgBurnResponse) Size() (n int)

func (*MsgBurnResponse) String

func (m *MsgBurnResponse) String() string

func (*MsgBurnResponse) Unmarshal

func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error

func (*MsgBurnResponse) XXX_DiscardUnknown

func (m *MsgBurnResponse) XXX_DiscardUnknown()

func (*MsgBurnResponse) XXX_Marshal

func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBurnResponse) XXX_Merge

func (m *MsgBurnResponse) XXX_Merge(src proto.Message)

func (*MsgBurnResponse) XXX_Size

func (m *MsgBurnResponse) XXX_Size() int

func (*MsgBurnResponse) XXX_Unmarshal

func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error

type MsgCancelRequest

type MsgCancelRequest struct {
	Denom         string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

MsgCancelRequest defines the Msg/Cancel request type

func NewMsgCancelRequest added in v1.2.0

func NewMsgCancelRequest(denom string, admin sdk.AccAddress) *MsgCancelRequest

NewMsgCancelRequest

func (*MsgCancelRequest) Descriptor

func (*MsgCancelRequest) Descriptor() ([]byte, []int)

func (*MsgCancelRequest) GetAdministrator

func (m *MsgCancelRequest) GetAdministrator() string

func (*MsgCancelRequest) GetDenom

func (m *MsgCancelRequest) GetDenom() string

func (MsgCancelRequest) GetSignBytes

func (msg MsgCancelRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgCancelRequest) GetSigners

func (msg MsgCancelRequest) GetSigners() []sdk.AccAddress

GetSigners indicates that the message must have been signed by the address provided.

func (*MsgCancelRequest) Marshal

func (m *MsgCancelRequest) Marshal() (dAtA []byte, err error)

func (*MsgCancelRequest) MarshalTo

func (m *MsgCancelRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancelRequest) MarshalToSizedBuffer

func (m *MsgCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancelRequest) ProtoMessage

func (*MsgCancelRequest) ProtoMessage()

func (*MsgCancelRequest) Reset

func (m *MsgCancelRequest) Reset()

func (MsgCancelRequest) Route

func (msg MsgCancelRequest) Route() string

Route returns the name of the module.

func (*MsgCancelRequest) Size

func (m *MsgCancelRequest) Size() (n int)

func (*MsgCancelRequest) String

func (m *MsgCancelRequest) String() string

func (MsgCancelRequest) Type

func (msg MsgCancelRequest) Type() string

Type returns the message action.

func (*MsgCancelRequest) Unmarshal

func (m *MsgCancelRequest) Unmarshal(dAtA []byte) error

func (MsgCancelRequest) ValidateBasic

func (msg MsgCancelRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgCancelRequest) XXX_DiscardUnknown

func (m *MsgCancelRequest) XXX_DiscardUnknown()

func (*MsgCancelRequest) XXX_Marshal

func (m *MsgCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancelRequest) XXX_Merge

func (m *MsgCancelRequest) XXX_Merge(src proto.Message)

func (*MsgCancelRequest) XXX_Size

func (m *MsgCancelRequest) XXX_Size() int

func (*MsgCancelRequest) XXX_Unmarshal

func (m *MsgCancelRequest) XXX_Unmarshal(b []byte) error

type MsgCancelResponse

type MsgCancelResponse struct {
}

MsgCancelResponse defines the Msg/Cancel response type

func (*MsgCancelResponse) Descriptor

func (*MsgCancelResponse) Descriptor() ([]byte, []int)

func (*MsgCancelResponse) Marshal

func (m *MsgCancelResponse) Marshal() (dAtA []byte, err error)

func (*MsgCancelResponse) MarshalTo

func (m *MsgCancelResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancelResponse) MarshalToSizedBuffer

func (m *MsgCancelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancelResponse) ProtoMessage

func (*MsgCancelResponse) ProtoMessage()

func (*MsgCancelResponse) Reset

func (m *MsgCancelResponse) Reset()

func (*MsgCancelResponse) Size

func (m *MsgCancelResponse) Size() (n int)

func (*MsgCancelResponse) String

func (m *MsgCancelResponse) String() string

func (*MsgCancelResponse) Unmarshal

func (m *MsgCancelResponse) Unmarshal(dAtA []byte) error

func (*MsgCancelResponse) XXX_DiscardUnknown

func (m *MsgCancelResponse) XXX_DiscardUnknown()

func (*MsgCancelResponse) XXX_Marshal

func (m *MsgCancelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancelResponse) XXX_Merge

func (m *MsgCancelResponse) XXX_Merge(src proto.Message)

func (*MsgCancelResponse) XXX_Size

func (m *MsgCancelResponse) XXX_Size() int

func (*MsgCancelResponse) XXX_Unmarshal

func (m *MsgCancelResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// Finalize
	Finalize(ctx context.Context, in *MsgFinalizeRequest, opts ...grpc.CallOption) (*MsgFinalizeResponse, error)
	// Activate
	Activate(ctx context.Context, in *MsgActivateRequest, opts ...grpc.CallOption) (*MsgActivateResponse, error)
	// Cancel
	Cancel(ctx context.Context, in *MsgCancelRequest, opts ...grpc.CallOption) (*MsgCancelResponse, error)
	// Delete
	Delete(ctx context.Context, in *MsgDeleteRequest, opts ...grpc.CallOption) (*MsgDeleteResponse, error)
	// Mint
	Mint(ctx context.Context, in *MsgMintRequest, opts ...grpc.CallOption) (*MsgMintResponse, error)
	// Burn
	Burn(ctx context.Context, in *MsgBurnRequest, opts ...grpc.CallOption) (*MsgBurnResponse, error)
	// AddAccess
	AddAccess(ctx context.Context, in *MsgAddAccessRequest, opts ...grpc.CallOption) (*MsgAddAccessResponse, error)
	// DeleteAccess
	DeleteAccess(ctx context.Context, in *MsgDeleteAccessRequest, opts ...grpc.CallOption) (*MsgDeleteAccessResponse, error)
	// Withdraw
	Withdraw(ctx context.Context, in *MsgWithdrawRequest, opts ...grpc.CallOption) (*MsgWithdrawResponse, error)
	// AddMarker
	AddMarker(ctx context.Context, in *MsgAddMarkerRequest, opts ...grpc.CallOption) (*MsgAddMarkerResponse, error)
	// Transfer marker denominated coin between accounts
	Transfer(ctx context.Context, in *MsgTransferRequest, opts ...grpc.CallOption) (*MsgTransferResponse, error)
	// Allows Denom Metadata (see bank module) to be set for the Marker's Denom
	SetDenomMetadata(ctx context.Context, in *MsgSetDenomMetadataRequest, opts ...grpc.CallOption) (*MsgSetDenomMetadataResponse, error)
	// GrantAllowance grants fee allowance to the grantee on the granter's
	// account with the provided expiration time.
	GrantAllowance(ctx context.Context, in *MsgGrantAllowanceRequest, opts ...grpc.CallOption) (*MsgGrantAllowanceResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgDeleteAccessRequest

type MsgDeleteAccessRequest struct {
	Denom          string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator  string `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
	RemovedAddress string `protobuf:"bytes,3,opt,name=removed_address,json=removedAddress,proto3" json:"removed_address,omitempty"`
}

MsgDeleteAccessRequest defines the Msg/DeleteAccess request type

func NewDeleteAccessRequest

func NewDeleteAccessRequest(denom string, admin sdk.AccAddress, removed sdk.AccAddress) *MsgDeleteAccessRequest

NewDeleteAccessRequest

func (*MsgDeleteAccessRequest) Descriptor

func (*MsgDeleteAccessRequest) Descriptor() ([]byte, []int)

func (*MsgDeleteAccessRequest) GetAdministrator

func (m *MsgDeleteAccessRequest) GetAdministrator() string

func (*MsgDeleteAccessRequest) GetDenom

func (m *MsgDeleteAccessRequest) GetDenom() string

func (*MsgDeleteAccessRequest) GetRemovedAddress

func (m *MsgDeleteAccessRequest) GetRemovedAddress() string

func (MsgDeleteAccessRequest) GetSignBytes

func (msg MsgDeleteAccessRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgDeleteAccessRequest) GetSigners

func (msg MsgDeleteAccessRequest) GetSigners() []sdk.AccAddress

GetSigners indicates that the message must have been signed by the address provided.

func (*MsgDeleteAccessRequest) Marshal

func (m *MsgDeleteAccessRequest) Marshal() (dAtA []byte, err error)

func (*MsgDeleteAccessRequest) MarshalTo

func (m *MsgDeleteAccessRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeleteAccessRequest) MarshalToSizedBuffer

func (m *MsgDeleteAccessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeleteAccessRequest) ProtoMessage

func (*MsgDeleteAccessRequest) ProtoMessage()

func (*MsgDeleteAccessRequest) Reset

func (m *MsgDeleteAccessRequest) Reset()

func (MsgDeleteAccessRequest) Route

func (msg MsgDeleteAccessRequest) Route() string

Route returns the name of the module.

func (*MsgDeleteAccessRequest) Size

func (m *MsgDeleteAccessRequest) Size() (n int)

func (*MsgDeleteAccessRequest) String

func (m *MsgDeleteAccessRequest) String() string

func (MsgDeleteAccessRequest) Type

func (msg MsgDeleteAccessRequest) Type() string

Type returns the message action.

func (*MsgDeleteAccessRequest) Unmarshal

func (m *MsgDeleteAccessRequest) Unmarshal(dAtA []byte) error

func (MsgDeleteAccessRequest) ValidateBasic

func (msg MsgDeleteAccessRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgDeleteAccessRequest) XXX_DiscardUnknown

func (m *MsgDeleteAccessRequest) XXX_DiscardUnknown()

func (*MsgDeleteAccessRequest) XXX_Marshal

func (m *MsgDeleteAccessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeleteAccessRequest) XXX_Merge

func (m *MsgDeleteAccessRequest) XXX_Merge(src proto.Message)

func (*MsgDeleteAccessRequest) XXX_Size

func (m *MsgDeleteAccessRequest) XXX_Size() int

func (*MsgDeleteAccessRequest) XXX_Unmarshal

func (m *MsgDeleteAccessRequest) XXX_Unmarshal(b []byte) error

type MsgDeleteAccessResponse

type MsgDeleteAccessResponse struct {
}

MsgDeleteAccessResponse defines the Msg/DeleteAccess response type

func (*MsgDeleteAccessResponse) Descriptor

func (*MsgDeleteAccessResponse) Descriptor() ([]byte, []int)

func (*MsgDeleteAccessResponse) Marshal

func (m *MsgDeleteAccessResponse) Marshal() (dAtA []byte, err error)

func (*MsgDeleteAccessResponse) MarshalTo

func (m *MsgDeleteAccessResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeleteAccessResponse) MarshalToSizedBuffer

func (m *MsgDeleteAccessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeleteAccessResponse) ProtoMessage

func (*MsgDeleteAccessResponse) ProtoMessage()

func (*MsgDeleteAccessResponse) Reset

func (m *MsgDeleteAccessResponse) Reset()

func (*MsgDeleteAccessResponse) Size

func (m *MsgDeleteAccessResponse) Size() (n int)

func (*MsgDeleteAccessResponse) String

func (m *MsgDeleteAccessResponse) String() string

func (*MsgDeleteAccessResponse) Unmarshal

func (m *MsgDeleteAccessResponse) Unmarshal(dAtA []byte) error

func (*MsgDeleteAccessResponse) XXX_DiscardUnknown

func (m *MsgDeleteAccessResponse) XXX_DiscardUnknown()

func (*MsgDeleteAccessResponse) XXX_Marshal

func (m *MsgDeleteAccessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeleteAccessResponse) XXX_Merge

func (m *MsgDeleteAccessResponse) XXX_Merge(src proto.Message)

func (*MsgDeleteAccessResponse) XXX_Size

func (m *MsgDeleteAccessResponse) XXX_Size() int

func (*MsgDeleteAccessResponse) XXX_Unmarshal

func (m *MsgDeleteAccessResponse) XXX_Unmarshal(b []byte) error

type MsgDeleteRequest

type MsgDeleteRequest struct {
	Denom         string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

MsgDeleteRequest defines the Msg/Delete request type

func NewMsgDeleteRequest added in v1.2.0

func NewMsgDeleteRequest(denom string, admin sdk.AccAddress) *MsgDeleteRequest

NewMsgDeleteRequest

func (*MsgDeleteRequest) Descriptor

func (*MsgDeleteRequest) Descriptor() ([]byte, []int)

func (*MsgDeleteRequest) GetAdministrator

func (m *MsgDeleteRequest) GetAdministrator() string

func (*MsgDeleteRequest) GetDenom

func (m *MsgDeleteRequest) GetDenom() string

func (MsgDeleteRequest) GetSignBytes

func (msg MsgDeleteRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgDeleteRequest) GetSigners

func (msg MsgDeleteRequest) GetSigners() []sdk.AccAddress

GetSigners indicates that the message must have been signed by the address provided.

func (*MsgDeleteRequest) Marshal

func (m *MsgDeleteRequest) Marshal() (dAtA []byte, err error)

func (*MsgDeleteRequest) MarshalTo

func (m *MsgDeleteRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeleteRequest) MarshalToSizedBuffer

func (m *MsgDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeleteRequest) ProtoMessage

func (*MsgDeleteRequest) ProtoMessage()

func (*MsgDeleteRequest) Reset

func (m *MsgDeleteRequest) Reset()

func (MsgDeleteRequest) Route

func (msg MsgDeleteRequest) Route() string

Route returns the name of the module.

func (*MsgDeleteRequest) Size

func (m *MsgDeleteRequest) Size() (n int)

func (*MsgDeleteRequest) String

func (m *MsgDeleteRequest) String() string

func (MsgDeleteRequest) Type

func (msg MsgDeleteRequest) Type() string

Type returns the message action.

func (*MsgDeleteRequest) Unmarshal

func (m *MsgDeleteRequest) Unmarshal(dAtA []byte) error

func (MsgDeleteRequest) ValidateBasic

func (msg MsgDeleteRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgDeleteRequest) XXX_DiscardUnknown

func (m *MsgDeleteRequest) XXX_DiscardUnknown()

func (*MsgDeleteRequest) XXX_Marshal

func (m *MsgDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeleteRequest) XXX_Merge

func (m *MsgDeleteRequest) XXX_Merge(src proto.Message)

func (*MsgDeleteRequest) XXX_Size

func (m *MsgDeleteRequest) XXX_Size() int

func (*MsgDeleteRequest) XXX_Unmarshal

func (m *MsgDeleteRequest) XXX_Unmarshal(b []byte) error

type MsgDeleteResponse

type MsgDeleteResponse struct {
}

MsgDeleteResponse defines the Msg/Delete response type

func (*MsgDeleteResponse) Descriptor

func (*MsgDeleteResponse) Descriptor() ([]byte, []int)

func (*MsgDeleteResponse) Marshal

func (m *MsgDeleteResponse) Marshal() (dAtA []byte, err error)

func (*MsgDeleteResponse) MarshalTo

func (m *MsgDeleteResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeleteResponse) MarshalToSizedBuffer

func (m *MsgDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeleteResponse) ProtoMessage

func (*MsgDeleteResponse) ProtoMessage()

func (*MsgDeleteResponse) Reset

func (m *MsgDeleteResponse) Reset()

func (*MsgDeleteResponse) Size

func (m *MsgDeleteResponse) Size() (n int)

func (*MsgDeleteResponse) String

func (m *MsgDeleteResponse) String() string

func (*MsgDeleteResponse) Unmarshal

func (m *MsgDeleteResponse) Unmarshal(dAtA []byte) error

func (*MsgDeleteResponse) XXX_DiscardUnknown

func (m *MsgDeleteResponse) XXX_DiscardUnknown()

func (*MsgDeleteResponse) XXX_Marshal

func (m *MsgDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeleteResponse) XXX_Merge

func (m *MsgDeleteResponse) XXX_Merge(src proto.Message)

func (*MsgDeleteResponse) XXX_Size

func (m *MsgDeleteResponse) XXX_Size() int

func (*MsgDeleteResponse) XXX_Unmarshal

func (m *MsgDeleteResponse) XXX_Unmarshal(b []byte) error

type MsgFinalizeRequest

type MsgFinalizeRequest struct {
	Denom         string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

MsgFinalizeRequest defines the Msg/Finalize request type

func NewMsgFinalizeRequest added in v1.2.0

func NewMsgFinalizeRequest(denom string, admin sdk.AccAddress) *MsgFinalizeRequest

NewMsgFinalizeRequest

func (*MsgFinalizeRequest) Descriptor

func (*MsgFinalizeRequest) Descriptor() ([]byte, []int)

func (*MsgFinalizeRequest) GetAdministrator

func (m *MsgFinalizeRequest) GetAdministrator() string

func (*MsgFinalizeRequest) GetDenom

func (m *MsgFinalizeRequest) GetDenom() string

func (MsgFinalizeRequest) GetSignBytes

func (msg MsgFinalizeRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgFinalizeRequest) GetSigners

func (msg MsgFinalizeRequest) GetSigners() []sdk.AccAddress

GetSigners indicates that the message must have been signed by the address provided.

func (*MsgFinalizeRequest) Marshal

func (m *MsgFinalizeRequest) Marshal() (dAtA []byte, err error)

func (*MsgFinalizeRequest) MarshalTo

func (m *MsgFinalizeRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgFinalizeRequest) MarshalToSizedBuffer

func (m *MsgFinalizeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgFinalizeRequest) ProtoMessage

func (*MsgFinalizeRequest) ProtoMessage()

func (*MsgFinalizeRequest) Reset

func (m *MsgFinalizeRequest) Reset()

func (MsgFinalizeRequest) Route

func (msg MsgFinalizeRequest) Route() string

Route returns the name of the module.

func (*MsgFinalizeRequest) Size

func (m *MsgFinalizeRequest) Size() (n int)

func (*MsgFinalizeRequest) String

func (m *MsgFinalizeRequest) String() string

func (MsgFinalizeRequest) Type

func (msg MsgFinalizeRequest) Type() string

Type returns the message action.

func (*MsgFinalizeRequest) Unmarshal

func (m *MsgFinalizeRequest) Unmarshal(dAtA []byte) error

func (MsgFinalizeRequest) ValidateBasic

func (msg MsgFinalizeRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgFinalizeRequest) XXX_DiscardUnknown

func (m *MsgFinalizeRequest) XXX_DiscardUnknown()

func (*MsgFinalizeRequest) XXX_Marshal

func (m *MsgFinalizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgFinalizeRequest) XXX_Merge

func (m *MsgFinalizeRequest) XXX_Merge(src proto.Message)

func (*MsgFinalizeRequest) XXX_Size

func (m *MsgFinalizeRequest) XXX_Size() int

func (*MsgFinalizeRequest) XXX_Unmarshal

func (m *MsgFinalizeRequest) XXX_Unmarshal(b []byte) error

type MsgFinalizeResponse

type MsgFinalizeResponse struct {
}

MsgFinalizeResponse defines the Msg/Finalize response type

func (*MsgFinalizeResponse) Descriptor

func (*MsgFinalizeResponse) Descriptor() ([]byte, []int)

func (*MsgFinalizeResponse) Marshal

func (m *MsgFinalizeResponse) Marshal() (dAtA []byte, err error)

func (*MsgFinalizeResponse) MarshalTo

func (m *MsgFinalizeResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgFinalizeResponse) MarshalToSizedBuffer

func (m *MsgFinalizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgFinalizeResponse) ProtoMessage

func (*MsgFinalizeResponse) ProtoMessage()

func (*MsgFinalizeResponse) Reset

func (m *MsgFinalizeResponse) Reset()

func (*MsgFinalizeResponse) Size

func (m *MsgFinalizeResponse) Size() (n int)

func (*MsgFinalizeResponse) String

func (m *MsgFinalizeResponse) String() string

func (*MsgFinalizeResponse) Unmarshal

func (m *MsgFinalizeResponse) Unmarshal(dAtA []byte) error

func (*MsgFinalizeResponse) XXX_DiscardUnknown

func (m *MsgFinalizeResponse) XXX_DiscardUnknown()

func (*MsgFinalizeResponse) XXX_Marshal

func (m *MsgFinalizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgFinalizeResponse) XXX_Merge

func (m *MsgFinalizeResponse) XXX_Merge(src proto.Message)

func (*MsgFinalizeResponse) XXX_Size

func (m *MsgFinalizeResponse) XXX_Size() int

func (*MsgFinalizeResponse) XXX_Unmarshal

func (m *MsgFinalizeResponse) XXX_Unmarshal(b []byte) error

type MsgGrantAllowanceRequest added in v1.11.0

type MsgGrantAllowanceRequest struct {
	Denom         string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
	// grantee is the address of the user being granted an allowance of another user's funds.
	Grantee string `protobuf:"bytes,3,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// allowance can be any of basic and filtered fee allowance (fee FeeGrant module).
	Allowance *types.Any `protobuf:"bytes,4,opt,name=allowance,proto3" json:"allowance,omitempty"`
}

MsgGrantAllowanceRequest validates permission to create a fee grant based on marker admin access. If successful a feegrant is recorded where the marker account itself is the grantor

func NewMsgGrantAllowance added in v1.11.0

func NewMsgGrantAllowance(
	denom string, admin sdk.AccAddress, grantee sdk.AccAddress, allowance feegranttypes.FeeAllowanceI,
) (*MsgGrantAllowanceRequest, error)

NewMsgAddMarkerRequest creates a new marker in a proposed state with a given total supply a denomination

func (*MsgGrantAllowanceRequest) Descriptor added in v1.11.0

func (*MsgGrantAllowanceRequest) Descriptor() ([]byte, []int)

func (*MsgGrantAllowanceRequest) GetAdministrator added in v1.11.0

func (m *MsgGrantAllowanceRequest) GetAdministrator() string

func (*MsgGrantAllowanceRequest) GetAllowance added in v1.11.0

func (m *MsgGrantAllowanceRequest) GetAllowance() *types.Any

func (*MsgGrantAllowanceRequest) GetDenom added in v1.11.0

func (m *MsgGrantAllowanceRequest) GetDenom() string

func (MsgGrantAllowanceRequest) GetFeeAllowanceI added in v1.11.0

func (msg MsgGrantAllowanceRequest) GetFeeAllowanceI() (feegranttypes.FeeAllowanceI, error)

GetFeeAllowanceI returns unpacked FeeAllowance

func (*MsgGrantAllowanceRequest) GetGrantee added in v1.11.0

func (m *MsgGrantAllowanceRequest) GetGrantee() string

func (MsgGrantAllowanceRequest) GetSignBytes added in v1.11.0

func (msg MsgGrantAllowanceRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgGrantAllowanceRequest) GetSigners added in v1.11.0

func (msg MsgGrantAllowanceRequest) GetSigners() []sdk.AccAddress

GetSigners indicates that the message must have been signed by the address provided.

func (*MsgGrantAllowanceRequest) Marshal added in v1.11.0

func (m *MsgGrantAllowanceRequest) Marshal() (dAtA []byte, err error)

func (*MsgGrantAllowanceRequest) MarshalTo added in v1.11.0

func (m *MsgGrantAllowanceRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgGrantAllowanceRequest) MarshalToSizedBuffer added in v1.11.0

func (m *MsgGrantAllowanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgGrantAllowanceRequest) ProtoMessage added in v1.11.0

func (*MsgGrantAllowanceRequest) ProtoMessage()

func (*MsgGrantAllowanceRequest) Reset added in v1.11.0

func (m *MsgGrantAllowanceRequest) Reset()

func (MsgGrantAllowanceRequest) Route added in v1.11.0

func (msg MsgGrantAllowanceRequest) Route() string

Route returns the name of the module.

func (*MsgGrantAllowanceRequest) Size added in v1.11.0

func (m *MsgGrantAllowanceRequest) Size() (n int)

func (*MsgGrantAllowanceRequest) String added in v1.11.0

func (m *MsgGrantAllowanceRequest) String() string

func (MsgGrantAllowanceRequest) Type added in v1.11.0

func (msg MsgGrantAllowanceRequest) Type() string

Type returns the message action.

func (*MsgGrantAllowanceRequest) Unmarshal added in v1.11.0

func (m *MsgGrantAllowanceRequest) Unmarshal(dAtA []byte) error

func (MsgGrantAllowanceRequest) UnpackInterfaces added in v1.11.0

func (msg MsgGrantAllowanceRequest) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgGrantAllowanceRequest) ValidateBasic added in v1.11.0

func (msg MsgGrantAllowanceRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgGrantAllowanceRequest) XXX_DiscardUnknown added in v1.11.0

func (m *MsgGrantAllowanceRequest) XXX_DiscardUnknown()

func (*MsgGrantAllowanceRequest) XXX_Marshal added in v1.11.0

func (m *MsgGrantAllowanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgGrantAllowanceRequest) XXX_Merge added in v1.11.0

func (m *MsgGrantAllowanceRequest) XXX_Merge(src proto.Message)

func (*MsgGrantAllowanceRequest) XXX_Size added in v1.11.0

func (m *MsgGrantAllowanceRequest) XXX_Size() int

func (*MsgGrantAllowanceRequest) XXX_Unmarshal added in v1.11.0

func (m *MsgGrantAllowanceRequest) XXX_Unmarshal(b []byte) error

type MsgGrantAllowanceResponse added in v1.11.0

type MsgGrantAllowanceResponse struct {
}

MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type.

func (*MsgGrantAllowanceResponse) Descriptor added in v1.11.0

func (*MsgGrantAllowanceResponse) Descriptor() ([]byte, []int)

func (*MsgGrantAllowanceResponse) Marshal added in v1.11.0

func (m *MsgGrantAllowanceResponse) Marshal() (dAtA []byte, err error)

func (*MsgGrantAllowanceResponse) MarshalTo added in v1.11.0

func (m *MsgGrantAllowanceResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgGrantAllowanceResponse) MarshalToSizedBuffer added in v1.11.0

func (m *MsgGrantAllowanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgGrantAllowanceResponse) ProtoMessage added in v1.11.0

func (*MsgGrantAllowanceResponse) ProtoMessage()

func (*MsgGrantAllowanceResponse) Reset added in v1.11.0

func (m *MsgGrantAllowanceResponse) Reset()

func (*MsgGrantAllowanceResponse) Size added in v1.11.0

func (m *MsgGrantAllowanceResponse) Size() (n int)

func (*MsgGrantAllowanceResponse) String added in v1.11.0

func (m *MsgGrantAllowanceResponse) String() string

func (*MsgGrantAllowanceResponse) Unmarshal added in v1.11.0

func (m *MsgGrantAllowanceResponse) Unmarshal(dAtA []byte) error

func (*MsgGrantAllowanceResponse) XXX_DiscardUnknown added in v1.11.0

func (m *MsgGrantAllowanceResponse) XXX_DiscardUnknown()

func (*MsgGrantAllowanceResponse) XXX_Marshal added in v1.11.0

func (m *MsgGrantAllowanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgGrantAllowanceResponse) XXX_Merge added in v1.11.0

func (m *MsgGrantAllowanceResponse) XXX_Merge(src proto.Message)

func (*MsgGrantAllowanceResponse) XXX_Size added in v1.11.0

func (m *MsgGrantAllowanceResponse) XXX_Size() int

func (*MsgGrantAllowanceResponse) XXX_Unmarshal added in v1.11.0

func (m *MsgGrantAllowanceResponse) XXX_Unmarshal(b []byte) error

type MsgMintRequest

type MsgMintRequest struct {
	Amount        github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
	Administrator string                                  `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

MsgMintRequest defines the Msg/Mint request type

func NewMsgMintRequest added in v1.2.0

func NewMsgMintRequest(admin sdk.AccAddress, amount sdk.Coin) *MsgMintRequest

NewMsgMintRequest creates a mint supply message

func (*MsgMintRequest) Descriptor

func (*MsgMintRequest) Descriptor() ([]byte, []int)

func (*MsgMintRequest) GetAdministrator

func (m *MsgMintRequest) GetAdministrator() string

func (MsgMintRequest) GetSignBytes

func (msg MsgMintRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgMintRequest) GetSigners

func (msg MsgMintRequest) GetSigners() []sdk.AccAddress

GetSigners indicates that the message must have been signed by the address provided.

func (*MsgMintRequest) Marshal

func (m *MsgMintRequest) Marshal() (dAtA []byte, err error)

func (*MsgMintRequest) MarshalTo

func (m *MsgMintRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgMintRequest) MarshalToSizedBuffer

func (m *MsgMintRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgMintRequest) ProtoMessage

func (*MsgMintRequest) ProtoMessage()

func (*MsgMintRequest) Reset

func (m *MsgMintRequest) Reset()

func (MsgMintRequest) Route

func (msg MsgMintRequest) Route() string

Route returns the name of the module.

func (*MsgMintRequest) Size

func (m *MsgMintRequest) Size() (n int)

func (*MsgMintRequest) String

func (m *MsgMintRequest) String() string

func (MsgMintRequest) Type

func (msg MsgMintRequest) Type() string

Type returns the message action.

func (*MsgMintRequest) Unmarshal

func (m *MsgMintRequest) Unmarshal(dAtA []byte) error

func (MsgMintRequest) ValidateBasic

func (msg MsgMintRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgMintRequest) XXX_DiscardUnknown

func (m *MsgMintRequest) XXX_DiscardUnknown()

func (*MsgMintRequest) XXX_Marshal

func (m *MsgMintRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgMintRequest) XXX_Merge

func (m *MsgMintRequest) XXX_Merge(src proto.Message)

func (*MsgMintRequest) XXX_Size

func (m *MsgMintRequest) XXX_Size() int

func (*MsgMintRequest) XXX_Unmarshal

func (m *MsgMintRequest) XXX_Unmarshal(b []byte) error

type MsgMintResponse

type MsgMintResponse struct {
}

MsgMintResponse defines the Msg/Mint response type

func (*MsgMintResponse) Descriptor

func (*MsgMintResponse) Descriptor() ([]byte, []int)

func (*MsgMintResponse) Marshal

func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)

func (*MsgMintResponse) MarshalTo

func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgMintResponse) MarshalToSizedBuffer

func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgMintResponse) ProtoMessage

func (*MsgMintResponse) ProtoMessage()

func (*MsgMintResponse) Reset

func (m *MsgMintResponse) Reset()

func (*MsgMintResponse) Size

func (m *MsgMintResponse) Size() (n int)

func (*MsgMintResponse) String

func (m *MsgMintResponse) String() string

func (*MsgMintResponse) Unmarshal

func (m *MsgMintResponse) Unmarshal(dAtA []byte) error

func (*MsgMintResponse) XXX_DiscardUnknown

func (m *MsgMintResponse) XXX_DiscardUnknown()

func (*MsgMintResponse) XXX_Marshal

func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgMintResponse) XXX_Merge

func (m *MsgMintResponse) XXX_Merge(src proto.Message)

func (*MsgMintResponse) XXX_Size

func (m *MsgMintResponse) XXX_Size() int

func (*MsgMintResponse) XXX_Unmarshal

func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// Finalize
	Finalize(context.Context, *MsgFinalizeRequest) (*MsgFinalizeResponse, error)
	// Activate
	Activate(context.Context, *MsgActivateRequest) (*MsgActivateResponse, error)
	// Cancel
	Cancel(context.Context, *MsgCancelRequest) (*MsgCancelResponse, error)
	// Delete
	Delete(context.Context, *MsgDeleteRequest) (*MsgDeleteResponse, error)
	// Mint
	Mint(context.Context, *MsgMintRequest) (*MsgMintResponse, error)
	// Burn
	Burn(context.Context, *MsgBurnRequest) (*MsgBurnResponse, error)
	// AddAccess
	AddAccess(context.Context, *MsgAddAccessRequest) (*MsgAddAccessResponse, error)
	// DeleteAccess
	DeleteAccess(context.Context, *MsgDeleteAccessRequest) (*MsgDeleteAccessResponse, error)
	// Withdraw
	Withdraw(context.Context, *MsgWithdrawRequest) (*MsgWithdrawResponse, error)
	// AddMarker
	AddMarker(context.Context, *MsgAddMarkerRequest) (*MsgAddMarkerResponse, error)
	// Transfer marker denominated coin between accounts
	Transfer(context.Context, *MsgTransferRequest) (*MsgTransferResponse, error)
	// Allows Denom Metadata (see bank module) to be set for the Marker's Denom
	SetDenomMetadata(context.Context, *MsgSetDenomMetadataRequest) (*MsgSetDenomMetadataResponse, error)
	// GrantAllowance grants fee allowance to the grantee on the granter's
	// account with the provided expiration time.
	GrantAllowance(context.Context, *MsgGrantAllowanceRequest) (*MsgGrantAllowanceResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetDenomMetadataRequest

type MsgSetDenomMetadataRequest struct {
	Metadata      github_com_cosmos_cosmos_sdk_x_bank_types.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3,customtype=github.com/cosmos/cosmos-sdk/x/bank/types.Metadata" json:"metadata"`
	Administrator string                                             `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
}

MsgSetDenomMetadataRequest defines the Msg/SetDenomMetadata request type

func NewSetDenomMetadataRequest

func NewSetDenomMetadataRequest(
	metadata banktypes.Metadata, admin sdk.AccAddress,
) *MsgSetDenomMetadataRequest

NewSetDenomMetadataRequest creates a new marker in a proposed state with a given total supply a denomination

func (*MsgSetDenomMetadataRequest) Descriptor

func (*MsgSetDenomMetadataRequest) Descriptor() ([]byte, []int)

func (*MsgSetDenomMetadataRequest) GetAdministrator

func (m *MsgSetDenomMetadataRequest) GetAdministrator() string

func (MsgSetDenomMetadataRequest) GetSignBytes

func (msg MsgSetDenomMetadataRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgSetDenomMetadataRequest) GetSigners

func (msg MsgSetDenomMetadataRequest) GetSigners() []sdk.AccAddress

GetSigners indicates that the message must have been signed by the address provided.

func (*MsgSetDenomMetadataRequest) Marshal

func (m *MsgSetDenomMetadataRequest) Marshal() (dAtA []byte, err error)

func (*MsgSetDenomMetadataRequest) MarshalTo

func (m *MsgSetDenomMetadataRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgSetDenomMetadataRequest) MarshalToSizedBuffer

func (m *MsgSetDenomMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSetDenomMetadataRequest) ProtoMessage

func (*MsgSetDenomMetadataRequest) ProtoMessage()

func (*MsgSetDenomMetadataRequest) Reset

func (m *MsgSetDenomMetadataRequest) Reset()

func (MsgSetDenomMetadataRequest) Route

func (msg MsgSetDenomMetadataRequest) Route() string

Route returns the name of the module.

func (*MsgSetDenomMetadataRequest) Size

func (m *MsgSetDenomMetadataRequest) Size() (n int)

func (*MsgSetDenomMetadataRequest) String

func (m *MsgSetDenomMetadataRequest) String() string

func (MsgSetDenomMetadataRequest) Type

Type returns the message action.

func (*MsgSetDenomMetadataRequest) Unmarshal

func (m *MsgSetDenomMetadataRequest) Unmarshal(dAtA []byte) error

func (MsgSetDenomMetadataRequest) ValidateBasic

func (msg MsgSetDenomMetadataRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgSetDenomMetadataRequest) XXX_DiscardUnknown

func (m *MsgSetDenomMetadataRequest) XXX_DiscardUnknown()

func (*MsgSetDenomMetadataRequest) XXX_Marshal

func (m *MsgSetDenomMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSetDenomMetadataRequest) XXX_Merge

func (m *MsgSetDenomMetadataRequest) XXX_Merge(src proto.Message)

func (*MsgSetDenomMetadataRequest) XXX_Size

func (m *MsgSetDenomMetadataRequest) XXX_Size() int

func (*MsgSetDenomMetadataRequest) XXX_Unmarshal

func (m *MsgSetDenomMetadataRequest) XXX_Unmarshal(b []byte) error

type MsgSetDenomMetadataResponse

type MsgSetDenomMetadataResponse struct {
}

MsgSetDenomMetadataResponse defines the Msg/SetDenomMetadata response type

func (*MsgSetDenomMetadataResponse) Descriptor

func (*MsgSetDenomMetadataResponse) Descriptor() ([]byte, []int)

func (*MsgSetDenomMetadataResponse) Marshal

func (m *MsgSetDenomMetadataResponse) Marshal() (dAtA []byte, err error)

func (*MsgSetDenomMetadataResponse) MarshalTo

func (m *MsgSetDenomMetadataResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgSetDenomMetadataResponse) MarshalToSizedBuffer

func (m *MsgSetDenomMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSetDenomMetadataResponse) ProtoMessage

func (*MsgSetDenomMetadataResponse) ProtoMessage()

func (*MsgSetDenomMetadataResponse) Reset

func (m *MsgSetDenomMetadataResponse) Reset()

func (*MsgSetDenomMetadataResponse) Size

func (m *MsgSetDenomMetadataResponse) Size() (n int)

func (*MsgSetDenomMetadataResponse) String

func (m *MsgSetDenomMetadataResponse) String() string

func (*MsgSetDenomMetadataResponse) Unmarshal

func (m *MsgSetDenomMetadataResponse) Unmarshal(dAtA []byte) error

func (*MsgSetDenomMetadataResponse) XXX_DiscardUnknown

func (m *MsgSetDenomMetadataResponse) XXX_DiscardUnknown()

func (*MsgSetDenomMetadataResponse) XXX_Marshal

func (m *MsgSetDenomMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSetDenomMetadataResponse) XXX_Merge

func (m *MsgSetDenomMetadataResponse) XXX_Merge(src proto.Message)

func (*MsgSetDenomMetadataResponse) XXX_Size

func (m *MsgSetDenomMetadataResponse) XXX_Size() int

func (*MsgSetDenomMetadataResponse) XXX_Unmarshal

func (m *MsgSetDenomMetadataResponse) XXX_Unmarshal(b []byte) error

type MsgTransferRequest

type MsgTransferRequest struct {
	Amount        github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
	Administrator string                                  `protobuf:"bytes,3,opt,name=administrator,proto3" json:"administrator,omitempty"`
	FromAddress   string                                  `protobuf:"bytes,4,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	ToAddress     string                                  `protobuf:"bytes,5,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
}

MsgTransferRequest defines the Msg/Transfer request type

func NewMsgTransferRequest added in v1.2.0

func NewMsgTransferRequest(
	admin, fromAddress, toAddress sdk.AccAddress, amount sdk.Coin,
) *MsgTransferRequest

NewMsgTransferRequest

func (*MsgTransferRequest) Descriptor

func (*MsgTransferRequest) Descriptor() ([]byte, []int)

func (*MsgTransferRequest) GetAdministrator

func (m *MsgTransferRequest) GetAdministrator() string

func (*MsgTransferRequest) GetFromAddress

func (m *MsgTransferRequest) GetFromAddress() string

func (MsgTransferRequest) GetSignBytes

func (msg MsgTransferRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgTransferRequest) GetSigners

func (msg MsgTransferRequest) GetSigners() []sdk.AccAddress

GetSigners indicates that the message must have been signed by the address provided.

func (*MsgTransferRequest) GetToAddress

func (m *MsgTransferRequest) GetToAddress() string

func (*MsgTransferRequest) Marshal

func (m *MsgTransferRequest) Marshal() (dAtA []byte, err error)

func (*MsgTransferRequest) MarshalTo

func (m *MsgTransferRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgTransferRequest) MarshalToSizedBuffer

func (m *MsgTransferRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTransferRequest) ProtoMessage

func (*MsgTransferRequest) ProtoMessage()

func (*MsgTransferRequest) Reset

func (m *MsgTransferRequest) Reset()

func (MsgTransferRequest) Route

func (msg MsgTransferRequest) Route() string

Route returns the name of the module.

func (*MsgTransferRequest) Size

func (m *MsgTransferRequest) Size() (n int)

func (*MsgTransferRequest) String

func (m *MsgTransferRequest) String() string

func (MsgTransferRequest) Type

func (msg MsgTransferRequest) Type() string

Type returns the message action.

func (*MsgTransferRequest) Unmarshal

func (m *MsgTransferRequest) Unmarshal(dAtA []byte) error

func (MsgTransferRequest) ValidateBasic

func (msg MsgTransferRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgTransferRequest) XXX_DiscardUnknown

func (m *MsgTransferRequest) XXX_DiscardUnknown()

func (*MsgTransferRequest) XXX_Marshal

func (m *MsgTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTransferRequest) XXX_Merge

func (m *MsgTransferRequest) XXX_Merge(src proto.Message)

func (*MsgTransferRequest) XXX_Size

func (m *MsgTransferRequest) XXX_Size() int

func (*MsgTransferRequest) XXX_Unmarshal

func (m *MsgTransferRequest) XXX_Unmarshal(b []byte) error

type MsgTransferResponse

type MsgTransferResponse struct {
}

MsgTransferResponse defines the Msg/Transfer response type

func (*MsgTransferResponse) Descriptor

func (*MsgTransferResponse) Descriptor() ([]byte, []int)

func (*MsgTransferResponse) Marshal

func (m *MsgTransferResponse) Marshal() (dAtA []byte, err error)

func (*MsgTransferResponse) MarshalTo

func (m *MsgTransferResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgTransferResponse) MarshalToSizedBuffer

func (m *MsgTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTransferResponse) ProtoMessage

func (*MsgTransferResponse) ProtoMessage()

func (*MsgTransferResponse) Reset

func (m *MsgTransferResponse) Reset()

func (*MsgTransferResponse) Size

func (m *MsgTransferResponse) Size() (n int)

func (*MsgTransferResponse) String

func (m *MsgTransferResponse) String() string

func (*MsgTransferResponse) Unmarshal

func (m *MsgTransferResponse) Unmarshal(dAtA []byte) error

func (*MsgTransferResponse) XXX_DiscardUnknown

func (m *MsgTransferResponse) XXX_DiscardUnknown()

func (*MsgTransferResponse) XXX_Marshal

func (m *MsgTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTransferResponse) XXX_Merge

func (m *MsgTransferResponse) XXX_Merge(src proto.Message)

func (*MsgTransferResponse) XXX_Size

func (m *MsgTransferResponse) XXX_Size() int

func (*MsgTransferResponse) XXX_Unmarshal

func (m *MsgTransferResponse) XXX_Unmarshal(b []byte) error

type MsgWithdrawRequest

type MsgWithdrawRequest struct {
	Denom         string                                   `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Administrator string                                   `protobuf:"bytes,2,opt,name=administrator,proto3" json:"administrator,omitempty"`
	ToAddress     string                                   `protobuf:"bytes,3,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	Amount        github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgWithdrawRequest defines the Msg/Withdraw request type

func NewMsgWithdrawRequest added in v1.2.0

func NewMsgWithdrawRequest(
	admin sdk.AccAddress, toAddress sdk.AccAddress, denom string, amount sdk.Coins,
) *MsgWithdrawRequest

NewMsgWithdrawRequest

func (*MsgWithdrawRequest) Descriptor

func (*MsgWithdrawRequest) Descriptor() ([]byte, []int)

func (*MsgWithdrawRequest) GetAdministrator

func (m *MsgWithdrawRequest) GetAdministrator() string

func (*MsgWithdrawRequest) GetAmount

func (*MsgWithdrawRequest) GetDenom

func (m *MsgWithdrawRequest) GetDenom() string

func (MsgWithdrawRequest) GetSignBytes

func (msg MsgWithdrawRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgWithdrawRequest) GetSigners

func (msg MsgWithdrawRequest) GetSigners() []sdk.AccAddress

GetSigners indicates that the message must have been signed by the address provided.

func (*MsgWithdrawRequest) GetToAddress

func (m *MsgWithdrawRequest) GetToAddress() string

func (*MsgWithdrawRequest) Marshal

func (m *MsgWithdrawRequest) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawRequest) MarshalTo

func (m *MsgWithdrawRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgWithdrawRequest) MarshalToSizedBuffer

func (m *MsgWithdrawRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawRequest) ProtoMessage

func (*MsgWithdrawRequest) ProtoMessage()

func (*MsgWithdrawRequest) Reset

func (m *MsgWithdrawRequest) Reset()

func (MsgWithdrawRequest) Route

func (msg MsgWithdrawRequest) Route() string

Route returns the name of the module.

func (*MsgWithdrawRequest) Size

func (m *MsgWithdrawRequest) Size() (n int)

func (*MsgWithdrawRequest) String

func (m *MsgWithdrawRequest) String() string

func (MsgWithdrawRequest) Type

func (msg MsgWithdrawRequest) Type() string

Type returns the message action.

func (*MsgWithdrawRequest) Unmarshal

func (m *MsgWithdrawRequest) Unmarshal(dAtA []byte) error

func (MsgWithdrawRequest) ValidateBasic

func (msg MsgWithdrawRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgWithdrawRequest) XXX_DiscardUnknown

func (m *MsgWithdrawRequest) XXX_DiscardUnknown()

func (*MsgWithdrawRequest) XXX_Marshal

func (m *MsgWithdrawRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawRequest) XXX_Merge

func (m *MsgWithdrawRequest) XXX_Merge(src proto.Message)

func (*MsgWithdrawRequest) XXX_Size

func (m *MsgWithdrawRequest) XXX_Size() int

func (*MsgWithdrawRequest) XXX_Unmarshal

func (m *MsgWithdrawRequest) XXX_Unmarshal(b []byte) error

type MsgWithdrawResponse

type MsgWithdrawResponse struct {
}

MsgWithdrawResponse defines the Msg/Withdraw response type

func (*MsgWithdrawResponse) Descriptor

func (*MsgWithdrawResponse) Descriptor() ([]byte, []int)

func (*MsgWithdrawResponse) Marshal

func (m *MsgWithdrawResponse) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawResponse) MarshalTo

func (m *MsgWithdrawResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgWithdrawResponse) MarshalToSizedBuffer

func (m *MsgWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawResponse) ProtoMessage

func (*MsgWithdrawResponse) ProtoMessage()

func (*MsgWithdrawResponse) Reset

func (m *MsgWithdrawResponse) Reset()

func (*MsgWithdrawResponse) Size

func (m *MsgWithdrawResponse) Size() (n int)

func (*MsgWithdrawResponse) String

func (m *MsgWithdrawResponse) String() string

func (*MsgWithdrawResponse) Unmarshal

func (m *MsgWithdrawResponse) Unmarshal(dAtA []byte) error

func (*MsgWithdrawResponse) XXX_DiscardUnknown

func (m *MsgWithdrawResponse) XXX_DiscardUnknown()

func (*MsgWithdrawResponse) XXX_Marshal

func (m *MsgWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawResponse) XXX_Merge

func (m *MsgWithdrawResponse) XXX_Merge(src proto.Message)

func (*MsgWithdrawResponse) XXX_Size

func (m *MsgWithdrawResponse) XXX_Size() int

func (*MsgWithdrawResponse) XXX_Unmarshal

func (m *MsgWithdrawResponse) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	// maximum amount of supply to allow a marker to be created with
	MaxTotalSupply uint64 `protobuf:"varint,1,opt,name=max_total_supply,json=maxTotalSupply,proto3,customtype=uint64" json:"max_total_supply"`
	// indicates if governance based controls of markers is allowed.
	EnableGovernance bool `protobuf:"varint,2,opt,name=enable_governance,json=enableGovernance,proto3" json:"enable_governance,omitempty"`
	// a regular expression used to validate marker denom values from normal create requests (governance
	// requests are only subject to platform coin validation denom expression)
	UnrestrictedDenomRegex string `` /* 129-byte string literal not displayed */
}

Params defines the set of params for the account module.

func DefaultParams

func DefaultParams() Params

DefaultParams is the default parameter configuration for the bank module

func NewParams

func NewParams(
	maxTotalSupply uint64,
	enableGovernance bool,
	unrestrictedDenomRegex string,
) Params

NewParams creates a new parameter object

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Equal

func (p *Params) Equal(that interface{}) bool

Equal returns true if the given value is equivalent to the current instance of params

func (*Params) GetEnableGovernance

func (m *Params) GetEnableGovernance() bool

func (*Params) GetUnrestrictedDenomRegex added in v0.2.1

func (m *Params) GetUnrestrictedDenomRegex() string

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs - Implements params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryAccessRequest

type QueryAccessRequest struct {
	// address or denom for the marker
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

QueryAccessRequest is the request type for the Query/MarkerAccess method.

func (*QueryAccessRequest) Descriptor

func (*QueryAccessRequest) Descriptor() ([]byte, []int)

func (*QueryAccessRequest) GetId

func (m *QueryAccessRequest) GetId() string

func (*QueryAccessRequest) Marshal

func (m *QueryAccessRequest) Marshal() (dAtA []byte, err error)

func (*QueryAccessRequest) MarshalTo

func (m *QueryAccessRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAccessRequest) MarshalToSizedBuffer

func (m *QueryAccessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAccessRequest) ProtoMessage

func (*QueryAccessRequest) ProtoMessage()

func (*QueryAccessRequest) Reset

func (m *QueryAccessRequest) Reset()

func (*QueryAccessRequest) Size

func (m *QueryAccessRequest) Size() (n int)

func (*QueryAccessRequest) String

func (m *QueryAccessRequest) String() string

func (*QueryAccessRequest) Unmarshal

func (m *QueryAccessRequest) Unmarshal(dAtA []byte) error

func (*QueryAccessRequest) XXX_DiscardUnknown

func (m *QueryAccessRequest) XXX_DiscardUnknown()

func (*QueryAccessRequest) XXX_Marshal

func (m *QueryAccessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAccessRequest) XXX_Merge

func (m *QueryAccessRequest) XXX_Merge(src proto.Message)

func (*QueryAccessRequest) XXX_Size

func (m *QueryAccessRequest) XXX_Size() int

func (*QueryAccessRequest) XXX_Unmarshal

func (m *QueryAccessRequest) XXX_Unmarshal(b []byte) error

type QueryAccessResponse

type QueryAccessResponse struct {
	Accounts []AccessGrant `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts"`
}

QueryAccessResponse is the response type for the Query/MarkerAccess method.

func (*QueryAccessResponse) Descriptor

func (*QueryAccessResponse) Descriptor() ([]byte, []int)

func (*QueryAccessResponse) GetAccounts

func (m *QueryAccessResponse) GetAccounts() []AccessGrant

func (*QueryAccessResponse) Marshal

func (m *QueryAccessResponse) Marshal() (dAtA []byte, err error)

func (*QueryAccessResponse) MarshalTo

func (m *QueryAccessResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAccessResponse) MarshalToSizedBuffer

func (m *QueryAccessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAccessResponse) ProtoMessage

func (*QueryAccessResponse) ProtoMessage()

func (*QueryAccessResponse) Reset

func (m *QueryAccessResponse) Reset()

func (*QueryAccessResponse) Size

func (m *QueryAccessResponse) Size() (n int)

func (*QueryAccessResponse) String

func (m *QueryAccessResponse) String() string

func (*QueryAccessResponse) Unmarshal

func (m *QueryAccessResponse) Unmarshal(dAtA []byte) error

func (*QueryAccessResponse) XXX_DiscardUnknown

func (m *QueryAccessResponse) XXX_DiscardUnknown()

func (*QueryAccessResponse) XXX_Marshal

func (m *QueryAccessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAccessResponse) XXX_Merge

func (m *QueryAccessResponse) XXX_Merge(src proto.Message)

func (*QueryAccessResponse) XXX_Size

func (m *QueryAccessResponse) XXX_Size() int

func (*QueryAccessResponse) XXX_Unmarshal

func (m *QueryAccessResponse) XXX_Unmarshal(b []byte) error

type QueryAllMarkersRequest

type QueryAllMarkersRequest struct {
	// Optional status to filter request
	Status MarkerStatus `protobuf:"varint,1,opt,name=status,proto3,enum=provenance.marker.v1.MarkerStatus" json:"status,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllMarkersRequest is the request type for the Query/AllMarkers method.

func (*QueryAllMarkersRequest) Descriptor

func (*QueryAllMarkersRequest) Descriptor() ([]byte, []int)

func (*QueryAllMarkersRequest) GetPagination

func (m *QueryAllMarkersRequest) GetPagination() *query.PageRequest

func (*QueryAllMarkersRequest) GetStatus

func (m *QueryAllMarkersRequest) GetStatus() MarkerStatus

func (*QueryAllMarkersRequest) Marshal

func (m *QueryAllMarkersRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllMarkersRequest) MarshalTo

func (m *QueryAllMarkersRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllMarkersRequest) MarshalToSizedBuffer

func (m *QueryAllMarkersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllMarkersRequest) ProtoMessage

func (*QueryAllMarkersRequest) ProtoMessage()

func (*QueryAllMarkersRequest) Reset

func (m *QueryAllMarkersRequest) Reset()

func (*QueryAllMarkersRequest) Size

func (m *QueryAllMarkersRequest) Size() (n int)

func (*QueryAllMarkersRequest) String

func (m *QueryAllMarkersRequest) String() string

func (*QueryAllMarkersRequest) Unmarshal

func (m *QueryAllMarkersRequest) Unmarshal(dAtA []byte) error

func (*QueryAllMarkersRequest) XXX_DiscardUnknown

func (m *QueryAllMarkersRequest) XXX_DiscardUnknown()

func (*QueryAllMarkersRequest) XXX_Marshal

func (m *QueryAllMarkersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllMarkersRequest) XXX_Merge

func (m *QueryAllMarkersRequest) XXX_Merge(src proto.Message)

func (*QueryAllMarkersRequest) XXX_Size

func (m *QueryAllMarkersRequest) XXX_Size() int

func (*QueryAllMarkersRequest) XXX_Unmarshal

func (m *QueryAllMarkersRequest) XXX_Unmarshal(b []byte) error

type QueryAllMarkersResponse

type QueryAllMarkersResponse struct {
	Markers []*types.Any `protobuf:"bytes,1,rep,name=markers,proto3" json:"markers,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllMarkersResponse is the response type for the Query/AllMarkers method.

func (*QueryAllMarkersResponse) Descriptor

func (*QueryAllMarkersResponse) Descriptor() ([]byte, []int)

func (*QueryAllMarkersResponse) GetMarkers

func (m *QueryAllMarkersResponse) GetMarkers() []*types.Any

func (*QueryAllMarkersResponse) GetPagination

func (m *QueryAllMarkersResponse) GetPagination() *query.PageResponse

func (*QueryAllMarkersResponse) Marshal

func (m *QueryAllMarkersResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllMarkersResponse) MarshalTo

func (m *QueryAllMarkersResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllMarkersResponse) MarshalToSizedBuffer

func (m *QueryAllMarkersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllMarkersResponse) ProtoMessage

func (*QueryAllMarkersResponse) ProtoMessage()

func (*QueryAllMarkersResponse) Reset

func (m *QueryAllMarkersResponse) Reset()

func (*QueryAllMarkersResponse) Size

func (m *QueryAllMarkersResponse) Size() (n int)

func (*QueryAllMarkersResponse) String

func (m *QueryAllMarkersResponse) String() string

func (*QueryAllMarkersResponse) Unmarshal

func (m *QueryAllMarkersResponse) Unmarshal(dAtA []byte) error

func (*QueryAllMarkersResponse) XXX_DiscardUnknown

func (m *QueryAllMarkersResponse) XXX_DiscardUnknown()

func (*QueryAllMarkersResponse) XXX_Marshal

func (m *QueryAllMarkersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllMarkersResponse) XXX_Merge

func (m *QueryAllMarkersResponse) XXX_Merge(src proto.Message)

func (*QueryAllMarkersResponse) XXX_Size

func (m *QueryAllMarkersResponse) XXX_Size() int

func (*QueryAllMarkersResponse) XXX_Unmarshal

func (m *QueryAllMarkersResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Params queries the parameters of x/bank module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Returns a list of all markers on the blockchain
	AllMarkers(ctx context.Context, in *QueryAllMarkersRequest, opts ...grpc.CallOption) (*QueryAllMarkersResponse, error)
	// query for a single marker by denom or address
	Marker(ctx context.Context, in *QueryMarkerRequest, opts ...grpc.CallOption) (*QueryMarkerResponse, error)
	// query for all accounts holding the given marker coins
	Holding(ctx context.Context, in *QueryHoldingRequest, opts ...grpc.CallOption) (*QueryHoldingResponse, error)
	// query for supply of coin on a marker account
	Supply(ctx context.Context, in *QuerySupplyRequest, opts ...grpc.CallOption) (*QuerySupplyResponse, error)
	// query for coins on a marker account
	Escrow(ctx context.Context, in *QueryEscrowRequest, opts ...grpc.CallOption) (*QueryEscrowResponse, error)
	// query for access records on an account
	Access(ctx context.Context, in *QueryAccessRequest, opts ...grpc.CallOption) (*QueryAccessResponse, error)
	// query for access records on an account
	DenomMetadata(ctx context.Context, in *QueryDenomMetadataRequest, opts ...grpc.CallOption) (*QueryDenomMetadataResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryDenomMetadataRequest

type QueryDenomMetadataRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

QueryDenomMetadataRequest is the request type for Query/DenomMetadata

func (*QueryDenomMetadataRequest) Descriptor

func (*QueryDenomMetadataRequest) Descriptor() ([]byte, []int)

func (*QueryDenomMetadataRequest) GetDenom

func (m *QueryDenomMetadataRequest) GetDenom() string

func (*QueryDenomMetadataRequest) Marshal

func (m *QueryDenomMetadataRequest) Marshal() (dAtA []byte, err error)

func (*QueryDenomMetadataRequest) MarshalTo

func (m *QueryDenomMetadataRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDenomMetadataRequest) MarshalToSizedBuffer

func (m *QueryDenomMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDenomMetadataRequest) ProtoMessage

func (*QueryDenomMetadataRequest) ProtoMessage()

func (*QueryDenomMetadataRequest) Reset

func (m *QueryDenomMetadataRequest) Reset()

func (*QueryDenomMetadataRequest) Size

func (m *QueryDenomMetadataRequest) Size() (n int)

func (*QueryDenomMetadataRequest) String

func (m *QueryDenomMetadataRequest) String() string

func (*QueryDenomMetadataRequest) Unmarshal

func (m *QueryDenomMetadataRequest) Unmarshal(dAtA []byte) error

func (*QueryDenomMetadataRequest) XXX_DiscardUnknown

func (m *QueryDenomMetadataRequest) XXX_DiscardUnknown()

func (*QueryDenomMetadataRequest) XXX_Marshal

func (m *QueryDenomMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDenomMetadataRequest) XXX_Merge

func (m *QueryDenomMetadataRequest) XXX_Merge(src proto.Message)

func (*QueryDenomMetadataRequest) XXX_Size

func (m *QueryDenomMetadataRequest) XXX_Size() int

func (*QueryDenomMetadataRequest) XXX_Unmarshal

func (m *QueryDenomMetadataRequest) XXX_Unmarshal(b []byte) error

type QueryDenomMetadataResponse

type QueryDenomMetadataResponse struct {
	Metadata types2.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata"`
}

QueryDenomMetadataResponse is the response type for the Query/DenomMetadata

func (*QueryDenomMetadataResponse) Descriptor

func (*QueryDenomMetadataResponse) Descriptor() ([]byte, []int)

func (*QueryDenomMetadataResponse) GetMetadata

func (m *QueryDenomMetadataResponse) GetMetadata() types2.Metadata

func (*QueryDenomMetadataResponse) Marshal

func (m *QueryDenomMetadataResponse) Marshal() (dAtA []byte, err error)

func (*QueryDenomMetadataResponse) MarshalTo

func (m *QueryDenomMetadataResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDenomMetadataResponse) MarshalToSizedBuffer

func (m *QueryDenomMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDenomMetadataResponse) ProtoMessage

func (*QueryDenomMetadataResponse) ProtoMessage()

func (*QueryDenomMetadataResponse) Reset

func (m *QueryDenomMetadataResponse) Reset()

func (*QueryDenomMetadataResponse) Size

func (m *QueryDenomMetadataResponse) Size() (n int)

func (*QueryDenomMetadataResponse) String

func (m *QueryDenomMetadataResponse) String() string

func (*QueryDenomMetadataResponse) Unmarshal

func (m *QueryDenomMetadataResponse) Unmarshal(dAtA []byte) error

func (*QueryDenomMetadataResponse) XXX_DiscardUnknown

func (m *QueryDenomMetadataResponse) XXX_DiscardUnknown()

func (*QueryDenomMetadataResponse) XXX_Marshal

func (m *QueryDenomMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDenomMetadataResponse) XXX_Merge

func (m *QueryDenomMetadataResponse) XXX_Merge(src proto.Message)

func (*QueryDenomMetadataResponse) XXX_Size

func (m *QueryDenomMetadataResponse) XXX_Size() int

func (*QueryDenomMetadataResponse) XXX_Unmarshal

func (m *QueryDenomMetadataResponse) XXX_Unmarshal(b []byte) error

type QueryEscrowRequest

type QueryEscrowRequest struct {
	// address or denom for the marker
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

QueryEscrowRequest is the request type for the Query/MarkerEscrow method.

func (*QueryEscrowRequest) Descriptor

func (*QueryEscrowRequest) Descriptor() ([]byte, []int)

func (*QueryEscrowRequest) GetId

func (m *QueryEscrowRequest) GetId() string

func (*QueryEscrowRequest) Marshal

func (m *QueryEscrowRequest) Marshal() (dAtA []byte, err error)

func (*QueryEscrowRequest) MarshalTo

func (m *QueryEscrowRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryEscrowRequest) MarshalToSizedBuffer

func (m *QueryEscrowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEscrowRequest) ProtoMessage

func (*QueryEscrowRequest) ProtoMessage()

func (*QueryEscrowRequest) Reset

func (m *QueryEscrowRequest) Reset()

func (*QueryEscrowRequest) Size

func (m *QueryEscrowRequest) Size() (n int)

func (*QueryEscrowRequest) String

func (m *QueryEscrowRequest) String() string

func (*QueryEscrowRequest) Unmarshal

func (m *QueryEscrowRequest) Unmarshal(dAtA []byte) error

func (*QueryEscrowRequest) XXX_DiscardUnknown

func (m *QueryEscrowRequest) XXX_DiscardUnknown()

func (*QueryEscrowRequest) XXX_Marshal

func (m *QueryEscrowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEscrowRequest) XXX_Merge

func (m *QueryEscrowRequest) XXX_Merge(src proto.Message)

func (*QueryEscrowRequest) XXX_Size

func (m *QueryEscrowRequest) XXX_Size() int

func (*QueryEscrowRequest) XXX_Unmarshal

func (m *QueryEscrowRequest) XXX_Unmarshal(b []byte) error

type QueryEscrowResponse

type QueryEscrowResponse struct {
	Escrow github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=escrow,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"escrow"`
}

QueryEscrowResponse is the response type for the Query/MarkerEscrow method.

func (*QueryEscrowResponse) Descriptor

func (*QueryEscrowResponse) Descriptor() ([]byte, []int)

func (*QueryEscrowResponse) GetEscrow

func (*QueryEscrowResponse) Marshal

func (m *QueryEscrowResponse) Marshal() (dAtA []byte, err error)

func (*QueryEscrowResponse) MarshalTo

func (m *QueryEscrowResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryEscrowResponse) MarshalToSizedBuffer

func (m *QueryEscrowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEscrowResponse) ProtoMessage

func (*QueryEscrowResponse) ProtoMessage()

func (*QueryEscrowResponse) Reset

func (m *QueryEscrowResponse) Reset()

func (*QueryEscrowResponse) Size

func (m *QueryEscrowResponse) Size() (n int)

func (*QueryEscrowResponse) String

func (m *QueryEscrowResponse) String() string

func (*QueryEscrowResponse) Unmarshal

func (m *QueryEscrowResponse) Unmarshal(dAtA []byte) error

func (*QueryEscrowResponse) XXX_DiscardUnknown

func (m *QueryEscrowResponse) XXX_DiscardUnknown()

func (*QueryEscrowResponse) XXX_Marshal

func (m *QueryEscrowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEscrowResponse) XXX_Merge

func (m *QueryEscrowResponse) XXX_Merge(src proto.Message)

func (*QueryEscrowResponse) XXX_Size

func (m *QueryEscrowResponse) XXX_Size() int

func (*QueryEscrowResponse) XXX_Unmarshal

func (m *QueryEscrowResponse) XXX_Unmarshal(b []byte) error

type QueryHoldingRequest

type QueryHoldingRequest struct {
	// the address or denom of the marker
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryHoldingRequest is the request type for the Query/MarkerHolders method.

func (*QueryHoldingRequest) Descriptor

func (*QueryHoldingRequest) Descriptor() ([]byte, []int)

func (*QueryHoldingRequest) GetId

func (m *QueryHoldingRequest) GetId() string

func (*QueryHoldingRequest) GetPagination

func (m *QueryHoldingRequest) GetPagination() *query.PageRequest

func (*QueryHoldingRequest) Marshal

func (m *QueryHoldingRequest) Marshal() (dAtA []byte, err error)

func (*QueryHoldingRequest) MarshalTo

func (m *QueryHoldingRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryHoldingRequest) MarshalToSizedBuffer

func (m *QueryHoldingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryHoldingRequest) ProtoMessage

func (*QueryHoldingRequest) ProtoMessage()

func (*QueryHoldingRequest) Reset

func (m *QueryHoldingRequest) Reset()

func (*QueryHoldingRequest) Size

func (m *QueryHoldingRequest) Size() (n int)

func (*QueryHoldingRequest) String

func (m *QueryHoldingRequest) String() string

func (*QueryHoldingRequest) Unmarshal

func (m *QueryHoldingRequest) Unmarshal(dAtA []byte) error

func (*QueryHoldingRequest) XXX_DiscardUnknown

func (m *QueryHoldingRequest) XXX_DiscardUnknown()

func (*QueryHoldingRequest) XXX_Marshal

func (m *QueryHoldingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryHoldingRequest) XXX_Merge

func (m *QueryHoldingRequest) XXX_Merge(src proto.Message)

func (*QueryHoldingRequest) XXX_Size

func (m *QueryHoldingRequest) XXX_Size() int

func (*QueryHoldingRequest) XXX_Unmarshal

func (m *QueryHoldingRequest) XXX_Unmarshal(b []byte) error

type QueryHoldingResponse

type QueryHoldingResponse struct {
	Balances []Balance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryHoldingResponse is the response type for the Query/MarkerHolders method.

func (*QueryHoldingResponse) Descriptor

func (*QueryHoldingResponse) Descriptor() ([]byte, []int)

func (*QueryHoldingResponse) GetBalances

func (m *QueryHoldingResponse) GetBalances() []Balance

func (*QueryHoldingResponse) GetPagination

func (m *QueryHoldingResponse) GetPagination() *query.PageResponse

func (*QueryHoldingResponse) Marshal

func (m *QueryHoldingResponse) Marshal() (dAtA []byte, err error)

func (*QueryHoldingResponse) MarshalTo

func (m *QueryHoldingResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryHoldingResponse) MarshalToSizedBuffer

func (m *QueryHoldingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryHoldingResponse) ProtoMessage

func (*QueryHoldingResponse) ProtoMessage()

func (*QueryHoldingResponse) Reset

func (m *QueryHoldingResponse) Reset()

func (*QueryHoldingResponse) Size

func (m *QueryHoldingResponse) Size() (n int)

func (*QueryHoldingResponse) String

func (m *QueryHoldingResponse) String() string

func (*QueryHoldingResponse) Unmarshal

func (m *QueryHoldingResponse) Unmarshal(dAtA []byte) error

func (*QueryHoldingResponse) XXX_DiscardUnknown

func (m *QueryHoldingResponse) XXX_DiscardUnknown()

func (*QueryHoldingResponse) XXX_Marshal

func (m *QueryHoldingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryHoldingResponse) XXX_Merge

func (m *QueryHoldingResponse) XXX_Merge(src proto.Message)

func (*QueryHoldingResponse) XXX_Size

func (m *QueryHoldingResponse) XXX_Size() int

func (*QueryHoldingResponse) XXX_Unmarshal

func (m *QueryHoldingResponse) XXX_Unmarshal(b []byte) error

type QueryMarkerRequest

type QueryMarkerRequest struct {
	// the address or denom of the marker
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

QueryMarkerRequest is the request type for the Query/Marker method.

func (*QueryMarkerRequest) Descriptor

func (*QueryMarkerRequest) Descriptor() ([]byte, []int)

func (*QueryMarkerRequest) GetId

func (m *QueryMarkerRequest) GetId() string

func (*QueryMarkerRequest) Marshal

func (m *QueryMarkerRequest) Marshal() (dAtA []byte, err error)

func (*QueryMarkerRequest) MarshalTo

func (m *QueryMarkerRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryMarkerRequest) MarshalToSizedBuffer

func (m *QueryMarkerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryMarkerRequest) ProtoMessage

func (*QueryMarkerRequest) ProtoMessage()

func (*QueryMarkerRequest) Reset

func (m *QueryMarkerRequest) Reset()

func (*QueryMarkerRequest) Size

func (m *QueryMarkerRequest) Size() (n int)

func (*QueryMarkerRequest) String

func (m *QueryMarkerRequest) String() string

func (*QueryMarkerRequest) Unmarshal

func (m *QueryMarkerRequest) Unmarshal(dAtA []byte) error

func (*QueryMarkerRequest) XXX_DiscardUnknown

func (m *QueryMarkerRequest) XXX_DiscardUnknown()

func (*QueryMarkerRequest) XXX_Marshal

func (m *QueryMarkerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryMarkerRequest) XXX_Merge

func (m *QueryMarkerRequest) XXX_Merge(src proto.Message)

func (*QueryMarkerRequest) XXX_Size

func (m *QueryMarkerRequest) XXX_Size() int

func (*QueryMarkerRequest) XXX_Unmarshal

func (m *QueryMarkerRequest) XXX_Unmarshal(b []byte) error

type QueryMarkerResponse

type QueryMarkerResponse struct {
	Marker *types.Any `protobuf:"bytes,1,opt,name=marker,proto3" json:"marker,omitempty"`
}

QueryMarkerResponse is the response type for the Query/Marker method.

func (*QueryMarkerResponse) Descriptor

func (*QueryMarkerResponse) Descriptor() ([]byte, []int)

func (*QueryMarkerResponse) GetMarker

func (m *QueryMarkerResponse) GetMarker() *types.Any

func (*QueryMarkerResponse) Marshal

func (m *QueryMarkerResponse) Marshal() (dAtA []byte, err error)

func (*QueryMarkerResponse) MarshalTo

func (m *QueryMarkerResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryMarkerResponse) MarshalToSizedBuffer

func (m *QueryMarkerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryMarkerResponse) ProtoMessage

func (*QueryMarkerResponse) ProtoMessage()

func (*QueryMarkerResponse) Reset

func (m *QueryMarkerResponse) Reset()

func (*QueryMarkerResponse) Size

func (m *QueryMarkerResponse) Size() (n int)

func (*QueryMarkerResponse) String

func (m *QueryMarkerResponse) String() string

func (*QueryMarkerResponse) Unmarshal

func (m *QueryMarkerResponse) Unmarshal(dAtA []byte) error

func (*QueryMarkerResponse) XXX_DiscardUnknown

func (m *QueryMarkerResponse) XXX_DiscardUnknown()

func (*QueryMarkerResponse) XXX_Marshal

func (m *QueryMarkerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryMarkerResponse) XXX_Merge

func (m *QueryMarkerResponse) XXX_Merge(src proto.Message)

func (*QueryMarkerResponse) XXX_Size

func (m *QueryMarkerResponse) XXX_Size() int

func (*QueryMarkerResponse) XXX_Unmarshal

func (m *QueryMarkerResponse) XXX_Unmarshal(b []byte) error

type QueryMarkersParams

type QueryMarkersParams struct {
	Page, Limit   int
	Denom, Status string
}

QueryMarkersParams defines the params for the following legacy queries: - 'custom/marker/all'

func NewQueryMarkersParams

func NewQueryMarkersParams(page, limit int, denom, status string) QueryMarkersParams

NewQueryMarkersParams object

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// params defines the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Params queries the parameters of x/bank module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Returns a list of all markers on the blockchain
	AllMarkers(context.Context, *QueryAllMarkersRequest) (*QueryAllMarkersResponse, error)
	// query for a single marker by denom or address
	Marker(context.Context, *QueryMarkerRequest) (*QueryMarkerResponse, error)
	// query for all accounts holding the given marker coins
	Holding(context.Context, *QueryHoldingRequest) (*QueryHoldingResponse, error)
	// query for supply of coin on a marker account
	Supply(context.Context, *QuerySupplyRequest) (*QuerySupplyResponse, error)
	// query for coins on a marker account
	Escrow(context.Context, *QueryEscrowRequest) (*QueryEscrowResponse, error)
	// query for access records on an account
	Access(context.Context, *QueryAccessRequest) (*QueryAccessResponse, error)
	// query for access records on an account
	DenomMetadata(context.Context, *QueryDenomMetadataRequest) (*QueryDenomMetadataResponse, error)
}

QueryServer is the server API for Query service.

type QuerySupplyRequest

type QuerySupplyRequest struct {
	// address or denom for the marker
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

QuerySupplyRequest is the request type for the Query/MarkerSupply method.

func (*QuerySupplyRequest) Descriptor

func (*QuerySupplyRequest) Descriptor() ([]byte, []int)

func (*QuerySupplyRequest) GetId

func (m *QuerySupplyRequest) GetId() string

func (*QuerySupplyRequest) Marshal

func (m *QuerySupplyRequest) Marshal() (dAtA []byte, err error)

func (*QuerySupplyRequest) MarshalTo

func (m *QuerySupplyRequest) MarshalTo(dAtA []byte) (int, error)

func (*QuerySupplyRequest) MarshalToSizedBuffer

func (m *QuerySupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySupplyRequest) ProtoMessage

func (*QuerySupplyRequest) ProtoMessage()

func (*QuerySupplyRequest) Reset

func (m *QuerySupplyRequest) Reset()

func (*QuerySupplyRequest) Size

func (m *QuerySupplyRequest) Size() (n int)

func (*QuerySupplyRequest) String

func (m *QuerySupplyRequest) String() string

func (*QuerySupplyRequest) Unmarshal

func (m *QuerySupplyRequest) Unmarshal(dAtA []byte) error

func (*QuerySupplyRequest) XXX_DiscardUnknown

func (m *QuerySupplyRequest) XXX_DiscardUnknown()

func (*QuerySupplyRequest) XXX_Marshal

func (m *QuerySupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySupplyRequest) XXX_Merge

func (m *QuerySupplyRequest) XXX_Merge(src proto.Message)

func (*QuerySupplyRequest) XXX_Size

func (m *QuerySupplyRequest) XXX_Size() int

func (*QuerySupplyRequest) XXX_Unmarshal

func (m *QuerySupplyRequest) XXX_Unmarshal(b []byte) error

type QuerySupplyResponse

type QuerySupplyResponse struct {
	// amount is the supply of the marker.
	Amount types1.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount"`
}

QuerySupplyResponse is the response type for the Query/MarkerSupply method.

func (*QuerySupplyResponse) Descriptor

func (*QuerySupplyResponse) Descriptor() ([]byte, []int)

func (*QuerySupplyResponse) GetAmount

func (m *QuerySupplyResponse) GetAmount() types1.Coin

func (*QuerySupplyResponse) Marshal

func (m *QuerySupplyResponse) Marshal() (dAtA []byte, err error)

func (*QuerySupplyResponse) MarshalTo

func (m *QuerySupplyResponse) MarshalTo(dAtA []byte) (int, error)

func (*QuerySupplyResponse) MarshalToSizedBuffer

func (m *QuerySupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySupplyResponse) ProtoMessage

func (*QuerySupplyResponse) ProtoMessage()

func (*QuerySupplyResponse) Reset

func (m *QuerySupplyResponse) Reset()

func (*QuerySupplyResponse) Size

func (m *QuerySupplyResponse) Size() (n int)

func (*QuerySupplyResponse) String

func (m *QuerySupplyResponse) String() string

func (*QuerySupplyResponse) Unmarshal

func (m *QuerySupplyResponse) Unmarshal(dAtA []byte) error

func (*QuerySupplyResponse) XXX_DiscardUnknown

func (m *QuerySupplyResponse) XXX_DiscardUnknown()

func (*QuerySupplyResponse) XXX_Marshal

func (m *QuerySupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySupplyResponse) XXX_Merge

func (m *QuerySupplyResponse) XXX_Merge(src proto.Message)

func (*QuerySupplyResponse) XXX_Size

func (m *QuerySupplyResponse) XXX_Size() int

func (*QuerySupplyResponse) XXX_Unmarshal

func (m *QuerySupplyResponse) XXX_Unmarshal(b []byte) error

type RemoveAdministratorProposal

type RemoveAdministratorProposal struct {
	Title          string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description    string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Denom          string   `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
	RemovedAddress []string `protobuf:"bytes,4,rep,name=removed_address,json=removedAddress,proto3" json:"removed_address,omitempty"`
}

RemoveAdministratorProposal defines a governance proposal to administer a marker and remove all permissions for a given address

func NewRemoveAdministratorProposal

func NewRemoveAdministratorProposal(
	title, description, denom string, administrators []string,
) *RemoveAdministratorProposal

func (*RemoveAdministratorProposal) Descriptor

func (*RemoveAdministratorProposal) Descriptor() ([]byte, []int)

func (*RemoveAdministratorProposal) Equal

func (this *RemoveAdministratorProposal) Equal(that interface{}) bool

func (*RemoveAdministratorProposal) GetDenom

func (m *RemoveAdministratorProposal) GetDenom() string

func (*RemoveAdministratorProposal) GetDescription

func (m *RemoveAdministratorProposal) GetDescription() string

func (*RemoveAdministratorProposal) GetRemovedAddress

func (m *RemoveAdministratorProposal) GetRemovedAddress() []string

func (*RemoveAdministratorProposal) GetTitle

func (m *RemoveAdministratorProposal) GetTitle() string

func (*RemoveAdministratorProposal) Marshal

func (m *RemoveAdministratorProposal) Marshal() (dAtA []byte, err error)

func (*RemoveAdministratorProposal) MarshalTo

func (m *RemoveAdministratorProposal) MarshalTo(dAtA []byte) (int, error)

func (*RemoveAdministratorProposal) MarshalToSizedBuffer

func (m *RemoveAdministratorProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (RemoveAdministratorProposal) ProposalRoute

func (rap RemoveAdministratorProposal) ProposalRoute() string

func (RemoveAdministratorProposal) ProposalType

func (rap RemoveAdministratorProposal) ProposalType() string

func (*RemoveAdministratorProposal) ProtoMessage

func (*RemoveAdministratorProposal) ProtoMessage()

func (*RemoveAdministratorProposal) Reset

func (m *RemoveAdministratorProposal) Reset()

func (*RemoveAdministratorProposal) Size

func (m *RemoveAdministratorProposal) Size() (n int)

func (RemoveAdministratorProposal) String

func (rap RemoveAdministratorProposal) String() string

func (*RemoveAdministratorProposal) Unmarshal

func (m *RemoveAdministratorProposal) Unmarshal(dAtA []byte) error

func (RemoveAdministratorProposal) ValidateBasic

func (rap RemoveAdministratorProposal) ValidateBasic() error

func (*RemoveAdministratorProposal) XXX_DiscardUnknown

func (m *RemoveAdministratorProposal) XXX_DiscardUnknown()

func (*RemoveAdministratorProposal) XXX_Marshal

func (m *RemoveAdministratorProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RemoveAdministratorProposal) XXX_Merge

func (m *RemoveAdministratorProposal) XXX_Merge(src proto.Message)

func (*RemoveAdministratorProposal) XXX_Size

func (m *RemoveAdministratorProposal) XXX_Size() int

func (*RemoveAdministratorProposal) XXX_Unmarshal

func (m *RemoveAdministratorProposal) XXX_Unmarshal(b []byte) error

type SIPrefix added in v1.0.0

type SIPrefix int32

SIPrefix represents an International System of Units (SI) Prefix.

const (
	// 10^0    (none)
	SI_PREFIX_NONE SIPrefix = 0
	// 10^1    deka   da
	SI_PREFIX_DEKA SIPrefix = 1
	// 10^2    hecto   h
	SI_PREFIX_HECTO SIPrefix = 2
	// 10^3    kilo    k
	SI_PREFIX_KILO SIPrefix = 3
	// 10^6    mega    M
	SI_PREFIX_MEGA SIPrefix = 6
	// 10^9    giga    G
	SI_PREFIX_GIGA SIPrefix = 9
	// 10^12   tera    T
	SI_PREFIX_TERA SIPrefix = 12
	// 10^15   peta    P
	SI_PREFIX_PETA SIPrefix = 15
	// 10^18   exa     E
	SI_PREFIX_EXA SIPrefix = 18
	// 10^21   zetta   Z
	SI_PREFIX_ZETTA SIPrefix = 21
	// 10^24   yotta   Y
	SI_PREFIX_YOTTA SIPrefix = 24
	// 10^-1   deci    d
	SI_PREFIX_DECI SIPrefix = -1
	// 10^-2   centi   c
	SI_PREFIX_CENTI SIPrefix = -2
	// 10^-3   milli   m
	SI_PREFIX_MILLI SIPrefix = -3
	// 10^-6   micro   µ
	SI_PREFIX_MICRO SIPrefix = -6
	// 10^-9   nano    n
	SI_PREFIX_NANO SIPrefix = -9
	// 10^-12  pico    p
	SI_PREFIX_PICO SIPrefix = -12
	// 10^-15  femto   f
	SI_PREFIX_FEMTO SIPrefix = -15
	// 10^-18  atto    a
	SI_PREFIX_ATTO SIPrefix = -18
	// 10^-21  zepto   z
	SI_PREFIX_ZEPTO SIPrefix = -21
	// 10^-24  yocto   y
	SI_PREFIX_YOCTO SIPrefix = -24
)

func MustGetSIPrefixFromExponent added in v1.0.0

func MustGetSIPrefixFromExponent(exp int) SIPrefix

MustGetSIPrefixFromExponent turns an integer exponent into a SIPrefix enum entry or panics if invalid. Example inputs: 15, -6

func MustGetSIPrefixFromString added in v1.0.0

func MustGetSIPrefixFromString(str string) SIPrefix

MustGetSIPrefixFromString turns a string into a SIPrefix enum entry or panics if invalid. Example inputs: "SI_PREFIX_PICO", "PICO", "p", "M", "µ". Note: An empty string will produce SI_PREFIX_NONE.

func ParseSIPrefixedString added in v1.0.0

func ParseSIPrefixedString(val string, root string) (SIPrefix, bool)

ParseSIPrefixedString extracts the prefix from the provided val using root as the base. Returns the SI prefix, and a boolean to indicate that it was successful. Possible reasons for it to be unsuccessful:

  • The provided val is shorter than the root.
  • The right-most characters in val are not equal to root (case insensitive).
  • No SI Prefix can be found matching the left-most portion of val (that isn't root).

func SIPrefixFromExponent added in v1.0.0

func SIPrefixFromExponent(exp int) (SIPrefix, error)

SIPrefixFromExponent attempts to convert an integer exponent into a SIPrefix enum entry. Example inputs: 12, -9

func SIPrefixFromString added in v1.0.0

func SIPrefixFromString(str string) (SIPrefix, error)

SIPrefixFromString attempts to convert a string into a SIPrefix enum entry. Example inputs: "SI_PREFIX_GIGA", "GIGA", "G", "m", "µ". Note: An empty string will produce SI_PREFIX_NONE.

func (SIPrefix) EnumDescriptor added in v1.0.0

func (SIPrefix) EnumDescriptor() ([]byte, []int)

func (SIPrefix) Format added in v1.0.0

func (p SIPrefix) Format(s fmt.State, verb rune)

Format implements the fmt.Formatter interface.

func (SIPrefix) GetDecimalString added in v1.0.0

func (p SIPrefix) GetDecimalString() string

GetDecimalString gets a string with the decimal representation of the multiplier for this SI Prefix. Examples: SI_PREFIX_ZETTA becomes "1000000000000000000000", and SI_PREFIX_ATTO becomes "0.000000000000000001". It is a string because a float64 has rounding issues on the longer numbers.

func (SIPrefix) GetExponent added in v1.0.0

func (p SIPrefix) GetExponent() int

Get the Exponent value of this SIPrefix. Examples, SI_PREFIX_PETA is 15 and SI_PREFIX_MICRO is -6.

func (SIPrefix) GetExponentString added in v1.0.0

func (p SIPrefix) GetExponentString() string

GetExponentString gets an exponent representation of the multiplier for this SI Prefix. Examples: "1e+6", "1e-12".

func (SIPrefix) GetName added in v1.0.0

func (p SIPrefix) GetName() string

GetName gets the lower-case name of this prefix, e.g. "nano", "exa", or "micro".

func (SIPrefix) GetSymbol added in v1.0.0

func (p SIPrefix) GetSymbol() string

GetSymbol gets the symbol for this prefix, e.g. "n", "E", or "µ". Case matters here. E.g. "m" is "milli" while "M" is "mega".

func (SIPrefix) IsValid added in v1.0.0

func (p SIPrefix) IsValid() bool

IsValid checks that this SIPrefix is a valid value.

func (SIPrefix) String added in v1.0.0

func (x SIPrefix) String() string

type SetAdministratorProposal

type SetAdministratorProposal struct {
	Title       string        `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string        `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Denom       string        `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
	Access      []AccessGrant `protobuf:"bytes,4,rep,name=access,proto3" json:"access"`
}

SetAdministratorProposal defines a governance proposal to administer a marker and set administrators with specific access on the marker

func NewSetAdministratorProposal

func NewSetAdministratorProposal(
	title, description, denom string, accessGrants []AccessGrant,
) *SetAdministratorProposal

func (*SetAdministratorProposal) Descriptor

func (*SetAdministratorProposal) Descriptor() ([]byte, []int)

func (*SetAdministratorProposal) Equal

func (this *SetAdministratorProposal) Equal(that interface{}) bool

func (*SetAdministratorProposal) GetAccess

func (m *SetAdministratorProposal) GetAccess() []AccessGrant

func (*SetAdministratorProposal) GetDenom

func (m *SetAdministratorProposal) GetDenom() string

func (*SetAdministratorProposal) GetDescription

func (m *SetAdministratorProposal) GetDescription() string

func (*SetAdministratorProposal) GetTitle

func (m *SetAdministratorProposal) GetTitle() string

func (*SetAdministratorProposal) Marshal

func (m *SetAdministratorProposal) Marshal() (dAtA []byte, err error)

func (*SetAdministratorProposal) MarshalTo

func (m *SetAdministratorProposal) MarshalTo(dAtA []byte) (int, error)

func (*SetAdministratorProposal) MarshalToSizedBuffer

func (m *SetAdministratorProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (SetAdministratorProposal) ProposalRoute

func (sap SetAdministratorProposal) ProposalRoute() string

func (SetAdministratorProposal) ProposalType

func (sap SetAdministratorProposal) ProposalType() string

func (*SetAdministratorProposal) ProtoMessage

func (*SetAdministratorProposal) ProtoMessage()

func (*SetAdministratorProposal) Reset

func (m *SetAdministratorProposal) Reset()

func (*SetAdministratorProposal) Size

func (m *SetAdministratorProposal) Size() (n int)

func (SetAdministratorProposal) String

func (sap SetAdministratorProposal) String() string

func (*SetAdministratorProposal) Unmarshal

func (m *SetAdministratorProposal) Unmarshal(dAtA []byte) error

func (SetAdministratorProposal) ValidateBasic

func (sap SetAdministratorProposal) ValidateBasic() error

func (*SetAdministratorProposal) XXX_DiscardUnknown

func (m *SetAdministratorProposal) XXX_DiscardUnknown()

func (*SetAdministratorProposal) XXX_Marshal

func (m *SetAdministratorProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetAdministratorProposal) XXX_Merge

func (m *SetAdministratorProposal) XXX_Merge(src proto.Message)

func (*SetAdministratorProposal) XXX_Size

func (m *SetAdministratorProposal) XXX_Size() int

func (*SetAdministratorProposal) XXX_Unmarshal

func (m *SetAdministratorProposal) XXX_Unmarshal(b []byte) error

type SetDenomMetadataProposal added in v1.7.0

type SetDenomMetadataProposal struct {
	Title       string                                             `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string                                             `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Metadata    github_com_cosmos_cosmos_sdk_x_bank_types.Metadata `protobuf:"bytes,3,opt,name=metadata,proto3,customtype=github.com/cosmos/cosmos-sdk/x/bank/types.Metadata" json:"metadata"`
}

SetDenomMetadataProposal defines a governance proposal to set the metadata for a denom

func NewSetDenomMetadataProposal added in v1.7.0

func NewSetDenomMetadataProposal(title, description string, metadata banktypes.Metadata) *SetDenomMetadataProposal

func (*SetDenomMetadataProposal) Descriptor added in v1.7.0

func (*SetDenomMetadataProposal) Descriptor() ([]byte, []int)

func (*SetDenomMetadataProposal) GetDescription added in v1.7.0

func (m *SetDenomMetadataProposal) GetDescription() string

func (*SetDenomMetadataProposal) GetTitle added in v1.7.0

func (m *SetDenomMetadataProposal) GetTitle() string

func (*SetDenomMetadataProposal) Marshal added in v1.7.0

func (m *SetDenomMetadataProposal) Marshal() (dAtA []byte, err error)

func (*SetDenomMetadataProposal) MarshalTo added in v1.7.0

func (m *SetDenomMetadataProposal) MarshalTo(dAtA []byte) (int, error)

func (*SetDenomMetadataProposal) MarshalToSizedBuffer added in v1.7.0

func (m *SetDenomMetadataProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (SetDenomMetadataProposal) ProposalRoute added in v1.7.0

func (sdmdp SetDenomMetadataProposal) ProposalRoute() string

func (SetDenomMetadataProposal) ProposalType added in v1.7.0

func (sdmdp SetDenomMetadataProposal) ProposalType() string

func (*SetDenomMetadataProposal) ProtoMessage added in v1.7.0

func (*SetDenomMetadataProposal) ProtoMessage()

func (*SetDenomMetadataProposal) Reset added in v1.7.0

func (m *SetDenomMetadataProposal) Reset()

func (*SetDenomMetadataProposal) Size added in v1.7.0

func (m *SetDenomMetadataProposal) Size() (n int)

func (SetDenomMetadataProposal) String added in v1.7.0

func (sdmdp SetDenomMetadataProposal) String() string

func (*SetDenomMetadataProposal) Unmarshal added in v1.7.0

func (m *SetDenomMetadataProposal) Unmarshal(dAtA []byte) error

func (SetDenomMetadataProposal) ValidateBasic added in v1.7.0

func (sdmdp SetDenomMetadataProposal) ValidateBasic() error

func (*SetDenomMetadataProposal) XXX_DiscardUnknown added in v1.7.0

func (m *SetDenomMetadataProposal) XXX_DiscardUnknown()

func (*SetDenomMetadataProposal) XXX_Marshal added in v1.7.0

func (m *SetDenomMetadataProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetDenomMetadataProposal) XXX_Merge added in v1.7.0

func (m *SetDenomMetadataProposal) XXX_Merge(src proto.Message)

func (*SetDenomMetadataProposal) XXX_Size added in v1.7.0

func (m *SetDenomMetadataProposal) XXX_Size() int

func (*SetDenomMetadataProposal) XXX_Unmarshal added in v1.7.0

func (m *SetDenomMetadataProposal) XXX_Unmarshal(b []byte) error

type SupplyDecreaseProposal

type SupplyDecreaseProposal struct {
	Title       string                                  `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string                                  `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Amount      github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
}

SupplyDecreaseProposal defines a governance proposal to administer a marker and decrease the total supply through burning coin held within the marker

func NewSupplyDecreaseProposal

func NewSupplyDecreaseProposal(title, description string, amount sdk.Coin) *SupplyDecreaseProposal

NewSupplyDecreaseProposal creates a new proposal

func (*SupplyDecreaseProposal) Descriptor

func (*SupplyDecreaseProposal) Descriptor() ([]byte, []int)

func (*SupplyDecreaseProposal) Equal

func (this *SupplyDecreaseProposal) Equal(that interface{}) bool

func (*SupplyDecreaseProposal) GetDescription

func (m *SupplyDecreaseProposal) GetDescription() string

func (*SupplyDecreaseProposal) GetTitle

func (m *SupplyDecreaseProposal) GetTitle() string

func (*SupplyDecreaseProposal) Marshal

func (m *SupplyDecreaseProposal) Marshal() (dAtA []byte, err error)

func (*SupplyDecreaseProposal) MarshalTo

func (m *SupplyDecreaseProposal) MarshalTo(dAtA []byte) (int, error)

func (*SupplyDecreaseProposal) MarshalToSizedBuffer

func (m *SupplyDecreaseProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (SupplyDecreaseProposal) ProposalRoute

func (sdp SupplyDecreaseProposal) ProposalRoute() string

func (SupplyDecreaseProposal) ProposalType

func (sdp SupplyDecreaseProposal) ProposalType() string

func (*SupplyDecreaseProposal) ProtoMessage

func (*SupplyDecreaseProposal) ProtoMessage()

func (*SupplyDecreaseProposal) Reset

func (m *SupplyDecreaseProposal) Reset()

func (*SupplyDecreaseProposal) Size

func (m *SupplyDecreaseProposal) Size() (n int)

func (SupplyDecreaseProposal) String

func (sdp SupplyDecreaseProposal) String() string

func (*SupplyDecreaseProposal) Unmarshal

func (m *SupplyDecreaseProposal) Unmarshal(dAtA []byte) error

func (SupplyDecreaseProposal) ValidateBasic

func (sdp SupplyDecreaseProposal) ValidateBasic() error

func (*SupplyDecreaseProposal) XXX_DiscardUnknown

func (m *SupplyDecreaseProposal) XXX_DiscardUnknown()

func (*SupplyDecreaseProposal) XXX_Marshal

func (m *SupplyDecreaseProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SupplyDecreaseProposal) XXX_Merge

func (m *SupplyDecreaseProposal) XXX_Merge(src proto.Message)

func (*SupplyDecreaseProposal) XXX_Size

func (m *SupplyDecreaseProposal) XXX_Size() int

func (*SupplyDecreaseProposal) XXX_Unmarshal

func (m *SupplyDecreaseProposal) XXX_Unmarshal(b []byte) error

type SupplyIncreaseProposal

type SupplyIncreaseProposal struct {
	Title         string                                  `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description   string                                  `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Amount        github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
	TargetAddress string                                  `protobuf:"bytes,4,opt,name=target_address,json=targetAddress,proto3" json:"target_address,omitempty"`
}

SupplyIncreaseProposal defines a governance proposal to administer a marker and increase total supply of the marker through minting coin and placing it within the marker or assigning it directly to an account

func NewSupplyIncreaseProposal

func NewSupplyIncreaseProposal(title, description string, amount sdk.Coin, destination string) *SupplyIncreaseProposal

NewSupplyIncreaseProposal creates a new proposal

func (*SupplyIncreaseProposal) Descriptor

func (*SupplyIncreaseProposal) Descriptor() ([]byte, []int)

func (*SupplyIncreaseProposal) Equal

func (this *SupplyIncreaseProposal) Equal(that interface{}) bool

func (*SupplyIncreaseProposal) GetDescription

func (m *SupplyIncreaseProposal) GetDescription() string

func (*SupplyIncreaseProposal) GetTargetAddress added in v1.7.0

func (m *SupplyIncreaseProposal) GetTargetAddress() string

func (*SupplyIncreaseProposal) GetTitle

func (m *SupplyIncreaseProposal) GetTitle() string

func (*SupplyIncreaseProposal) Marshal

func (m *SupplyIncreaseProposal) Marshal() (dAtA []byte, err error)

func (*SupplyIncreaseProposal) MarshalTo

func (m *SupplyIncreaseProposal) MarshalTo(dAtA []byte) (int, error)

func (*SupplyIncreaseProposal) MarshalToSizedBuffer

func (m *SupplyIncreaseProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (SupplyIncreaseProposal) ProposalRoute

func (sip SupplyIncreaseProposal) ProposalRoute() string

func (SupplyIncreaseProposal) ProposalType

func (sip SupplyIncreaseProposal) ProposalType() string

func (*SupplyIncreaseProposal) ProtoMessage

func (*SupplyIncreaseProposal) ProtoMessage()

func (*SupplyIncreaseProposal) Reset

func (m *SupplyIncreaseProposal) Reset()

func (*SupplyIncreaseProposal) Size

func (m *SupplyIncreaseProposal) Size() (n int)

func (SupplyIncreaseProposal) String

func (sip SupplyIncreaseProposal) String() string

func (*SupplyIncreaseProposal) Unmarshal

func (m *SupplyIncreaseProposal) Unmarshal(dAtA []byte) error

func (SupplyIncreaseProposal) ValidateBasic

func (sip SupplyIncreaseProposal) ValidateBasic() error

func (*SupplyIncreaseProposal) XXX_DiscardUnknown

func (m *SupplyIncreaseProposal) XXX_DiscardUnknown()

func (*SupplyIncreaseProposal) XXX_Marshal

func (m *SupplyIncreaseProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SupplyIncreaseProposal) XXX_Merge

func (m *SupplyIncreaseProposal) XXX_Merge(src proto.Message)

func (*SupplyIncreaseProposal) XXX_Size

func (m *SupplyIncreaseProposal) XXX_Size() int

func (*SupplyIncreaseProposal) XXX_Unmarshal

func (m *SupplyIncreaseProposal) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Activate

func (*UnimplementedMsgServer) AddAccess

func (*UnimplementedMsgServer) AddMarker

func (*UnimplementedMsgServer) Burn

func (*UnimplementedMsgServer) Cancel

func (*UnimplementedMsgServer) Delete

func (*UnimplementedMsgServer) DeleteAccess

func (*UnimplementedMsgServer) Finalize

func (*UnimplementedMsgServer) GrantAllowance added in v1.11.0

func (*UnimplementedMsgServer) Mint

func (*UnimplementedMsgServer) SetDenomMetadata

func (*UnimplementedMsgServer) Transfer

func (*UnimplementedMsgServer) Withdraw

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Access

func (*UnimplementedQueryServer) AllMarkers

func (*UnimplementedQueryServer) DenomMetadata

func (*UnimplementedQueryServer) Escrow

func (*UnimplementedQueryServer) Holding

func (*UnimplementedQueryServer) Marker

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Supply

type WithdrawEscrowProposal added in v0.3.0

type WithdrawEscrowProposal struct {
	Title         string                                   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description   string                                   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Denom         string                                   `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
	Amount        github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
	TargetAddress string                                   `protobuf:"bytes,5,opt,name=target_address,json=targetAddress,proto3" json:"target_address,omitempty"`
}

WithdrawEscrowProposal defines a governance proposal to withdraw escrow coins from a marker

func NewWithdrawEscrowProposal added in v0.3.0

func NewWithdrawEscrowProposal(title, description, denom string, amount sdk.Coins, target string) *WithdrawEscrowProposal

func (*WithdrawEscrowProposal) Descriptor added in v0.3.0

func (*WithdrawEscrowProposal) Descriptor() ([]byte, []int)

func (*WithdrawEscrowProposal) Equal added in v0.3.0

func (this *WithdrawEscrowProposal) Equal(that interface{}) bool

func (*WithdrawEscrowProposal) GetAmount added in v0.3.0

func (*WithdrawEscrowProposal) GetDenom added in v0.3.0

func (m *WithdrawEscrowProposal) GetDenom() string

func (*WithdrawEscrowProposal) GetDescription added in v0.3.0

func (m *WithdrawEscrowProposal) GetDescription() string

func (*WithdrawEscrowProposal) GetTargetAddress added in v1.7.0

func (m *WithdrawEscrowProposal) GetTargetAddress() string

func (*WithdrawEscrowProposal) GetTitle added in v0.3.0

func (m *WithdrawEscrowProposal) GetTitle() string

func (*WithdrawEscrowProposal) Marshal added in v0.3.0

func (m *WithdrawEscrowProposal) Marshal() (dAtA []byte, err error)

func (*WithdrawEscrowProposal) MarshalTo added in v0.3.0

func (m *WithdrawEscrowProposal) MarshalTo(dAtA []byte) (int, error)

func (*WithdrawEscrowProposal) MarshalToSizedBuffer added in v0.3.0

func (m *WithdrawEscrowProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (WithdrawEscrowProposal) ProposalRoute added in v0.3.0

func (wep WithdrawEscrowProposal) ProposalRoute() string

func (WithdrawEscrowProposal) ProposalType added in v0.3.0

func (wep WithdrawEscrowProposal) ProposalType() string

func (*WithdrawEscrowProposal) ProtoMessage added in v0.3.0

func (*WithdrawEscrowProposal) ProtoMessage()

func (*WithdrawEscrowProposal) Reset added in v0.3.0

func (m *WithdrawEscrowProposal) Reset()

func (*WithdrawEscrowProposal) Size added in v0.3.0

func (m *WithdrawEscrowProposal) Size() (n int)

func (WithdrawEscrowProposal) String added in v0.3.0

func (wep WithdrawEscrowProposal) String() string

func (*WithdrawEscrowProposal) Unmarshal added in v0.3.0

func (m *WithdrawEscrowProposal) Unmarshal(dAtA []byte) error

func (WithdrawEscrowProposal) ValidateBasic added in v0.3.0

func (wep WithdrawEscrowProposal) ValidateBasic() error

func (*WithdrawEscrowProposal) XXX_DiscardUnknown added in v0.3.0

func (m *WithdrawEscrowProposal) XXX_DiscardUnknown()

func (*WithdrawEscrowProposal) XXX_Marshal added in v0.3.0

func (m *WithdrawEscrowProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WithdrawEscrowProposal) XXX_Merge added in v0.3.0

func (m *WithdrawEscrowProposal) XXX_Merge(src proto.Message)

func (*WithdrawEscrowProposal) XXX_Size added in v0.3.0

func (m *WithdrawEscrowProposal) XXX_Size() int

func (*WithdrawEscrowProposal) XXX_Unmarshal added in v0.3.0

func (m *WithdrawEscrowProposal) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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