crosschain

package
v8.0.0-...-a9a65cb Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeCallABI

type BridgeCallABI struct {
	abi.Method
	abi.Event
}

func NewBridgeCallABI

func NewBridgeCallABI() BridgeCallABI

func (BridgeCallABI) NewBridgeCallEvent

func (m BridgeCallABI) NewBridgeCallEvent(args *fxcontract.BridgeCallArgs, sender, origin common.Address, eventNonce *big.Int) (data []byte, topic []common.Hash, err error)

func (BridgeCallABI) PackInput

func (m BridgeCallABI) PackInput(args fxcontract.BridgeCallArgs) ([]byte, error)

func (BridgeCallABI) PackOutput

func (m BridgeCallABI) PackOutput(nonceNonce *big.Int) ([]byte, error)

func (BridgeCallABI) UnpackInput

func (m BridgeCallABI) UnpackInput(data []byte) (*fxcontract.BridgeCallArgs, error)

type BridgeCallMethod

type BridgeCallMethod struct {
	*Keeper
	BridgeCallABI
}

func NewBridgeCallMethod

func NewBridgeCallMethod(keeper *Keeper) *BridgeCallMethod

func (*BridgeCallMethod) GetMethodId

func (m *BridgeCallMethod) GetMethodId() []byte

func (*BridgeCallMethod) IsReadonly

func (m *BridgeCallMethod) IsReadonly() bool

func (*BridgeCallMethod) RequiredGas

func (m *BridgeCallMethod) RequiredGas() uint64

func (*BridgeCallMethod) Run

func (m *BridgeCallMethod) Run(evm *vm.EVM, contract *vm.Contract) ([]byte, error)

type BridgeCoinAmountABI

type BridgeCoinAmountABI struct {
	abi.Method
}

func NewBridgeCoinAmountABI

func NewBridgeCoinAmountABI() BridgeCoinAmountABI

func (BridgeCoinAmountABI) PackInput

func (BridgeCoinAmountABI) PackOutput

func (m BridgeCoinAmountABI) PackOutput(amount *big.Int) ([]byte, error)

func (BridgeCoinAmountABI) UnpackInput

func (m BridgeCoinAmountABI) UnpackInput(data []byte) (*fxcontract.BridgeCoinAmountArgs, error)

func (BridgeCoinAmountABI) UnpackOutput

func (m BridgeCoinAmountABI) UnpackOutput(data []byte) (*big.Int, error)

type BridgeCoinAmountMethod

type BridgeCoinAmountMethod struct {
	*Keeper
	BridgeCoinAmountABI
}

func NewBridgeCoinAmountMethod

func NewBridgeCoinAmountMethod(keeper *Keeper) *BridgeCoinAmountMethod

func (*BridgeCoinAmountMethod) GetMethodId

func (m *BridgeCoinAmountMethod) GetMethodId() []byte

func (*BridgeCoinAmountMethod) IsReadonly

func (m *BridgeCoinAmountMethod) IsReadonly() bool

func (*BridgeCoinAmountMethod) RequiredGas

func (m *BridgeCoinAmountMethod) RequiredGas() uint64

func (*BridgeCoinAmountMethod) Run

func (m *BridgeCoinAmountMethod) Run(evm *vm.EVM, contract *vm.Contract) ([]byte, error)

type Contract

type Contract struct {
	// contains filtered or unexported fields
}

func NewPrecompiledContract

func NewPrecompiledContract(
	bankKeeper types.BankKeeper,
	govKeeper types.GovKeeper,
	router *Router,
) *Contract

func (*Contract) Address

func (c *Contract) Address() common.Address

func (*Contract) IsStateful

func (c *Contract) IsStateful() bool

func (*Contract) RequiredGas

func (c *Contract) RequiredGas(input []byte) uint64

func (*Contract) Run

func (c *Contract) Run(evm *vm.EVM, vmContract *vm.Contract, readonly bool) (ret []byte, err error)

type ExecuteClaimABI

type ExecuteClaimABI struct {
	abi.Method
	abi.Event
}

func NewExecuteClaimABI

func NewExecuteClaimABI() ExecuteClaimABI

func (ExecuteClaimABI) NewExecuteClaimEvent

func (m ExecuteClaimABI) NewExecuteClaimEvent(sender common.Address, eventNonce *big.Int, dstChain string, executeErr error) (data []byte, topic []common.Hash, err error)

func (ExecuteClaimABI) PackInput

func (m ExecuteClaimABI) PackInput(args fxcontract.ExecuteClaimArgs) ([]byte, error)

func (ExecuteClaimABI) PackOutput

func (m ExecuteClaimABI) PackOutput(success bool) ([]byte, error)

func (ExecuteClaimABI) UnpackInput

func (m ExecuteClaimABI) UnpackInput(data []byte) (*fxcontract.ExecuteClaimArgs, error)

func (ExecuteClaimABI) UnpackOutput

func (m ExecuteClaimABI) UnpackOutput(data []byte) (bool, error)

type ExecuteClaimMethod

type ExecuteClaimMethod struct {
	*Keeper
	ExecuteClaimABI
}

func NewExecuteClaimMethod

func NewExecuteClaimMethod(keeper *Keeper) *ExecuteClaimMethod

func (*ExecuteClaimMethod) GetMethodId

func (m *ExecuteClaimMethod) GetMethodId() []byte

func (*ExecuteClaimMethod) IsReadonly

func (m *ExecuteClaimMethod) IsReadonly() bool

func (*ExecuteClaimMethod) RequiredGas

func (m *ExecuteClaimMethod) RequiredGas() uint64

func (*ExecuteClaimMethod) Run

func (m *ExecuteClaimMethod) Run(evm *vm.EVM, contract *vm.Contract) ([]byte, error)

type HasOracleABI

type HasOracleABI struct {
	abi.Method
}

func NewHasOracleABI

func NewHasOracleABI() HasOracleABI

func (HasOracleABI) PackInput

func (m HasOracleABI) PackInput(args contract.HasOracleArgs) ([]byte, error)

func (HasOracleABI) PackOutput

func (m HasOracleABI) PackOutput(result bool) ([]byte, error)

func (HasOracleABI) UnpackInput

func (m HasOracleABI) UnpackInput(data []byte) (*contract.HasOracleArgs, error)

func (HasOracleABI) UnpackOutput

func (m HasOracleABI) UnpackOutput(data []byte) (bool, error)

type HasOracleMethod

type HasOracleMethod struct {
	*Keeper
	HasOracleABI
}

func NewHasOracleMethod

func NewHasOracleMethod(keeper *Keeper) *HasOracleMethod

func (*HasOracleMethod) GetMethodId

func (m *HasOracleMethod) GetMethodId() []byte

func (*HasOracleMethod) IsReadonly

func (m *HasOracleMethod) IsReadonly() bool

func (*HasOracleMethod) RequiredGas

func (m *HasOracleMethod) RequiredGas() uint64

func (*HasOracleMethod) Run

func (m *HasOracleMethod) Run(evm *vm.EVM, contract *vm.Contract) ([]byte, error)

type IsOracleOnlineABI

type IsOracleOnlineABI struct {
	abi.Method
}

func NewIsOracleOnlineABI

func NewIsOracleOnlineABI() IsOracleOnlineABI

type IsOracleOnlineMethod

type IsOracleOnlineMethod struct {
	*Keeper
	IsOracleOnlineABI
}

func NewIsOracleOnlineMethod

func NewIsOracleOnlineMethod(keeper *Keeper) *IsOracleOnlineMethod

func (*IsOracleOnlineMethod) GetMethodId

func (i *IsOracleOnlineMethod) GetMethodId() []byte

func (*IsOracleOnlineMethod) IsReadonly

func (i *IsOracleOnlineMethod) IsReadonly() bool

func (*IsOracleOnlineMethod) PackInput

func (i *IsOracleOnlineMethod) PackInput(args contract.IsOracleOnlineArgs) ([]byte, error)

func (*IsOracleOnlineMethod) PackOutput

func (i *IsOracleOnlineMethod) PackOutput(result bool) ([]byte, error)

func (*IsOracleOnlineMethod) RequiredGas

func (i *IsOracleOnlineMethod) RequiredGas() uint64

func (*IsOracleOnlineMethod) Run

func (i *IsOracleOnlineMethod) Run(evm *vm.EVM, contract *vm.Contract) ([]byte, error)

func (*IsOracleOnlineMethod) UnpackInput

func (i *IsOracleOnlineMethod) UnpackInput(data []byte) (*contract.IsOracleOnlineArgs, error)

func (*IsOracleOnlineMethod) UnpackOutput

func (i *IsOracleOnlineMethod) UnpackOutput(data []byte) (bool, error)

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func (*Keeper) EvmTokenToBaseCoin

func (c *Keeper) EvmTokenToBaseCoin(ctx sdk.Context, evm *vm.EVM, crosschainKeeper types2.CrosschainKeeper, holder, tokenAddr common.Address, amount *big.Int) (sdk.Coin, error)

type LegacyCrosschainABI deprecated

type LegacyCrosschainABI struct {
	abi.Method
	abi.Event
}

Deprecated: After the upgrade to v8

func NewCrosschainABI deprecated

func NewCrosschainABI() LegacyCrosschainABI

Deprecated: After the upgrade to v8

func (LegacyCrosschainABI) NewCrosschainEvent

func (m LegacyCrosschainABI) NewCrosschainEvent(sender, token common.Address, denom, receipt string, amount, fee *big.Int, target [32]byte, memo string) (data []byte, topic []common.Hash, err error)

func (LegacyCrosschainABI) PackInput

func (m LegacyCrosschainABI) PackInput(args fxcontract.CrosschainArgs) ([]byte, error)

func (LegacyCrosschainABI) PackOutput

func (m LegacyCrosschainABI) PackOutput(success bool) ([]byte, error)

func (LegacyCrosschainABI) UnpackInput

func (m LegacyCrosschainABI) UnpackInput(data []byte) (*fxcontract.CrosschainArgs, error)

type LegacyCrosschainMethod deprecated

type LegacyCrosschainMethod struct {
	*Keeper
	LegacyCrosschainABI
}

Deprecated: After the upgrade to v8

func NewCrosschainMethod deprecated

func NewCrosschainMethod(keeper *Keeper) *LegacyCrosschainMethod

Deprecated: After the upgrade to v8

func (*LegacyCrosschainMethod) GetMethodId

func (m *LegacyCrosschainMethod) GetMethodId() []byte

func (*LegacyCrosschainMethod) IsReadonly

func (m *LegacyCrosschainMethod) IsReadonly() bool

func (*LegacyCrosschainMethod) RequiredGas

func (m *LegacyCrosschainMethod) RequiredGas() uint64

func (*LegacyCrosschainMethod) Run

func (m *LegacyCrosschainMethod) Run(evm *vm.EVM, contract *vm.Contract) ([]byte, error)

type Router

type Router struct {
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter() *Router

func (*Router) AddRoute

func (rtr *Router) AddRoute(module string, hook crosschainkeeper.Keeper) *Router

func (*Router) GetRoute

func (rtr *Router) GetRoute(module string) (types.CrosschainKeeper, bool)

func (*Router) Seal

func (rtr *Router) Seal()

Seal prevents the Router from any subsequent route handlers to be registered. Seal will panic if called more than once.

func (*Router) Sealed

func (rtr *Router) Sealed() bool

Jump to

Keyboard shortcuts

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