diff --git a/packages/stateful/package.json b/packages/stateful/package.json index 8464c820c..9a6f74886 100644 --- a/packages/stateful/package.json +++ b/packages/stateful/package.json @@ -47,7 +47,7 @@ "@walletconnect/browser-utils": "^1.8.0", "axios": "^0.26.1", "buffer": "^6.0.3", - "chain-registry": "^1.26.0", + "chain-registry": "^1.29.0", "clsx": "^1.1.1", "file-saver": "^2.0.5", "fuse.js": "^6.6.2", @@ -71,7 +71,7 @@ "uuid": "^9.0.0" }, "devDependencies": { - "@chain-registry/types": "^0.17.1", + "@chain-registry/types": "^0.18.1", "@cosmjs/amino": "^0.32.1", "@dao-dao/config": "2.2.0", "@dao-dao/types": "2.2.0", diff --git a/packages/stateless/package.json b/packages/stateless/package.json index 2670fcd07..057ec3512 100644 --- a/packages/stateless/package.json +++ b/packages/stateless/package.json @@ -19,7 +19,7 @@ "@types/remove-markdown": "^0.3.1", "@walletconnect/browser-utils": "^1.8.0", "a11y-react-emoji": "^1.2.0", - "chain-registry": "^1.26.0", + "chain-registry": "^1.29.0", "chart.js": "^4.4.0", "chartjs-adapter-date-fns": "^3.0.0", "chartjs-plugin-annotation": "^3.0.1", @@ -44,7 +44,7 @@ "uuid": "^9.0.0" }, "devDependencies": { - "@chain-registry/types": "^0.17.1", + "@chain-registry/types": "^0.18.1", "@cosmos-kit/core": "^2.7.12", "@dao-dao/config": "2.2.0", "@storybook/react": "^6.5.10", diff --git a/packages/types/chain.ts b/packages/types/chain.ts index a1687b63d..a98ed1aff 100644 --- a/packages/types/chain.ts +++ b/packages/types/chain.ts @@ -71,6 +71,7 @@ export enum ChainId { KujiraMainnet = 'kaiyo-1', ChihuahuaMainnet = 'chihuahua-1', OraichainMainnet = 'Oraichain', + QuasarTestnet = 'quasar-test-1', } export type BaseChainConfig = { diff --git a/packages/types/package.json b/packages/types/package.json index b6ccbe549..d911756af 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -8,7 +8,7 @@ }, "dependencies": {}, "devDependencies": { - "@chain-registry/types": "^0.17.1", + "@chain-registry/types": "^0.18.1", "@cosmjs/cosmwasm-stargate": "^0.32.1", "@cosmos-kit/web3auth": "^2.4.12", "@dao-dao/config": "2.2.0", diff --git a/packages/utils/constants/chains.ts b/packages/utils/constants/chains.ts index d97117ab9..5ce2d63a0 100644 --- a/packages/utils/constants/chains.ts +++ b/packages/utils/constants/chains.ts @@ -1187,6 +1187,44 @@ export const SUPPORTED_CHAINS: SupportedChainConfig[] = [ DaoVotingTokenStaked: 17, }, }, + { + chainId: ChainId.QuasarTestnet, + name: 'quasar', + mainnet: false, + accentColor: '#3ccd64', + factoryContractAddress: + 'quasar1sjce8d68wuf8g6rta23du4ellyt3j4hw3yhwxt29d8n48cjygevsanfvsc', + explorerUrlTemplates: { + tx: 'https://testnet.ping.pub/Quasar%20Test/tx/REPLACE', + gov: 'https://testnet.ping.pub//Quasar%20Test/gov', + govProp: 'https://testnet.ping.pub/Quasar%20Test/gov/REPLACE', + wallet: 'https://testnet.ping.pub/Quasar%20Test/account/REPLACE', + }, + codeIds: { + // https://github.com/CosmWasm/cw-plus + Cw1Whitelist: 60, + Cw4Group: 58, // v0.16 + // https://github.com/CosmWasm/cw-nfts + Cw721Base: 59, + + // ContractVersion.V240 + CwPayrollFactory: 32, + CwTokenSwap: 34, + CwTokenfactoryIssuer: 33, + CwVesting: 35, + DaoCore: 36, + DaoMigrator: 37, + DaoPreProposeApprovalSingle: 38, + DaoPreProposeApprover: 39, + DaoPreProposeMultiple: 40, + DaoPreProposeSingle: 41, + DaoProposalMultiple: 40, + DaoProposalSingle: 45, + DaoVotingCw4: 50, + DaoVotingCw721Staked: 52, + DaoVotingTokenStaked: 53, + }, + }, ] export const POLYTONE_CONFIG_PER_CHAIN: [ChainId, PolytoneConfig][] = @@ -1260,6 +1298,10 @@ export const CHAIN_ENDPOINTS: Partial< rpc: 'https://rpc.orai.io', rest: 'https://lcd.orai.io', }, + [ChainId.QuasarTestnet]: { + rpc: 'https://quasar-testnet-rpc.polkachu.com', + rest: 'https://quasar-testnet-api.polkachu.com', + }, } // All configured chains. Configured chains are either supported chains, which diff --git a/packages/utils/package.json b/packages/utils/package.json index 12384cdc6..997b15b16 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -12,7 +12,7 @@ "protobuf": "npm run protobuf:codegen && npm run protobuf:patch" }, "dependencies": { - "@chain-registry/assets": "^1.26.1", + "@chain-registry/assets": "^1.30.0", "@cosmjs/amino": "^0.32.1", "@cosmjs/cosmwasm-stargate": "^0.32.1", "@cosmjs/encoding": "^0.32.1", @@ -20,7 +20,7 @@ "@cosmjs/tendermint-rpc": "^0.32.1", "@sentry/nextjs": "^7.7.0", "ajv": "^8.11.0", - "chain-registry": "^1.26.0", + "chain-registry": "^1.29.0", "json5": "^2.2.0", "lodash.clonedeep": "^4.5.0", "long": "^5.2.1", @@ -33,7 +33,7 @@ "uuid": "^9.0.0" }, "devDependencies": { - "@chain-registry/types": "^0.17.1", + "@chain-registry/types": "^0.18.1", "@cosmjs/proto-signing": "^0.32.1", "@cosmology/telescope": "^1.4.12", "@dao-dao/config": "2.2.0", diff --git a/yarn.lock b/yarn.lock index bea0702c5..4ab547c3e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3235,13 +3235,13 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@chain-registry/assets@^1.26.1": - version "1.26.1" - resolved "https://registry.yarnpkg.com/@chain-registry/assets/-/assets-1.26.1.tgz#e22a4da9a00a6bebfca622f47f058b921de27aaf" - integrity sha512-PdM9fWEnGoZk88GT1VeCWdSBPdt+vJxLEgRhYwYfOh+GSS1YGWciqp83BbHCHML6KybN822PV4WF9RDUCH2DfQ== +"@chain-registry/assets@^1.30.0": + version "1.30.0" + resolved "https://registry.yarnpkg.com/@chain-registry/assets/-/assets-1.30.0.tgz#7c7c575f44382fc9d0934b35a65fcb1d6f65e248" + integrity sha512-pL95O3UtbK9RXazjdYJrXI+VBuZ3Hy1HCQONT3Wc4XGMCQp0vaez8VvVqdqmm1OqXDVl6EfSPYNTgV4pFc156g== dependencies: "@babel/runtime" "^7.21.0" - "@chain-registry/types" "^0.17.1" + "@chain-registry/types" "^0.18.1" "@chain-registry/cosmostation@1.26.0": version "1.26.0" @@ -3295,6 +3295,13 @@ dependencies: "@babel/runtime" "^7.21.0" +"@chain-registry/types@^0.18.1": + version "0.18.1" + resolved "https://registry.yarnpkg.com/@chain-registry/types/-/types-0.18.1.tgz#bd926ddf204f2ae986a79b42f0cfe85764e2977a" + integrity sha512-H/UnOyd7WdcWHa2FGKxy4MclDDFrbE2rFwaUh9oubNJOey7UBI4dNF10oZIWM/1by15LUgDz45fVbh6uA6W5Tg== + dependencies: + "@babel/runtime" "^7.21.0" + "@chain-registry/utils@^1.15.0", "@chain-registry/utils@^1.17.0": version "1.17.0" resolved "https://registry.yarnpkg.com/@chain-registry/utils/-/utils-1.17.0.tgz#f3072c2ca59bc81516f8fac0994ac05d9236a60a" @@ -13846,13 +13853,13 @@ chain-registry@^1.19.0: "@babel/runtime" "^7.21.0" "@chain-registry/types" "^0.16.0" -chain-registry@^1.26.0: - version "1.26.0" - resolved "https://registry.yarnpkg.com/chain-registry/-/chain-registry-1.26.0.tgz#7422ed037bf9cb58c66f9ae00f91726b796977c7" - integrity sha512-GGcB1tHFBvpfBf5HIZ76kko+KvbK8ukG9a0fKNvnjoPRLxz8/7lTNebCCMr1DN/Y6lqpzWjzZRUmjFrUewWmsg== +chain-registry@^1.29.0: + version "1.29.0" + resolved "https://registry.yarnpkg.com/chain-registry/-/chain-registry-1.29.0.tgz#ccdea42340c23f1c1adffa62755a4ec673043e4a" + integrity sha512-S3bbFM+eMjUAJ0v6gkAc/YFWVpxGE07ErQWpbYOBdFo+Z1IjwfoB9cJowTjBgmNGVbVT1W9M5z6writqFQOHSA== dependencies: "@babel/runtime" "^7.21.0" - "@chain-registry/types" "^0.17.1" + "@chain-registry/types" "^0.18.1" chalk@3.0.0: version "3.0.0"