-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from InjectiveLabs/feat/chain-upgrade
Feat/chain upgrade
- Loading branch information
Showing
34 changed files
with
1,777 additions
and
1,817 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
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
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,92 @@ | ||
import { MsgType } from '@injectivelabs/ts-types' | ||
|
||
export const msgTypeMap = { | ||
[MsgType.MsgExec]: 'Exec', | ||
[MsgType.MsgGrant]: 'Grant', | ||
[MsgType.MsgRevoke]: 'Revoke', | ||
[MsgType.MsgSend]: 'Send', | ||
[MsgType.MsgWithdrawDelegatorReward]: 'Withdraw Delegator Reward', | ||
[MsgType.MsgGrantAllowance]: 'Grant Allowance', | ||
[MsgType.MsgRevokeAllowance]: 'Revoke Allowance', | ||
[MsgType.MsgDepositCosmos]: 'Deposit Cosmos', | ||
[MsgType.MsgSubmitProposal]: 'Submit Proposal', | ||
[MsgType.MsgVote]: 'Vote', | ||
[MsgType.MsgUnjail]: 'Unjail', | ||
[MsgType.MsgBeginRedelegate]: 'Begin Redelegate', | ||
[MsgType.MsgCreateValidator]: 'Create Validator', | ||
[MsgType.MsgDelegate]: 'Delegate', | ||
[MsgType.MsgEditValidator]: 'Edit Validator', | ||
[MsgType.MsgUndelegate]: 'Undelegate', | ||
[MsgType.MsgCancelUnbondingDelegation]: 'Cancel Unbonding Delegation', | ||
[MsgType.MsgInstantiateContract]: 'Instantiate Contract', | ||
[MsgType.MsgInstantiateContract2]: 'Instantiate Contract2', | ||
[MsgType.MsgMigrateContract]: 'Migrate Contract', | ||
[MsgType.MsgStoreCode]: 'Store Code', | ||
[MsgType.MsgUpdateAdmin]: 'Update Admin', | ||
[MsgType.MsgTransfer]: 'Transfer', | ||
[MsgType.MsgAcknowledgement]: 'Acknowledgement', | ||
[MsgType.MsgChannelOpenAck]: 'Channel Open Ack', | ||
[MsgType.MsgChannelOpenConfirm]: 'Channel Open Confirm', | ||
[MsgType.MsgChannelOpenInit]: 'Channel Open Init', | ||
[MsgType.MsgChannelOpenTry]: 'Channel Open Try', | ||
[MsgType.MsgRecvPacket]: 'Recv Packet', | ||
[MsgType.MsgTimeout]: 'Timeout', | ||
[MsgType.MsgCreateClient]: 'Create Client', | ||
[MsgType.MsgUpdateClient]: 'Update Client', | ||
[MsgType.MsgConnectionOpenAck]: 'Connection Open Ack', | ||
[MsgType.MsgConnectionOpenConfirm]: 'Connection Open Confirm', | ||
[MsgType.MsgConnectionOpenInit]: 'Connection Open Init', | ||
[MsgType.MsgConnectionOpenTry]: 'Connection Open Try', | ||
[MsgType.MsgBid]: 'Bid', | ||
[MsgType.MsgAdminUpdateBinaryOptionsMarket]: | ||
'Admin Update Binary Options Market', | ||
[MsgType.MsgBatchCancelDerivativeOrders]: 'Batch Cancel Derivative Orders', | ||
[MsgType.MsgBatchCancelSpotOrders]: 'Batch Cancel Spot Orders', | ||
[MsgType.MsgBatchCreateDerivativeLimitOrders]: | ||
'Batch Create Derivative Limit Orders', | ||
[MsgType.MsgBatchCreateSpotLimitOrders]: 'Batch Create Spot Limit Orders', | ||
[MsgType.MsgBatchUpdateOrders]: 'Batch Update Orders', | ||
[MsgType.MsgCancelBinaryOptionsOrder]: 'Cancel Binary Options Order', | ||
[MsgType.MsgCancelDerivativeOrder]: 'Cancel Derivative Order', | ||
[MsgType.MsgCancelSpotOrder]: 'Cancel Spot Order', | ||
[MsgType.MsgCreateBinaryOptionsLimitOrder]: | ||
'Create Binary Options Limit Order', | ||
[MsgType.MsgCreateBinaryOptionsMarketOrder]: | ||
'Create Binary Options Market Order', | ||
[MsgType.MsgCreateDerivativeLimitOrder]: 'Create Derivative Limit Order', | ||
[MsgType.MsgCreateDerivativeMarketOrder]: 'Create Derivative Market Order', | ||
[MsgType.MsgLiquidatePosition]: 'Liquidate Position', | ||
[MsgType.MsgCreateSpotLimitOrder]: 'Create Spot Limit Order', | ||
[MsgType.MsgCreateSpotMarketOrder]: 'Create Spot Market Order', | ||
[MsgType.MsgDeposit]: 'Deposit', | ||
[MsgType.MsgExternalTransfer]: 'External Transfer', | ||
[MsgType.MsgIncreasePositionMargin]: 'Increase Position Margin', | ||
[MsgType.MsgInstantBinaryOptionsMarketLaunch]: | ||
'Instant Binary Options Market Launch', | ||
[MsgType.MsgInstantPerpetualMarketLaunch]: 'Instant Perpetual Market Launch', | ||
[MsgType.MsgInstantSpotMarketLaunch]: 'Instant Spot Market Launch', | ||
[MsgType.MsgReclaimLockedFunds]: 'Reclaim Locked Funds', | ||
[MsgType.MsgRewardsOptOut]: 'Rewards Opt Out', | ||
[MsgType.MsgSubaccountTransfer]: 'Subaccount Transfer', | ||
[MsgType.MsgWithdraw]: 'Withdraw', | ||
[MsgType.MsgCreateInsuranceFund]: 'Create Insurance Fund', | ||
[MsgType.MsgRequestRedemption]: 'Request Redemption', | ||
[MsgType.MsgUnderwrite]: 'Underwrite', | ||
[MsgType.MsgConfirmBatch]: 'Confirm Batch', | ||
[MsgType.MsgDepositClaim]: 'Deposit Claim', | ||
[MsgType.MsgERC20DeployedClaim]: 'Erc20 Deployed Claim', | ||
[MsgType.MsgRequestBatch]: 'Request Batch', | ||
[MsgType.MsgSendToEth]: 'Send To Eth', | ||
[MsgType.MsgSetOrchestratorAddresses]: 'Set Orchestrator Addresses', | ||
[MsgType.MsgValsetConfirm]: 'Valset Confirm', | ||
[MsgType.MsgValsetUpdatedClaim]: 'Valset Updated Claim', | ||
[MsgType.MsgWithdrawClaim]: 'Withdraw Claim', | ||
[MsgType.MsgBurn]: 'Burn', | ||
[MsgType.MsgMint]: 'Mint', | ||
[MsgType.MsgCreateDenom]: 'Create Denom', | ||
[MsgType.MsgExecuteContract]: 'Execute Contract', | ||
[MsgType.MsgExecuteContractCompat]: 'Execute Contract', | ||
// todo: add to injective-ts | ||
'injective.exchange.v1beta1.MsgPrivilegedExecuteContract': 'Execute Contract', | ||
'cosmos.bank.v1beta1.MsgMultiSend': 'Multi Send' | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<template> | ||
<svg | ||
width="16" | ||
height="16" | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M6.95988 9.72838L3.54425 7.09323C3.27244 6.88357 2.88191 6.93417 2.67244 7.20579C2.46282 7.47738 2.51297 7.86795 2.78497 8.0776L6.20038 10.7125C6.47241 10.9222 6.86275 10.872 7.07241 10.6002C7.28207 10.3284 7.23169 9.93801 6.95988 9.72838Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M7.38494 2.11465L10.8008 4.74959C11.0726 4.95946 11.4629 4.90909 11.6726 4.63728C11.8822 4.36546 11.8319 3.97534 11.5601 3.76546L8.14444 1.13034C7.87262 0.920684 7.48228 0.971277 7.27262 1.24287C7.06297 1.51465 7.11337 1.90503 7.38494 2.11465Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M7.08823 2.43945L3.82782 6.66558L7.30154 9.34508L10.5618 5.11895L7.08823 2.43945Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M15.6728 11.348L9.87197 6.87305L8.84497 8.20423L14.646 12.6792C15.0136 12.9628 15.5414 12.8949 15.8248 12.5272C16.1086 12.1594 16.0404 11.6316 15.6728 11.348Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M5.84177 12.8048C5.84177 12.3587 5.48036 11.9971 5.03427 11.9971H1.2403C0.794238 11.9971 0.4328 12.3587 0.4328 12.8048V13.4037H5.84177V12.8048Z" | ||
fill="currentColor" | ||
/> | ||
<path d="M6.27456 13.9111H0V14.9997H6.27456V13.9111Z" fill="currentColor" /> | ||
</svg> | ||
</template> |
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,14 @@ | ||
<template> | ||
<svg | ||
width="16" | ||
height="16" | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M13.8536 3.64645C14.0488 3.84171 14.0488 4.15829 13.8536 4.35355L6.85355 11.3536C6.75979 11.4473 6.63261 11.5 6.5 11.5C6.36739 11.5 6.24021 11.4473 6.14645 11.3536L2.64645 7.85355C2.45118 7.65829 2.45118 7.34171 2.64645 7.14645C2.84171 6.95118 3.15829 6.95118 3.35355 7.14645L6.5 10.2929L13.1464 3.64645C13.3417 3.45118 13.6583 3.45118 13.8536 3.64645Z" | ||
fill="currentColor" | ||
/> | ||
</svg> | ||
</template> |
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,10 +1,18 @@ | ||
<template> | ||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<svg | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M12 22.5C6.20101 22.5 1.5 17.799 1.5 12C1.5 6.20101 6.20101 1.5 12 1.5C17.799 1.5 22.5 6.20101 22.5 12C22.5 17.799 17.799 22.5 12 22.5ZM12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z" | ||
fill="#D0D0D1" /> | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M6 12C6 11.5858 6.33579 11.25 6.75 11.25H17.25C17.6642 11.25 18 11.5858 18 12C18 12.4142 17.6642 12.75 17.25 12.75H6.75C6.33579 12.75 6 12.4142 6 12Z" | ||
fill="#D0D0D1" /> | ||
fill="currentColor" | ||
/> | ||
</svg> | ||
</template> |
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,14 @@ | ||
<template> | ||
<svg | ||
width="16" | ||
height="16" | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M14.25 3V4.25C14.25 5.35157 11.5065 6.25 8.125 6.25C4.74348 6.25 2 5.35157 2 4.25V3C2 1.89843 4.74348 1 8.125 1C11.5065 1 14.25 1.89843 14.25 3ZM14.25 5.8125V8.625C14.25 9.72657 11.5065 10.625 8.125 10.625C4.74348 10.625 2 9.72657 2 8.625V5.8125C3.31592 6.71875 5.72444 7.14064 8.125 7.14064C10.5256 7.14064 12.9341 6.71875 14.25 5.8125ZM14.25 10.1875V13C14.25 14.1016 11.5065 15 8.125 15C4.74348 15 2 14.1016 2 13V10.1875C3.31592 11.0938 5.72444 11.5156 8.125 11.5156C10.5256 11.5156 12.9341 11.0938 14.25 10.1875Z" | ||
fill="currentColor" | ||
/> | ||
</svg> | ||
</template> |
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,14 @@ | ||
<template> | ||
<svg | ||
width="16" | ||
height="16" | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.49634 6.03271H6.32082C6.45889 6.03271 6.56868 5.92013 6.58723 5.78331C6.67618 5.12718 7.1265 4.64893 7.92922 4.64893C8.61477 4.64893 9.24318 4.9917 9.24318 5.81689C9.24318 6.45166 8.86867 6.74365 8.27834 7.18799C7.60549 7.67676 7.07229 8.24805 7.11037 9.1748L7.11334 9.39161C7.11521 9.52833 7.22658 9.63818 7.36332 9.63818H8.17434C8.31241 9.63818 8.42434 9.52625 8.42434 9.38818V9.28271C8.42434 8.56543 8.69729 8.35596 9.43361 7.79736C10.043 7.33398 10.6778 6.81982 10.6778 5.74072C10.6778 4.22998 9.40188 3.5 8.00539 3.5C6.73831 3.5 5.34964 4.09061 5.25511 5.78615C5.24752 5.92237 5.3599 6.03271 5.49634 6.03271ZM7.82131 12.4756C8.43068 12.4756 8.84963 12.082 8.84963 11.5488C8.84963 10.9966 8.43068 10.6094 7.82131 10.6094C7.23732 10.6094 6.81203 10.9966 6.81203 11.5488C6.81203 12.082 7.23732 12.4756 7.82131 12.4756Z" | ||
fill="white" | ||
/> | ||
</svg> | ||
</template> |
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,33 @@ | ||
<template> | ||
<svg | ||
width="16" | ||
height="16" | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<g clip-path="url(#clip0_1545_8564)"> | ||
<path | ||
d="M8.25 0.0496094C8.1 -0.0503906 7.9 -0.0503906 7.8 0.0496094C5.8 1.09961 4.5 4.39961 4.5 8.24961C4.5 9.79961 4.75 11.3496 5.15 12.6996C5.2 12.8996 5.4 13.0496 5.65 13.0496H10.4C10.6 13.0496 10.8 12.8996 10.9 12.6996C11.35 11.3496 11.55 9.84961 11.55 8.24961C11.5 4.39961 10.2 1.09961 8.25 0.0496094ZM9.5 7.99961C9.5 8.84961 8.85 9.49961 8 9.49961C7.15 9.49961 6.5 8.84961 6.5 7.99961V5.99961C6.5 5.14961 7.15 4.49961 8 4.49961C8.85 4.49961 9.5 5.14961 9.5 5.99961V7.99961Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M10.15 14H5.85002L5.50002 15.4C5.45002 15.55 5.50002 15.7 5.60002 15.85C5.70002 16 5.85002 16 6.00002 16H10C10.15 16 10.3 15.95 10.4 15.8C10.5 15.65 10.55 15.5 10.5 15.35L10.15 14Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M4.2 12.95C3.75 11.55 3.5 9.9 3.5 8.25C2.5 10 2 12.05 2 14.1V14.5C2 14.7 2.1 14.85 2.3 14.95C2.35 15 2.45 15 2.5 15C2.6 15 2.7 14.95 2.8 14.9L4.55 13.5C4.4 13.35 4.25 13.15 4.2 12.95Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M12.5 8.2002C12.5 9.9002 12.25 11.5502 11.8 12.9502C11.75 13.1502 11.6 13.3502 11.45 13.5002L13.15 14.8502C13.25 14.9002 13.35 14.9502 13.45 14.9502C13.5 14.9502 13.6 14.9502 13.65 14.9002C13.8 14.8002 13.95 14.6502 13.95 14.4502V14.0502C14 12.0502 13.5 10.0002 12.5 8.2002Z" | ||
fill="currentColor" | ||
/> | ||
</g> | ||
<defs> | ||
<clipPath id="clip0_1545_8564"> | ||
<rect width="16" height="16" fill="currentColor" /> | ||
</clipPath> | ||
</defs> | ||
</svg> | ||
</template> |
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,22 @@ | ||
<template> | ||
<svg | ||
width="16" | ||
height="16" | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M3.5 6C3.22386 6 3 6.22386 3 6.5V14.5C3 14.7761 3.22386 15 3.5 15H12.5C12.7761 15 13 14.7761 13 14.5V6.5C13 6.22386 12.7761 6 12.5 6H10.5C10.2239 6 10 5.77614 10 5.5C10 5.22386 10.2239 5 10.5 5H12.5C13.3284 5 14 5.67157 14 6.5V14.5C14 15.3284 13.3284 16 12.5 16H3.5C2.67157 16 2 15.3284 2 14.5V6.5C2 5.67157 2.67157 5 3.5 5H5.5C5.77614 5 6 5.22386 6 5.5C6 5.77614 5.77614 6 5.5 6H3.5Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M7.64645 0.146447C7.84171 -0.0488155 8.15829 -0.0488155 8.35355 0.146447L11.3536 3.14645C11.5488 3.34171 11.5488 3.65829 11.3536 3.85355C11.1583 4.04882 10.8417 4.04882 10.6464 3.85355L8.5 1.70711V10.5C8.5 10.7761 8.27614 11 8 11C7.72386 11 7.5 10.7761 7.5 10.5V1.70711L5.35355 3.85355C5.15829 4.04882 4.84171 4.04882 4.64645 3.85355C4.45118 3.65829 4.45118 3.34171 4.64645 3.14645L7.64645 0.146447Z" | ||
fill="currentColor" | ||
/> | ||
</svg> | ||
</template> |
Oops, something went wrong.