github.com/gravity-devs/liquidity@v1.5.3/x/liquidity/spec/07_events.md (about) 1 <!-- order: 7 --> 2 3 # Events 4 5 The liquidity module emits the following events. 6 7 ## Handlers 8 9 ### MsgCreatePool 10 11 Type | Attribute Key | Attribute Value 12 ----------- | --------------- | ------------------------ 13 create_pool | pool_id | {poolId} 14 create_pool | pool_type_id | {poolTypeId} 15 create_pool | pool_name | {AttributeValuePoolName} 16 create_pool | reserve_account | {reserveAccountAddress} 17 create_pool | deposit_coins | {depositCoins} 18 create_pool | pool_coin_denom | {poolCoinDenom} 19 message | module | liquidity 20 message | action | create_pool 21 message | sender | {senderAddress} 22 23 ### MsgDepositWithinBatch 24 25 Type | Attribute Key | Attribute Value 26 -------------------- | ------------- | -------------------- 27 deposit_within_batch | pool_id | {poolId} 28 deposit_within_batch | batch_index | {batchIndex} 29 deposit_within_batch | msg_index | {depositMsgIndex} 30 deposit_within_batch | deposit_coins | {depositCoins} 31 message | module | liquidity 32 message | action | deposit_within_batch 33 message | sender | {senderAddress} 34 35 ### MsgWithdrawWithinBatch 36 37 Type | Attribute Key | Attribute Value 38 --------------------- | ---------------- | --------------------- 39 withdraw_within_batch | pool_id | {poolId} 40 withdraw_within_batch | batch_index | {batchIndex} 41 withdraw_within_batch | msg_index | {withdrawMsgIndex} 42 withdraw_within_batch | pool_coin_denom | {poolCoinDenom} 43 withdraw_within_batch | pool_coin_amount | {poolCoinAmount} 44 message | module | liquidity 45 message | action | withdraw_within_batch 46 message | sender | {senderAddress} 47 48 ### MsgSwapWithinBatch 49 50 Type | Attribute Key | Attribute Value 51 ----------------- | ----------------- | ----------------- 52 swap_within_batch | pool_id | {poolId} 53 swap_within_batch | batch_index | {batchIndex} 54 swap_within_batch | msg_index | {swapMsgIndex} 55 swap_within_batch | swap_type_id | {swapTypeId} 56 swap_within_batch | offer_coin_denom | {offerCoinDenom} 57 swap_within_batch | offer_coin_amount | {offerCoinAmount} 58 swap_within_batch | demand_coin_denom | {demandCoinDenom} 59 swap_within_batch | order_price | {orderPrice} 60 message | module | liquidity 61 message | action | swap_within_batch 62 message | sender | {senderAddress} 63 64 ## EndBlocker 65 66 ### Batch Result for MsgDepositWithinBatch 67 68 Type | Attribute Key | Attribute Value 69 --------------- | ---------------- | ------------------ 70 deposit_to_pool | pool_id | {poolId} 71 deposit_to_pool | batch_index | {batchIndex} 72 deposit_to_pool | msg_index | {depositMsgIndex} 73 deposit_to_pool | depositor | {depositorAddress} 74 deposit_to_pool | accepted_coins | {acceptedCoins} 75 deposit_to_pool | refunded_coins | {refundedCoins} 76 deposit_to_pool | pool_coin_denom | {poolCoinDenom} 77 deposit_to_pool | pool_coin_amount | {poolCoinAmount} 78 deposit_to_pool | success | {success} 79 80 ### Batch Result for MsgWithdrawWithinBatch 81 82 | Type | Attribute Key | Attribute Value | 83 | ------------------ | ------------------ | ------------------- | 84 | withdraw_from_pool | pool_id | {poolId} | 85 | withdraw_from_pool | batch_index | {batchIndex} | 86 | withdraw_from_pool | msg_index | {withdrawMsgIndex} | 87 | withdraw_from_pool | withdrawer | {withdrawerAddress} | 88 | withdraw_from_pool | pool_coin_denom | {poolCoinDenom} | 89 | withdraw_from_pool | pool_coin_amount | {poolCoinAmount} | 90 | withdraw_from_pool | withdraw_coins | {withdrawCoins} | 91 | withdraw_from_pool | withdraw_fee_coins | {withdrawFeeCoins} | 92 | withdraw_from_pool | success | {success} | 93 94 ### Batch Result for MsgSwapWithinBatch 95 96 Type | Attribute Key | Attribute Value 97 --------------- | ------------------------------ | ---------------------------- 98 swap_transacted | pool_id | {poolId} 99 swap_transacted | batch_index | {batchIndex} 100 swap_transacted | msg_index | {swapMsgIndex} 101 swap_transacted | swap_requester | {swapRequesterAddress} 102 swap_transacted | swap_type_id | {swapTypeId} 103 swap_transacted | offer_coin_denom | {offerCoinDenom} 104 swap_transacted | offer_coin_amount | {offerCoinAmount} 105 swap_transacted | exchanged_coin_denom | {exchangedCoinDenom} 106 swap_transacted | order_price | {orderPrice} 107 swap_transacted | swap_price | {swapPrice} 108 swap_transacted | transacted_coin_amount | {transactedCoinAmount} 109 swap_transacted | remaining_offer_coin_amount | {remainingOfferCoinAmount} 110 swap_transacted | exchanged_offer_coin_amount | {exchangedOfferCoinAmount} 111 swap_transacted | exchanged_demand_coin_amount | {exchangedDemandCoinAmount} 112 swap_transacted | offer_coin_fee_amount | {offerCoinFeeAmount} 113 swap_transacted | exchanged_coin_fee_amount | {exchangedCoinFeeAmount} 114 swap_transacted | reserved_offer_coin_fee_amount | {reservedOfferCoinFeeAmount} 115 swap_transacted | order_expiry_height | {orderExpiryHeight} 116 swap_transacted | success | {success} 117 118 <!-- remove for v1 ### Cancel Result for MsgSwapWithinBatch on Batch The spec, msg for cancellation of the swap order will be added from v2 | Type | Attribute Key | Attribute Value | | ----------- | ------------------------------ | ---------------------------- | | swap_cancel | pool_id | {poolId} | | swap_cancel | batch_index | {batchIndex} | | swap_cancel | msg_index | {swapMsgIndex} | | swap_cancel | swap_requester | {swapRequesterAddress} | | swap_cancel | swap_type_id | {swapTypeId} | | swap_cancel | offer_coin_denom | {offerCoinDenom} | | swap_cancel | offer_coin_amount | {offerCoinAmount} | | swap_cancel | offer_coin_fee_amount | {offerCoinFeeAmount} | | swap_cancel | reserved_offer_coin_fee_amount | {reservedOfferCoinFeeAmount} | | swap_cancel | order_price | {orderPrice} | | swap_cancel | swap_price | {swapPrice} | | swap_cancel | cancelled_coin_amount | {cancelledOfferCoinAmount} | | swap_cancel | remaining_offer_coin_amount | {remainingOfferCoinAmount} | | swap_cancel | order_expiry_height | {orderExpiryHeight} | | swap_cancel | success | {success} | -->