Documentation ¶
Index ¶
- Constants
- Variables
- func EndBlocker(ctx sdk.Context, keeper Keeper)
- func ErrDuplicatedSequence(codespace sdk.CodespaceType, msg string) sdk.Error
- func ErrFeeParamMismatch(codespace sdk.CodespaceType, msg string) sdk.Error
- func ErrInvalidChainId(codespace sdk.CodespaceType, msg string) sdk.Error
- func ErrWritePackageForbidden(codespace sdk.CodespaceType, msg string) sdk.Error
- func ParamTypeTable() param.TypeTable
- func RegisterWire(cdc *codec.Codec)
- type Keeper
- func (k *Keeper) CleanupIBCPackage(ctx sdk.Context, destChainName string, channelName string, ...)
- func (k *Keeper) CreateIBCSyncPackage(ctx sdk.Context, destChainName string, channelName string, packageLoad []byte) (uint64, sdk.Error)
- func (k *Keeper) CreateRawIBCPackage(ctx sdk.Context, destChainName string, channelName string, ...) (uint64, sdk.Error)
- func (k *Keeper) CreateRawIBCPackageById(ctx sdk.Context, destChainID sdk.ChainID, channelID sdk.ChannelID, ...) (uint64, sdk.Error)
- func (k *Keeper) CreateRawIBCPackageByIdWithFee(ctx sdk.Context, destChainID sdk.ChainID, channelID sdk.ChannelID, ...) (uint64, sdk.Error)
- func (k *Keeper) GetIBCPackage(ctx sdk.Context, destChainName string, channelName string, sequence uint64) ([]byte, error)
- func (k *Keeper) GetIBCPackageById(ctx sdk.Context, destChainID sdk.ChainID, channelId sdk.ChannelID, ...) ([]byte, error)
- func (k Keeper) GetRelayerFeeParam(ctx sdk.Context, destChainName string) (relaterFee *big.Int, err error)
- func (k Keeper) SetParams(ctx sdk.Context, params Params)
- func (k *Keeper) SubscribeParamChange(hub types.ParamChangePublisher)
- type Params
Constants ¶
View Source
const ( DefaultCodespace sdk.CodespaceType = 3 CodeDuplicatedSequence sdk.CodeType = 101 CodeFeeParamMismatch sdk.CodeType = 102 CodeInvalidChainId sdk.CodeType = 103 CodeWritePackageForbidden sdk.CodeType = 104 )
IBC errors reserve 200 ~ 299.
View Source
const ( DefaultRelayerFeeParam int64 = 1e6 // decimal is 8 // Default parameter namespace DefaultParamspace = "ibc" )
Variables ¶
View Source
var ( PrefixForIbcPackageKey = []byte{0x00} PrefixForSequenceKey = []byte{0x01} )
View Source
var (
ParamRelayerFee = []byte("relayerFee")
)
Functions ¶
func EndBlocker ¶
func ErrDuplicatedSequence ¶
func ErrDuplicatedSequence(codespace sdk.CodespaceType, msg string) sdk.Error
func ErrFeeParamMismatch ¶
func ErrFeeParamMismatch(codespace sdk.CodespaceType, msg string) sdk.Error
func ErrInvalidChainId ¶
func ErrInvalidChainId(codespace sdk.CodespaceType, msg string) sdk.Error
func ErrWritePackageForbidden ¶
func ErrWritePackageForbidden(codespace sdk.CodespaceType, msg string) sdk.Error
func ParamTypeTable ¶
func RegisterWire ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
IBC Keeper
func (*Keeper) CleanupIBCPackage ¶
func (*Keeper) CreateIBCSyncPackage ¶
func (*Keeper) CreateRawIBCPackage ¶
func (*Keeper) CreateRawIBCPackageById ¶
func (*Keeper) CreateRawIBCPackageByIdWithFee ¶
func (*Keeper) GetIBCPackage ¶
func (*Keeper) GetIBCPackageById ¶
func (Keeper) GetRelayerFeeParam ¶
func (*Keeper) SubscribeParamChange ¶
func (k *Keeper) SubscribeParamChange(hub types.ParamChangePublisher)
type Params ¶
type Params struct {
RelayerFee int64 `json:"relayer_fee"`
}
func (*Params) GetParamAttribute ¶
func (*Params) KeyValuePairs ¶
func (p *Params) KeyValuePairs() params.KeyValuePairs
func (*Params) UpdateCheck ¶
Click to show internal directories.
Click to hide internal directories.