Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Jul 2, 2024
1 parent 344e0c2 commit 29889f1
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 75 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
},
"dependencies": {
"@coral-xyz/anchor": "^0.29.0",
"@helium/account-fetch-cache": "^0.7.11",
"@helium/account-fetch-cache-hooks": "^0.7.11",
"@helium/helium-react-hooks": "^0.7.11",
"@helium/account-fetch-cache": "^0.9.0-alpha.0",
"@helium/account-fetch-cache-hooks": "^0.9.0-alpha.0",
"@helium/helium-react-hooks": "^0.9.0-alpha.0",
"@helium/modular-governance-hooks": "^0.0.8",
"@helium/modular-governance-idls": "^0.0.8-next.19+4fa4c6b",
"@helium/organization-sdk": "^0.0.8",
"@helium/spl-utils": "^0.8.2",
"@helium/spl-utils": "^0.9.0-alpha.0",
"@helium/state-controller-sdk": "^0.0.8",
"@helium/voter-stake-registry-hooks": "^0.8.2",
"@helium/voter-stake-registry-sdk": "^0.8.2",
"@helium/voter-stake-registry-hooks": "^0.9.0-alpha.0",
"@helium/voter-stake-registry-sdk": "^0.9.0-alpha.0",
"@hookform/resolvers": "^3.3.4",
"@metaplex-foundation/mpl-token-metadata": "2.10.0",
"@project-serum/anchor": "^0.26.0",
Expand Down Expand Up @@ -72,14 +72,14 @@
},
"resolutions": {
"@solana/web3.js": "^1.90.0",
"@helium/account-fetch-cache": "^0.7.11",
"@helium/account-fetch-cache-hooks": "^0.7.11",
"@helium/helium-react-hooks": "^0.7.11",
"@helium/voter-stake-registry-hooks": "^0.8.2",
"@helium/spl-utils": "^0.8.2",
"@helium/account-fetch-cache": "^0.9.0-alpha.0",
"@helium/account-fetch-cache-hooks": "^0.9.0-alpha.0",
"@helium/helium-react-hooks": "^0.9.0-alpha.0",
"@helium/voter-stake-registry-hooks": "^0.9.0-alpha.0",
"@helium/spl-utils": "^0.9.0-alpha.0",
"@helium/modular-governance-hooks": "^0.0.8",
"@solana/wallet-adapter-react": "^0.15.35",
"@helium/voter-stake-registry-sdk": "^0.8.2"
"@helium/voter-stake-registry-sdk": "^0.9.0-alpha.0"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Proxies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function Proxies() {
<CardDetail
title="Total Voting Power"
value={
proxy.delegatedVeTokens
proxy.delegatedVeTokens && decimals
? // force 2 decimals
humanReadable(
new BN(proxy.delegatedVeTokens).div(
Expand Down
130 changes: 68 additions & 62 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,19 @@
resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.2.1.tgz#16308cea045f0fc777b6ff20a9f25474dd8293d2"
integrity sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==

"@helium/account-fetch-cache-hooks@^0.5.0", "@helium/account-fetch-cache-hooks@^0.7.11", "@helium/account-fetch-cache-hooks@^0.7.17":
version "0.7.11"
resolved "https://registry.yarnpkg.com/@helium/account-fetch-cache-hooks/-/account-fetch-cache-hooks-0.7.11.tgz#cc36cc403958de9b9f230bdd1adf2730b9dfd287"
integrity sha512-YoUacY5cQJStezTIw3sbmxxsuyH+P0VNtVVGnQ7jA3g+Y20BISWs/NOxf5w3cyAPscadUzTnqwGFiQ2isd9UTg==
"@helium/account-fetch-cache-hooks@^0.5.0", "@helium/account-fetch-cache-hooks@^0.9.0-alpha.0":
version "0.9.0-alpha.0"
resolved "https://registry.yarnpkg.com/@helium/account-fetch-cache-hooks/-/account-fetch-cache-hooks-0.9.0-alpha.0.tgz#9757810abfadee20968214661ac4a966bd9d3852"
integrity sha512-f1Fn0vMRJg72LMf6WvuR1FKJLuAqawgQerxK6MzYtJ2yckRhMG2G5GVBV0eYkfnQxDrX/HF3mypJiLiFjIdCcQ==
dependencies:
"@helium/account-fetch-cache" "^0.7.11"
"@helium/account-fetch-cache" "^0.9.0-alpha.0"
"@solana/web3.js" "^1.78.8"
react-async-hook "^4.0.0"

"@helium/account-fetch-cache@^0.5.0", "@helium/account-fetch-cache@^0.7.11", "@helium/account-fetch-cache@^0.7.17":
version "0.7.11"
resolved "https://registry.yarnpkg.com/@helium/account-fetch-cache/-/account-fetch-cache-0.7.11.tgz#5813509464214cbfbbe42040eb5a48a386e1eefd"
integrity sha512-5HPecniIyU/rcUc+Na7gqPRr352Dw8egrfgOzc24PdquVWvbJzrVwfcjrFL2PGEr858uTx0uIzbICrfsaMvEaQ==
"@helium/account-fetch-cache@^0.5.0", "@helium/account-fetch-cache@^0.9.0-alpha.0":
version "0.9.0-alpha.0"
resolved "https://registry.yarnpkg.com/@helium/account-fetch-cache/-/account-fetch-cache-0.9.0-alpha.0.tgz#e4490dbb76dc9bef824842ac919e31295abe689a"
integrity sha512-wLLv/1sA7A8kEy4y3EtFGmkKXN1JPjBODgSrPEhGm7ePZodGMY0aIrhCJDW33TyJ+r0KmuewEQOO1Aq52/b9Vg==
dependencies:
"@solana/web3.js" "^1.78.8"

Expand Down Expand Up @@ -212,56 +212,56 @@
"@solana/spl-token" "^0.3.8"
"@solana/web3.js" "^1.78.4"

"@helium/anchor-resolvers@^0.7.17":
version "0.7.17"
resolved "https://registry.yarnpkg.com/@helium/anchor-resolvers/-/anchor-resolvers-0.7.17.tgz#3404df1190af30f26dd53e477df6f0d6294b9773"
integrity sha512-F5coBe4NJSFyoc2jLetguKr7mnjmOdHv8aVlflPVXTic6YcqlaaLdJ36JHh2VRVmX+ulWbWKdUNJX65vAkWnNA==
"@helium/anchor-resolvers@^0.9.0-alpha.0":
version "0.9.0-alpha.0"
resolved "https://registry.yarnpkg.com/@helium/anchor-resolvers/-/anchor-resolvers-0.9.0-alpha.0.tgz#48d461e877604528dad895dcbf4f013ffab7e9ce"
integrity sha512-MBf6EJyBPJM9lSiI/KQ7a791OroD8o96bAJUBkr/+ziJL3+u389NSg8lducSEdnDSZ9nH1SNP4prSf37hvU9gQ==
dependencies:
"@solana/spl-token" "^0.3.8"
"@solana/web3.js" "^1.78.8"

"@helium/circuit-breaker-sdk@^0.7.17":
version "0.7.17"
resolved "https://registry.yarnpkg.com/@helium/circuit-breaker-sdk/-/circuit-breaker-sdk-0.7.17.tgz#1f706285e866628ffefe7078962cc961a238fb9f"
integrity sha512-Zs06f1U7R9Ant/Ip/S5SkagM/li/R8XbIVtSlgqqET3y48EVKbPAsSmR+VByOybAb5rIeiOIFitkHTv/bmSicQ==
"@helium/circuit-breaker-sdk@^0.9.0-alpha.0":
version "0.9.0-alpha.0"
resolved "https://registry.yarnpkg.com/@helium/circuit-breaker-sdk/-/circuit-breaker-sdk-0.9.0-alpha.0.tgz#bd5d4defe74f55cdc1e71178ebd2c8258d83ac95"
integrity sha512-5U4C/TmzHyT4lBBgRlmDqIfIBfVM69fHpt7O3QlI6IK+1GEmtvK6LXhIbiI7NdSCstFqtTl686K7bQ60z1G5lg==
dependencies:
"@coral-xyz/anchor" "^0.28.0"
"@helium/anchor-resolvers" "^0.7.17"
"@helium/idls" "^0.7.17"
"@helium/anchor-resolvers" "^0.9.0-alpha.0"
"@helium/idls" "^0.9.0-alpha.0"
bn.js "^5.2.0"
bs58 "^4.0.1"

"@helium/helium-react-hooks@^0.5.0", "@helium/helium-react-hooks@^0.7.11", "@helium/helium-react-hooks@^0.7.17":
version "0.7.11"
resolved "https://registry.yarnpkg.com/@helium/helium-react-hooks/-/helium-react-hooks-0.7.11.tgz#1d67bf58906f9c8d02ee9e7cb064ba6fb1668f3b"
integrity sha512-BD3cjdxn+98h+Cm1Dy5duwAk2RmmxqMkLoRQKZTiXK7X91d80bS3bHep6XbPMGlvHFokyrCcITiWp/ivHRHLLw==
"@helium/helium-react-hooks@^0.5.0", "@helium/helium-react-hooks@^0.9.0-alpha.0":
version "0.9.0-alpha.0"
resolved "https://registry.yarnpkg.com/@helium/helium-react-hooks/-/helium-react-hooks-0.9.0-alpha.0.tgz#cdc46f6292af32001454f217903d56b2fdfcace0"
integrity sha512-3eEzNs/jvMZTA6OHLHzkeg5nN8cOwfga7QhqhPXeNFXptjpWTMrrVmdEzXdB8xr4GSu8iy8CuDEEpGZgWefl6w==
dependencies:
"@coral-xyz/anchor" "^0.28.0"
"@helium/account-fetch-cache" "^0.7.11"
"@helium/account-fetch-cache-hooks" "^0.7.11"
"@helium/account-fetch-cache" "^0.9.0-alpha.0"
"@helium/account-fetch-cache-hooks" "^0.9.0-alpha.0"
"@solana/spl-token" "^0.3.8"
"@solana/web3.js" "^1.78.8"
bs58 "^4.0.1"
pako "^2.0.3"
react-async-hook "^4.0.0"

"@helium/helium-sub-daos-sdk@^0.7.17":
version "0.7.17"
resolved "https://registry.yarnpkg.com/@helium/helium-sub-daos-sdk/-/helium-sub-daos-sdk-0.7.17.tgz#3b6b7a5872e5c0719d198988d2495ed5cbd495a8"
integrity sha512-NF8hfm9npOiEeP9UDkcPBlv28GqfonyWMphDzob4zSnQr/18ZNp+QczP1WNkUHvFwqngt/x2zJVPA3gigp+EKA==
"@helium/helium-sub-daos-sdk@^0.9.0-alpha.0":
version "0.9.0-alpha.0"
resolved "https://registry.yarnpkg.com/@helium/helium-sub-daos-sdk/-/helium-sub-daos-sdk-0.9.0-alpha.0.tgz#9dfa909fd76c46f3f6aa4b85a7591c7f2b5bf1c3"
integrity sha512-J9/VAro/1a0FXrKGVRdrS/ggoKP4mZpEZ/hgS5Dqd36rI3mnBL4sI6R8159T3+hTlJfyrWARYq7DjZH1xFxf4Q==
dependencies:
"@coral-xyz/anchor" "^0.28.0"
"@helium/anchor-resolvers" "^0.7.17"
"@helium/circuit-breaker-sdk" "^0.7.17"
"@helium/treasury-management-sdk" "^0.7.17"
"@helium/voter-stake-registry-sdk" "^0.7.17"
"@helium/anchor-resolvers" "^0.9.0-alpha.0"
"@helium/circuit-breaker-sdk" "^0.9.0-alpha.0"
"@helium/treasury-management-sdk" "^0.9.0-alpha.0"
"@helium/voter-stake-registry-sdk" "^0.9.0-alpha.0"
bn.js "^5.2.0"
bs58 "^4.0.1"

"@helium/idls@^0.7.17":
version "0.7.17"
resolved "https://registry.yarnpkg.com/@helium/idls/-/idls-0.7.17.tgz#72705df5b1ef2d98502175a33b24977733491357"
integrity sha512-8tgojvyu3MEjydHpLqZSPNYVFcn7+69GuOA3EBpaB4PH9zWunMho9Jmcv7OkrJ0M2ftIFCupL2zsyU7tdF5zCw==
"@helium/idls@^0.9.0-alpha.0":
version "0.9.0-alpha.0"
resolved "https://registry.yarnpkg.com/@helium/idls/-/idls-0.9.0-alpha.0.tgz#cf8cf5e1543be2568b8af40874b0baeb72868d0d"
integrity sha512-ghT/B9wXVPkAc1N7lNdnpw5hoYTBlSYoORTvk572M5fq7M1jSO0XwUVvMFwRgDf4kbuKGY3YuMXm7/SFdM7c8Q==
dependencies:
"@coral-xyz/anchor" "^0.28.0"
"@solana/web3.js" "^1.78.8"
Expand Down Expand Up @@ -327,13 +327,15 @@
"@helium/anchor-resolvers" "^0.5.0"
"@helium/modular-governance-idls" "^0.0.8"

"@helium/spl-utils@^0.7.17", "@helium/spl-utils@file:.yalc/@helium/spl-utils":
version "0.7.17"
"@helium/spl-utils@^0.9.0-alpha.0":
version "0.9.0-alpha.0"
resolved "https://registry.yarnpkg.com/@helium/spl-utils/-/spl-utils-0.9.0-alpha.0.tgz#75b5bd1802c2c21d1262bca6434e4b02155d8e29"
integrity sha512-bc2y6YlkPh+fBLXS5Tes6e7LjcqnU68ArRT6yDZH63eI4pFyH7O1FKRqmcRzbHWL6CkPWSNHOiYhK/u2cyhEMA==
dependencies:
"@coral-xyz/anchor" "^0.28.0"
"@helium/account-fetch-cache" "^0.7.17"
"@helium/account-fetch-cache" "^0.9.0-alpha.0"
"@helium/address" "^4.10.2"
"@helium/anchor-resolvers" "^0.7.17"
"@helium/anchor-resolvers" "^0.9.0-alpha.0"
"@metaplex-foundation/mpl-token-metadata" "^2.10.0"
"@solana/spl-account-compression" "^0.1.7"
"@solana/spl-token" "^0.3.8"
Expand All @@ -352,31 +354,33 @@
"@helium/anchor-resolvers" "^0.5.0"
"@helium/modular-governance-idls" "^0.0.8"

"@helium/treasury-management-sdk@^0.7.17":
version "0.7.17"
resolved "https://registry.yarnpkg.com/@helium/treasury-management-sdk/-/treasury-management-sdk-0.7.17.tgz#855443380773aea9b4d190bb3f1f96bbbd2e6eb7"
integrity sha512-mVwMsJ6e7EzETbPnzD3c3qLHwdnlspuhwbYMac+R3VqZVBLPwN0Q6zRoOY5XRAvbGcQKYwJsJjZMCkcYTCdVZw==
"@helium/treasury-management-sdk@^0.9.0-alpha.0":
version "0.9.0-alpha.0"
resolved "https://registry.yarnpkg.com/@helium/treasury-management-sdk/-/treasury-management-sdk-0.9.0-alpha.0.tgz#f06991f7fce234d57ced46945d7749df3049f668"
integrity sha512-oo8caYX31tzku42RILAKfL4b6AekC9ny4+kmzhFIgP/nE4Rwow/4fyntVOPylFMJKyRogVo6fhSmSOr1ZvMdJQ==
dependencies:
"@coral-xyz/anchor" "^0.28.0"
"@helium/anchor-resolvers" "^0.7.17"
"@helium/circuit-breaker-sdk" "^0.7.17"
"@helium/idls" "^0.7.17"
"@helium/anchor-resolvers" "^0.9.0-alpha.0"
"@helium/circuit-breaker-sdk" "^0.9.0-alpha.0"
"@helium/idls" "^0.9.0-alpha.0"
bn.js "^5.2.0"
bs58 "^4.0.1"

"@helium/voter-stake-registry-hooks@file:.yalc/@helium/voter-stake-registry-hooks":
version "0.7.17"
"@helium/voter-stake-registry-hooks@^0.9.0-alpha.0":
version "0.9.0-alpha.0"
resolved "https://registry.yarnpkg.com/@helium/voter-stake-registry-hooks/-/voter-stake-registry-hooks-0.9.0-alpha.0.tgz#f05b988348d49513b830600390d9d7476aa7c7a2"
integrity sha512-NAtTt+fnnfy6/7NYJAIz46tJFf/ASXgi/9Ah7NiAAwxrlyD8Y/Qg5LRh40t//rZwyxaYPaJeKS6YhBaPM9fNvQ==
dependencies:
"@coral-xyz/anchor" "^0.28.0"
"@helium/account-fetch-cache" "^0.7.17"
"@helium/account-fetch-cache-hooks" "^0.7.17"
"@helium/circuit-breaker-sdk" "^0.7.17"
"@helium/helium-react-hooks" "^0.7.17"
"@helium/helium-sub-daos-sdk" "^0.7.17"
"@helium/account-fetch-cache" "^0.9.0-alpha.0"
"@helium/account-fetch-cache-hooks" "^0.9.0-alpha.0"
"@helium/circuit-breaker-sdk" "^0.9.0-alpha.0"
"@helium/helium-react-hooks" "^0.9.0-alpha.0"
"@helium/helium-sub-daos-sdk" "^0.9.0-alpha.0"
"@helium/modular-governance-hooks" "^0.0.8"
"@helium/modular-governance-idls" "0.0.8-next.19+4fa4c6b"
"@helium/spl-utils" "^0.7.17"
"@helium/voter-stake-registry-sdk" "^0.7.17"
"@helium/spl-utils" "^0.9.0-alpha.0"
"@helium/voter-stake-registry-sdk" "^0.9.0-alpha.0"
"@solana/wallet-adapter-base" "^0.9.22"
"@solana/wallet-adapter-react" "^0.15.32"
"@solana/web3.js" "^1.78.8"
Expand All @@ -385,14 +389,16 @@
bs58 "^4.0.1"
react-async-hook "^4.0.0"

"@helium/voter-stake-registry-sdk@^0.7.17", "@helium/voter-stake-registry-sdk@file:.yalc/@helium/voter-stake-registry-sdk":
version "0.7.17"
"@helium/voter-stake-registry-sdk@^0.9.0-alpha.0":
version "0.9.0-alpha.0"
resolved "https://registry.yarnpkg.com/@helium/voter-stake-registry-sdk/-/voter-stake-registry-sdk-0.9.0-alpha.0.tgz#37b6e5533c5353ed925a4b478bfb13770b8bf4e3"
integrity sha512-cEZPNxlcDMyl58j72cwAoykLQmkn7wWjABCYQ9WAvjOr2WGM4fFCV6W3uk12uIZ4V/ZlxTCc5WoF/YlneIqiqg==
dependencies:
"@coral-xyz/anchor" "^0.28.0"
"@helium/anchor-resolvers" "^0.7.17"
"@helium/idls" "^0.7.17"
"@helium/anchor-resolvers" "^0.9.0-alpha.0"
"@helium/idls" "^0.9.0-alpha.0"
"@helium/nft-proxy-sdk" "0.0.8-next.19+4fa4c6b"
"@helium/spl-utils" "^0.7.17"
"@helium/spl-utils" "^0.9.0-alpha.0"
"@metaplex-foundation/mpl-token-metadata" "^2.10.0"
"@solana/spl-token" "^0.3.8"
bn.js "^5.2.0"
Expand Down

0 comments on commit 29889f1

Please sign in to comment.