Versions in this module Expand all Collapse all v5 v5.0.0 Aug 18, 2023 Changes in this version + const AttributeKeyDenom + const AttributeKeyFrom + const AttributeKeyMemo + const AttributeKeyRecipient + const AttributeKeyTarget + const AttributeKeyTokenAddress + const BridgeCoinAmountFeeGas + const BridgeCoinAmountMethodName + const CancelSendToExternalEventName + const CancelSendToExternalGas + const CancelSendToExternalMethodName + const CrossChainEventName + const CrossChainGas + const CrossChainMethodName + const EventTypeCrossChain + const EventTypeRelayTransferCrossChain + const FIP20CrossChainGas + const FIP20CrossChainMethodName + const IncreaseBridgeFeeEventName + const IncreaseBridgeFeeGas + const IncreaseBridgeFeeMethodName + var BridgeCoinAmountMethod = abi.NewMethod(BridgeCoinAmountMethodName, BridgeCoinAmountMethodName, abi.Function, "view", ...) + var CancelSendToExternalEvent = abi.NewEvent(CancelSendToExternalEventName, CancelSendToExternalEventName, false, ...) + var CancelSendToExternalMethod = abi.NewMethod(CancelSendToExternalMethodName, CancelSendToExternalMethodName, abi.Function, ...) + var CrossChainEvent = abi.NewEvent(CrossChainEventName, CrossChainEventName, false, abi.Arguments{ ... }) + var CrossChainMethod = abi.NewMethod(CrossChainMethodName, CrossChainMethodName, abi.Function, "payable", false, ...) + var FIP20CrossChainMethod = abi.NewMethod(FIP20CrossChainMethodName, FIP20CrossChainMethodName, abi.Function, ...) + var IncreaseBridgeFeeEvent = abi.NewEvent(IncreaseBridgeFeeEventName, IncreaseBridgeFeeEventName, false, ...) + var IncreaseBridgeFeeMethod = abi.NewMethod(IncreaseBridgeFeeMethodName, IncreaseBridgeFeeMethodName, abi.Function, ...) + func GetABI() abi.ABI + func GetAddress() common.Address + type AccountKeeper interface + GetModuleAddress func(moduleName string) sdk.AccAddress + type BankKeeper interface + BurnCoins func(ctx sdk.Context, moduleName string, amounts sdk.Coins) error + GetAllBalances func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + GetBalance func(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin + GetDenomMetaData func(ctx sdk.Context, denom string) (bank.Metadata, bool) + GetSupply func(ctx sdk.Context, denom string) sdk.Coin + MintCoins func(ctx sdk.Context, moduleName string, amounts sdk.Coins) error + SendCoins func(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error + SendCoinsFromAccountToModule func(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error + SendCoinsFromModuleToAccount func(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error + type BridgeCoinAmountArgs struct + Target [32]byte + Token common.Address + func (args *BridgeCoinAmountArgs) Validate() error + type CallerRef struct + func (cr CallerRef) Address() common.Address + type CancelSendToExternalArgs struct + Chain string + TxID *big.Int + func (args *CancelSendToExternalArgs) Validate() error + type Contract struct + func NewPrecompiledContract(ctx sdk.Context, bankKeeper BankKeeper, evmKeeper EvmKeeper, ...) *Contract + func (c *Contract) AddLog(evm *vm.EVM, event abi.Event, topics []common.Hash, args ...interface{}) error + func (c *Contract) Address() common.Address + func (c *Contract) BridgeCoinAmount(ctx sdk.Context, evm *vm.EVM, contract *vm.Contract, _ bool) ([]byte, error) + func (c *Contract) CancelSendToExternal(ctx sdk.Context, evm *vm.EVM, contract *vm.Contract, readonly bool) ([]byte, error) + func (c *Contract) CrossChain(ctx sdk.Context, evm *vm.EVM, contract *vm.Contract, readonly bool) ([]byte, error) + func (c *Contract) FIP20CrossChain(ctx sdk.Context, evm *vm.EVM, contract *vm.Contract, readonly bool) ([]byte, error) + func (c *Contract) IncreaseBridgeFee(ctx sdk.Context, evm *vm.EVM, contract *vm.Contract, readonly bool) ([]byte, error) + func (c *Contract) IsStateful() bool + func (c *Contract) RequiredGas(input []byte) uint64 + func (c *Contract) Run(evm *vm.EVM, contract *vm.Contract, readonly bool) (ret []byte, err error) + type ContractCall struct + func NewContractCall(ctx sdk.Context, evm *vm.EVM, caller, contract common.Address) *ContractCall + func (cc *ContractCall) ERC20Burn(amount *big.Int) error + func (cc *ContractCall) ERC20TotalSupply() (*big.Int, error) + func (cc *ContractCall) ERC20TransferFrom(from, to common.Address, amount *big.Int) error + type CrossChainArgs struct + Amount *big.Int + Fee *big.Int + Memo string + Receipt string + Target [32]byte + Token common.Address + func (args *CrossChainArgs) Validate() error + type Erc20Keeper interface + ConvertDenomToTarget func(ctx sdk.Context, from sdk.AccAddress, coin sdk.Coin, fxTarget fxtypes.FxTarget) (sdk.Coin, error) + ConvertERC20NativeCoin func(ctx sdk.Context, pair types.TokenPair, sender common.Address, ...) error + GetIbcTimeout func(ctx sdk.Context) time.Duration + GetTokenPair func(ctx sdk.Context, tokenOrDenom string) (types.TokenPair, bool) + GetTokenPairByAddress func(ctx sdk.Context, address common.Address) (types.TokenPair, bool) + HasDenomAlias func(ctx sdk.Context, denom string) (bank.Metadata, bool) + HasOutgoingTransferRelation func(ctx sdk.Context, moduleName string, txID uint64) bool + IsOriginDenom func(ctx sdk.Context, denom string) bool + ModuleAddress func() common.Address + SetIBCTransferRelation func(ctx sdk.Context, channel string, sequence uint64) + ToTargetDenom func(ctx sdk.Context, denom, base string, aliases []string, ...) string + type EvmKeeper interface + GetParams func(ctx sdk.Context) (params evmtypes.Params) + type FIP20CrossChainArgs struct + Amount *big.Int + Fee *big.Int + Memo string + Receipt string + Sender common.Address + Target [32]byte + func (args *FIP20CrossChainArgs) Validate() error + type IBCTransferKeeper interface + GetDenomTrace func(ctx sdk.Context, denomTraceHash tmbytes.HexBytes) (ibctransfertypes.DenomTrace, bool) + Transfer func(goCtx context.Context, msg *ibctransfertypes.MsgTransfer) (*ibctransfertypes.MsgTransferResponse, error) + type IncreaseBridgeFeeArgs struct + Chain string + Fee *big.Int + Token common.Address + TxID *big.Int + func (args *IncreaseBridgeFeeArgs) Validate() error v5.0.0-rc0 Aug 8, 2023 Other modules containing this package github.com/functionx/fx-core/v4 github.com/functionx/fx-core/v6 github.com/functionx/fx-core/v7