Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunnini committed Sep 15, 2023
2 parents 04f394a + bcaa700 commit b2fb88e
Show file tree
Hide file tree
Showing 54 changed files with 649 additions and 345 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.12.23",
"version": "0.12.24-rc.0",
"useWorkspaces": true,
"npmClient": "yarn",
"command": {
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@keplr-wallet/analytics",
"version": "0.12.23",
"version": "0.12.24-rc.0",
"main": "build/index.js",
"author": "chainapsis",
"license": "Apache-2.0",
Expand Down
24 changes: 12 additions & 12 deletions packages/background/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@keplr-wallet/background",
"version": "0.12.23",
"version": "0.12.24-rc.0",
"main": "build/index.js",
"author": "chainapsis",
"license": "Apache-2.0",
Expand Down Expand Up @@ -28,17 +28,17 @@
"@ethersproject/hash": "^5.7.0",
"@ethersproject/transactions": "^5.7.0",
"@ethersproject/wallet": "^5.7.0",
"@keplr-wallet/chain-validator": "0.12.23",
"@keplr-wallet/common": "0.12.23",
"@keplr-wallet/cosmos": "0.12.23",
"@keplr-wallet/crypto": "0.12.23",
"@keplr-wallet/ledger-cosmos": "0.12.23",
"@keplr-wallet/popup": "0.12.23",
"@keplr-wallet/proto-types": "0.12.23",
"@keplr-wallet/router": "0.12.23",
"@keplr-wallet/simple-fetch": "0.12.23",
"@keplr-wallet/types": "0.12.23",
"@keplr-wallet/unit": "0.12.23",
"@keplr-wallet/chain-validator": "0.12.24-rc.0",
"@keplr-wallet/common": "0.12.24-rc.0",
"@keplr-wallet/cosmos": "0.12.24-rc.0",
"@keplr-wallet/crypto": "0.12.24-rc.0",
"@keplr-wallet/ledger-cosmos": "0.12.24-rc.0",
"@keplr-wallet/popup": "0.12.24-rc.0",
"@keplr-wallet/proto-types": "0.12.24-rc.0",
"@keplr-wallet/router": "0.12.24-rc.0",
"@keplr-wallet/simple-fetch": "0.12.24-rc.0",
"@keplr-wallet/types": "0.12.24-rc.0",
"@keplr-wallet/unit": "0.12.24-rc.0",
"@ledgerhq/hw-app-eth": "^6.29.3",
"@ledgerhq/hw-transport": "^6.20.0",
"@ledgerhq/hw-transport-webhid": "^6.20.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/chain-validator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@keplr-wallet/chain-validator",
"version": "0.12.23",
"version": "0.12.24-rc.0",
"main": "build/index.js",
"author": "chainapsis",
"license": "Apache-2.0",
Expand All @@ -16,9 +16,9 @@
"lint-fix": "eslint --fix \"src/**/*\" && prettier --write \"src/**/*\""
},
"dependencies": {
"@keplr-wallet/cosmos": "0.12.23",
"@keplr-wallet/simple-fetch": "0.12.23",
"@keplr-wallet/types": "0.12.23",
"@keplr-wallet/cosmos": "0.12.24-rc.0",
"@keplr-wallet/simple-fetch": "0.12.24-rc.0",
"@keplr-wallet/types": "0.12.24-rc.0",
"joi": "^17.5.0",
"utility-types": "^3.10.0"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@keplr-wallet/common",
"version": "0.12.23",
"version": "0.12.24-rc.0",
"main": "build/index.js",
"author": "chainapsis",
"license": "Apache-2.0",
Expand All @@ -16,8 +16,8 @@
"lint-fix": "eslint --fix \"src/**/*\" && prettier --write \"src/**/*\""
},
"dependencies": {
"@keplr-wallet/crypto": "0.12.23",
"@keplr-wallet/types": "0.12.23",
"@keplr-wallet/crypto": "0.12.24-rc.0",
"@keplr-wallet/types": "0.12.24-rc.0",
"buffer": "^6.0.3",
"delay": "^4.4.0",
"mobx": "^6.1.7"
Expand Down
4 changes: 2 additions & 2 deletions packages/cosmjs-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cosmjs-test",
"version": "0.12.23",
"version": "0.12.24-rc.0",
"author": "chainapsis",
"license": "Apache-2.0",
"private": true,
Expand All @@ -12,7 +12,7 @@
},
"devDependencies": {
"@cosmjs/stargate": "^0.29.3",
"@keplr-wallet/provider-mock": "0.12.23",
"@keplr-wallet/provider-mock": "0.12.24-rc.0",
"secretjs": "^1.6.0"
}
}
14 changes: 7 additions & 7 deletions packages/cosmos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@keplr-wallet/cosmos",
"version": "0.12.23",
"version": "0.12.24-rc.0",
"main": "build/index.js",
"author": "chainapsis",
"license": "Apache-2.0",
Expand All @@ -17,12 +17,12 @@
},
"dependencies": {
"@ethersproject/address": "^5.6.0",
"@keplr-wallet/common": "0.12.23",
"@keplr-wallet/crypto": "0.12.23",
"@keplr-wallet/proto-types": "0.12.23",
"@keplr-wallet/simple-fetch": "0.12.23",
"@keplr-wallet/types": "0.12.23",
"@keplr-wallet/unit": "0.12.23",
"@keplr-wallet/common": "0.12.24-rc.0",
"@keplr-wallet/crypto": "0.12.24-rc.0",
"@keplr-wallet/proto-types": "0.12.24-rc.0",
"@keplr-wallet/simple-fetch": "0.12.24-rc.0",
"@keplr-wallet/types": "0.12.24-rc.0",
"@keplr-wallet/unit": "0.12.24-rc.0",
"bech32": "^1.1.4",
"buffer": "^6.0.3",
"long": "^4.0.0",
Expand Down
6 changes: 5 additions & 1 deletion packages/cosmos/src/stargate/codec/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import * as $protobuf from "protobufjs";
import { MsgWalletSpendAction } from "@keplr-wallet/proto-types/agoric/swingset/msgs";
import {
MsgProvision,
MsgWalletSpendAction,
} from "@keplr-wallet/proto-types/agoric/swingset/msgs";
import { Any } from "@keplr-wallet/proto-types/google/protobuf/any";
import {
MsgMultiSend,
Expand Down Expand Up @@ -175,6 +178,7 @@ defaultProtoCodec.registerAny(
"/agoric.swingset.MsgWalletSpendAction",
MsgWalletSpendAction
);
defaultProtoCodec.registerAny("/agoric.swingset.MsgProvision", MsgProvision);
defaultProtoCodec.registerAny("/cosmos.bank.v1beta1.MsgSend", MsgSend);
defaultProtoCodec.registerAny(
"/cosmos.bank.v1beta1.MsgMultiSend",
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@keplr-wallet/crypto",
"version": "0.12.23",
"version": "0.12.24-rc.0",
"main": "build/index.js",
"author": "chainapsis",
"license": "Apache-2.0",
Expand Down
40 changes: 20 additions & 20 deletions packages/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@keplr-wallet/extension",
"version": "0.12.23",
"version": "0.12.24-rc.0",
"author": "chainapsis",
"license": "Apache-2.0",
"private": true,
Expand All @@ -25,25 +25,25 @@
"@ethersproject/transactions": "^5.7.0",
"@floating-ui/react": "^0.23.0",
"@floating-ui/react-dom": "^1.3.0",
"@keplr-wallet/analytics": "0.12.23",
"@keplr-wallet/background": "0.12.23",
"@keplr-wallet/chain-validator": "0.12.23",
"@keplr-wallet/common": "0.12.23",
"@keplr-wallet/cosmos": "0.12.23",
"@keplr-wallet/crypto": "0.12.23",
"@keplr-wallet/hooks": "0.12.23",
"@keplr-wallet/ledger-cosmos": "0.12.23",
"@keplr-wallet/popup": "0.12.23",
"@keplr-wallet/proto-types": "0.12.23",
"@keplr-wallet/provider": "0.12.23",
"@keplr-wallet/router": "0.12.23",
"@keplr-wallet/router-extension": "0.12.23",
"@keplr-wallet/simple-fetch": "0.12.23",
"@keplr-wallet/stores": "0.12.23",
"@keplr-wallet/stores-etc": "0.12.23",
"@keplr-wallet/types": "0.12.23",
"@keplr-wallet/unit": "0.12.23",
"@keystonehq/animated-qr": "^0.8.5",
"@keplr-wallet/analytics": "0.12.24-rc.0",
"@keplr-wallet/background": "0.12.24-rc.0",
"@keplr-wallet/chain-validator": "0.12.24-rc.0",
"@keplr-wallet/common": "0.12.24-rc.0",
"@keplr-wallet/cosmos": "0.12.24-rc.0",
"@keplr-wallet/crypto": "0.12.24-rc.0",
"@keplr-wallet/hooks": "0.12.24-rc.0",
"@keplr-wallet/ledger-cosmos": "0.12.24-rc.0",
"@keplr-wallet/popup": "0.12.24-rc.0",
"@keplr-wallet/proto-types": "0.12.24-rc.0",
"@keplr-wallet/provider": "0.12.24-rc.0",
"@keplr-wallet/router": "0.12.24-rc.0",
"@keplr-wallet/router-extension": "0.12.24-rc.0",
"@keplr-wallet/simple-fetch": "0.12.24-rc.0",
"@keplr-wallet/stores": "0.12.24-rc.0",
"@keplr-wallet/stores-etc": "0.12.24-rc.0",
"@keplr-wallet/types": "0.12.24-rc.0",
"@keplr-wallet/unit": "0.12.24-rc.0",
"@keystonehq/animated-qr": "^0.8.6",
"@keystonehq/keystone-sdk": "^0.2.3",
"@ledgerhq/devices": "^6.20.0",
"@react-spring/web": "^9.6.1",
Expand Down
49 changes: 32 additions & 17 deletions packages/extension/src/components/icon/keystone-text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,45 @@ export const KeystoneTextIcon: FunctionComponent<IconProps> = ({
height = "1.5rem",
color,
}) => {
const colors: { [key: string]: { color1: string; color2: string } } = {
dark: {
color1: "#f5f8ff",
color2: "#3d71ff",
},
light: {
color1: "#000",
color2: "#1f5aff",
},
};
const color1 = color && color in colors ? colors[color].color1 : color;
const color2 = color && color in colors ? colors[color].color2 : color;
return (
<svg
width={width}
height={height}
viewBox="0 0 156 38"
viewBox="0 0 1136 256"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M89.1663 11.386C87.4022 11.7566 85.9634 12.7313 85.3005 14.005C84.9753 14.63 84.9456 14.7911 84.9472 15.9269C84.9493 17.368 85.1574 17.9217 86.0155 18.769C86.821 19.5642 87.9159 19.9901 90.5532 20.5336C91.828 20.7963 93.0241 21.0701 93.2113 21.1419C94.208 21.5248 94.1332 22.9363 93.0898 23.438C92.3941 23.7725 90.6132 23.75 89.9281 23.3981C89.3323 23.092 88.8593 22.579 88.6458 22.0076L88.6322 21.971C88.5888 21.8538 88.5566 21.7671 88.4965 21.7096C88.3251 21.5457 87.9263 21.6197 86.3908 21.9047L86.3907 21.9047L86.3907 21.9047L86.2226 21.9359L84.4538 22.264L84.4887 22.6081C84.5536 23.2486 85.2201 24.3693 85.9137 25.0043C87.2061 26.1873 89.0757 26.7894 91.4565 26.7894C94.3734 26.7894 96.5859 25.7242 97.5287 23.8659C97.8394 23.2533 97.8725 23.0693 97.8725 21.9485C97.8725 20.8292 97.8404 20.65 97.5428 20.1039C97.1265 19.3401 96.2557 18.5852 95.3031 18.1621C94.8964 17.9816 93.524 17.6106 92.2534 17.3379C90.9828 17.0652 89.7939 16.7684 89.6115 16.6784C88.7196 16.2388 88.8654 14.9537 89.8625 14.464C90.7451 14.0307 92.1314 14.1771 92.9637 14.7917C93.2079 14.9719 93.5291 15.3675 93.6774 15.6707C93.8259 15.974 93.9557 16.2343 93.9658 16.2493C93.9981 16.2967 97.5439 15.6008 97.6778 15.5206C97.8607 15.4113 97.4268 14.362 96.8822 13.5967C96.126 12.5339 94.7245 11.7133 93.0948 11.3792C92.059 11.1668 90.1949 11.17 89.1663 11.386ZM42.6321 11.6371C42.5874 11.6803 42.5508 15.0276 42.5508 19.0755V26.4352H44.2586H45.9665V24.9226V23.41L47.0136 22.2L48.0609 20.9901L50.0185 23.7126L51.9762 26.4352H54.0478H56.1195L55.9017 26.1105C55.7819 25.9319 54.9966 24.8294 54.1566 23.6605C52.0271 20.697 50.5383 18.6083 50.4398 18.4458C50.3907 18.3648 51.5362 16.9413 53.2239 14.9859C54.8011 13.1585 56.0915 11.6398 56.0915 11.6109C56.0915 11.5819 55.1101 11.5583 53.9107 11.5583H51.7299L48.8787 14.8597L46.0274 18.1611L45.995 14.8597L45.9627 11.5583H44.338C43.4445 11.5583 42.6768 11.5937 42.6321 11.6371ZM57.3408 19.1148C57.3233 15.1211 57.3355 11.7865 57.3679 11.7047C57.4142 11.5874 58.5843 11.5624 62.889 11.5867L68.3513 11.6173L68.3861 12.8276L68.4209 14.0378H64.6349H60.849V15.8662V17.6946L64.6002 17.7258L68.3513 17.757V18.9968V20.2365L64.6002 20.2677L60.849 20.299V22.1273V23.9557H64.6307H68.4123V25.1966V26.4376L62.8923 26.4069L57.3724 26.3762L57.3408 19.1148ZM69.5102 11.6783C69.5102 11.7442 70.8277 14.0203 72.4379 16.7364L75.3657 21.6746V24.0582V26.4418L77.043 26.409L78.7203 26.3762L78.7813 23.8967L78.8423 21.4172L81.7395 16.5366C83.3331 13.8523 84.6368 11.6327 84.6368 11.6041C84.6368 11.5757 83.777 11.5669 82.7263 11.5849L80.8157 11.6173L78.9697 14.6531C77.9544 16.3227 77.0969 17.7146 77.0642 17.7463C77.0315 17.778 76.1556 16.3997 75.1178 14.6834L73.2309 11.5628L71.3705 11.5606C70.1909 11.5591 69.5102 11.6022 69.5102 11.6783ZM98.7874 14.9824V13.3294V11.6764H105.131H111.474V13.3294V14.9824H109.156H106.839V20.7711V26.5599L105.161 26.5271L103.484 26.4942L103.452 20.7383L103.421 14.9824H101.104H98.7874ZM117.696 11.86C114.949 12.4309 112.738 14.5212 111.954 17.2866C111.451 19.0618 111.777 21.2627 112.782 22.8656C115.405 27.0532 121.26 27.7438 124.766 24.2794C125.609 23.4467 126.292 22.3589 126.637 21.2991C126.998 20.1901 127.018 17.9675 126.676 16.9896C125.343 13.1775 121.611 11.046 117.696 11.86ZM128.248 26.4942L128.216 19.0853L128.185 11.6764L129.924 11.6804L131.663 11.6844L134.957 15.8263C136.768 18.1044 138.47 20.2389 138.739 20.5697L139.227 21.171L139.258 16.4238L139.29 11.6764H140.998H142.705L142.674 19.0853L142.642 26.4942L140.972 26.5271L139.302 26.5599L137.191 23.9234C136.029 22.4733 134.338 20.3494 133.432 19.2034C132.526 18.0574 131.744 17.1171 131.694 17.1138C131.644 17.1103 131.602 19.2344 131.602 21.8338V26.5599L129.925 26.5271L128.248 26.4942ZM145.021 19.1148V26.5533H150.51H156V25.2545V23.9557H152.218H148.437V22.1256V20.2955H152.218H156V19.0558V17.8161H152.218H148.437V15.986V14.1559H152.218H156V12.9161V11.6764H150.51H145.021V19.1148ZM118.428 15.3741C117.523 15.6259 117.001 15.9205 116.47 16.4782C115.701 17.2848 115.443 17.9334 115.441 19.0582C115.439 19.893 115.486 20.0992 115.841 20.7967C116.527 22.145 117.776 22.8931 119.342 22.8931C120.862 22.8931 122.097 22.1744 122.824 20.8663C123.202 20.1854 123.24 20.0286 123.243 19.1148C123.246 18.2509 123.198 18.0175 122.904 17.4378C122.097 15.8463 120.077 14.9149 118.428 15.3741Z"
fill={color || "currentColor"}
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M14.0275 0.186048C13.3899 0.49008 13.8808 -0.28718 6.82216 11.5965C5.69669 13.4913 3.84003 16.6151 2.69614 18.5385C1.55238 20.4617 0.496573 22.3457 0.349943 22.7248C-0.0334664 23.7166 -0.108611 25.1067 0.158177 26.2683C0.606484 28.2197 1.52664 30.3644 2.07486 30.7361C2.46229 30.9988 2.96196 30.9667 3.31658 30.6563C3.48358 30.5101 5.22313 27.7075 7.18214 24.4281C9.14128 21.1487 12.3625 15.7623 14.3404 12.4584C16.3183 9.15457 18.0461 6.2119 18.1798 5.91944C18.3659 5.51209 18.4117 5.2044 18.3753 4.60614C18.3227 3.74481 18.1759 3.4089 17.0793 1.6428C16.5485 0.787736 16.2691 0.460562 15.8964 0.257362C15.3178 -0.0580041 14.597 -0.0856326 14.0275 0.186048ZM19.0071 9.93242C18.3468 10.2705 18.0958 10.6201 16.0788 14.0135C14.4886 16.6887 14.3232 17.1361 14.6117 17.9822C14.8143 18.5765 15.3061 19.1079 15.8914 19.3652C16.3346 19.5601 16.7538 19.582 20.044 19.582C23.3244 19.582 23.7543 19.5597 24.1916 19.3668C24.8191 19.0903 25.5422 18.3122 25.7077 17.7359C26.0243 16.6321 25.91 16.3433 23.7302 12.7391C22.0563 9.97115 21.8232 9.75579 20.4328 9.69179C19.694 9.65767 19.4697 9.69557 19.0071 9.93242ZM10.5018 24.2567C9.7306 24.6287 9.61288 24.7813 7.96043 27.553C6.33896 30.2726 6.2138 30.5516 6.20514 31.4639C6.1966 32.3604 6.71188 33.4483 7.37769 33.9398C7.61972 34.1186 9.608 35.0868 11.7961 36.0915C15.5555 37.8177 15.8231 37.9215 16.66 37.9778C17.4715 38.0324 17.6109 38.0063 18.3233 37.667C19.2454 37.2275 20.5145 35.9939 20.9568 35.107C21.3589 34.3009 21.368 33.002 20.9774 32.1617C20.5863 31.3202 13.7434 24.6525 12.8467 24.2393C12.0365 23.8658 11.3008 23.8714 10.5018 24.2567Z"
fill={color || "currentColor"}
/>
<path
d="M16.4929 24.1072C16.1449 23.3287 16.4235 22.5308 17.2064 22.0633C17.5904 21.834 17.7779 21.8271 22.7275 21.8579C27.8183 21.8894 27.855 21.8914 28.4886 22.1686C29.6204 22.6639 30.5881 23.9476 30.5923 24.9595C30.5968 26.0254 30.4386 26.262 28.3629 28.2946C26.1495 30.4618 25.62 30.8056 24.5029 30.8014C23.3069 30.7968 22.9979 30.5783 19.6951 27.4027C18.0273 25.7992 16.5864 24.3162 16.4929 24.1072Z"
fill="#2161FF"
/>
<path d="m48 40h96l-64 136h-48z" fill={color1 || "currentColor"} />
<path d="m208 216h-96l64-136h48z" fill={color2 || "currentColor"} />
<g fill={color1 || "currentColor"}>
<path d="m916 80h34.323l29.677 59.863v-59.863h20v96h-20v-20h-14.323l-29.677-59.8624v79.8624h-20z" />
<path d="m784 80h-80v16h30v80h20v-80h30z" />
<path d="m1096 80h-52v16h-20v80h72v-16h-52v-24h44v-16h-44v-24h52z" />
<path d="m496 80h-52v16h-20v80h72v-16h-52v-24h44v-16h-44v-24h52z" />
<path d="m340 124.001 37.674-44.001h26.329l-40.786 47.636 44.785 48.364h-27.258l-40.744-44v44h-20v-96h20z" />
<path d="m511.995 80 34.005 53.999v42.001h20v-42l34.005-54h-23.635l-20.37 32.347-20.37-32.347z" />
<path
d="m686 83s-14-5-34-5c-28 0-38 11-38 28 0 15 8 25 30 30 18 4.091 24 5 24 13s-7 10-20 10c-15 0-34-8-34-8v20c5.667 2.333 20 7 38 7 21 0 38-6 38-28 0-21-12.068-26.682-36-32-18-4-20-9-20-12 0-6.8373 5-11 18-11 8 0 19.372 2.4419 34 6z"
opacity=".9"
/>
<path
clipRule="evenodd"
d="m846 178c30.72 0 48-22 48-50s-17.28-50-48-50-48 22-48 50 17.28 50 48 50zm0-18c17.92 0 28-14.08 28-32s-10.08-32-28-32-28 14.08-28 32 10.08 32 28 32z"
fillRule="evenodd"
/>
</g>
</svg>
);
};
33 changes: 33 additions & 0 deletions packages/extension/src/components/icon/keystone.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React, { FunctionComponent } from "react";
import { IconProps } from "./types";

export const KeystoneIcon: FunctionComponent<IconProps> = ({
width = "auto",
height = "1.5rem",
color,
}) => {
const colors: { [key: string]: { color1: string; color2: string } } = {
dark: {
color1: "#f5f8ff",
color2: "#3d71ff",
},
light: {
color1: "#000",
color2: "#1f5aff",
},
};
const color1 = color && color in colors ? colors[color].color1 : color;
const color2 = color && color in colors ? colors[color].color2 : color;
return (
<svg
width={width}
height={height}
viewBox="0 0 640 640"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path d="m120 100h240l-160 340h-120z" fill={color1 || "currentColor"} />
<path d="m520 540h-240l160-340h120z" fill={color2 || "currentColor"} />
</svg>
);
};
35 changes: 35 additions & 0 deletions packages/extension/src/components/keystone/progress.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from "react";
import { FunctionComponent } from "react";
import { useTheme } from "styled-components";
import { ColorPalette } from "../../styles";

export const Progress: FunctionComponent<{
percent: number;
width?: string;
height?: string;
}> = ({ percent, width, height }) => {
const theme = useTheme();

return (
<div
style={{
backgroundColor:
theme.mode === "light"
? ColorPalette["gray-50"]
: ColorPalette["gray-500"],
width: width ?? "7.5rem",
height: height ?? "0.375rem",
borderRadius: height ?? "0.375rem",
}}
>
<div
style={{
width: `${percent}%`,
height: "100%",
borderRadius: height ?? "0.375rem",
backgroundColor: ColorPalette["blue-400"],
}}
/>
</div>
);
};
6 changes: 4 additions & 2 deletions packages/extension/src/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,15 @@
"page.sign.ethereum.title": "Sign Ethereum",
"page.sign.ethereum.requested-network": "Requested Network",

"page.sign.components.messages.agoric.provision.title": "Provision Smart Wallet",
"page.sign.components.messages.agoric.provision.message": "Provision a smart wallet for address <b>{address}</b>",
"page.sign.components.messages.agoric.wallet-spend-action.execute-offer": "Execute an offer with the following parameters:",
"page.sign.components.messages.agoric.wallet-spend-action.exit-offer": "Exit offer with id <b>{offerId}</b>",
"page.sign.components.messages.agoric.wallet-spend-action.offer-args": "Offer Args",
"page.sign.components.messages.agoric.wallet-spend-action.invitation-spec": "Invitation Spec",
"page.sign.components.messages.agoric.wallet-spend-action.give": "Give <b>{amount}</b>",
"page.sign.components.messages.agoric.wallet-spend-action.give": "Give",
"page.sign.components.messages.agoric.wallet-spend-action.title": "Wallet Spend Action",
"page.sign.components.messages.agoric.wallet-spend-action.want": "Want <b>{amount}</b>",
"page.sign.components.messages.agoric.wallet-spend-action.want": "Want",
"page.sign.components.messages.custom.title": "Custom",
"page.sign.components.messages.claim-rewards.title": "Claim Rewards",
"page.sign.components.messages.claim-rewards.paragraph": "Claim staking reward from <b>{validator}</b>",
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/src/manifest.v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "Keplr",
"description": "Keplr is a browser extension wallet for the Inter blockchain ecosystem.",
"version": "0.12.23",
"version": "0.12.24",
"icons": {
"16": "assets/icon-16.png",
"48": "assets/icon-48.png",
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/src/manifest.v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "Keplr",
"description": "Keplr is a browser extension wallet for the Inter blockchain ecosystem.",
"version": "0.12.23",
"version": "0.12.24",
"icons": {
"16": "assets/icon-16.png",
"48": "assets/icon-48.png",
Expand Down
5 changes: 5 additions & 0 deletions packages/extension/src/pages/main/components/token/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ export const TokenItem: FunctionComponent<TokenItemProps> = observer(
tooltip: (() => {
const start = currency.coinDenom.indexOf("(");
const end = currency.coinDenom.lastIndexOf(")");

if (start < 0 || end < 0) {
return "Unknown";
}

return currency.coinDenom.slice(start + 1, end);
})(),
};
Expand Down
Loading

0 comments on commit b2fb88e

Please sign in to comment.