chore(#2039): update ledger entries mappings (#2339)

This commit is contained in:
m.ray 2022-12-06 21:52:58 -05:00 committed by GitHub
parent 8d88d2cea0
commit 8f182a5877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -383,55 +383,54 @@ type TransferTypeMap = {
}; };
export const TransferTypeMapping: TransferTypeMap = { export const TransferTypeMapping: TransferTypeMap = {
TRANSFER_TYPE_UNSPECIFIED: 'Default value, always invalid', TRANSFER_TYPE_UNSPECIFIED: 'Default value, always invalid',
TRANSFER_TYPE_LOSS: 'Loss', TRANSFER_TYPE_LOSS: 'Final settlement loss',
TRANSFER_TYPE_WIN: 'Win', TRANSFER_TYPE_WIN: 'Final settlement win',
TRANSFER_TYPE_MTM_LOSS: 'Mark to market loss', TRANSFER_TYPE_MTM_LOSS: 'Mark to market loss',
TRANSFER_TYPE_MTM_WIN: 'Mark to market win', TRANSFER_TYPE_MTM_WIN: 'Mark to market gain',
TRANSFER_TYPE_MARGIN_LOW: 'Margin too low', TRANSFER_TYPE_MARGIN_LOW: 'Margin topped up',
TRANSFER_TYPE_MARGIN_HIGH: 'Margin too high', TRANSFER_TYPE_MARGIN_HIGH: 'Margin returned',
TRANSFER_TYPE_MARGIN_CONFISCATED: 'Margin was confiscated', TRANSFER_TYPE_MARGIN_CONFISCATED: 'Margin confiscated',
TRANSFER_TYPE_MAKER_FEE_PAY: 'Pay maker fee', TRANSFER_TYPE_MAKER_FEE_PAY: 'Maker fee paid',
TRANSFER_TYPE_MAKER_FEE_RECEIVE: 'Receive maker fee', TRANSFER_TYPE_MAKER_FEE_RECEIVE: 'Maker fee received',
TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY: 'Pay infrastructure fee', TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY: 'Infrastructure fee paid',
TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE: 'Receive infrastructure fee', TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE: 'Infrastructure fee distributed',
TRANSFER_TYPE_LIQUIDITY_FEE_PAY: 'Pay liquidity fee', TRANSFER_TYPE_LIQUIDITY_FEE_PAY: 'Liquidity fee paid',
TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE: 'Receive liquidity fee', TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE: 'Liquidity fee received',
TRANSFER_TYPE_BOND_LOW: 'Bond too low', TRANSFER_TYPE_BOND_LOW: 'Bond account funded',
TRANSFER_TYPE_BOND_HIGH: 'Bond too high', TRANSFER_TYPE_BOND_HIGH: 'Bond returned',
TRANSFER_TYPE_WITHDRAW: 'Actual withdraw from system', TRANSFER_TYPE_WITHDRAW: 'Withdrawal',
TRANSFER_TYPE_DEPOSIT: 'Deposit funds', TRANSFER_TYPE_DEPOSIT: 'Deposit',
TRANSFER_TYPE_BOND_SLASHING: 'Bond slashing', TRANSFER_TYPE_BOND_SLASHING: 'Bond slashed',
TRANSFER_TYPE_STAKE_REWARD: 'Stake reward', TRANSFER_TYPE_STAKE_REWARD: 'Staking reward received',
TRANSFER_TYPE_TRANSFER_FUNDS_SEND: 'Transfer funds', TRANSFER_TYPE_TRANSFER_FUNDS_SEND: 'Transfer sent',
TRANSFER_TYPE_TRANSFER_FUNDS_DISTRIBUTE: 'Transfer funds', TRANSFER_TYPE_TRANSFER_FUNDS_DISTRIBUTE: 'Transfer received',
TRANSFER_TYPE_CLEAR_ACCOUNT: 'Market is closed, accounts are cleared', TRANSFER_TYPE_CLEAR_ACCOUNT: 'Market accounts cleared',
TRANSFER_TYPE_CHECKPOINT_BALANCE_RESTORE: TRANSFER_TYPE_CHECKPOINT_BALANCE_RESTORE: 'Balances restored',
'Initial balance after checkpoint restart',
}; };
export const DescriptionTransferTypeMapping: TransferTypeMap = { export const DescriptionTransferTypeMapping: TransferTypeMap = {
TRANSFER_TYPE_LOSS: `Final settlement loss: Funds deducted after final settlement loss`, TRANSFER_TYPE_LOSS: `Funds deducted after final settlement loss`,
TRANSFER_TYPE_WIN: `Final settlement gain: Funds added to your general account after final settlement gain`, TRANSFER_TYPE_WIN: `Funds added to your general account after final settlement gain`,
TRANSFER_TYPE_MTM_LOSS: `Mark to market loss: Funds deducted from your margin account after mark to market loss`, TRANSFER_TYPE_MTM_LOSS: `Funds deducted from your margin account after mark to market loss`,
TRANSFER_TYPE_MTM_WIN: `Mark to market gain: Funds added to your margin account after mark to market gain`, TRANSFER_TYPE_MTM_WIN: `Funds added to your margin account after mark to market gain`,
TRANSFER_TYPE_MARGIN_LOW: `Margin topped up: Funds deducted from your general account to meet margin requirement`, TRANSFER_TYPE_MARGIN_LOW: `Funds deducted from your general account to meet margin requirement`,
TRANSFER_TYPE_MARGIN_HIGH: `Margin returned: Excess margin amount returned to your general account`, TRANSFER_TYPE_MARGIN_HIGH: `Excess margin amount returned to your general account`,
TRANSFER_TYPE_MARGIN_CONFISCATED: `Margin confiscated: Margin confiscated from your margin account to fulfil closeout`, TRANSFER_TYPE_MARGIN_CONFISCATED: `Margin confiscated from your margin account to fulfil closeout`,
TRANSFER_TYPE_MAKER_FEE_PAY: `Maker fee paid: Maker fee paid from your general account when your aggressive trade was filled`, TRANSFER_TYPE_MAKER_FEE_PAY: `Maker fee paid from your general account when your aggressive trade was filled`,
TRANSFER_TYPE_MAKER_FEE_RECEIVE: `Maker fee received: Maker fee received into your general account when your passive trade was filled`, TRANSFER_TYPE_MAKER_FEE_RECEIVE: `Maker fee received into your general account when your passive order was filled`,
TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY: `Infrastructure fee paid: Infrastructure fee paid from your general account when your trade was filled`, TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY: `Infrastructure fee paid from your general account when your order was filled`,
TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE: `Infrastructure fee received: Infrastructure fee, paid by traders, received into your general account`, TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE: `Infrastructure fee received: Infrastructure fee, paid by traders, received into your general account`,
TRANSFER_TYPE_LIQUIDITY_FEE_PAY: `Liquidity fee paid: Liquidity fee paid from your general account to market's liquidity providers`, TRANSFER_TYPE_LIQUIDITY_FEE_PAY: `Liquidity fee paid from your general account to market's liquidity providers`,
TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE: `Liquidity fee received: Liquidity fee received into your general account from traders`, TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE: `Liquidity fee received into your general account from traders`,
TRANSFER_TYPE_BOND_LOW: `Bond account funded: Funds deducted from your general account to meet your required liquidity bond amount`, TRANSFER_TYPE_BOND_LOW: `Funds deducted from your general account to meet your required liquidity bond amount`,
TRANSFER_TYPE_BOND_HIGH: `Bond returned: Bond returned to your general account after your liquidity commitment was reduced`, TRANSFER_TYPE_BOND_HIGH: `Bond returned to your general account after your liquidity commitment was reduced`,
TRANSFER_TYPE_WITHDRAW: `Withdrawal: Funds withdrawn from your general account`, TRANSFER_TYPE_WITHDRAW: `Funds withdrawn from your general account`,
TRANSFER_TYPE_DEPOSIT: `Deposit: Funds deposited to your general account`, TRANSFER_TYPE_DEPOSIT: `Funds deposited to your general account`,
TRANSFER_TYPE_BOND_SLASHING: `Bond slashed: Bond account penalized when liquidity commitment not met`, TRANSFER_TYPE_BOND_SLASHING: `Bond account penalized when liquidity commitment not met`,
TRANSFER_TYPE_STAKE_REWARD: `Staking reward received: Rewards for staking received into your general account`, TRANSFER_TYPE_STAKE_REWARD: `Rewards for staking received into your general account`,
TRANSFER_TYPE_TRANSFER_FUNDS_SEND: `Transfer sent: Funds deducted from your general account to fulfil a transfer`, TRANSFER_TYPE_TRANSFER_FUNDS_SEND: `Funds deducted from your general account to fulfil a transfer`,
TRANSFER_TYPE_TRANSFER_FUNDS_DISTRIBUTE: `Transfer received: Funds added to your general account to fulfil a transfer`, TRANSFER_TYPE_TRANSFER_FUNDS_DISTRIBUTE: `Funds added to your general account to fulfil a transfer`,
TRANSFER_TYPE_CLEAR_ACCOUNT: `Market accounts cleared: Market-related accounts emptied, and balances moved, because the market has closed`, TRANSFER_TYPE_CLEAR_ACCOUNT: `Market-related accounts emptied, and balances moved, because the market has closed`,
TRANSFER_TYPE_UNSPECIFIED: 'Default value, always invalid', TRANSFER_TYPE_UNSPECIFIED: 'Default value, always invalid',
TRANSFER_TYPE_CHECKPOINT_BALANCE_RESTORE: TRANSFER_TYPE_CHECKPOINT_BALANCE_RESTORE:
'When the network is restored from a checkpoint this sets the balances of parties', 'When the network is restored from a checkpoint this sets the balances of parties',