-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
148 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 120, | ||
"overrides": [ | ||
{ | ||
"files": ".prettierrc", | ||
"options": { "parser": "json" } | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
import { b64encode } from "./utils"; | ||
import { b64encode } from './utils'; | ||
|
||
export const EVENT_TYPES = { | ||
ACTIVE_PROPOSAL: "active_proposal", | ||
BURN: "burn", | ||
COIN_RECEIVED: "coin_received", | ||
COIN_SPENT: "coin_spent", | ||
COINBASE: "coinbase", | ||
COMMISSION: "commission", | ||
MESSAGE: "message", | ||
MINT: "mint", | ||
PROPOSAL_DEPOSIT: "proposal_deposit", | ||
PROPOSAL_VOTE: "proposal_vote", | ||
PROPOSER_REWARD: "proposer_reward", | ||
REWARDS: "rewards", | ||
STATE_CHANGE: "state_change", | ||
STORAGE: "storage", | ||
SUBMIT_PROPOSAL: "submit_proposal", | ||
TRANSFER: "transfer", | ||
SEND_PACKET: "send_packet", | ||
RECEIVE_PACKET: "recv_packet", | ||
IBC_TRANSFER: "ibc_transfer", | ||
FUNGIBLE_TOKEN_PACKET: "fungible_token_packet", | ||
ACTIVE_PROPOSAL: 'active_proposal', | ||
BURN: 'burn', | ||
COIN_RECEIVED: 'coin_received', | ||
COIN_SPENT: 'coin_spent', | ||
COINBASE: 'coinbase', | ||
COMMISSION: 'commission', | ||
MESSAGE: 'message', | ||
MINT: 'mint', | ||
PROPOSAL_DEPOSIT: 'proposal_deposit', | ||
PROPOSAL_VOTE: 'proposal_vote', | ||
PROPOSER_REWARD: 'proposer_reward', | ||
REWARDS: 'rewards', | ||
STATE_CHANGE: 'state_change', | ||
STORAGE: 'storage', | ||
SUBMIT_PROPOSAL: 'submit_proposal', | ||
TRANSFER: 'transfer', | ||
SEND_PACKET: 'send_packet', | ||
RECEIVE_PACKET: 'recv_packet', | ||
IBC_TRANSFER: 'ibc_transfer', | ||
FUNGIBLE_TOKEN_PACKET: 'fungible_token_packet', | ||
}; | ||
|
||
export const VAULT_STATES = { | ||
LIQUIDATING: "liquidating", | ||
LIQUIDATED: "liquidated", | ||
LIQUIDATING: 'liquidating', | ||
LIQUIDATED: 'liquidated', | ||
}; | ||
|
||
export const VALUE_KEY = b64encode("value"); | ||
export const STORE_KEY = b64encode("store"); | ||
export const VSTORAGE_VALUE = b64encode("vstorage"); | ||
export const KEY_KEY = b64encode("key"); | ||
export const STORE_NAME_KEY = b64encode("store_name"); | ||
export const SUBKEY_KEY = b64encode("store_subkey"); | ||
export const UNPROVED_VALUE_KEY = b64encode("unproved_value"); | ||
export const PACKET_DATA_KEY = "packet_data"; | ||
export const PACKET_SRC_CHANNEL_KEY = "packet_src_channel"; | ||
export const PACKET_DST_CHANNEL_KEY = "packet_dst_channel"; | ||
export const PACKET_SRC_PORT_KEY = "packet_src_port"; | ||
export const PACKET_DST_PORT_KEY = "packet_dst_port"; | ||
export const ACTION_KEY = b64encode("action"); | ||
export const IBC_MESSAGE_TRANSFER_VALUE = b64encode("/ibc.applications.transfer.v1.MsgTransfer"); | ||
export const IBC_MESSAGE_RECEIVE_PACKET_VALUE = b64encode("/ibc.core.channel.v1.MsgRecvPacket"); | ||
export const RECEPIENT_KEY = b64encode("recipient"); | ||
export const SENDER_KEY = b64encode("sender"); | ||
export const RECEIVER_KEY = b64encode("receiver"); | ||
export const AMOUNT_KEY = b64encode("amount"); | ||
export const TRANSFER_PORT_VALUE = "transfer"; | ||
export const VALUE_KEY = b64encode('value'); | ||
export const STORE_KEY = b64encode('store'); | ||
export const VSTORAGE_VALUE = b64encode('vstorage'); | ||
export const KEY_KEY = b64encode('key'); | ||
export const STORE_NAME_KEY = b64encode('store_name'); | ||
export const SUBKEY_KEY = b64encode('store_subkey'); | ||
export const UNPROVED_VALUE_KEY = b64encode('unproved_value'); | ||
export const PACKET_DATA_KEY = 'packet_data'; | ||
export const PACKET_SRC_CHANNEL_KEY = 'packet_src_channel'; | ||
export const PACKET_DST_CHANNEL_KEY = 'packet_dst_channel'; | ||
export const PACKET_SRC_PORT_KEY = 'packet_src_port'; | ||
export const PACKET_DST_PORT_KEY = 'packet_dst_port'; | ||
export const ACTION_KEY = b64encode('action'); | ||
export const IBC_MESSAGE_TRANSFER_VALUE = b64encode('/ibc.applications.transfer.v1.MsgTransfer'); | ||
export const IBC_MESSAGE_RECEIVE_PACKET_VALUE = b64encode('/ibc.core.channel.v1.MsgRecvPacket'); | ||
export const RECEPIENT_KEY = b64encode('recipient'); | ||
export const SENDER_KEY = b64encode('sender'); | ||
export const RECEIVER_KEY = b64encode('receiver'); | ||
export const AMOUNT_KEY = b64encode('amount'); | ||
export const TRANSFER_PORT_VALUE = 'transfer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.