types

package
v0.0.0-...-e846f10 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProposalTypeSetDenomMetaData = "SetDenomMetaData"
)

Variables

View Source
var (
	ErrInvalidLengthBank        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBank          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBank = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Erc20Keeper

type Erc20Keeper interface {
	IsDenomRegistered(ctx sdk.Context, denom string) bool
	RegisterCoin(ctx sdk.Context, denom string) (*erc20types.TokenPair, error)
	IsDenomForErc20(denom string) bool
	SplitCoinsByErc20(amt sdk.Coins) (nativeCoins sdk.Coins, nativeErc20Tokens sdk.Coins)
	GetSupply(ctx sdk.Context, denom string) sdk.Coin
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, nativeCoins sdk.Coins, nativeErc20Tokens sdk.Coins) error
}

type SetDenomMetadataProposal

type SetDenomMetadataProposal struct {
	// title of the proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// proposal description
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// token pair of Cosmos native denom and ERC20 token address
	Metadata types.Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata"`
}

SetDenomMetaDataProposal is a gov Content type to register a DenomMetaData

func (*SetDenomMetadataProposal) Descriptor

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

func (*SetDenomMetadataProposal) GetDescription

func (m *SetDenomMetadataProposal) GetDescription() string

func (*SetDenomMetadataProposal) GetMetadata

func (m *SetDenomMetadataProposal) GetMetadata() types.Metadata

func (*SetDenomMetadataProposal) GetTitle

func (m *SetDenomMetadataProposal) GetTitle() string

func (*SetDenomMetadataProposal) Marshal

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

func (*SetDenomMetadataProposal) MarshalTo

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

func (*SetDenomMetadataProposal) MarshalToSizedBuffer

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

func (*SetDenomMetadataProposal) ProposalRoute

func (m *SetDenomMetadataProposal) ProposalRoute() string

func (*SetDenomMetadataProposal) ProposalType

func (m *SetDenomMetadataProposal) ProposalType() string

func (*SetDenomMetadataProposal) ProtoMessage

func (*SetDenomMetadataProposal) ProtoMessage()

func (*SetDenomMetadataProposal) Reset

func (m *SetDenomMetadataProposal) Reset()

func (*SetDenomMetadataProposal) Size

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

func (*SetDenomMetadataProposal) String

func (m *SetDenomMetadataProposal) String() string

func (*SetDenomMetadataProposal) Unmarshal

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

func (*SetDenomMetadataProposal) ValidateBasic

func (m *SetDenomMetadataProposal) ValidateBasic() error

func (*SetDenomMetadataProposal) XXX_DiscardUnknown

func (m *SetDenomMetadataProposal) XXX_DiscardUnknown()

func (*SetDenomMetadataProposal) XXX_Marshal

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

func (*SetDenomMetadataProposal) XXX_Merge

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

func (*SetDenomMetadataProposal) XXX_Size

func (m *SetDenomMetadataProposal) XXX_Size() int

func (*SetDenomMetadataProposal) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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