events

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTypePoolCreated   = "pool_created"
	EventTypePoolJoined    = "pool_joined"
	EventTypePoolExited    = "pool_exited"
	EventTypeAssetsSwapped = "assets_swapped"

	AttributeCreator      = "creator"
	AttributeSender       = "sender"
	AttributePoolId       = "pool_id"
	AttributeTokensIn     = "tokens_in"
	AttributeNumSharesOut = "pool_shares_out"
	AttributeNumRemCoins  = "rem_coins"
	AttributeTokensOut    = "tokens_out"
	AttributeNumSharesIn  = "pool_shares_in"
	AttributeTokenIn      = "token_in"
	AttributeTokenOut     = "token_out"
)

Variables

This section is empty.

Functions

func EmitAssetsSwappedEvent added in v0.1.0

func EmitAssetsSwappedEvent(
	ctx sdk.Context,
	sender sdk.AccAddress,
	poolId uint64,
	tokenIn sdk.Coin,
	tokenOut sdk.Coin,
)

func EmitPoolCreatedEvent

func EmitPoolCreatedEvent(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)

func EmitPoolExitedEvent added in v0.1.0

func EmitPoolExitedEvent(
	ctx sdk.Context,
	sender sdk.AccAddress,
	poolId uint64,
	numSharesIn sdk.Coin,
	tokensOut sdk.Coins,
)

func EmitPoolJoinedEvent

func EmitPoolJoinedEvent(
	ctx sdk.Context,
	sender sdk.AccAddress,
	poolId uint64,
	tokensIn sdk.Coins,
	numSharesOut sdk.Coin,
	remCoins sdk.Coins,
)

func NewAssetsSwappedEvent added in v0.1.0

func NewAssetsSwappedEvent(
	sender sdk.AccAddress,
	poolId uint64,
	tokenIn sdk.Coin,
	tokenOut sdk.Coin,
) sdk.Event

func NewPoolCreatedEvent

func NewPoolCreatedEvent(sender sdk.AccAddress, poolId uint64) sdk.Event

func NewPoolExitedEvent added in v0.1.0

func NewPoolExitedEvent(
	sender sdk.AccAddress,
	poolId uint64,
	numSharesIn sdk.Coin,
	tokensOut sdk.Coins,
) sdk.Event

func NewPoolJoinedEvent

func NewPoolJoinedEvent(
	sender sdk.AccAddress,
	poolId uint64,
	tokensIn sdk.Coins,
	numSharesOut sdk.Coin,
	remCoins sdk.Coins,
) sdk.Event

Types

This section is empty.

Jump to

Keyboard shortcuts

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