Skip to content

Commit

Permalink
chore(updates): api submodule and arb sep contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbeckers committed Aug 5, 2024
1 parent ba85f61 commit 7ac979e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]:hypercerts-org/hypercerts.git",
"author": "Hypercerts team",
Expand All @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions sdk/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
3 changes: 1 addition & 2 deletions sdk/src/types/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions sdk/src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7ac979e

Please sign in to comment.