Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) ConvertNFTFromCw721(context context.Context, voucherClassID string, tokenIds []string, ...) error
- func (k Keeper) ConvertNFTFromErc721(context context.Context, voucherClassID string, tokenIds []string, ...) error
- func (k *Keeper) GetVoucherClassID(port string, channel string, classId string) string
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet, receiver string, convertType uint) exported.Acknowledgement
- func (k Keeper) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) RefundPacketToken(ctx sdk.Context, data ibcnfttransfertypes.NonFungibleTokenPacketData) error
- func (k *Keeper) SetCw721Keeper(cw721keeper cw721keep.Keeper)
- func (k *Keeper) SetErc721Keeper(crc721keeper erc721keeper.Keeper)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of this module maintains collections of erc721.
func (Keeper) ConvertNFTFromCw721 ¶
func (Keeper) ConvertNFTFromErc721 ¶
func (*Keeper) GetVoucherClassID ¶
func (Keeper) OnAcknowledgementPacket ¶
func (k Keeper) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, data types.NonFungibleTokenPacketData, ack channeltypes.Acknowledgement) error
OnAcknowledgementPacket responds to the success or failure of a packet acknowledgement written on the receiving chain. If the acknowledgement was a success then nothing occurs. If the acknowledgement failed, then the sender is refunded their tokens using the refundPacketToken function.
func (Keeper) OnRecvPacket ¶
func (k Keeper) OnRecvPacket( ctx sdk.Context, packet channeltypes.Packet, receiver string, convertType uint) exported.Acknowledgement
OnRecvPacket processes a cross chain fungible token transfer. If the convertType 0:erc721 1:cw721
func (Keeper) OnTimeoutPacket ¶
func (k Keeper) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, data types.NonFungibleTokenPacketData) error
OnTimeoutPacket refunds the sender since the original packet sent was never received and has been timed out.
func (Keeper) RefundPacketToken ¶
func (k Keeper) RefundPacketToken( ctx sdk.Context, data ibcnfttransfertypes.NonFungibleTokenPacketData, ) error
RefundPacketToken handles the erc721 conversion for a native erc721 token pair:
- escrow tokens on module account
- mint nft to the receiver: nftId: tokenAddress|tokenID
func (*Keeper) SetCw721Keeper ¶
SetCw721Keeper sets the ICS4 wrapper to the keeper. It panics if already set
func (*Keeper) SetErc721Keeper ¶
func (k *Keeper) SetErc721Keeper(crc721keeper erc721keeper.Keeper)
SetErc721Keeper sets the ICS4 wrapper to the keeper. It panics if already set