From d515804bdf0c47d9bacfc4096ca84d34d2bff8a4 Mon Sep 17 00:00:00 2001 From: Alberto Gualis Date: Wed, 22 Jan 2025 09:51:21 +0100 Subject: [PATCH] chore: bump to sdk 1.4.0 and update SDK config for base and arbitrum --- apps/beets-frontend-v3/package.json | 2 +- packages/lib/config/networks/arbitrum.ts | 4 +++ packages/lib/config/networks/base.ts | 4 +++ packages/lib/package.json | 2 +- pnpm-lock.yaml | 34 ++++++++++++------------ 5 files changed, 27 insertions(+), 19 deletions(-) diff --git a/apps/beets-frontend-v3/package.json b/apps/beets-frontend-v3/package.json index 4b13c7843..14dac4ea4 100644 --- a/apps/beets-frontend-v3/package.json +++ b/apps/beets-frontend-v3/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "@apollo/client": "^3.11.8", - "@balancer/sdk": "1.3.0", + "@balancer/sdk": "1.4.0", "@chakra-ui/hooks": "2.4.2", "@chakra-ui/react": "2.10.4", "@chakra-ui/theme-tools": "2.2.6", diff --git a/packages/lib/config/networks/arbitrum.ts b/packages/lib/config/networks/arbitrum.ts index aa499a1dc..ad3871441 100644 --- a/packages/lib/config/networks/arbitrum.ts +++ b/packages/lib/config/networks/arbitrum.ts @@ -3,6 +3,8 @@ import { NetworkConfig } from '../config.types' import { convertHexToLowerCase } from '@repo/lib/shared/utils/objects' import { PoolIssue } from '@repo/lib/modules/pool/alerts/pool-issues/PoolIssue.type' import { CSP_ISSUE_POOL_IDS } from '@repo/lib/shared/data/csp-issue' +import { PERMIT2, VAULT_V3 } from '@balancer/sdk' +import { arbitrum } from 'viem/chains' const networkConfig: NetworkConfig = { chainId: 42161, @@ -50,11 +52,13 @@ const networkConfig: NetworkConfig = { multicall2: '0x80c7dd17b01855a6d2347444a0fcc36136a314de', balancer: { vaultV2: '0xBA12222222228d8Ba445958a75a0704d566BF2C8', + vaultV3: VAULT_V3[arbitrum.id], relayerV6: '0x9B892E515D2Ab8869F17488d64B3b918731cc70d', minter: '0xc3ccacE87f6d3A81724075ADcb5ddd85a8A1bB68', WeightedPool2TokensFactory: '0xCF0a32Bbef8F064969F21f7e02328FB577382018', }, veDelegationProxy: '0x81cFAE226343B24BA12EC6521Db2C79E7aeeb310', + permit2: PERMIT2[arbitrum.id], }, pools: convertHexToLowerCase({ issues: { diff --git a/packages/lib/config/networks/base.ts b/packages/lib/config/networks/base.ts index 514a702eb..b17f0feae 100644 --- a/packages/lib/config/networks/base.ts +++ b/packages/lib/config/networks/base.ts @@ -1,6 +1,8 @@ import { GqlChain } from '@repo/lib/shared/services/api/generated/graphql' import { NetworkConfig } from '../config.types' import { convertHexToLowerCase } from '@repo/lib/shared/utils/objects' +import { PERMIT2, VAULT_V3 } from '@balancer/sdk' +import { base } from 'viem/chains' const networkConfig: NetworkConfig = { chainId: 8453, @@ -43,10 +45,12 @@ const networkConfig: NetworkConfig = { multicall2: '0xca11bde05977b3631167028862be2a173976ca11', balancer: { vaultV2: '0xBA12222222228d8Ba445958a75a0704d566BF2C8', + vaultV3: VAULT_V3[base.id], relayerV6: '0x7C3C773C878d2238a9b64d8CEE02377BF07ED06a', minter: '0x0c5538098EBe88175078972F514C9e101D325D4F', }, veDelegationProxy: '0xD87F44Df0159DC78029AB9CA7D7e57E7249F5ACD', + permit2: PERMIT2[base.id], }, pools: convertHexToLowerCase({ issues: {} }), layerZeroChainId: 184, diff --git a/packages/lib/package.json b/packages/lib/package.json index d19418622..edcdbfd53 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -19,7 +19,7 @@ }, "dependencies": { "@apollo/client": "^3.11.8", - "@balancer/sdk": "1.3.0", + "@balancer/sdk": "1.4.0", "@chakra-ui/anatomy": "^2.2.2", "@chakra-ui/clickable": "^2.1.0", "@chakra-ui/hooks": "2.4.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7520ae8a3..0902bbed9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,8 +45,8 @@ importers: specifier: ^3.11.8 version: 3.11.8(@types/react@18.2.34)(graphql-ws@5.16.0(graphql@16.10.0))(graphql@16.10.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@balancer/sdk': - specifier: 1.3.0 - version: 1.3.0(bufferutil@4.0.8)(typescript@5.7.2)(utf-8-validate@5.0.10)(zod@3.24.1) + specifier: 1.4.0 + version: 1.4.0(bufferutil@4.0.8)(typescript@5.7.2)(utf-8-validate@5.0.10)(zod@3.24.1) '@chakra-ui/hooks': specifier: 2.4.2 version: 2.4.2(react@18.2.0) @@ -362,8 +362,8 @@ importers: specifier: ^3.11.8 version: 3.11.8(@types/react@18.2.34)(graphql-ws@5.16.0(graphql@16.10.0))(graphql@16.10.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@balancer/sdk': - specifier: 1.3.0 - version: 1.3.0(bufferutil@4.0.8)(typescript@5.7.2)(utf-8-validate@5.0.10)(zod@3.24.1) + specifier: 1.4.0 + version: 1.4.0(bufferutil@4.0.8)(typescript@5.7.2)(utf-8-validate@5.0.10)(zod@3.24.1) '@chakra-ui/anatomy': specifier: ^2.2.2 version: 2.2.2 @@ -1553,8 +1553,8 @@ packages: resolution: {integrity: sha512-L6mZmwFDK6Cjh1nRCLXpa6no13ZIioJDz7mdkzHv399pThrTa/k0nUlNaenOeh2kWu/iaOQYElEpKPUswUa9Vg==} engines: {node: '>=6.9.0'} - '@balancer/sdk@1.3.0': - resolution: {integrity: sha512-BIPzrAZJyUjE88c/gYWnVNh1AOYBUZMLhIjTmK/Cm1RFVWixgCEotSoCBZ9p55nAO9+Yo43dNFRyS3dLP1xvvg==} + '@balancer/sdk@1.4.0': + resolution: {integrity: sha512-mMcMh7BvGo1GdjgR3gT1iYf+H0UU5seo0hn+iP18qRe5KXVWL927FDdIVi9G8Z/eaO2lvfAA6moQqf1J74Yf6w==} engines: {node: '>=18.x'} '@bcoe/v8-coverage@0.2.3': @@ -1598,7 +1598,7 @@ packages: '@chakra-ui/descendant@3.1.0': resolution: {integrity: sha512-VxCIAir08g5w27klLyi7PVo8BxhW4tgU/lxQyujkmi4zx7hT9ZdrcQLAted/dAa+aSIZ14S1oV0Q9lGjsAdxUQ==} peerDependencies: - react: '>=18 || ^18.0.0' + react: '>=18' '@chakra-ui/dom-utils@2.1.0': resolution: {integrity: sha512-ZmF2qRa1QZ0CMLU8M1zCfmw29DmPNtfjR9iTo74U5FPr3i1aoAh7fbJ4qAlZ197Xw9eAW28tvzQuoVWeL5C7fQ==} @@ -1677,7 +1677,7 @@ packages: '@chakra-ui/react-context@2.1.0': resolution: {integrity: sha512-iahyStvzQ4AOwKwdPReLGfDesGG+vWJfEsn0X/NoGph/SkN+HXtv2sCfYFFR9k7bb+Kvc6YfpLlSuLvKMHi2+w==} peerDependencies: - react: '>=18 || ^18.0.0' + react: '>=18' '@chakra-ui/react-env@3.1.0': resolution: {integrity: sha512-Vr96GV2LNBth3+IKzr/rq1IcnkXv+MLmwjQH6C8BRtn3sNskgDFD5vLkVXcEhagzZMCh8FR3V/bzZPojBOyNhw==} @@ -1692,32 +1692,32 @@ packages: '@chakra-ui/react-use-animation-state@2.1.0': resolution: {integrity: sha512-CFZkQU3gmDBwhqy0vC1ryf90BVHxVN8cTLpSyCpdmExUEtSEInSCGMydj2fvn7QXsz/za8JNdO2xxgJwxpLMtg==} peerDependencies: - react: '>=18 || ^18.0.0' + react: '>=18' '@chakra-ui/react-use-callback-ref@2.1.0': resolution: {integrity: sha512-efnJrBtGDa4YaxDzDE90EnKD3Vkh5a1t3w7PhnRQmsphLy3g2UieasoKTlT2Hn118TwDjIv5ZjHJW6HbzXA9wQ==} peerDependencies: - react: '>=18 || ^18.0.0' + react: '>=18' '@chakra-ui/react-use-controllable-state@2.1.0': resolution: {integrity: sha512-QR/8fKNokxZUs4PfxjXuwl0fj/d71WPrmLJvEpCTkHjnzu7LnYvzoe2wB867IdooQJL0G1zBxl0Dq+6W1P3jpg==} peerDependencies: - react: '>=18 || ^18.0.0' + react: '>=18' '@chakra-ui/react-use-disclosure@2.1.0': resolution: {integrity: sha512-Ax4pmxA9LBGMyEZJhhUZobg9C0t3qFE4jVF1tGBsrLDcdBeLR9fwOogIPY9Hf0/wqSlAryAimICbr5hkpa5GSw==} peerDependencies: - react: '>=18 || ^18.0.0' + react: '>=18' '@chakra-ui/react-use-event-listener@2.1.0': resolution: {integrity: sha512-U5greryDLS8ISP69DKDsYcsXRtAdnTQT+jjIlRYZ49K/XhUR/AqVZCK5BkR1spTDmO9H8SPhgeNKI70ODuDU/Q==} peerDependencies: - react: '>=18 || ^18.0.0' + react: '>=18' '@chakra-ui/react-use-focus-effect@2.1.0': resolution: {integrity: sha512-xzVboNy7J64xveLcxTIJ3jv+lUJKDwRM7Szwn9tNzUIPD94O3qwjV7DDCUzN2490nSYDF4OBMt/wuDBtaR3kUQ==} peerDependencies: - react: '>=18 || ^18.0.0' + react: '>=18' '@chakra-ui/react-use-merge-refs@2.1.0': resolution: {integrity: sha512-lERa6AWF1cjEtWSGjxWTaSMvneccnAVH4V4ozh8SYiN9fSPZLlSG3kNxfNzdFvMEhM7dnP60vynF7WjGdTgQbQ==} @@ -1732,12 +1732,12 @@ packages: '@chakra-ui/react-use-safe-layout-effect@2.1.0': resolution: {integrity: sha512-Knbrrx/bcPwVS1TorFdzrK/zWA8yuU/eaXDkNj24IrKoRlQrSBFarcgAEzlCHtzuhufP3OULPkELTzz91b0tCw==} peerDependencies: - react: '>=18 || ^18.0.0' + react: '>=18' '@chakra-ui/react-use-update-effect@2.1.0': resolution: {integrity: sha512-ND4Q23tETaR2Qd3zwCKYOOS1dfssojPLJMLvUtUbW5M9uW1ejYWgGUobeAiOVfSplownG8QYMmHTP86p/v0lbA==} peerDependencies: - react: '>=18 || ^18.0.0' + react: '>=18' '@chakra-ui/react-utils@2.0.12': resolution: {integrity: sha512-GbSfVb283+YA3kA8w8xWmzbjNWk14uhNpntnipHCftBibl0lxtQ9YqMFQLwuFOO0U2gYVocszqqDWX+XNKq9hw==} @@ -11818,7 +11818,7 @@ snapshots: '@babel/helper-validator-identifier': 7.25.9 optional: true - '@balancer/sdk@1.3.0(bufferutil@4.0.8)(typescript@5.7.2)(utf-8-validate@5.0.10)(zod@3.24.1)': + '@balancer/sdk@1.4.0(bufferutil@4.0.8)(typescript@5.7.2)(utf-8-validate@5.0.10)(zod@3.24.1)': dependencies: decimal.js-light: 2.5.1 lodash.clonedeep: 4.5.0