Versions in this module Expand all Collapse all v1 v1.0.0 Jan 6, 2023 Changes in this version + const AttributeKeyContractAddr + const AttributeKeyContractMethod + const AttributeKeyFrom + const AttributeKeyTo + const CompiledContractProposalName + const ContractMintMethod + const ContractTemplateProposalName + const DefaultAutoDeploymentEnabled + const DefaultCodespace + const DefaultIbcTimeout + const DefaultParamspace + const EventTypBurn + const EventTypCallModuleERC20 + const EventTypDeployModuleERC20 + const EventTypLock + const IbcDenomPrefix + const IbcEvmModuleName + const InnerTxMint + const InnerTxSendToIbc + const InnerTxUnlock + const ModuleName + const ProposalTypeContextTemplateImpl + const ProposalTypeContextTemplateProxy + const ProxyContractChangeAdmin + const ProxyContractRedirectProposalName + const ProxyContractUpgradeTo + const QueryContractByDenom + const QueryContractTem + const QueryDenomByContract + const QueryParameters + const QueryTokenMapping + const RedirectImplementation + const RedirectOwner + const RouterKey + const StoreKey + const TokenMappingProposalName + var ErrChainConfigNotFound = sdkerrors.Register(DefaultCodespace, 1, "chain configuration not found") + var ErrEmptyAddressList = sdkerrors.Register(DefaultCodespace, 4, "Empty account address list") + var ErrIbcDenomInvalid = sdkerrors.Register(DefaultCodespace, 5, "ibc denom is invalid") + var ErrKeyNotFound = sdkerrors.Register(DefaultCodespace, 2, "Key not found in database") + var ErrNoContractDeployed = sdkerrors.Register(DefaultCodespace, 6, "no contract deployed") + var ErrNoContractNotAuto = errors.New("no contract found and not auto deploy for the denom ") + var ErrUnexpectedProposalType = sdkerrors.Register(DefaultCodespace, 3, "Unsupported proposal type of erc20 module") + var IbcEvmModuleBechAddr sdk.AccAddress + var IbcEvmModuleETHAddr common.Address + var KeyEnableAutoDeployment = []byte("EnableAutoDeployment") + var KeyIbcTimeout = []byte("IbcTimeout") + var KeyPrefixContractToDenom = []byte + var KeyPrefixDenomToContract = []byte + var KeyPrefixTemplateContract = []byte + var ModuleCdc = codec.New() + var ModuleERC20Contract CompiledContract + var RedirectMap = map[RedirectType]string + func ConstructContractKey(str string) []byte + func ContractToDenomKey(contract []byte) []byte + func DenomToContractKey(denom string) []byte + func ErrProxyContractRedirect(denom string, tp int, addr string) sdk.EnvelopedErr + func ErrRegisteredContract(contract string) sdk.EnvelopedErr + func GetInternalImplementationBytes() []byte + func GetInternalProxyBytes() []byte + func IsValidIBCDenom(denom string) bool + func MarshalCompileContract(data CompiledContract) ([]byte, error) + func MustMarshalCompileContract(data CompiledContract) []byte + func ParamKeyTable() params.KeyTable + func RegisterCodec(cdc *codec.Codec) + type CompiledContract struct + ABI abi.ABI + Bin string + func MustUnmarshalCompileContract(data []byte) CompiledContract + func UnmarshalCompileContract(data []byte) (CompiledContract, error) + func (c CompiledContract) ValidBasic() error + type ContractByDenomRequest struct + Denom string + type ContractTemplate struct + Implement string + Proxy string + type ContractTemplateProposal struct + Contract string + ContractType string + Description string + Title string + func NewContractTemplateProposal(title string, description string, contractType string, contract string) ContractTemplateProposal + func (b ContractTemplateProposal) GetDescription() string + func (b ContractTemplateProposal) GetTitle() string + func (b ContractTemplateProposal) ProposalRoute() string + func (b ContractTemplateProposal) ProposalType() string + func (b ContractTemplateProposal) String() string + func (b ContractTemplateProposal) ValidateBasic() sdk.Error + type DenomByContractRequest struct + Contract string + type GenesisState struct + Params Params + TokenMappings []TokenMapping + func DefaultGenesisState() GenesisState + func (gs GenesisState) Validate() error + type Params struct + EnableAutoDeployment bool + IbcTimeout uint64 + func DefaultParams() Params + func NewParams(enableAutoDeployment bool, ibcTimeout uint64) Params + func (p *Params) ParamSetPairs() params.ParamSetPairs + func (p Params) String() string + func (p Params) Validate() error + type ProxyContractRedirectProposal struct + Addr string + Denom string + Description string + Title string + Tp RedirectType + func NewProxyContractRedirectProposal(title, description, denom string, tp RedirectType, addr *common.Address) ProxyContractRedirectProposal + func (tp ProxyContractRedirectProposal) GetDescription() string + func (tp ProxyContractRedirectProposal) GetTitle() string + func (tp ProxyContractRedirectProposal) ProposalRoute() string + func (tp ProxyContractRedirectProposal) ProposalType() string + func (tp ProxyContractRedirectProposal) String() string + func (tp ProxyContractRedirectProposal) ValidateBasic() sdk.Error + type QueryTokenMappingResponse struct + BaseDenom string + Contract string + Denom string + Path string + type RedirectType int + type TokenMapping struct + Contract string + Denom string + type TokenMappingProposal struct + Contract string + Denom string + Description string + Title string + func NewTokenMappingProposal(title, description, denom string, contractAddr *common.Address) TokenMappingProposal + func (tp TokenMappingProposal) GetDescription() string + func (tp TokenMappingProposal) GetTitle() string + func (tp TokenMappingProposal) ProposalRoute() string + func (tp TokenMappingProposal) ProposalType() string + func (tp TokenMappingProposal) String() string + func (tp TokenMappingProposal) ValidateBasic() sdk.Error