diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 68b1cb58..9835c627 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -233,8 +233,8 @@ importers: specifier: ^3.2.0 version: 3.2.0(graphql@16.8.1) '@hypercerts-org/contracts': - specifier: 2.0.0-alpha.1 - version: 2.0.0-alpha.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.6.3)(@types/node@20.14.5)(typescript@5.4.5))(typescript@5.4.5)(utf-8-validate@5.0.10) + specifier: 2.0.0-alpha.2 + version: 2.0.0-alpha.2(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.6.3)(@types/node@20.14.5)(typescript@5.4.5))(typescript@5.4.5)(utf-8-validate@5.0.10) '@openzeppelin/merkle-tree': specifier: ^1.0.7 version: 1.0.7 @@ -1868,8 +1868,8 @@ packages: resolution: {integrity: sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==} deprecated: Use @eslint/object-schema instead - '@hypercerts-org/contracts@2.0.0-alpha.1': - resolution: {integrity: sha512-t+2eYorMC7GjFJCmwqIQzqbxBMATG+/zXJL6BFwJQPRCQEAcQhh4tuwcBhIvPz1kQj2capetZyAPO6gKmgtzig==} + '@hypercerts-org/contracts@2.0.0-alpha.2': + resolution: {integrity: sha512-exDhDJBPoe8uVD5DUqRXFzm4+c8062vYdvpreHpnAn2IPoyn8j5bmX8Qt7DXutS+nyDuibh4HK8UB/A3u7wBoA==} '@ibm-cloud/openapi-ruleset-utilities@1.3.2': resolution: {integrity: sha512-pDZ+YTawZBAMgxfGG0JeCizh7Brmz8h4WRQaJvfJaRfgfdFmp5xZ64oqvnpJQ16XjCdNMBkTB6NJCZjQzq1gpQ==} @@ -12405,7 +12405,7 @@ snapshots: '@humanwhocodes/object-schema@2.0.1': {} - '@hypercerts-org/contracts@2.0.0-alpha.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.6.3)(@types/node@20.14.5)(typescript@5.4.5))(typescript@5.4.5)(utf-8-validate@5.0.10)': + '@hypercerts-org/contracts@2.0.0-alpha.2(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.6.3)(@types/node@20.14.5)(typescript@5.4.5))(typescript@5.4.5)(utf-8-validate@5.0.10)': dependencies: hardhat: 2.22.6(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.6.3)(@types/node@20.14.5)(typescript@5.4.5))(typescript@5.4.5)(utf-8-validate@5.0.10) transitivePeerDependencies: diff --git a/sdk/package.json b/sdk/package.json index 83daca0e..5c06d6f6 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@hypercerts-org/sdk", - "version": "2.0.0-alpha.32", + "version": "2.0.0-alpha.33", "description": "SDK for hypercerts protocol", "repository": "git@github.com:hypercerts-org/hypercerts.git", "author": "Hypercerts team", @@ -22,7 +22,7 @@ ], "dependencies": { "@graphql-typed-document-node/core": "^3.2.0", - "@hypercerts-org/contracts": "2.0.0-alpha.1", + "@hypercerts-org/contracts": "2.0.0-alpha.2", "@openzeppelin/merkle-tree": "^1.0.7", "@swc/core": "^1.6.3", "ajv": "^8.11.2", diff --git a/sdk/src/constants.ts b/sdk/src/constants.ts index 83d863be..7ffc6c25 100644 --- a/sdk/src/constants.ts +++ b/sdk/src/constants.ts @@ -41,6 +41,11 @@ const DEPLOYMENTS: { [key in SupportedChainIds]: Deployment } = { addresses: deployments[84532], isTestnet: true, } as const, + 421614: { + chainId: 421614, + addresses: deployments[421614], + isTestnet: true, + } as const, }; export { ENDPOINTS, DEPLOYMENTS }; diff --git a/sdk/src/types/client.ts b/sdk/src/types/client.ts index bbae7ba3..7b25abcd 100644 --- a/sdk/src/types/client.ts +++ b/sdk/src/types/client.ts @@ -4,13 +4,12 @@ import { HypercertMetadata } from "./metadata"; import { ByteArray, Hex, PublicClient, WalletClient } from "viem"; import { AxiosRequestConfig } from "axios"; -export type TestChainIds = 11155111 | 84532; +export type TestChainIds = 11155111 | 84532 | 421614; export type ProductionChainIds = 10 | 42220 | 8453; /** * Enum to verify the supported chainIds * - * @note 10 = Optimism, 42220 = Celo, 11155111 = Sepolia, 84532 = Base Sepolia, 8453 = Base Mainnet */ export type SupportedChainIds = TestChainIds | ProductionChainIds; diff --git a/sdk/src/utils/config.ts b/sdk/src/utils/config.ts index ce4fdd65..04961097 100644 --- a/sdk/src/utils/config.ts +++ b/sdk/src/utils/config.ts @@ -17,6 +17,7 @@ import { createPublicClient, http } from "viem"; * - 11155111: Sepolia * - 84532: Base Sepolia * - 8453: Base Mainnet + * - 421613: Arbitrum Sepolia * * @param config - An object containing any configuration values to override. This should be a partial HypercertClientConfig object. * @returns The final configuration object for the Hypercert client.