Documentation ¶
Index ¶
- Constants
- Variables
- func InitPlugin(chainApp app.ChainApp, keeper Keeper)
- func NewHandler(keeper Keeper) sdk.Handler
- func RegisterCrossApps(keeper Keeper)
- func RegisterWire(cdc *wire.Codec)
- func Routes(keeper Keeper) map[string]sdk.Handler
- type BindApp
- type BindMsg
- type Keeper
- type MirrorApp
- type MirrorEvent
- type MirrorSyncApp
- func (app *MirrorSyncApp) ExecuteAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult
- func (app *MirrorSyncApp) ExecuteFailAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult
- func (app *MirrorSyncApp) ExecuteSynPackage(ctx sdk.Context, payload []byte, relayerFee int64) sdk.ExecuteResult
- type TransferInApp
- func (app *TransferInApp) ExecuteAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult
- func (app *TransferInApp) ExecuteFailAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult
- func (app *TransferInApp) ExecuteSynPackage(ctx sdk.Context, payload []byte, relayerFee int64) sdk.ExecuteResult
- type TransferOutApp
- func (app *TransferOutApp) ExecuteAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult
- func (app *TransferOutApp) ExecuteFailAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult
- func (app *TransferOutApp) ExecuteSynPackage(ctx sdk.Context, payload []byte, _ int64) sdk.ExecuteResult
- type TransferOutMsg
- type UnbindMsg
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 NewHandler ¶
func RegisterCrossApps ¶
func RegisterCrossApps(keeper Keeper)
Types ¶
type BindApp ¶
type BindApp struct {
// contains filtered or unexported fields
}
func NewBindApp ¶
func (*BindApp) ExecuteAckPackage ¶
func (*BindApp) ExecuteFailAckPackage ¶
func (*BindApp) ExecuteSynPackage ¶
type MirrorApp ¶
type MirrorApp struct {
// contains filtered or unexported fields
}
func NewMirrorApp ¶
func (*MirrorApp) ExecuteAckPackage ¶
func (*MirrorApp) ExecuteFailAckPackage ¶
func (*MirrorApp) ExecuteSynPackage ¶
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.