Skip to content

Commit

Permalink
Merge pull request #404 from terra-money/staging
Browse files Browse the repository at this point in the history
7.2.7
  • Loading branch information
terran6 authored May 31, 2023
2 parents 104965c + 741488c commit 05b13dd
Show file tree
Hide file tree
Showing 48 changed files with 1,478 additions and 282 deletions.
233 changes: 227 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@
"@ledgerhq/hw-transport-web-ble": "^6.27.1",
"@mui/icons-material": "^5.8.0",
"@mui/material": "^5.9.1",
"@sentry/react": "^7.53.1",
"@terra-money/feather.js": "^1.0.4",
"@terra-money/ledger-station-js": "^1.3.7",
"@terra-money/log-finder-ruleset": "^3.0.0",
"@terra-money/terra-utils": "^1.0.9",
"@terra-money/terra.js": "^3.1.7",
"@terra-money/terra.proto": "^2.0.0",
"@terra-money/use-wallet": "4.0.0-beta.3",
"@terra-money/wallet-provider": "4.0.0-beta.3",
"@terra-money/wallet-controller": "4.0.0-beta.3",
"@terra-money/wallet-provider": "4.0.0-beta.3",
"@tippyjs/react": "^4.2.6",
"axios": "^0.27.2",
"bech32": "^2.0.0",
Expand Down
13 changes: 9 additions & 4 deletions src/app/InitBankBalance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,21 @@ const InitBankBalance = ({ children }: PropsWithChildren<{}>) => {
[] as CoinBalance[]
)

native.list.forEach(({ denom }) => {
if (!bankBalance.find((balance) => balance.denom === denom)) {
const token = whitelist[networkName][denom]
native.list.forEach(({ id }) => {
const [chain, denom] = id.split(":")
if (
!bankBalance.find(
(balance) => balance.denom === denom && balance.chain === chain
)
) {
const token = whitelist[networkName][id]

if (!token || !token.chains || token.chains.length === 0) return

bankBalance.push({
denom,
amount: "0",
chain: token.chains[0],
chain,
})
}
})
Expand Down
4 changes: 2 additions & 2 deletions src/app/InitChains.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const InitChains = ({ children }: PropsWithChildren<{}>) => {

useEffect(() => {
axios
.get("/coins.json", { baseURL: STATION_ASSETS })
.get("/denoms.json", { baseURL: STATION_ASSETS })
.then(({ data }) => setWhitelist(data))
axios
.get("/ibc_denoms.json", { baseURL: STATION_ASSETS })
.get("/ibc.json", { baseURL: STATION_ASSETS })
.then(({ data }) => setIbcDenoms(data))
axios
.get("/station/coins.json", { baseURL: ASSETS })
Expand Down
3 changes: 1 addition & 2 deletions src/app/sections/Links.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ const Links = () => {
const { name } = useTheme()

const community = {
medium: "https://medium.com/terra-money",
discord: "https://terra.sc/discord",
telegram: "https://t.me/TerraNetworkLobby",
twitter: "https://twitter.com/terra_money",
github: "https://github.com/terra-money",
github: "https://github.com/terra-money/station",
}

return (
Expand Down
2 changes: 1 addition & 1 deletion src/auth/modules/create/RecoverWalletPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const RecoverWalletPage = () => {
const { t } = useTranslation()

return (
<Page title={t("Import from seed phrase")} backButton small>
<Page title={t("Import from seed phrase")} backButtonPath="/" small>
<Card>
<RecoverWalletForm />
</Card>
Expand Down
1 change: 1 addition & 0 deletions src/components/form/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const Input = forwardRef(

{actionButton && (
<button
type="button"
className={classNames(styles.symbol, styles.after)}
onClick={(e) => {
actionButton.onClick()
Expand Down
1 change: 1 addition & 0 deletions src/components/form/StandardDropDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const StandardDropdown = ({
return (
<div className={styles.container}>
<button
type="button"
className={styles.selector}
onClick={(e) => {
e.preventDefault()
Expand Down
6 changes: 2 additions & 4 deletions src/components/layout/ChainFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ const ChainFilter = ({
)

const initNetwork =
networks.find((n) => n.chainID === savedChain) ?? networks[0]
network[savedChain ?? ""]?.chainID ?? (all ? undefined : chainID)

const [selectedChain, setChain] = useState<string | undefined>(
all ? undefined : initNetwork?.chainID
)
const [selectedChain, setChain] = useState<string | undefined>(initNetwork)

let fixedChain: string | undefined
if (terraOnly) {
Expand Down
Loading

0 comments on commit 05b13dd

Please sign in to comment.