ISeawaterEvents

Git Source

Events

MintPosition

emitted when a new position is minted

event MintPosition(uint256 indexed id, address indexed owner, address indexed pool, int32 lower, int32 upper);

Parameters

NameTypeDescription
iduint256the position id
owneraddressthe owner of the position
pooladdressthe pool the position is associated with
lowerint32the lower tick of the position's concentrated liquidity range
upperint32the upper tick of the position's concentrated liquidity range

BurnPosition

emitted when a position is burned

event BurnPosition(uint256 indexed id, address indexed owner);

Parameters

NameTypeDescription
iduint256the id of the position being burned
owneraddressthe user the owned the position

TransferPosition

emitted when a position changes owners

event TransferPosition(address indexed from, address indexed to, uint256 indexed id);

Parameters

NameTypeDescription
fromaddressthe original owner of the position
toaddressthe new owner of the position
iduint256the id of the position being transferred

UpdatePositionLiquidity

emitted when the liquidity in a position is changed.

event UpdatePositionLiquidity(uint256 indexed id, int256 token0, int256 token1);

Parameters

NameTypeDescription
iduint256
token0int256
token1int256that was taken or given to the contract.

CollectFees

emitted when a liquidity provider collects the fees associated with a position

event CollectFees(uint256 indexed id, address indexed pool, address indexed to, uint128 amount0, uint128 amount1);

Parameters

NameTypeDescription
iduint256the id of the position whose liquidity is being collected
pooladdressthe address of the pool the position is associated with
toaddressthe recipient of the fees
amount0uint128the amount of token0 being collected
amount1uint128the amount of token1 being collected

NewPool

emitted when a new pool is created

event NewPool(address indexed token, uint32 indexed fee, uint8 decimals, uint8 tickSpacing);

Parameters

NameTypeDescription
tokenaddressthe token0 the pool is associated with (where token1 is a fluid token)
feeuint32the fee being used for this pool
decimalsuint8the decimals for the token
tickSpacinguint8the tick spacing for the pool

CollectProtocolFees

emitted when a protocol admin collects protocol fees

event CollectProtocolFees(address indexed pool, address indexed to, uint128 amount0, uint128 amount1);

Parameters

NameTypeDescription
pooladdressthe pool for which protocol fees are being collected
toaddressthe account the fees are being sent to
amount0uint128the amount of token0 being collected
amount1uint128the amount of token1 being collected

Swap2

emitted when a user swaps a nonfluid token for a nonfluid token (2-step swap)

event Swap2(
    address indexed user,
    address indexed from,
    address indexed to,
    uint256 amountIn,
    uint256 amountOut,
    uint256 fluidVolume,
    int32 finalTick0,
    int32 finalTick1
);

Parameters

NameTypeDescription
useraddressthe user performing the swap
fromaddressthe input token
toaddressthe output token
amountInuint256the amount of from the user is paying
amountOutuint256the amount of to the user is receiving
fluidVolumeuint256the volume of the internal transfer
finalTick0int32the tick that the first token's pool ended on
finalTick1int32the tick that the second token's pool ended on

Swap1

emitted when a user swaps a token for the pool's fluid token, or vice-versa

event Swap1(
    address indexed user, address indexed pool, bool zeroForOne, uint256 amount0, uint256 amount1, int32 finalTick
);

Parameters

NameTypeDescription
useraddressthe user performing the swap
pooladdressthe token being swapped for the fluid token
zeroForOnebooltrue if the user is swapping token->fluid, false otherwise
amount0uint256the amount of the nonfluid token being transferred
amount1uint256the amount of the fluid token being transferred
finalTickint32the tick the pool ended on

NewFees

new fees were set!

event NewFees(address indexed pool, uint8 indexed feeProtocol);

Parameters

NameTypeDescription
pooladdressthat the fees are set for.
feeProtocoluint8that's taken by the protocol