types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeTokenLock            = "token_lock"
	EventTypeTokenUnlock          = "token_unlock"
	EventTypeMint                 = "mint"
	EventTypeConvertCoin          = "convert_coin"
	EventTypeConvertERC20         = "convert_erc20"
	EventTypeBurn                 = "burn"
	EventTypeRegisterCoin         = "register_coin"
	EventTypeRegisterERC20        = "register_erc20"
	EventTypeToggleTokenRelay     = "toggle_token_relay" // #nosec
	EventTypeUpdateTokenPairERC20 = "update_token_pair_erc20"
	EventTypeRegisterERC20Trace   = "register_erc20_trace"

	AttributeKeyCosmosCoin  = "cosmos_coin"
	AttributeKeyERC20Token  = "erc20_token" // #nosec
	AttributeKeyReceiver    = "receiver"
	AttributeKeyOriginToken = "origin_token"
	AttributeKeyOriginChain = "origin_chain"

	ERC20EventTransfer = "Transfer"
)

aggregate events

View Source
const (
	// module name
	ModuleName = "aggregate"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	// GovRouterKey to be used for gov routing
	GovRouterKey = ModuleName

	// QuerierRoute is the querier route for aggregate
	QuerierRoute = ModuleName
)

constants

View Source
const (
	TypeMsgConvertCoin  = "convert_coin"
	TypeMsgConvertERC20 = "convert_ERC20"
)
View Source
const (
	ProposalTypeRegisterCoin                string = "RegisterCoin"
	ProposalTypeAddCoin                     string = "AddCoin"
	ProposalTypeRegisterERC20               string = "RegisterERC20"
	ProposalTypeToggleTokenRelay            string = "ToggleTokenRelay" // #nosec
	ProposalTypeUpdateTokenPairERC20        string = "UpdateTokenPairERC20"
	ProposalTypeRegisterERC20Trace          string = "RegisterERC20Trace"
	ProposalTypeEnableTimeBasedSupplyLimit  string = "EnableTimeBasedSupplyLimit"
	ProposalTypeDisableTimeBasedSupplyLimit string = "DisableTimeBasedSupplyLimit"
)

constants

Variables

View Source
var (
	ErrInvalidLengthAggregate        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAggregate          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAggregate = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrERC20Disabled          = sdkerrors.Register(ModuleName, 2, "erc20 module is disabled")
	ErrInternalTokenPair      = sdkerrors.Register(ModuleName, 3, "internal ethereum token mapping error")
	ErrTokenPairNotFound      = sdkerrors.Register(ModuleName, 4, "token pair not found")
	ErrTokenPairAlreadyExists = sdkerrors.Register(ModuleName, 5, "token pair already exists")
	ErrUndefinedOwner         = sdkerrors.Register(ModuleName, 6, "undefined owner of contract pair")
	ErrBalanceInvariance      = sdkerrors.Register(ModuleName, 7, "post transfer balance invariant failed")
	ErrUnexpectedEvent        = sdkerrors.Register(ModuleName, 8, "unexpected event")
	ErrABIPack                = sdkerrors.Register(ModuleName, 9, "contract ABI pack failed")
	ErrABIUnpack              = sdkerrors.Register(ModuleName, 10, "contract ABI unpack failed")
	ErrEVMDenom               = sdkerrors.Register(ModuleName, 11, "EVM denomination registration")
	ErrInvalidOriginToken     = sdkerrors.Register(ModuleName, 12, "invalid origin token")
	ErrInvalidOriginChain     = sdkerrors.Register(ModuleName, 13, "invalid origin chain")
	ErrERC20TraceExist        = sdkerrors.Register(ModuleName, 14, "erc20 trace already exist")
	ErrERC20TraceScale        = sdkerrors.Register(ModuleName, 15, "invalid erc20 trace scale")
	ErrInvalidTimePeriod      = sdkerrors.Register(ModuleName, 16, "invalid time period")
	ErrInvalidTimeBasedLimit  = sdkerrors.Register(ModuleName, 17, "invalid time based limit")
	ErrInvalidMaxAmount       = sdkerrors.Register(ModuleName, 18, "invalid max amount")
	ErrInvalidMinAmount       = sdkerrors.Register(ModuleName, 19, "invalid min amount")
)

errors

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
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 (
	KeyPrefixTokenPair        = []byte{prefixTokenPair}
	KeyPrefixTokenPairByERC20 = []byte{prefixTokenPairByERC20}
	KeyPrefixTokenPairByDenom = []byte{prefixTokenPairByDenom}
)

KVStore key prefixes

View Source
var (
	ParamStoreKeyEnableAggregate = []byte("EnableAggregate")
	ParamStoreKeyEnableEVMHook   = []byte("EnableEVMHook")
)

Parameter store key

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 (
	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 ModuleAddress common.Address

ModuleAddress is the native module address for EVM 0xEE3c65B5c7F4DD0ebeD8bF046725e273e3eeeD3c

ModuleCdc references the global aggregate module codec. Note, the codec should ONLY be used in certain instances of tests and for JSON encoding.

The actual codec used for serialization should be provided to x/aggregate and defined at the application level.

View Source
var Owner_name = map[int32]string{
	0: "OWNER_UNSPECIFIED",
	1: "OWNER_MODULE",
	2: "OWNER_EXTERNAL",
}
View Source
var Owner_value = map[string]int32{
	"OWNER_UNSPECIFIED": 0,
	"OWNER_MODULE":      1,
	"OWNER_EXTERNAL":    2,
}
View Source
var Status_name = map[int32]string{
	0: "STATUS_UNKNOWN",
	1: "STATUS_SUCCESS",
	2: "STATUS_FAILED",
}
View Source
var Status_value = map[string]int32{
	"STATUS_UNKNOWN": 0,
	"STATUS_SUCCESS": 1,
	"STATUS_FAILED":  2,
}

Functions

func CreateDenom

func CreateDenom(address string) string

CreateDenom generates a string the module name plus the address to avoid conflicts with names staring with a number

func CreateDenomDescription

func CreateDenomDescription(address string) string

CreateDenomDescription generates a string with the coin description

func EqualMetadata

func EqualMetadata(a, b banktypes.Metadata) error

EqualMetadata checks if all the fields of the provided coin metadata are equal.

func IBCDenom

func IBCDenom(port, channel, denom string) (string, error)

func NewAddCoinProposal

func NewAddCoinProposal(title, description string, coinMetadata banktypes.Metadata, contractAddr string) govtypes.Content

NewAddCoinProposal returns new instance of AddCoinProposal

func NewDisableTimeBasedSupplyLimitProposal

func NewDisableTimeBasedSupplyLimitProposal(
	title string,
	description string,
	erc20Address string,
) govtypes.Content

NewRegisterERC20TraceProposal returns new instance of RegisterERC20Proposal

func NewEnableTimeBasedSupplyLimitProposal

func NewEnableTimeBasedSupplyLimitProposal(
	title string,
	description string,
	erc20Address string,
	timePeriod string,
	timeBasedLimit string,
	maxAmount string,
	minAmount string,
) govtypes.Content

NewRegisterERC20TraceProposal returns new instance of RegisterERC20Proposal

func NewRegisterCoinProposal

func NewRegisterCoinProposal(title, description string, coinMetadata banktypes.Metadata) govtypes.Content

NewRegisterCoinProposal returns new instance of RegisterCoinProposal

func NewRegisterERC20Proposal

func NewRegisterERC20Proposal(title, description, erc20Addr string) govtypes.Content

NewRegisterERC20Proposal returns new instance of RegisterERC20Proposal

func NewRegisterERC20TraceProposal

func NewRegisterERC20TraceProposal(
	title string,
	description string,
	erc20Addr string,
	originToken string,
	originChain string,
	scale uint64,
) govtypes.Content

NewRegisterERC20TraceProposal returns new instance of RegisterERC20Proposal

func NewToggleTokenRelayProposal

func NewToggleTokenRelayProposal(title, description string, token string) govtypes.Content

NewToggleTokenRelayProposal returns new instance of ToggleTokenRelayProposal

func NewUpdateTokenPairERC20Proposal

func NewUpdateTokenPairERC20Proposal(title, description, erc20Addr, newERC20Addr string) govtypes.Content

NewUpdateTokenPairERC20Proposal returns new instance of UpdateTokenPairERC20Proposal

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces register implementations

func RegisterMsgHandler

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

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

func RegisterMsgHandlerClient

func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error

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

func RegisterMsgHandlerFromEndpoint

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

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

func RegisterMsgHandlerServer

func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer 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 RegisterMsgHandlerFromEndpoint instead.

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 SanitizeERC20Name

func SanitizeERC20Name(name string) string

SanitizeERC20Name enforces snake_case and removes all "coin" and "token" strings from the ERC20 name.

func ValidateAggregateDenom

func ValidateAggregateDenom(denom string) error

ValidateAggregateDenom checks if a denom is a valid 'aggregate/' denomination

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(moduleName string) sdk.AccAddress
	GetSequence(sdk.Context, sdk.AccAddress) (uint64, error)
}

AccountKeeper defines the expected interface needed to retrieve account info.

type AddCoinProposal

type AddCoinProposal 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"`
	// erc20 address for query the token pair
	ContractAddress string `protobuf:"bytes,4,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

RegisterCoinProposal is a gov Content type to register a token pair

func (*AddCoinProposal) Descriptor

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

func (*AddCoinProposal) GetContractAddress

func (m *AddCoinProposal) GetContractAddress() string

func (*AddCoinProposal) GetDescription

func (m *AddCoinProposal) GetDescription() string

func (*AddCoinProposal) GetMetadata

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

func (*AddCoinProposal) GetTitle

func (m *AddCoinProposal) GetTitle() string

func (*AddCoinProposal) Marshal

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

func (*AddCoinProposal) MarshalTo

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

func (*AddCoinProposal) MarshalToSizedBuffer

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

func (*AddCoinProposal) ProposalRoute

func (*AddCoinProposal) ProposalRoute() string

ProposalRoute returns router key for this proposal

func (*AddCoinProposal) ProposalType

func (*AddCoinProposal) ProposalType() string

ProposalType returns proposal type for this proposal

func (*AddCoinProposal) ProtoMessage

func (*AddCoinProposal) ProtoMessage()

func (*AddCoinProposal) Reset

func (m *AddCoinProposal) Reset()

func (*AddCoinProposal) Size

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

func (*AddCoinProposal) String

func (m *AddCoinProposal) String() string

func (*AddCoinProposal) Unmarshal

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

func (*AddCoinProposal) ValidateBasic

func (rtbp *AddCoinProposal) ValidateBasic() error

ValidateBasic performs a stateless check of the proposal fields

func (*AddCoinProposal) XXX_DiscardUnknown

func (m *AddCoinProposal) XXX_DiscardUnknown()

func (*AddCoinProposal) XXX_Marshal

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

func (*AddCoinProposal) XXX_Merge

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

func (*AddCoinProposal) XXX_Size

func (m *AddCoinProposal) XXX_Size() int

func (*AddCoinProposal) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	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
	IsSendEnabledCoin(ctx sdk.Context, coin sdk.Coin) bool
	BlockedAddr(addr sdk.AccAddress) bool
	GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool)
	SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata)
	HasSupply(ctx sdk.Context, denom string) bool
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
}

BankKeeper defines the expected interface needed to retrieve account balances.

type BindingsResponse

type BindingsResponse struct {
	OriToken string
	Amount   *big.Int
	Bound    bool
	Scale    uint8
}

ERC20BindingResponse defines the bool value from the call response

type DisableTimeBasedSupplyLimitProposal

type DisableTimeBasedSupplyLimitProposal 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"`
	// contract address of ERC20 token
	ERC20Address string `protobuf:"bytes,3,opt,name=erc20_address,json=erc20Address,proto3" json:"erc20_address,omitempty"`
}

DisableTimeBasedSupplyLimitProposal is a gov Content type to disable time based supply limit of an ERC20

func (*DisableTimeBasedSupplyLimitProposal) Descriptor

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

func (*DisableTimeBasedSupplyLimitProposal) GetDescription

func (m *DisableTimeBasedSupplyLimitProposal) GetDescription() string

func (*DisableTimeBasedSupplyLimitProposal) GetERC20Address

func (m *DisableTimeBasedSupplyLimitProposal) GetERC20Address() string

func (*DisableTimeBasedSupplyLimitProposal) GetTitle

func (*DisableTimeBasedSupplyLimitProposal) Marshal

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

func (*DisableTimeBasedSupplyLimitProposal) MarshalTo

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

func (*DisableTimeBasedSupplyLimitProposal) MarshalToSizedBuffer

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

func (*DisableTimeBasedSupplyLimitProposal) ProposalRoute

ProposalRoute returns router key for this proposal

func (*DisableTimeBasedSupplyLimitProposal) ProposalType

ProposalType returns proposal type for this proposal

func (*DisableTimeBasedSupplyLimitProposal) ProtoMessage

func (*DisableTimeBasedSupplyLimitProposal) ProtoMessage()

func (*DisableTimeBasedSupplyLimitProposal) Reset

func (*DisableTimeBasedSupplyLimitProposal) Size

func (*DisableTimeBasedSupplyLimitProposal) String

func (*DisableTimeBasedSupplyLimitProposal) Unmarshal

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

func (*DisableTimeBasedSupplyLimitProposal) ValidateBasic

func (p *DisableTimeBasedSupplyLimitProposal) ValidateBasic() error

ValidateBasic performs a stateless check of the proposal fields

func (*DisableTimeBasedSupplyLimitProposal) XXX_DiscardUnknown

func (m *DisableTimeBasedSupplyLimitProposal) XXX_DiscardUnknown()

func (*DisableTimeBasedSupplyLimitProposal) XXX_Marshal

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

func (*DisableTimeBasedSupplyLimitProposal) XXX_Merge

func (*DisableTimeBasedSupplyLimitProposal) XXX_Size

func (*DisableTimeBasedSupplyLimitProposal) XXX_Unmarshal

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

type ERC20BoolResponse

type ERC20BoolResponse struct {
	Value bool
}

ERC20BoolResponse defines the bool value from the call response

type ERC20Data

type ERC20Data struct {
	Name     string
	Symbol   string
	Decimals uint8
}

ERC20Data represents the ERC20 token details used to map the token to a Cosmos Coin

func NewERC20Data

func NewERC20Data(name, symbol string, decimals uint8) ERC20Data

NewERC20Data creates a new ERC20Data instance

type ERC20StringResponse

type ERC20StringResponse struct {
	Value string
}

ERC20StringResponse defines the string value from the call response

type ERC20Uint8Response

type ERC20Uint8Response struct {
	Value uint8
}

ERC20Uint8Response defines the uint8 value from the call response

type EVMKeeper

type EVMKeeper interface {
	GetParams(ctx sdk.Context) evmtypes.Params
	GetAccountWithoutBalance(ctx sdk.Context, addr common.Address) *statedb.Account
	EstimateGas(c context.Context, req *evmtypes.EthCallRequest) (*evmtypes.EstimateGasResponse, error)
	ApplyMessage(ctx sdk.Context, msg core.Message, tracer vm.EVMLogger, commit bool) (*evmtypes.MsgEthereumTxResponse, error)
}

EVMKeeper defines the expected EVM keeper interface used on aggregate

type EnableTimeBasedSupplyLimitProposal

type EnableTimeBasedSupplyLimitProposal 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"`
	// contract address of ERC20 token
	ERC20Address string `protobuf:"bytes,3,opt,name=erc20_address,json=erc20Address,proto3" json:"erc20_address,omitempty"`
	// time peroid in seconds
	TimePeriod string `protobuf:"bytes,4,opt,name=time_period,json=timePeriod,proto3" json:"time_period,omitempty"`
	// time based limit
	TimeBasedLimit string `protobuf:"bytes,5,opt,name=time_based_limit,json=timeBasedLimit,proto3" json:"time_based_limit,omitempty"`
	// max amount single transfer
	MaxAmount string `protobuf:"bytes,6,opt,name=max_amount,json=maxAmount,proto3" json:"max_amount,omitempty"`
	// min amount single transfer
	MinAmount string `protobuf:"bytes,7,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"`
}

EnableTimeBasedSupplyLimitProposal is a gov Content type to enable time based supply limit of an ERC20

func (*EnableTimeBasedSupplyLimitProposal) Descriptor

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

func (*EnableTimeBasedSupplyLimitProposal) GetDescription

func (m *EnableTimeBasedSupplyLimitProposal) GetDescription() string

func (*EnableTimeBasedSupplyLimitProposal) GetERC20Address

func (m *EnableTimeBasedSupplyLimitProposal) GetERC20Address() string

func (*EnableTimeBasedSupplyLimitProposal) GetMaxAmount

func (m *EnableTimeBasedSupplyLimitProposal) GetMaxAmount() string

func (*EnableTimeBasedSupplyLimitProposal) GetMinAmount

func (m *EnableTimeBasedSupplyLimitProposal) GetMinAmount() string

func (*EnableTimeBasedSupplyLimitProposal) GetTimeBasedLimit

func (m *EnableTimeBasedSupplyLimitProposal) GetTimeBasedLimit() string

func (*EnableTimeBasedSupplyLimitProposal) GetTimePeriod

func (m *EnableTimeBasedSupplyLimitProposal) GetTimePeriod() string

func (*EnableTimeBasedSupplyLimitProposal) GetTitle

func (*EnableTimeBasedSupplyLimitProposal) Marshal

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

func (*EnableTimeBasedSupplyLimitProposal) MarshalTo

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

func (*EnableTimeBasedSupplyLimitProposal) MarshalToSizedBuffer

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

func (*EnableTimeBasedSupplyLimitProposal) ProposalRoute

func (*EnableTimeBasedSupplyLimitProposal) ProposalRoute() string

ProposalRoute returns router key for this proposal

func (*EnableTimeBasedSupplyLimitProposal) ProposalType

ProposalType returns proposal type for this proposal

func (*EnableTimeBasedSupplyLimitProposal) ProtoMessage

func (*EnableTimeBasedSupplyLimitProposal) ProtoMessage()

func (*EnableTimeBasedSupplyLimitProposal) Reset

func (*EnableTimeBasedSupplyLimitProposal) Size

func (*EnableTimeBasedSupplyLimitProposal) String

func (*EnableTimeBasedSupplyLimitProposal) Unmarshal

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

func (*EnableTimeBasedSupplyLimitProposal) ValidateBasic

func (p *EnableTimeBasedSupplyLimitProposal) ValidateBasic() error

ValidateBasic performs a stateless check of the proposal fields

func (*EnableTimeBasedSupplyLimitProposal) XXX_DiscardUnknown

func (m *EnableTimeBasedSupplyLimitProposal) XXX_DiscardUnknown()

func (*EnableTimeBasedSupplyLimitProposal) XXX_Marshal

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

func (*EnableTimeBasedSupplyLimitProposal) XXX_Merge

func (*EnableTimeBasedSupplyLimitProposal) XXX_Size

func (*EnableTimeBasedSupplyLimitProposal) XXX_Unmarshal

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

type EventDisableTimeBasedSupplyLimit

type EventDisableTimeBasedSupplyLimit struct {
	ERC20Address string `protobuf:"bytes,3,opt,name=erc20_address,json=erc20Address,proto3" json:"erc20_address,omitempty"`
}

Event

func (*EventDisableTimeBasedSupplyLimit) Descriptor

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

func (*EventDisableTimeBasedSupplyLimit) GetERC20Address

func (m *EventDisableTimeBasedSupplyLimit) GetERC20Address() string

func (*EventDisableTimeBasedSupplyLimit) Marshal

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

func (*EventDisableTimeBasedSupplyLimit) MarshalTo

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

func (*EventDisableTimeBasedSupplyLimit) MarshalToSizedBuffer

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

func (*EventDisableTimeBasedSupplyLimit) ProtoMessage

func (*EventDisableTimeBasedSupplyLimit) ProtoMessage()

func (*EventDisableTimeBasedSupplyLimit) Reset

func (*EventDisableTimeBasedSupplyLimit) Size

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

func (*EventDisableTimeBasedSupplyLimit) String

func (*EventDisableTimeBasedSupplyLimit) Unmarshal

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

func (*EventDisableTimeBasedSupplyLimit) XXX_DiscardUnknown

func (m *EventDisableTimeBasedSupplyLimit) XXX_DiscardUnknown()

func (*EventDisableTimeBasedSupplyLimit) XXX_Marshal

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

func (*EventDisableTimeBasedSupplyLimit) XXX_Merge

func (*EventDisableTimeBasedSupplyLimit) XXX_Size

func (m *EventDisableTimeBasedSupplyLimit) XXX_Size() int

func (*EventDisableTimeBasedSupplyLimit) XXX_Unmarshal

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

type EventEnableTimeBasedSupplyLimit

type EventEnableTimeBasedSupplyLimit struct {
	ERC20Address string `protobuf:"bytes,3,opt,name=erc20_address,json=erc20Address,proto3" json:"erc20_address,omitempty"`
	// time peroid in seconds
	TimePeriod string `protobuf:"bytes,4,opt,name=timePeriod,proto3" json:"timePeriod,omitempty"`
	// time based limit
	TimeBasedLimit string `protobuf:"bytes,5,opt,name=timeBasedLimit,proto3" json:"timeBasedLimit,omitempty"`
	// max amount single transfer
	MaxAmount string `protobuf:"bytes,6,opt,name=maxAmount,proto3" json:"maxAmount,omitempty"`
	// min amount single transfer
	MinAmount string `protobuf:"bytes,7,opt,name=minAmount,proto3" json:"minAmount,omitempty"`
}

Event

func (*EventEnableTimeBasedSupplyLimit) Descriptor

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

func (*EventEnableTimeBasedSupplyLimit) GetERC20Address

func (m *EventEnableTimeBasedSupplyLimit) GetERC20Address() string

func (*EventEnableTimeBasedSupplyLimit) GetMaxAmount

func (m *EventEnableTimeBasedSupplyLimit) GetMaxAmount() string

func (*EventEnableTimeBasedSupplyLimit) GetMinAmount

func (m *EventEnableTimeBasedSupplyLimit) GetMinAmount() string

func (*EventEnableTimeBasedSupplyLimit) GetTimeBasedLimit

func (m *EventEnableTimeBasedSupplyLimit) GetTimeBasedLimit() string

func (*EventEnableTimeBasedSupplyLimit) GetTimePeriod

func (m *EventEnableTimeBasedSupplyLimit) GetTimePeriod() string

func (*EventEnableTimeBasedSupplyLimit) Marshal

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

func (*EventEnableTimeBasedSupplyLimit) MarshalTo

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

func (*EventEnableTimeBasedSupplyLimit) MarshalToSizedBuffer

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

func (*EventEnableTimeBasedSupplyLimit) ProtoMessage

func (*EventEnableTimeBasedSupplyLimit) ProtoMessage()

func (*EventEnableTimeBasedSupplyLimit) Reset

func (*EventEnableTimeBasedSupplyLimit) Size

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

func (*EventEnableTimeBasedSupplyLimit) String

func (*EventEnableTimeBasedSupplyLimit) Unmarshal

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

func (*EventEnableTimeBasedSupplyLimit) XXX_DiscardUnknown

func (m *EventEnableTimeBasedSupplyLimit) XXX_DiscardUnknown()

func (*EventEnableTimeBasedSupplyLimit) XXX_Marshal

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

func (*EventEnableTimeBasedSupplyLimit) XXX_Merge

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

func (*EventEnableTimeBasedSupplyLimit) XXX_Size

func (m *EventEnableTimeBasedSupplyLimit) XXX_Size() int

func (*EventEnableTimeBasedSupplyLimit) XXX_Unmarshal

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

type EventIBCAggregate

type EventIBCAggregate struct {
	Status             Status `protobuf:"varint,1,opt,name=status,proto3,enum=teleport.aggregate.v1.Status" json:"status,omitempty"`
	Message            string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Sequence           uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	SourceChannel      string `protobuf:"bytes,4,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty"`
	DestinationChannel string `protobuf:"bytes,5,opt,name=destination_channel,json=destinationChannel,proto3" json:"destination_channel,omitempty"`
}

EventIBCAggregate is emitted on IBC Aggregate

func (*EventIBCAggregate) Descriptor

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

func (*EventIBCAggregate) GetDestinationChannel

func (m *EventIBCAggregate) GetDestinationChannel() string

func (*EventIBCAggregate) GetMessage

func (m *EventIBCAggregate) GetMessage() string

func (*EventIBCAggregate) GetSequence

func (m *EventIBCAggregate) GetSequence() uint64

func (*EventIBCAggregate) GetSourceChannel

func (m *EventIBCAggregate) GetSourceChannel() string

func (*EventIBCAggregate) GetStatus

func (m *EventIBCAggregate) GetStatus() Status

func (*EventIBCAggregate) Marshal

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

func (*EventIBCAggregate) MarshalTo

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

func (*EventIBCAggregate) MarshalToSizedBuffer

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

func (*EventIBCAggregate) ProtoMessage

func (*EventIBCAggregate) ProtoMessage()

func (*EventIBCAggregate) Reset

func (m *EventIBCAggregate) Reset()

func (*EventIBCAggregate) Size

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

func (*EventIBCAggregate) String

func (m *EventIBCAggregate) String() string

func (*EventIBCAggregate) Unmarshal

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

func (*EventIBCAggregate) XXX_DiscardUnknown

func (m *EventIBCAggregate) XXX_DiscardUnknown()

func (*EventIBCAggregate) XXX_Marshal

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

func (*EventIBCAggregate) XXX_Merge

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

func (*EventIBCAggregate) XXX_Size

func (m *EventIBCAggregate) XXX_Size() int

func (*EventIBCAggregate) XXX_Unmarshal

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

type EventRegisterTokens

type EventRegisterTokens struct {
	Denom      []string `protobuf:"bytes,1,rep,name=denom,proto3" json:"denom,omitempty"`
	Erc20Token string   `protobuf:"bytes,2,opt,name=erc20_token,json=erc20Token,proto3" json:"erc20_token,omitempty"`
}

EventRegisterTokens is emitted on aggregate register coins

func (*EventRegisterTokens) Descriptor

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

func (*EventRegisterTokens) GetDenom

func (m *EventRegisterTokens) GetDenom() []string

func (*EventRegisterTokens) GetErc20Token

func (m *EventRegisterTokens) GetErc20Token() string

func (*EventRegisterTokens) Marshal

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

func (*EventRegisterTokens) MarshalTo

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

func (*EventRegisterTokens) MarshalToSizedBuffer

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

func (*EventRegisterTokens) ProtoMessage

func (*EventRegisterTokens) ProtoMessage()

func (*EventRegisterTokens) Reset

func (m *EventRegisterTokens) Reset()

func (*EventRegisterTokens) Size

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

func (*EventRegisterTokens) String

func (m *EventRegisterTokens) String() string

func (*EventRegisterTokens) Unmarshal

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

func (*EventRegisterTokens) XXX_DiscardUnknown

func (m *EventRegisterTokens) XXX_DiscardUnknown()

func (*EventRegisterTokens) XXX_Marshal

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

func (*EventRegisterTokens) XXX_Merge

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

func (*EventRegisterTokens) XXX_Size

func (m *EventRegisterTokens) XXX_Size() int

func (*EventRegisterTokens) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// module parameters
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// registered token pairs
	TokenPairs []TokenPair `protobuf:"bytes,2,rep,name=token_pairs,json=tokenPairs,proto3" json:"token_pairs"`
}

GenesisState defines the module's genesis state

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState sets default evm genesis state with empty accounts and default params and chain config values.

func NewGenesisState

func NewGenesisState(params Params, pairs []TokenPair) GenesisState

NewGenesisState creates a new genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetTokenPairs

func (m *GenesisState) GetTokenPairs() []TokenPair

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 (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure

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 LogTransfer

type LogTransfer struct {
	From   common.Address
	To     common.Address
	Tokens *big.Int
}

Event type for Transfer(address from, address to, uint256 value)

type MsgClient

type MsgClient interface {
	// ConvertCoin mints a ERC20 representation of the SDK Coin denom that is
	// registered on the token mapping.
	ConvertCoin(ctx context.Context, in *MsgConvertCoin, opts ...grpc.CallOption) (*MsgConvertCoinResponse, error)
	// ConvertERC20 mints a Cosmos coin representation of the ERC20 token contract
	// that is registered on the token mapping.
	ConvertERC20(ctx context.Context, in *MsgConvertERC20, opts ...grpc.CallOption) (*MsgConvertERC20Response, 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 MsgConvertCoin

type MsgConvertCoin struct {
	// Cosmos coin which denomination is registered on aggregate bridge.
	// The coin amount defines the total ERC20 tokens to convert.
	Coin types.Coin `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin"`
	// recipient hex address to receive ERC20 token
	Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// cosmos bech32 address from the owner of the given ERC20 tokens
	Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgConvertCoin defines a Msg to convert a Cosmos Coin to a ERC20 token

func NewMsgConvertCoin

func NewMsgConvertCoin(coin sdk.Coin, receiver common.Address, sender sdk.AccAddress) *MsgConvertCoin

NewMsgConvertCoin creates a new instance of MsgConvertCoin

func (*MsgConvertCoin) Descriptor

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

func (*MsgConvertCoin) GetCoin

func (m *MsgConvertCoin) GetCoin() types.Coin

func (*MsgConvertCoin) GetReceiver

func (m *MsgConvertCoin) GetReceiver() string

func (*MsgConvertCoin) GetSender

func (m *MsgConvertCoin) GetSender() string

func (MsgConvertCoin) GetSigners

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

GetSigners defines whose signature is required

func (*MsgConvertCoin) Marshal

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

func (*MsgConvertCoin) MarshalTo

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

func (*MsgConvertCoin) MarshalToSizedBuffer

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

func (*MsgConvertCoin) ProtoMessage

func (*MsgConvertCoin) ProtoMessage()

func (*MsgConvertCoin) Reset

func (m *MsgConvertCoin) Reset()

func (*MsgConvertCoin) Size

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

func (*MsgConvertCoin) String

func (m *MsgConvertCoin) String() string

func (*MsgConvertCoin) Unmarshal

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

func (MsgConvertCoin) ValidateBasic

func (msg MsgConvertCoin) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgConvertCoin) XXX_DiscardUnknown

func (m *MsgConvertCoin) XXX_DiscardUnknown()

func (*MsgConvertCoin) XXX_Marshal

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

func (*MsgConvertCoin) XXX_Merge

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

func (*MsgConvertCoin) XXX_Size

func (m *MsgConvertCoin) XXX_Size() int

func (*MsgConvertCoin) XXX_Unmarshal

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

type MsgConvertCoinResponse

type MsgConvertCoinResponse struct {
}

MsgConvertCoinResponse returns no fields

func (*MsgConvertCoinResponse) Descriptor

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

func (*MsgConvertCoinResponse) Marshal

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

func (*MsgConvertCoinResponse) MarshalTo

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

func (*MsgConvertCoinResponse) MarshalToSizedBuffer

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

func (*MsgConvertCoinResponse) ProtoMessage

func (*MsgConvertCoinResponse) ProtoMessage()

func (*MsgConvertCoinResponse) Reset

func (m *MsgConvertCoinResponse) Reset()

func (*MsgConvertCoinResponse) Size

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

func (*MsgConvertCoinResponse) String

func (m *MsgConvertCoinResponse) String() string

func (*MsgConvertCoinResponse) Unmarshal

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

func (*MsgConvertCoinResponse) XXX_DiscardUnknown

func (m *MsgConvertCoinResponse) XXX_DiscardUnknown()

func (*MsgConvertCoinResponse) XXX_Marshal

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

func (*MsgConvertCoinResponse) XXX_Merge

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

func (*MsgConvertCoinResponse) XXX_Size

func (m *MsgConvertCoinResponse) XXX_Size() int

func (*MsgConvertCoinResponse) XXX_Unmarshal

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

type MsgConvertERC20

type MsgConvertERC20 struct {
	// ERC20 token contract address registered on aggregate bridge
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// amount of ERC20 tokens to mint
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
	// bech32 address to receive SDK coins.
	Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// sender hex address from the owner of the given ERC20 tokens
	Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
	// denom for contract convert to
	Denom string `protobuf:"bytes,5,opt,name=denom,proto3" json:"denom,omitempty"`
}

MsgConvertERC20 defines a Msg to convert an ERC20 token to a Cosmos SDK coin.

func NewMsgConvertERC20

func NewMsgConvertERC20(amount sdk.Int, receiver sdk.AccAddress, contract, sender common.Address, denom string) *MsgConvertERC20

NewMsgConvertERC20 creates a new instance of MsgConvertERC20

func (*MsgConvertERC20) Descriptor

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

func (*MsgConvertERC20) GetContractAddress

func (m *MsgConvertERC20) GetContractAddress() string

func (*MsgConvertERC20) GetDenom

func (m *MsgConvertERC20) GetDenom() string

func (*MsgConvertERC20) GetReceiver

func (m *MsgConvertERC20) GetReceiver() string

func (*MsgConvertERC20) GetSender

func (m *MsgConvertERC20) GetSender() string

func (MsgConvertERC20) GetSigners

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

GetSigners defines whose signature is required

func (*MsgConvertERC20) Marshal

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

func (*MsgConvertERC20) MarshalTo

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

func (*MsgConvertERC20) MarshalToSizedBuffer

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

func (*MsgConvertERC20) ProtoMessage

func (*MsgConvertERC20) ProtoMessage()

func (*MsgConvertERC20) Reset

func (m *MsgConvertERC20) Reset()

func (*MsgConvertERC20) Size

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

func (*MsgConvertERC20) String

func (m *MsgConvertERC20) String() string

func (*MsgConvertERC20) Unmarshal

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

func (MsgConvertERC20) ValidateBasic

func (msg MsgConvertERC20) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgConvertERC20) XXX_DiscardUnknown

func (m *MsgConvertERC20) XXX_DiscardUnknown()

func (*MsgConvertERC20) XXX_Marshal

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

func (*MsgConvertERC20) XXX_Merge

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

func (*MsgConvertERC20) XXX_Size

func (m *MsgConvertERC20) XXX_Size() int

func (*MsgConvertERC20) XXX_Unmarshal

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

type MsgConvertERC20Response

type MsgConvertERC20Response struct {
}

MsgConvertERC20Response returns no fields

func (*MsgConvertERC20Response) Descriptor

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

func (*MsgConvertERC20Response) Marshal

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

func (*MsgConvertERC20Response) MarshalTo

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

func (*MsgConvertERC20Response) MarshalToSizedBuffer

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

func (*MsgConvertERC20Response) ProtoMessage

func (*MsgConvertERC20Response) ProtoMessage()

func (*MsgConvertERC20Response) Reset

func (m *MsgConvertERC20Response) Reset()

func (*MsgConvertERC20Response) Size

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

func (*MsgConvertERC20Response) String

func (m *MsgConvertERC20Response) String() string

func (*MsgConvertERC20Response) Unmarshal

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

func (*MsgConvertERC20Response) XXX_DiscardUnknown

func (m *MsgConvertERC20Response) XXX_DiscardUnknown()

func (*MsgConvertERC20Response) XXX_Marshal

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

func (*MsgConvertERC20Response) XXX_Merge

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

func (*MsgConvertERC20Response) XXX_Size

func (m *MsgConvertERC20Response) XXX_Size() int

func (*MsgConvertERC20Response) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// ConvertCoin mints a ERC20 representation of the SDK Coin denom that is
	// registered on the token mapping.
	ConvertCoin(context.Context, *MsgConvertCoin) (*MsgConvertCoinResponse, error)
	// ConvertERC20 mints a Cosmos coin representation of the ERC20 token contract
	// that is registered on the token mapping.
	ConvertERC20(context.Context, *MsgConvertERC20) (*MsgConvertERC20Response, error)
}

MsgServer is the server API for Msg service.

type Owner

type Owner int32

Owner enumerates the ownership of a ERC20 contract

const (
	// OWNER_UNSPECIFIED defines an invalid/undefined owner
	OWNER_UNSPECIFIED Owner = 0
	// OWNER_MODULE erc20 is owned by the intrarelayer module account
	OWNER_MODULE Owner = 1
	// EXTERNAL erc20 is owned by an external account
	OWNER_EXTERNAL Owner = 2
)

func (Owner) EnumDescriptor

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

func (Owner) String

func (x Owner) String() string

type Params

type Params struct {
	// parameter to enable the intrarelaying of Cosmos coins <--> ERC20 tokens
	EnableAggregate bool `protobuf:"varint,1,opt,name=enable_aggregate,json=enableAggregate,proto3" json:"enable_aggregate,omitempty"`
	// parameter to enable the EVM hook to convert an ERC20 token to a Cosmos
	// Coin by transferring the Tokens through a MsgEthereumTx to the
	// ModuleAddress Ethereum address.
	EnableEVMHook bool `protobuf:"varint,2,opt,name=enable_evm_hook,json=enableEvmHook,proto3" json:"enable_evm_hook,omitempty"`
}

Params defines the aggregate module params

func DefaultParams

func DefaultParams() Params

func NewParams

func NewParams(enableAggregate bool, enableEVMHook bool) Params

NewParams creates a new Params object

func (*Params) Descriptor

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

func (*Params) GetEnableAggregate

func (m *Params) GetEnableAggregate() bool

func (*Params) GetEnableEVMHook

func (m *Params) GetEnableEVMHook() bool

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 returns the parameter set pairs.

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 (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() 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 QueryClient

type QueryClient interface {
	// Retrieves registered token pairs
	TokenPairs(ctx context.Context, in *QueryTokenPairsRequest, opts ...grpc.CallOption) (*QueryTokenPairsResponse, error)
	// Retrieves a registered token pair
	TokenPair(ctx context.Context, in *QueryTokenPairRequest, opts ...grpc.CallOption) (*QueryTokenPairResponse, error)
	// Params retrieves the aggregate module params
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 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 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 {
	// Retrieves registered token pairs
	TokenPairs(context.Context, *QueryTokenPairsRequest) (*QueryTokenPairsResponse, error)
	// Retrieves a registered token pair
	TokenPair(context.Context, *QueryTokenPairRequest) (*QueryTokenPairResponse, error)
	// Params retrieves the aggregate module params
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QueryTokenPairRequest

type QueryTokenPairRequest struct {
	// token identifier can be either the hex contract address of the ERC20 or the
	// Cosmos base denomination
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
}

QueryTokenPairRequest is the request type for the Query/TokenPair RPC method

func (*QueryTokenPairRequest) Descriptor

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

func (*QueryTokenPairRequest) GetToken

func (m *QueryTokenPairRequest) GetToken() string

func (*QueryTokenPairRequest) Marshal

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

func (*QueryTokenPairRequest) MarshalTo

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

func (*QueryTokenPairRequest) MarshalToSizedBuffer

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

func (*QueryTokenPairRequest) ProtoMessage

func (*QueryTokenPairRequest) ProtoMessage()

func (*QueryTokenPairRequest) Reset

func (m *QueryTokenPairRequest) Reset()

func (*QueryTokenPairRequest) Size

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

func (*QueryTokenPairRequest) String

func (m *QueryTokenPairRequest) String() string

func (*QueryTokenPairRequest) Unmarshal

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

func (*QueryTokenPairRequest) XXX_DiscardUnknown

func (m *QueryTokenPairRequest) XXX_DiscardUnknown()

func (*QueryTokenPairRequest) XXX_Marshal

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

func (*QueryTokenPairRequest) XXX_Merge

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

func (*QueryTokenPairRequest) XXX_Size

func (m *QueryTokenPairRequest) XXX_Size() int

func (*QueryTokenPairRequest) XXX_Unmarshal

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

type QueryTokenPairResponse

type QueryTokenPairResponse struct {
	TokenPair TokenPair `protobuf:"bytes,1,opt,name=token_pair,json=tokenPair,proto3" json:"token_pair"`
}

QueryTokenPairResponse is the response type for the Query/TokenPair RPC method

func (*QueryTokenPairResponse) Descriptor

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

func (*QueryTokenPairResponse) GetTokenPair

func (m *QueryTokenPairResponse) GetTokenPair() TokenPair

func (*QueryTokenPairResponse) Marshal

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

func (*QueryTokenPairResponse) MarshalTo

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

func (*QueryTokenPairResponse) MarshalToSizedBuffer

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

func (*QueryTokenPairResponse) ProtoMessage

func (*QueryTokenPairResponse) ProtoMessage()

func (*QueryTokenPairResponse) Reset

func (m *QueryTokenPairResponse) Reset()

func (*QueryTokenPairResponse) Size

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

func (*QueryTokenPairResponse) String

func (m *QueryTokenPairResponse) String() string

func (*QueryTokenPairResponse) Unmarshal

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

func (*QueryTokenPairResponse) XXX_DiscardUnknown

func (m *QueryTokenPairResponse) XXX_DiscardUnknown()

func (*QueryTokenPairResponse) XXX_Marshal

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

func (*QueryTokenPairResponse) XXX_Merge

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

func (*QueryTokenPairResponse) XXX_Size

func (m *QueryTokenPairResponse) XXX_Size() int

func (*QueryTokenPairResponse) XXX_Unmarshal

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

type QueryTokenPairsRequest

type QueryTokenPairsRequest struct {
	// pagination defines an optional pagination for the request
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryTokenPairsRequest is the request type for the Query/TokenPairs RPC method

func (*QueryTokenPairsRequest) Descriptor

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

func (*QueryTokenPairsRequest) GetPagination

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

func (*QueryTokenPairsRequest) Marshal

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

func (*QueryTokenPairsRequest) MarshalTo

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

func (*QueryTokenPairsRequest) MarshalToSizedBuffer

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

func (*QueryTokenPairsRequest) ProtoMessage

func (*QueryTokenPairsRequest) ProtoMessage()

func (*QueryTokenPairsRequest) Reset

func (m *QueryTokenPairsRequest) Reset()

func (*QueryTokenPairsRequest) Size

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

func (*QueryTokenPairsRequest) String

func (m *QueryTokenPairsRequest) String() string

func (*QueryTokenPairsRequest) Unmarshal

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

func (*QueryTokenPairsRequest) XXX_DiscardUnknown

func (m *QueryTokenPairsRequest) XXX_DiscardUnknown()

func (*QueryTokenPairsRequest) XXX_Marshal

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

func (*QueryTokenPairsRequest) XXX_Merge

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

func (*QueryTokenPairsRequest) XXX_Size

func (m *QueryTokenPairsRequest) XXX_Size() int

func (*QueryTokenPairsRequest) XXX_Unmarshal

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

type QueryTokenPairsResponse

type QueryTokenPairsResponse struct {
	TokenPairs []TokenPair `protobuf:"bytes,1,rep,name=token_pairs,json=tokenPairs,proto3" json:"token_pairs"`
	// pagination defines the pagination in the response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryTokenPairsResponse is the response type for the Query/TokenPairs RPC method

func (*QueryTokenPairsResponse) Descriptor

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

func (*QueryTokenPairsResponse) GetPagination

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

func (*QueryTokenPairsResponse) GetTokenPairs

func (m *QueryTokenPairsResponse) GetTokenPairs() []TokenPair

func (*QueryTokenPairsResponse) Marshal

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

func (*QueryTokenPairsResponse) MarshalTo

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

func (*QueryTokenPairsResponse) MarshalToSizedBuffer

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

func (*QueryTokenPairsResponse) ProtoMessage

func (*QueryTokenPairsResponse) ProtoMessage()

func (*QueryTokenPairsResponse) Reset

func (m *QueryTokenPairsResponse) Reset()

func (*QueryTokenPairsResponse) Size

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

func (*QueryTokenPairsResponse) String

func (m *QueryTokenPairsResponse) String() string

func (*QueryTokenPairsResponse) Unmarshal

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

func (*QueryTokenPairsResponse) XXX_DiscardUnknown

func (m *QueryTokenPairsResponse) XXX_DiscardUnknown()

func (*QueryTokenPairsResponse) XXX_Marshal

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

func (*QueryTokenPairsResponse) XXX_Merge

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

func (*QueryTokenPairsResponse) XXX_Size

func (m *QueryTokenPairsResponse) XXX_Size() int

func (*QueryTokenPairsResponse) XXX_Unmarshal

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

type RegisterCoinProposal

type RegisterCoinProposal 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"`
}

RegisterCoinProposal is a gov Content type to register a token pair

func (*RegisterCoinProposal) Descriptor

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

func (*RegisterCoinProposal) GetDescription

func (m *RegisterCoinProposal) GetDescription() string

func (*RegisterCoinProposal) GetMetadata

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

func (*RegisterCoinProposal) GetTitle

func (m *RegisterCoinProposal) GetTitle() string

func (*RegisterCoinProposal) Marshal

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

func (*RegisterCoinProposal) MarshalTo

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

func (*RegisterCoinProposal) MarshalToSizedBuffer

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

func (*RegisterCoinProposal) ProposalRoute

func (*RegisterCoinProposal) ProposalRoute() string

ProposalRoute returns router key for this proposal

func (*RegisterCoinProposal) ProposalType

func (*RegisterCoinProposal) ProposalType() string

ProposalType returns proposal type for this proposal

func (*RegisterCoinProposal) ProtoMessage

func (*RegisterCoinProposal) ProtoMessage()

func (*RegisterCoinProposal) Reset

func (m *RegisterCoinProposal) Reset()

func (*RegisterCoinProposal) Size

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

func (*RegisterCoinProposal) String

func (m *RegisterCoinProposal) String() string

func (*RegisterCoinProposal) Unmarshal

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

func (*RegisterCoinProposal) ValidateBasic

func (p *RegisterCoinProposal) ValidateBasic() error

ValidateBasic performs a stateless check of the proposal fields

func (*RegisterCoinProposal) XXX_DiscardUnknown

func (m *RegisterCoinProposal) XXX_DiscardUnknown()

func (*RegisterCoinProposal) XXX_Marshal

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

func (*RegisterCoinProposal) XXX_Merge

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

func (*RegisterCoinProposal) XXX_Size

func (m *RegisterCoinProposal) XXX_Size() int

func (*RegisterCoinProposal) XXX_Unmarshal

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

type RegisterERC20Proposal

type RegisterERC20Proposal 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"`
	// contract address of ERC20 token
	ERC20Address string `protobuf:"bytes,3,opt,name=erc20_address,json=erc20Address,proto3" json:"erc20_address,omitempty"`
}

RegisterCoinProposal is a gov Content type to register a token pair

func (*RegisterERC20Proposal) Descriptor

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

func (*RegisterERC20Proposal) GetDescription

func (m *RegisterERC20Proposal) GetDescription() string

func (*RegisterERC20Proposal) GetERC20Address

func (m *RegisterERC20Proposal) GetERC20Address() string

func (*RegisterERC20Proposal) GetTitle

func (m *RegisterERC20Proposal) GetTitle() string

func (*RegisterERC20Proposal) Marshal

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

func (*RegisterERC20Proposal) MarshalTo

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

func (*RegisterERC20Proposal) MarshalToSizedBuffer

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

func (*RegisterERC20Proposal) ProposalRoute

func (*RegisterERC20Proposal) ProposalRoute() string

ProposalRoute returns router key for this proposal

func (*RegisterERC20Proposal) ProposalType

func (*RegisterERC20Proposal) ProposalType() string

ProposalType returns proposal type for this proposal

func (*RegisterERC20Proposal) ProtoMessage

func (*RegisterERC20Proposal) ProtoMessage()

func (*RegisterERC20Proposal) Reset

func (m *RegisterERC20Proposal) Reset()

func (*RegisterERC20Proposal) Size

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

func (*RegisterERC20Proposal) String

func (m *RegisterERC20Proposal) String() string

func (*RegisterERC20Proposal) Unmarshal

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

func (*RegisterERC20Proposal) ValidateBasic

func (p *RegisterERC20Proposal) ValidateBasic() error

ValidateBasic performs a stateless check of the proposal fields

func (*RegisterERC20Proposal) XXX_DiscardUnknown

func (m *RegisterERC20Proposal) XXX_DiscardUnknown()

func (*RegisterERC20Proposal) XXX_Marshal

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

func (*RegisterERC20Proposal) XXX_Merge

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

func (*RegisterERC20Proposal) XXX_Size

func (m *RegisterERC20Proposal) XXX_Size() int

func (*RegisterERC20Proposal) XXX_Unmarshal

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

type RegisterERC20TraceProposal

type RegisterERC20TraceProposal 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"`
	// contract address of ERC20 token
	ERC20Address string `protobuf:"bytes,3,opt,name=erc20_address,json=erc20Address,proto3" json:"erc20_address,omitempty"`
	// origin token
	OriginToken string `protobuf:"bytes,4,opt,name=origin_token,json=originToken,proto3" json:"origin_token,omitempty"`
	// origin chain
	OriginChain string `protobuf:"bytes,5,opt,name=origin_chain,json=originChain,proto3" json:"origin_chain,omitempty"`
	// scale: real_amount = packet_amount * (10 ** scale)
	Scale uint64 `protobuf:"varint,6,opt,name=scale,proto3" json:"scale,omitempty"`
}

RegisterERC20TraceProposal is a gov Content type to register a ERC20 trace

func (*RegisterERC20TraceProposal) Descriptor

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

func (*RegisterERC20TraceProposal) GetDescription

func (m *RegisterERC20TraceProposal) GetDescription() string

func (*RegisterERC20TraceProposal) GetERC20Address

func (m *RegisterERC20TraceProposal) GetERC20Address() string

func (*RegisterERC20TraceProposal) GetOriginChain

func (m *RegisterERC20TraceProposal) GetOriginChain() string

func (*RegisterERC20TraceProposal) GetOriginToken

func (m *RegisterERC20TraceProposal) GetOriginToken() string

func (*RegisterERC20TraceProposal) GetScale

func (m *RegisterERC20TraceProposal) GetScale() uint64

func (*RegisterERC20TraceProposal) GetTitle

func (m *RegisterERC20TraceProposal) GetTitle() string

func (*RegisterERC20TraceProposal) Marshal

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

func (*RegisterERC20TraceProposal) MarshalTo

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

func (*RegisterERC20TraceProposal) MarshalToSizedBuffer

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

func (*RegisterERC20TraceProposal) ProposalRoute

func (*RegisterERC20TraceProposal) ProposalRoute() string

ProposalRoute returns router key for this proposal

func (*RegisterERC20TraceProposal) ProposalType

func (*RegisterERC20TraceProposal) ProposalType() string

ProposalType returns proposal type for this proposal

func (*RegisterERC20TraceProposal) ProtoMessage

func (*RegisterERC20TraceProposal) ProtoMessage()

func (*RegisterERC20TraceProposal) Reset

func (m *RegisterERC20TraceProposal) Reset()

func (*RegisterERC20TraceProposal) Size

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

func (*RegisterERC20TraceProposal) String

func (m *RegisterERC20TraceProposal) String() string

func (*RegisterERC20TraceProposal) Unmarshal

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

func (*RegisterERC20TraceProposal) ValidateBasic

func (p *RegisterERC20TraceProposal) ValidateBasic() error

ValidateBasic performs a stateless check of the proposal fields

func (*RegisterERC20TraceProposal) XXX_DiscardUnknown

func (m *RegisterERC20TraceProposal) XXX_DiscardUnknown()

func (*RegisterERC20TraceProposal) XXX_Marshal

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

func (*RegisterERC20TraceProposal) XXX_Merge

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

func (*RegisterERC20TraceProposal) XXX_Size

func (m *RegisterERC20TraceProposal) XXX_Size() int

func (*RegisterERC20TraceProposal) XXX_Unmarshal

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

type Status

type Status int32

Status enumerates the status of IBC Aggregate

const (
	// STATUS_UNKNOWN defines the invalid/undefined status
	STATUS_UNKNOWN Status = 0
	// STATUS_SUCCESS defines the success IBC Aggregate execute
	STATUS_SUCCESS Status = 1
	// STATUS_FAILED defines the failed IBC Aggregate execute
	STATUS_FAILED Status = 2
)

func (Status) EnumDescriptor

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

func (Status) String

func (x Status) String() string

type ToggleTokenRelayProposal

type ToggleTokenRelayProposal 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 identifier can be either the hex contract address of the ERC20 or the
	// Cosmos base denomination
	Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
}

ToggleTokenRelayProposal is a gov Content type to toggle the internal relaying of a token pair

func (*ToggleTokenRelayProposal) Descriptor

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

func (*ToggleTokenRelayProposal) Equal

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

func (*ToggleTokenRelayProposal) GetDescription

func (m *ToggleTokenRelayProposal) GetDescription() string

func (*ToggleTokenRelayProposal) GetTitle

func (m *ToggleTokenRelayProposal) GetTitle() string

func (*ToggleTokenRelayProposal) GetToken

func (m *ToggleTokenRelayProposal) GetToken() string

func (*ToggleTokenRelayProposal) Marshal

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

func (*ToggleTokenRelayProposal) MarshalTo

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

func (*ToggleTokenRelayProposal) MarshalToSizedBuffer

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

func (*ToggleTokenRelayProposal) ProposalRoute

func (*ToggleTokenRelayProposal) ProposalRoute() string

ProposalRoute returns router key for this proposal

func (*ToggleTokenRelayProposal) ProposalType

func (*ToggleTokenRelayProposal) ProposalType() string

ProposalType returns proposal type for this proposal

func (*ToggleTokenRelayProposal) ProtoMessage

func (*ToggleTokenRelayProposal) ProtoMessage()

func (*ToggleTokenRelayProposal) Reset

func (m *ToggleTokenRelayProposal) Reset()

func (*ToggleTokenRelayProposal) Size

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

func (*ToggleTokenRelayProposal) String

func (m *ToggleTokenRelayProposal) String() string

func (*ToggleTokenRelayProposal) Unmarshal

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

func (*ToggleTokenRelayProposal) ValidateBasic

func (etrp *ToggleTokenRelayProposal) ValidateBasic() error

ValidateBasic performs a stateless check of the proposal fields

func (*ToggleTokenRelayProposal) XXX_DiscardUnknown

func (m *ToggleTokenRelayProposal) XXX_DiscardUnknown()

func (*ToggleTokenRelayProposal) XXX_Marshal

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

func (*ToggleTokenRelayProposal) XXX_Merge

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

func (*ToggleTokenRelayProposal) XXX_Size

func (m *ToggleTokenRelayProposal) XXX_Size() int

func (*ToggleTokenRelayProposal) XXX_Unmarshal

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

type TokenPair

type TokenPair struct {
	// address of ERC20 contract token
	ERC20Address string `protobuf:"bytes,1,opt,name=erc20_address,json=erc20Address,proto3" json:"erc20_address,omitempty"`
	// cosmos base denomination to be mapped to
	Denoms []string `protobuf:"bytes,2,rep,name=denoms,proto3" json:"denoms,omitempty"`
	// shows token mapping enable status
	Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// ERC20 owner address ENUM (0 invalid, 1 ModuleAccount, 2 external address)
	ContractOwner Owner `` /* 134-byte string literal not displayed */
}

TokenPair defines an instance that records pairing consisting of a Cosmos native Coin and an ERC20 token address

func NewTokenPair

func NewTokenPair(erc20Address common.Address, denoms []string, enabled bool, contractOwner Owner) TokenPair

NewTokenPair returns an instance of TokenPair

func (*TokenPair) Descriptor

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

func (*TokenPair) Equal

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

func (*TokenPair) GetContractOwner

func (m *TokenPair) GetContractOwner() Owner

func (*TokenPair) GetDenoms

func (m *TokenPair) GetDenoms() []string

func (*TokenPair) GetERC20Address

func (m *TokenPair) GetERC20Address() string

func (TokenPair) GetERC20Contract

func (tp TokenPair) GetERC20Contract() common.Address

GetErc20Contract casts the hex string address of the ERC20 to common.Address

func (*TokenPair) GetEnabled

func (m *TokenPair) GetEnabled() bool

func (TokenPair) GetID

func (tp TokenPair) GetID() []byte

GetID returns the SHA256 hash of the ERC20 address and denomination

func (TokenPair) IsNativeCoin

func (tp TokenPair) IsNativeCoin() bool

IsNativeCoin returns true if the owner of the ERC20 contract is the aggregate module account

func (TokenPair) IsNativeERC20

func (tp TokenPair) IsNativeERC20() bool

IsNativeERC20 returns true if the owner of the ERC20 contract not the aggregate module account

func (*TokenPair) Marshal

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

func (*TokenPair) MarshalTo

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

func (*TokenPair) MarshalToSizedBuffer

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

func (*TokenPair) ProtoMessage

func (*TokenPair) ProtoMessage()

func (*TokenPair) Reset

func (m *TokenPair) Reset()

func (*TokenPair) Size

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

func (*TokenPair) String

func (m *TokenPair) String() string

func (*TokenPair) Unmarshal

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

func (TokenPair) Validate

func (tp TokenPair) Validate() error

Validate performs a stateless validation of a TokenPair

func (*TokenPair) XXX_DiscardUnknown

func (m *TokenPair) XXX_DiscardUnknown()

func (*TokenPair) XXX_Marshal

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

func (*TokenPair) XXX_Merge

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

func (*TokenPair) XXX_Size

func (m *TokenPair) XXX_Size() int

func (*TokenPair) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ConvertCoin

func (*UnimplementedMsgServer) ConvertERC20

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) TokenPair

func (*UnimplementedQueryServer) TokenPairs

type UpdateTokenPairERC20Proposal

type UpdateTokenPairERC20Proposal 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"`
	// contract address of ERC20 token
	ERC20Address string `protobuf:"bytes,3,opt,name=erc20_address,json=erc20Address,proto3" json:"erc20_address,omitempty"`
	// new address of ERC20 token contract
	NewERC20Address string `protobuf:"bytes,4,opt,name=new_erc20_address,json=newErc20Address,proto3" json:"new_erc20_address,omitempty"`
}

UpdateTokenPairERC20Proposal is a gov Content type to update a token pair's ERC20 contract address

func (UpdateTokenPairERC20Proposal) ConvertERC20Address

func (p UpdateTokenPairERC20Proposal) ConvertERC20Address() common.Address

ConvertERC20Address returns the common.Address representation of the ERC20 hex address

func (UpdateTokenPairERC20Proposal) ConvertNewERC20Address

func (p UpdateTokenPairERC20Proposal) ConvertNewERC20Address() common.Address

ConvertNewERC20Address returns the common.Address representation of the new ERC20 hex address

func (*UpdateTokenPairERC20Proposal) Descriptor

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

func (*UpdateTokenPairERC20Proposal) Equal

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

func (*UpdateTokenPairERC20Proposal) GetDescription

func (m *UpdateTokenPairERC20Proposal) GetDescription() string

func (*UpdateTokenPairERC20Proposal) GetERC20Address

func (m *UpdateTokenPairERC20Proposal) GetERC20Address() string

func (*UpdateTokenPairERC20Proposal) GetNewERC20Address

func (m *UpdateTokenPairERC20Proposal) GetNewERC20Address() string

func (*UpdateTokenPairERC20Proposal) GetTitle

func (m *UpdateTokenPairERC20Proposal) GetTitle() string

func (*UpdateTokenPairERC20Proposal) Marshal

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

func (*UpdateTokenPairERC20Proposal) MarshalTo

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

func (*UpdateTokenPairERC20Proposal) MarshalToSizedBuffer

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

func (*UpdateTokenPairERC20Proposal) ProposalRoute

func (*UpdateTokenPairERC20Proposal) ProposalRoute() string

ProposalRoute returns router key for this proposal

func (*UpdateTokenPairERC20Proposal) ProposalType

func (*UpdateTokenPairERC20Proposal) ProposalType() string

ProposalType returns proposal type for this proposal

func (*UpdateTokenPairERC20Proposal) ProtoMessage

func (*UpdateTokenPairERC20Proposal) ProtoMessage()

func (*UpdateTokenPairERC20Proposal) Reset

func (m *UpdateTokenPairERC20Proposal) Reset()

func (*UpdateTokenPairERC20Proposal) Size

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

func (*UpdateTokenPairERC20Proposal) String

func (*UpdateTokenPairERC20Proposal) Unmarshal

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

func (*UpdateTokenPairERC20Proposal) ValidateBasic

func (p *UpdateTokenPairERC20Proposal) ValidateBasic() error

ValidateBasic performs a stateless check of the proposal fields

func (*UpdateTokenPairERC20Proposal) XXX_DiscardUnknown

func (m *UpdateTokenPairERC20Proposal) XXX_DiscardUnknown()

func (*UpdateTokenPairERC20Proposal) XXX_Marshal

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

func (*UpdateTokenPairERC20Proposal) XXX_Merge

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

func (*UpdateTokenPairERC20Proposal) XXX_Size

func (m *UpdateTokenPairERC20Proposal) XXX_Size() int

func (*UpdateTokenPairERC20Proposal) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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