Documentation ¶
Index ¶
- Constants
- Variables
- type Erc20Keeper
- type SetDenomMetadataProposal
- func (*SetDenomMetadataProposal) Descriptor() ([]byte, []int)
- func (m *SetDenomMetadataProposal) GetDescription() string
- func (m *SetDenomMetadataProposal) GetMetadata() types.Metadata
- func (m *SetDenomMetadataProposal) GetTitle() string
- func (m *SetDenomMetadataProposal) Marshal() (dAtA []byte, err error)
- func (m *SetDenomMetadataProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *SetDenomMetadataProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m *SetDenomMetadataProposal) ProposalRoute() string
- func (m *SetDenomMetadataProposal) ProposalType() string
- func (*SetDenomMetadataProposal) ProtoMessage()
- func (m *SetDenomMetadataProposal) Reset()
- func (m *SetDenomMetadataProposal) Size() (n int)
- func (m *SetDenomMetadataProposal) String() string
- func (m *SetDenomMetadataProposal) Unmarshal(dAtA []byte) error
- func (m *SetDenomMetadataProposal) ValidateBasic() error
- func (m *SetDenomMetadataProposal) XXX_DiscardUnknown()
- func (m *SetDenomMetadataProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetDenomMetadataProposal) XXX_Merge(src proto.Message)
- func (m *SetDenomMetadataProposal) XXX_Size() int
- func (m *SetDenomMetadataProposal) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const (
ProposalTypeSetDenomMetaData = "SetDenomMetaData"
)
Variables ¶
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
Click to show internal directories.
Click to hide internal directories.