diff --git a/.changeset/shaggy-lies-poke.md b/.changeset/shaggy-lies-poke.md index 0cfe986..55d31e2 100644 --- a/.changeset/shaggy-lies-poke.md +++ b/.changeset/shaggy-lies-poke.md @@ -2,4 +2,4 @@ "@valorem-labs-inc/react-hooks": patch --- -add arbitrum sepolia deployments +add arbitrum sepolia deployments; drop arbitrum goerli diff --git a/package.json b/package.json index a8aa100..05547e7 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "@connectrpc/connect-query": "0.5.3", "@connectrpc/connect-web": "^1.2.0", "@tanstack/react-query": "^4.36.1", - "@valorem-labs-inc/sdk": "^0.0.11-alpha.2", + "@valorem-labs-inc/sdk": "^0.0.11-alpha.3", "@wagmi/core": "^1.4.12", "abitype": "0.8.7", "connectkit": "^1.5.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 23db1aa..7533d54 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -28,8 +28,8 @@ dependencies: specifier: ^4.36.1 version: 4.36.1(react-dom@18.2.0)(react@18.2.0) '@valorem-labs-inc/sdk': - specifier: ^0.0.11-alpha.2 - version: 0.0.11-alpha.2(@bufbuild/protobuf@1.6.0)(@connectrpc/connect@1.2.0)(@wagmi/core@1.4.12)(typescript@5.3.3)(viem@1.21.1) + specifier: ^0.0.11-alpha.3 + version: 0.0.11-alpha.3(@bufbuild/protobuf@1.6.0)(@connectrpc/connect@1.2.0)(@wagmi/core@1.4.12)(typescript@5.3.3)(viem@1.21.1) typescript: specifier: ^5.3.0 version: 5.3.3 @@ -3718,8 +3718,8 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@valorem-labs-inc/sdk@0.0.11-alpha.2(@bufbuild/protobuf@1.6.0)(@connectrpc/connect@1.2.0)(@wagmi/core@1.4.12)(typescript@5.3.3)(viem@1.21.1): - resolution: {integrity: sha512-kJuejVLzEc6USV3jvW86zyywL/Znkyxy72jhXDo7m9EgbBHgfLBQhVBn+zNZDoUckS5g+QQf70y338bHjSTx3Q==, tarball: https://npm.pkg.github.com/download/@valorem-labs-inc/sdk/0.0.11-alpha.2/9697ebc782455bea525a541fb8861f61cb4275cf} + /@valorem-labs-inc/sdk@0.0.11-alpha.3(@bufbuild/protobuf@1.6.0)(@connectrpc/connect@1.2.0)(@wagmi/core@1.4.12)(typescript@5.3.3)(viem@1.21.1): + resolution: {integrity: sha512-pCxxa45mgsRNNgFS6IcClyJJ9k6NyEEvJhM6Iw/+ymvi+3pEMb+ktBUKTWVtCq+aM1D2qUWIwkVjpstE0H9OPQ==, tarball: https://npm.pkg.github.com/download/@valorem-labs-inc/sdk/0.0.11-alpha.3/a91bb37999d36c5f66714b13a255680724c99436} engines: {node: '>=18'} peerDependencies: '@bufbuild/protobuf': ^1.6.0 @@ -3727,9 +3727,6 @@ packages: '@wagmi/core': ^1.4.12 typescript: ^5.3.0 viem: ^1.21.1 - peerDependenciesMeta: - typescript: - optional: true dependencies: '@bufbuild/protobuf': 1.6.0 '@connectrpc/connect': 1.2.0(@bufbuild/protobuf@1.6.0) diff --git a/src/hooks/useRFQ.test.ts b/src/hooks/useRFQ.test.ts index 58904e9..9584a7d 100644 --- a/src/hooks/useRFQ.test.ts +++ b/src/hooks/useRFQ.test.ts @@ -73,7 +73,7 @@ describe('useRFQ', () => { useRFQ({ quoteRequest: new QuoteRequest({ ulid: undefined, - chainId: toH256(BigInt(421613)), + chainId: toH256(BigInt(421614)), seaportAddress: toH160(hexToBigInt(SEAPORT_ADDRESS)), takerAddress: toH160( hexToBigInt('0xb5CF0aC8935Ac3f238B972e465c98BA7E23Dd346'), diff --git a/test/WagmiProvider.tsx b/test/WagmiProvider.tsx index b0f8913..f3845e4 100644 --- a/test/WagmiProvider.tsx +++ b/test/WagmiProvider.tsx @@ -1,7 +1,7 @@ import type { PropsWithChildren } from 'react'; import { WagmiConfig, createConfig, configureChains } from 'wagmi'; import { publicProvider } from 'wagmi/providers/public'; -import { arbitrumGoerli } from 'viem/chains'; +import { arbitrumSepolia } from 'viem/chains'; import { createWalletClient, http } from 'viem'; import { privateKeyToAccount } from 'viem/accounts'; import { MockConnector } from 'wagmi/connectors/mock'; @@ -11,7 +11,7 @@ import { MockConnector } from 'wagmi/connectors/mock'; * Uses the publicProvider as the default provider for transactions. */ const { publicClient, webSocketPublicClient } = configureChains( - [arbitrumGoerli], + [arbitrumSepolia], [publicProvider()], ); @@ -27,10 +27,10 @@ const PRIVATE_KEY = * It creates a wallet client with a given private key and associated chain. */ const mockConnector = new MockConnector({ - chains: [arbitrumGoerli], + chains: [arbitrumSepolia], options: { walletClient: createWalletClient({ - chain: arbitrumGoerli, + chain: arbitrumSepolia, account: privateKeyToAccount(PRIVATE_KEY), transport: http(), }), diff --git a/test/index.tsx b/test/index.tsx index 7e832eb..de1b635 100644 --- a/test/index.tsx +++ b/test/index.tsx @@ -7,6 +7,7 @@ import { WagmiProvider } from './WagmiProvider'; import { FC, PropsWithChildren } from 'react'; import { ValoremProvider } from '../src/context'; import { LogLevel } from '../src/context/Logger'; +import { SupportedAsset } from '@valorem-labs-inc/sdk'; /** * A wrapper component that encapsulates the ValoremProvider within the WagmiProvider. @@ -59,6 +60,12 @@ export function renderHook( // Re-export act and cleanup from the testing library for convenience. export { act, cleanup } from '@testing-library/react'; -// Addresses for mock USDC and WETH on Arbitrum Goerli used for testing purposes. -export const USDC_ADDRESS = '0x8AE0EeedD35DbEFe460Df12A20823eFDe9e03458'; -export const WETH_ADDRESS = '0x618b9a2Db0CF23Bb20A849dAa2963c72770C1372'; +// Addresses for mock USDC and WETH on Arbitrum Sepolia used for testing purposes. +export const USDC_ADDRESS = SupportedAsset.fromSymbolAndChainId( + 'USDC', + 421614, +).address; +export const WETH_ADDRESS = SupportedAsset.fromSymbolAndChainId( + 'WETH', + 421614, +).address; diff --git a/wagmi.config.ts b/wagmi.config.ts index bfc6eb5..ac70649 100644 --- a/wagmi.config.ts +++ b/wagmi.config.ts @@ -20,7 +20,6 @@ export default defineConfig({ address: { 1: CLEAR_ADDRESS, 42161: CLEAR_ADDRESS, - 421613: CLEAR_ADDRESS, 421614: CLEAR_ADDRESS, 31337: FOUNDRY_CLEAR_ADDRESS, },