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/add quasar #1

Open
wants to merge 3 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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 packages/stateful/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/stateless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/types/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export enum ChainId {
KujiraMainnet = 'kaiyo-1',
ChihuahuaMainnet = 'chihuahua-1',
OraichainMainnet = 'Oraichain',
QuasarTestnet = 'quasar-test-1',
}

export type BaseChainConfig = {
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
42 changes: 42 additions & 0 deletions packages/utils/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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][] =
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"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",
"@cosmjs/stargate": "^0.32.1",
"@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",
Expand All @@ -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",
Expand Down
27 changes: 17 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]":
version "1.26.0"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"

[email protected]:
version "3.0.0"
Expand Down