-
Notifications
You must be signed in to change notification settings - Fork 29
/
events.go
67 lines (64 loc) · 3.17 KB
/
events.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package types
const (
EventTypeCreateBond = "create_bond"
EventTypeEditBond = "edit_bond"
EventTypeSetNextAlpha = "set_next_alpha"
EventTypeEditAlphaSuccess = "edit_alpha_success"
EventTypeEditAlphaFailed = "edit_alpha_failed"
EventTypeInitSwapper = "init_swapper"
EventTypeBuy = "buy"
EventTypeSell = "sell"
EventTypeSwap = "swap"
EventTypeMakeOutcomePayment = "make_outcome_payment"
EventTypeWithdrawShare = "withdraw_share"
EventTypeWithdrawReserve = "withdraw_reserve"
EventTypeOrderCancel = "order_cancel"
EventTypeOrderFulfill = "order_fulfill"
EventTypeStateChange = "state_change"
AttributeKeyBondDid = "bond_did"
AttributeKeyToken = "token"
AttributeKeyName = "name"
AttributeKeyDescription = "description"
AttributeKeyFunctionType = "function_type"
AttributeKeyFunctionParameters = "function_parameters"
AttributeKeyCreatorDid = "creator_did"
AttributeKeyControllerDid = "controller_did"
AttributeKeyReserveTokens = "reserve_tokens"
AttributeKeyTxFeePercentage = "tx_fee_percentage"
AttributeKeyExitFeePercentage = "exit_fee_percentage"
AttributeKeyFeeAddress = "fee_address"
AttributeKeyReserveWithdrawalAddress = "reserve_withdrawal_address"
AttributeKeyMaxSupply = "max_supply"
AttributeKeyOrderQuantityLimits = "order_quantity_limits"
AttributeKeySanityRate = "sanity_rate"
AttributeKeySanityMarginPercentage = "sanity_margin_percentage"
AttributeKeyAllowSells = "allow_sells"
AttributeKeyAllowReserveWithdrawals = "allow_reserve_withdrawals"
AttributeKeyAlphaBond = "alpha_bond"
AttributeKeyBatchBlocks = "batch_blocks"
AttributeKeyOutcomePayment = "outcome_payment"
AttributeKeyState = "state"
AttributeKeyMaxPrices = "max_prices"
AttributeKeySwapFromToken = "from_token"
AttributeKeySwapToToken = "to_token"
AttributeKeyOrderType = "order_type"
AttributeKeyAddress = "address"
AttributeKeyCancelReason = "cancel_reason"
AttributeKeyTokensMinted = "tokens_minted"
AttributeKeyTokensBurned = "tokens_burned"
AttributeKeyTokensSwapped = "tokens_swapped"
AttributeKeyChargedPrices = "charged_prices"
AttributeKeyChargedPricesReserve = "charged_prices_of_which_reserve"
AttributeKeyChargedPricesFunding = "charged_prices_of_which_funding"
AttributeKeyChargedFees = "charged_fees"
AttributeKeyReturnedToAddress = "returned_to_address"
AttributeKeyNewBondTokenBalance = "new_bond_token_balance"
AttributeKeyOldState = "old_state"
AttributeKeyNewState = "new_state"
AttributeKeyPublicAlpha = "public_alpha"
AttributeKeySystemAlpha = "system_alpha"
AttributeValueBuyOrder = "buy"
AttributeValueSellOrder = "sell"
AttributeValueSwapOrder = "swap"
AttributeValueCategory = ModuleName
)