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

Feat/new network selector #1015

Merged
merged 29 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
196dacb
feat(components): new network selector
jennieramida Jun 24, 2024
1f24d35
Merge branch 'develop' into feat/new-network-selector
jennieramida Jun 25, 2024
128681d
fix(components): adjust pinned network
jennieramida Jun 26, 2024
233c66a
fix(components): sort network
jennieramida Jul 1, 2024
8da9dc1
feat(components): add dnd kit
Poafs1 Jul 2, 2024
17bd4ea
fix(components): add layer
jennieramida Jul 3, 2024
5994cc3
fix(components): add layer section
jennieramida Jul 7, 2024
dc6164e
fix(components): add arrow key navigation
jennieramida Jul 10, 2024
93ffca9
fix(components): refactor
jennieramida Jul 10, 2024
d146792
Merge branch 'develop' into feat/new-network-selector
jennieramida Jul 15, 2024
e8f4087
fix(components): fix image
jennieramida Jul 17, 2024
4cab3e5
Merge branch 'develop' into feat/new-network-selector
songwongtp Jul 18, 2024
04229b0
fix: move layer to extra
songwongtp Jul 18, 2024
0ffe51c
fix: set network store userkey
songwongtp Jul 18, 2024
ddb9348
fix: button
songwongtp Jul 18, 2024
857db84
fix: refactor
songwongtp Jul 18, 2024
cb41d60
fix: refactor network accordion
songwongtp Jul 18, 2024
b06e441
fix: refactor dnd comp
songwongtp Jul 18, 2024
3066d71
fix: refactor network card
songwongtp Jul 18, 2024
8f26f67
fix: missing query in move lite
songwongtp Jul 18, 2024
2bb05ec
fix: refactor network button
songwongtp Jul 19, 2024
7ad2e8b
fix: misc optimize
songwongtp Jul 19, 2024
3883c7d
fix: fix dnd behavior and refactor
songwongtp Jul 19, 2024
91db615
Merge branch 'develop' into feat/new-network-selector
songwongtp Jul 19, 2024
e1f25a7
fix: mobile logic
songwongtp Jul 19, 2024
e4f6cc0
fix: minitswap
songwongtp Jul 19, 2024
c4e2bd1
fix: grab icon
songwongtp Jul 19, 2024
82019dc
fix: comments
songwongtp Jul 23, 2024
70230bc
Merge branch 'develop' into feat/new-network-selector
songwongtp Jul 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/jest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
version: 8.14.1
run_install: false
- name: Run Tests
run: |
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Features

- [#1015](https://github.com/alleslabs/celatone-frontend/pull/1015) New network selector
- [#1032](https://github.com/alleslabs/celatone-frontend/pull/1032) Search collection address on both full and sequencer tier
- [#1024](https://github.com/alleslabs/celatone-frontend/pull/1024) Add Sequencer for account detail NFTs
- [#1007](https://github.com/alleslabs/celatone-frontend/pull/1007) Add app menu for initia
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
"@cosmos-kit/react": "2.15.0",
"@cosmos-kit/station": "2.9.0",
"@cosmos-kit/station-extension": "2.10.0",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@graphql-codegen/cli": "^5.0.0",
Expand Down
52 changes: 52 additions & 0 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions src/config/chain/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const DEFAULT_CHAIN_CONFIG: ChainConfig = {
chain: "",
registryChainName: "",
prettyName: "",
networkType: "testnet",
lcd: "",
rpc: "",
indexer: "",
Expand Down
36 changes: 35 additions & 1 deletion src/config/chain/initia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const INITIA_CHAIN_CONFIGS: ChainConfigs = {
chain: "initia",
registryChainName: "minimovetestnet",
prettyName: "Minimove",
networkType: "testnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/minimove.png",
lcd: "https://lcd.minimove-1.initia.xyz",
rpc: "https://rpc.minimove-1.initia.xyz",
indexer: "https://minimove-1-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -54,13 +56,16 @@ export const INITIA_CHAIN_CONFIGS: ChainConfigs = {
},
extra: {
isValidatorExternalLink: null,
layer: "2",
},
},
"init-ai-1-sequencer": {
tier: "sequencer",
chain: "initia",
registryChainName: "initaitestnet",
prettyName: "INIT AI",
networkType: "testnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/initai.png",
lcd: "https://maze-rest-617bacff-7d34-4eb8-87f4-ee16fb4e0ac7.ue1-prod.newmetric.xyz",
rpc: "https://maze-rpc-617bacff-7d34-4eb8-87f4-ee16fb4e0ac7.ue1-prod.newmetric.xyz",
indexer: "https://init-ai-1-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -102,13 +107,16 @@ export const INITIA_CHAIN_CONFIGS: ChainConfigs = {
},
extra: {
isValidatorExternalLink: null,
layer: "2",
},
},
"initiation-1": {
tier: "full",
chain: "initia",
registryChainName: "initiatestnet",
prettyName: "Initia",
networkType: "testnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/initia.png",
lcd: "https://lcd.initiation-1.initia.xyz",
rpc: "https://rpc.initiation-1.initia.xyz",
indexer: "https://initiation-1-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -151,13 +159,17 @@ export const INITIA_CHAIN_CONFIGS: ChainConfigs = {
gasAdjustment: 1.5,
maxGasLimit: 200_000_000,
},
extra: {},
extra: {
layer: "1",
},
},
"minimove-1": {
tier: "full",
chain: "initia",
registryChainName: "minimovetestnet",
prettyName: "Minimove",
networkType: "testnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/minimove.png",
lcd: "https://lcd.minimove-1.initia.xyz",
rpc: "https://rpc.minimove-1.initia.xyz",
indexer: "https://minimove-1-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -199,13 +211,16 @@ export const INITIA_CHAIN_CONFIGS: ChainConfigs = {
},
extra: {
isValidatorExternalLink: null,
layer: "2",
},
},
"miniwasm-1": {
tier: "full",
chain: "initia",
registryChainName: "miniwasmtestnet",
prettyName: "Miniwasm",
networkType: "testnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/miniwasm.png",
lcd: "https://lcd.miniwasm-1.initia.xyz",
rpc: "https://rpc.miniwasm-1.initia.xyz:443",
indexer: "https://miniwasm-1-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -246,13 +261,16 @@ export const INITIA_CHAIN_CONFIGS: ChainConfigs = {
},
extra: {
isValidatorExternalLink: null,
layer: "2",
},
},
"tomcat-1": {
tier: "full",
chain: "initia",
registryChainName: "blackwingtestnet",
prettyName: "Blackwing",
networkType: "testnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/blackwing.png",
lcd: "https://maze-rest-18bdff44-3aa4-425e-9bc0-06a2afa40af8.ase1-prod.newmetric.xyz",
rpc: "https://maze-rpc-18bdff44-3aa4-425e-9bc0-06a2afa40af8.ase1-prod.newmetric.xyz",
indexer: "https://tomcat-1-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -294,13 +312,16 @@ export const INITIA_CHAIN_CONFIGS: ChainConfigs = {
},
extra: {
isValidatorExternalLink: null,
layer: "2",
},
},
"init-ai-1": {
tier: "full",
chain: "initia",
registryChainName: "initaitestnet",
prettyName: "INIT AI",
networkType: "testnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/initai.png",
lcd: "https://maze-rest-617bacff-7d34-4eb8-87f4-ee16fb4e0ac7.ue1-prod.newmetric.xyz",
rpc: "https://maze-rpc-617bacff-7d34-4eb8-87f4-ee16fb4e0ac7.ue1-prod.newmetric.xyz",
indexer: "https://init-ai-1-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -342,13 +363,16 @@ export const INITIA_CHAIN_CONFIGS: ChainConfigs = {
},
extra: {
isValidatorExternalLink: null,
layer: "2",
},
},
"burrito-1": {
tier: "full",
chain: "initia",
registryChainName: "noontestnet",
prettyName: "Noon",
networkType: "testnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/noon.png",
lcd: "https://burrito-1-lcd.lunchlunch.xyz",
rpc: "https://burrito-1-rpc.lunchlunch.xyz",
indexer: "https://burrito-1-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -390,13 +414,16 @@ export const INITIA_CHAIN_CONFIGS: ChainConfigs = {
},
extra: {
isValidatorExternalLink: null,
layer: "2",
},
},
"birdee-1": {
tier: "full",
chain: "initia",
registryChainName: "tucanatestnet",
prettyName: "Tucana",
networkType: "testnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/tucana.png",
lcd: "https://maze-rest-c9796789-107d-49ab-b6de-059724d2a91d.ue1-prod.newmetric.xyz",
rpc: "https://maze-rpc-c9796789-107d-49ab-b6de-059724d2a91d.ue1-prod.newmetric.xyz",
indexer: "https://birdee-1-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -437,13 +464,16 @@ export const INITIA_CHAIN_CONFIGS: ChainConfigs = {
},
extra: {
isValidatorExternalLink: null,
layer: "2",
},
},
"landlord-1": {
tier: "sequencer",
chain: "initia",
registryChainName: "civitiatestnet",
prettyName: "Civitia",
networkType: "testnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/civitia.png",
lcd: "https://maze-rest-sequencer-beab9b6f-d96d-435e-9caf-5679296d8172.ue1-prod.newmetric.xyz",
rpc: "https://maze-rpc-sequencer-beab9b6f-d96d-435e-9caf-5679296d8172.ue1-prod.newmetric.xyz",
indexer: "https://landlord-1-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -485,13 +515,16 @@ export const INITIA_CHAIN_CONFIGS: ChainConfigs = {
},
extra: {
isValidatorExternalLink: null,
layer: "2",
},
},
"glados-1": {
tier: "sequencer",
chain: "initia",
registryChainName: "milkywaytestnet",
prettyName: "Milkyway",
networkType: "testnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/milkyway.png",
lcd: "https://lcd.testnet.milkyway.zone",
rpc: "https://rpc.testnet.milkyway.zone",
indexer: "",
Expand Down Expand Up @@ -532,6 +565,7 @@ export const INITIA_CHAIN_CONFIGS: ChainConfigs = {
},
extra: {
isValidatorExternalLink: null,
layer: "2",
},
},
};
4 changes: 4 additions & 0 deletions src/config/chain/neutron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export const NEUTRON_CHAIN_CONFIGS: ChainConfigs = {
chain: "neutron",
registryChainName: "neutron",
prettyName: "Neutron",
networkType: "mainnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/neutron.png",
lcd: "https://rest-kralum.neutron-1.neutron.org",
rpc: "https://rpc-kralum.neutron-1.neutron.org:443",
indexer: "https://neutron-1-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -54,6 +56,8 @@ export const NEUTRON_CHAIN_CONFIGS: ChainConfigs = {
chain: "neutron",
registryChainName: "neutrontestnet",
prettyName: "Neutron Testnet",
networkType: "testnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/neutron.png",
lcd: "https://rest-palvus.pion-1.ntrn.tech:443",
rpc: "https://rpc-palvus.pion-1.ntrn.tech:443",
indexer: "https://pion-1-graphql.alleslabs.dev/v1/graphql",
Expand Down
8 changes: 8 additions & 0 deletions src/config/chain/osmosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ import { wallets as keplrWallets } from "@cosmos-kit/keplr";

import type { ChainConfigs } from "./types";

const OSMOSIS_LOGO =
"https://assets.alleslabs.dev/integrations/chains/osmo.png";
export const OSMOSIS_CHAIN_CONFIGS: ChainConfigs = {
"osmosis-1": {
tier: "full",
chain: "osmosis",
registryChainName: "osmosis",
prettyName: "Osmosis",
networkType: "mainnet",
logoUrl: OSMOSIS_LOGO,
lcd: "https://lcd.osmosis.zone",
rpc: "https://rpc.osmosis.zone:443",
indexer: "https://osmosis-1-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -56,6 +60,8 @@ export const OSMOSIS_CHAIN_CONFIGS: ChainConfigs = {
chain: "osmosis",
registryChainName: "osmosistestnet",
prettyName: "Osmosis Testnet",
networkType: "testnet",
logoUrl: OSMOSIS_LOGO,
lcd: "https://lcd.osmotest5.osmosis.zone",
rpc: "https://osmosis-testnet-rpc.polkachu.com:443",
indexer: "https://osmo-test-5-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -105,6 +111,8 @@ export const OSMOSIS_CHAIN_CONFIGS: ChainConfigs = {
chain: "osmosis",
registryChainName: "localosmosis",
prettyName: "Local Osmosis",
networkType: "testnet",
logoUrl: OSMOSIS_LOGO,
lcd: "http://localhost/rest",
rpc: "http://localhost:80/rpc/",
indexer: "http://localhost/hasura/v1/graphql",
Expand Down
4 changes: 4 additions & 0 deletions src/config/chain/sei.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export const SEI_CHAIN_CONFIGS: ChainConfigs = {
chain: "sei",
registryChainName: "sei",
prettyName: "Sei",
networkType: "mainnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/sei.png",
lcd: "https://sei-api.polkachu.com",
rpc: "https://sei-rpc.polkachu.com:443",
indexer: "https://pacific-1-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -62,6 +64,8 @@ export const SEI_CHAIN_CONFIGS: ChainConfigs = {
chain: "sei",
registryChainName: "seitestnet2",
prettyName: "Sei Testnet2",
networkType: "testnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/sei.png",
lcd: "https://rest.atlantic-2.seinetwork.io",
rpc: "https://rpc.atlantic-2.seinetwork.io:443",
indexer: "https://atlantic-2-graphql.alleslabs.dev/v1/graphql",
Expand Down
3 changes: 3 additions & 0 deletions src/config/chain/stargaze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export const STARGAZE_CHAIN_CONFIGS: ChainConfigs = {
chain: "stargaze",
registryChainName: "stargaze",
prettyName: "Stargaze",
networkType: "mainnet",
logoUrl: "https://assets.alleslabs.dev/integrations/chains/neutron.png",
lcd: "https://rest.stargaze-apis.com",
rpc: "https://rpc.stargaze-apis.com:443",
indexer: "https://stargaze-mainnet-graphql.alleslabs.dev/v1/graphql",
Expand Down Expand Up @@ -53,6 +55,7 @@ export const STARGAZE_CHAIN_CONFIGS: ChainConfigs = {
chain: "stargaze",
registryChainName: "stargazetestnet",
prettyName: "Stargaze Testnet",
networkType: "testnet",
lcd: "https://rest.elgafar-1.stargaze-apis.com",
rpc: "https://rpc.elgafar-1.stargaze-apis.com",
indexer: "https://elgafar-1-graphql.alleslabs.dev/v1/graphql",
Expand Down
Loading
Loading