Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: always show native assets regardless of denoms #348

Merged
merged 15 commits into from
May 11, 2023

Conversation

ericHgorski
Copy link
Contributor

No description provided.

@ericHgorski ericHgorski requested a review from alecande11 April 19, 2023 18:23
@ericHgorski
Copy link
Contributor Author

If this looks good, Ill make same change on extension

@@ -55,3 +55,5 @@ export const useSortedDisplayChains = () => {

export const useTerraChainName = () =>
useNetworkName() === "mainnet" ? "phoenix-1" : "pisco-1"

export const isNativeToken = (denom: string) => !denom.startsWith("ibc/")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this robust @alecande11 ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think now that we have the token factory module, we should also check if the denom starts with factory/

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Apr 19, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3811e90
Status: ✅  Deploy successful!
Preview URL: https://6618aeb7.station-1a1.pages.dev
Branch Preview URL: https://st-387-show-native-assets.station-1a1.pages.dev

View logs

@@ -55,3 +55,5 @@ export const useSortedDisplayChains = () => {

export const useTerraChainName = () =>
useNetworkName() === "mainnet" ? "phoenix-1" : "pisco-1"

export const isNativeToken = (denom: string) => !denom.startsWith("ibc/")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think now that we have the token factory module, we should also check if the denom starts with factory/

ericHgorski and others added 4 commits April 24, 2023 13:26
@terran6 terran6 merged commit b12c830 into staging May 11, 2023
@terran6 terran6 deleted the ST-387-show-native-assets branch May 11, 2023 15:28
terran6 added a commit that referenced this pull request May 23, 2023
* fix: always show native assets regardless of denoms (#348)

* St 353 display chain selection on inactive chain click in OtherChainButtons (#329)

* WIP: chains display prefs open

* feat: open preferences on click

* cleanup

* cleanup

* feat: swap terra.kitchen/utils for @terra-money/terra-utils (#321)

* feat: guard against empty networks, chaindID, or lcd (#327)

* feat: kado integration and updated wallet buttons (#320)

* feat: kado integration and updated wallet buttons

* Fix passing/not passing

* fix prettier

* fix: always show native assets regardless of denoms

* Update chain.ts

* fix: hide low balance

* fix: remove log

* fix: code readability

Changing code to follow logic for improved readability.

* fix: exclude cw20 tokens

---------

Co-authored-by: Mike <17463738+mwmerz@users.noreply.github.com>
Co-authored-by: Alessandro Candeago <54709706+alecande11@users.noreply.github.com>
Co-authored-by: Manuel Alessandro Collazo <collazo.manuel6@gmail.com>

* fix: error checking (#345)

* fix: error checking

Error received may be empty object which is truthy in JavaScript.  Check for falsy values OR empty objects when deciding if an error is truthy.

* fix: Wrong error check

* fix: broken history links (#380)

* St 355 moon theme (#379)

* changes blossom theme colors and changed some font styles mainly font-smoothing and font weight adjusted to reflect antialiased smoothing

* Added navigation background and aside blurs ST-309

* changed blossom mp4 location

* fixed aside blur on smaller heights

* changed where the aside blurs are placed and added better management for mobile and small heights

* fixed other changes I wanted in

* changes colors

* completed moon theme changes. Also implimented two toned cards the are on all themes along with some other small UI changes ST-355

* fixing mobile issues ST-355

* added theme stake amounts back in

* changed background blob color to lighter, changed preview svg and removed staking minimums to themes

* removed image I forgot to delete

* St 355 pt4 (#382)

* updated moon preview

* changed preview colors

* removed system default theme and makes it dark mode ST-433 (#383)

* fix: password validation (#385)

* fix: password validation

* fix: onFocus password confirmation

---------

Co-authored-by: plubber <51789398+ericHgorski@users.noreply.github.com>
Co-authored-by: Mike <17463738+mwmerz@users.noreply.github.com>
Co-authored-by: Alessandro Candeago <54709706+alecande11@users.noreply.github.com>
Co-authored-by: Joshua Brigati <brigati.joshua@gmail.com>
mwmerz added a commit that referenced this pull request May 26, 2023
* St 353 display chain selection on inactive chain click in OtherChainButtons (#329)

* WIP: chains display prefs open

* feat: open preferences on click

* cleanup

* cleanup

* feat: swap terra.kitchen/utils for @terra-money/terra-utils (#321)

* feat: guard against empty networks, chaindID, or lcd (#327)

* feat: kado integration and updated wallet buttons (#320)

* feat: kado integration and updated wallet buttons

* Fix passing/not passing

* fix prettier

* fix: always show native assets regardless of denoms

* Update chain.ts

* fix: hide low balance

* fix: remove log

* fix: code readability

Changing code to follow logic for improved readability.

* fix: exclude cw20 tokens

---------

Co-authored-by: Mike <17463738+mwmerz@users.noreply.github.com>
Co-authored-by: Alessandro Candeago <54709706+alecande11@users.noreply.github.com>
Co-authored-by: Manuel Alessandro Collazo <collazo.manuel6@gmail.com>
mwmerz added a commit that referenced this pull request May 26, 2023
* St 353 display chain selection on inactive chain click in OtherChainButtons (#329)

* WIP: chains display prefs open

* feat: open preferences on click

* cleanup

* cleanup

* feat: swap terra.kitchen/utils for @terra-money/terra-utils (#321)

* feat: guard against empty networks, chaindID, or lcd (#327)

* feat: kado integration and updated wallet buttons (#320)

* feat: kado integration and updated wallet buttons

* Fix passing/not passing

* fix prettier

* fix: always show native assets regardless of denoms

* Update chain.ts

* fix: hide low balance

* fix: remove log

* fix: code readability

Changing code to follow logic for improved readability.

* fix: exclude cw20 tokens

---------

Co-authored-by: Mike <17463738+mwmerz@users.noreply.github.com>
Co-authored-by: Alessandro Candeago <54709706+alecande11@users.noreply.github.com>
Co-authored-by: Manuel Alessandro Collazo <collazo.manuel6@gmail.com>
mwmerz added a commit that referenced this pull request May 26, 2023
* St 353 display chain selection on inactive chain click in OtherChainButtons (#329)

* WIP: chains display prefs open

* feat: open preferences on click

* cleanup

* cleanup

* feat: swap terra.kitchen/utils for @terra-money/terra-utils (#321)

* feat: guard against empty networks, chaindID, or lcd (#327)

* feat: kado integration and updated wallet buttons (#320)

* feat: kado integration and updated wallet buttons

* Fix passing/not passing

* fix prettier

* fix: always show native assets regardless of denoms

* Update chain.ts

* fix: hide low balance

* fix: remove log

* fix: code readability

Changing code to follow logic for improved readability.

* fix: exclude cw20 tokens

---------

Co-authored-by: Mike <17463738+mwmerz@users.noreply.github.com>
Co-authored-by: Alessandro Candeago <54709706+alecande11@users.noreply.github.com>
Co-authored-by: Manuel Alessandro Collazo <collazo.manuel6@gmail.com>
terran6 added a commit that referenced this pull request May 29, 2023
* St 353 display chain selection on inactive chain click in OtherChainButtons (#329)

* WIP: chains display prefs open

* feat: open preferences on click

* cleanup

* cleanup

* feat: swap terra.kitchen/utils for @terra-money/terra-utils (#321)

* feat: guard against empty networks, chaindID, or lcd (#327)

* feat: kado integration and updated wallet buttons (#320)

* feat: kado integration and updated wallet buttons

* Fix passing/not passing

* fix prettier

* fix: always show native assets regardless of denoms

* Update chain.ts

* fix: hide low balance

* fix: remove log

* fix: code readability

Changing code to follow logic for improved readability.

* fix: exclude cw20 tokens

---------

Co-authored-by: Mike <17463738+mwmerz@users.noreply.github.com>
Co-authored-by: Alessandro Candeago <54709706+alecande11@users.noreply.github.com>
Co-authored-by: Manuel Alessandro Collazo <collazo.manuel6@gmail.com>
terran6 added a commit that referenced this pull request May 29, 2023
* St 353 display chain selection on inactive chain click in OtherChainButtons (#329)

* WIP: chains display prefs open

* feat: open preferences on click

* cleanup

* cleanup

* feat: swap terra.kitchen/utils for @terra-money/terra-utils (#321)

* feat: guard against empty networks, chaindID, or lcd (#327)

* feat: kado integration and updated wallet buttons (#320)

* feat: kado integration and updated wallet buttons

* Fix passing/not passing

* fix prettier

* fix: always show native assets regardless of denoms

* Update chain.ts

* fix: hide low balance

* fix: remove log

* fix: code readability

Changing code to follow logic for improved readability.

* fix: exclude cw20 tokens

---------

Co-authored-by: Mike <17463738+mwmerz@users.noreply.github.com>
Co-authored-by: Alessandro Candeago <54709706+alecande11@users.noreply.github.com>
Co-authored-by: Manuel Alessandro Collazo <collazo.manuel6@gmail.com>
mwmerz added a commit that referenced this pull request May 29, 2023
* fix: always show native assets regardless of denoms (#348)

* St 353 display chain selection on inactive chain click in OtherChainButtons (#329)

* WIP: chains display prefs open

* feat: open preferences on click

* cleanup

* cleanup

* feat: swap terra.kitchen/utils for @terra-money/terra-utils (#321)

* feat: guard against empty networks, chaindID, or lcd (#327)

* feat: kado integration and updated wallet buttons (#320)

* feat: kado integration and updated wallet buttons

* Fix passing/not passing

* fix prettier

* fix: always show native assets regardless of denoms

* Update chain.ts

* fix: hide low balance

* fix: remove log

* fix: code readability

Changing code to follow logic for improved readability.

* fix: exclude cw20 tokens

---------

Co-authored-by: Mike <17463738+mwmerz@users.noreply.github.com>
Co-authored-by: Alessandro Candeago <54709706+alecande11@users.noreply.github.com>
Co-authored-by: Manuel Alessandro Collazo <collazo.manuel6@gmail.com>

* fix: error checking (#345)

* fix: error checking

Error received may be empty object which is truthy in JavaScript.  Check for falsy values OR empty objects when deciding if an error is truthy.

* fix: Wrong error check

* fix: broken history links (#380)

* St 355 moon theme (#379)

* changes blossom theme colors and changed some font styles mainly font-smoothing and font weight adjusted to reflect antialiased smoothing

* Added navigation background and aside blurs ST-309

* changed blossom mp4 location

* fixed aside blur on smaller heights

* changed where the aside blurs are placed and added better management for mobile and small heights

* fixed other changes I wanted in

* changes colors

* completed moon theme changes. Also implimented two toned cards the are on all themes along with some other small UI changes ST-355

* fixing mobile issues ST-355

* added theme stake amounts back in

* changed background blob color to lighter, changed preview svg and removed staking minimums to themes

* removed image I forgot to delete

* St 355 pt4 (#382)

* updated moon preview

* changed preview colors

* removed system default theme and makes it dark mode ST-433 (#383)

* fix: password validation (#385)

* fix: password validation

* fix: onFocus password confirmation

---------

Co-authored-by: plubber <51789398+ericHgorski@users.noreply.github.com>
Co-authored-by: Mike <17463738+mwmerz@users.noreply.github.com>
Co-authored-by: Alessandro Candeago <54709706+alecande11@users.noreply.github.com>
Co-authored-by: Joshua Brigati <brigati.joshua@gmail.com>
mwmerz added a commit that referenced this pull request May 29, 2023
* St 353 display chain selection on inactive chain click in OtherChainButtons (#329)

* WIP: chains display prefs open

* feat: open preferences on click

* cleanup

* cleanup

* feat: swap terra.kitchen/utils for @terra-money/terra-utils (#321)

* feat: guard against empty networks, chaindID, or lcd (#327)

* feat: kado integration and updated wallet buttons (#320)

* feat: kado integration and updated wallet buttons

* Fix passing/not passing

* fix prettier

* fix: always show native assets regardless of denoms

* Update chain.ts

* fix: hide low balance

* fix: remove log

* fix: code readability

Changing code to follow logic for improved readability.

* fix: exclude cw20 tokens

---------

Co-authored-by: Mike <17463738+mwmerz@users.noreply.github.com>
Co-authored-by: Alessandro Candeago <54709706+alecande11@users.noreply.github.com>
Co-authored-by: Manuel Alessandro Collazo <collazo.manuel6@gmail.com>
mwmerz added a commit that referenced this pull request May 29, 2023
* St 353 display chain selection on inactive chain click in OtherChainButtons (#329)

* WIP: chains display prefs open

* feat: open preferences on click

* cleanup

* cleanup

* feat: swap terra.kitchen/utils for @terra-money/terra-utils (#321)

* feat: guard against empty networks, chaindID, or lcd (#327)

* feat: kado integration and updated wallet buttons (#320)

* feat: kado integration and updated wallet buttons

* Fix passing/not passing

* fix prettier

* fix: always show native assets regardless of denoms

* Update chain.ts

* fix: hide low balance

* fix: remove log

* fix: code readability

Changing code to follow logic for improved readability.

* fix: exclude cw20 tokens

---------

Co-authored-by: Mike <17463738+mwmerz@users.noreply.github.com>
Co-authored-by: Alessandro Candeago <54709706+alecande11@users.noreply.github.com>
Co-authored-by: Manuel Alessandro Collazo <collazo.manuel6@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants