bridge

package
v0.10.20 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CrossTransferTopic = pubsub.Topic("cross-transfer")

	TransferOutType           string = "TO"
	TransferInType            string = "TI"
	TransferAckRefundType     string = "TAR"
	TransferFailAckRefundType string = "TFAR"

	TransferBindType        string = "TB"
	TransferUnBindType      string = "TUB"
	TransferFailBindType    string = "TFB"
	TransferApproveBindType string = "TPB"

	CrossAppFailedType string = "CF"

	MirrorTopic           = pubsub.Topic("mirror")
	MirrorType     string = "MI"
	MirrorSyncType string = "MISY"
)

Variables

View Source
var (
	NewKeeper = keeper.NewKeeper
)

Functions

func InitPlugin

func InitPlugin(chainApp app.ChainApp, keeper Keeper)

func NewHandler

func NewHandler(keeper Keeper) sdk.Handler

func RegisterCrossApps

func RegisterCrossApps(keeper Keeper)

func RegisterWire

func RegisterWire(cdc *wire.Codec)

Register concrete types on wire codec

func Routes

func Routes(keeper Keeper) map[string]sdk.Handler

Types

type BindApp

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

func NewBindApp

func NewBindApp(bridgeKeeper Keeper) *BindApp

func (*BindApp) ExecuteAckPackage

func (app *BindApp) ExecuteAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult

func (*BindApp) ExecuteFailAckPackage

func (app *BindApp) ExecuteFailAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult

func (*BindApp) ExecuteSynPackage

func (app *BindApp) ExecuteSynPackage(ctx sdk.Context, payload []byte, relayerFee int64) sdk.ExecuteResult

type BindMsg

type BindMsg = types.BindMsg

type Keeper

type Keeper = keeper.Keeper

type MirrorApp

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

func NewMirrorApp

func NewMirrorApp(bridgeKeeper Keeper) *MirrorApp

func (*MirrorApp) ExecuteAckPackage

func (app *MirrorApp) ExecuteAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult

func (*MirrorApp) ExecuteFailAckPackage

func (app *MirrorApp) ExecuteFailAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult

func (*MirrorApp) ExecuteSynPackage

func (app *MirrorApp) ExecuteSynPackage(ctx sdk.Context, payload []byte, relayerFee int64) sdk.ExecuteResult

type MirrorEvent

type MirrorEvent struct {
	TxHash         string
	ChainId        string
	Type           string
	RelayerFee     int64
	Sender         string
	Contract       string
	BEP20Name      string
	BEP20Symbol    string
	BEP2Symbol     string
	OldTotalSupply int64
	TotalSupply    int64
	Decimals       int
	Fee            int64
}

func (MirrorEvent) GetTopic

func (event MirrorEvent) GetTopic() pubsub.Topic

type MirrorSyncApp

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

func NewMirrorSyncApp

func NewMirrorSyncApp(bridgeKeeper Keeper) *MirrorSyncApp

func (*MirrorSyncApp) ExecuteAckPackage

func (app *MirrorSyncApp) ExecuteAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult

func (*MirrorSyncApp) ExecuteFailAckPackage

func (app *MirrorSyncApp) ExecuteFailAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult

func (*MirrorSyncApp) ExecuteSynPackage

func (app *MirrorSyncApp) ExecuteSynPackage(ctx sdk.Context, payload []byte, relayerFee int64) sdk.ExecuteResult

type TransferInApp

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

func NewTransferInApp

func NewTransferInApp(bridgeKeeper Keeper) *TransferInApp

func (*TransferInApp) ExecuteAckPackage

func (app *TransferInApp) ExecuteAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult

func (*TransferInApp) ExecuteFailAckPackage

func (app *TransferInApp) ExecuteFailAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult

func (*TransferInApp) ExecuteSynPackage

func (app *TransferInApp) ExecuteSynPackage(ctx sdk.Context, payload []byte, relayerFee int64) sdk.ExecuteResult

type TransferOutApp

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

func NewTransferOutApp

func NewTransferOutApp(bridgeKeeper Keeper) *TransferOutApp

func (*TransferOutApp) ExecuteAckPackage

func (app *TransferOutApp) ExecuteAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult

func (*TransferOutApp) ExecuteFailAckPackage

func (app *TransferOutApp) ExecuteFailAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult

func (*TransferOutApp) ExecuteSynPackage

func (app *TransferOutApp) ExecuteSynPackage(ctx sdk.Context, payload []byte, _ int64) sdk.ExecuteResult

type TransferOutMsg

type TransferOutMsg = types.TransferOutMsg

type UnbindMsg

type UnbindMsg = types.UnbindMsg

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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