Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(sdk): Outstanding Issues in Multi-Chain Feature for SDK #748

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/explorer-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- dev
- release/*
- feat/multichain
push:
branches:
- main
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/explorer-deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
branches:
- dev
- feat/multichain
paths:
- explorer/**

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- dev
- release/*
- feat/multichain
push:
branches:
- main
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- dev
- release/*
- feat/multichain
push:
branches:
- main
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/smart-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- dev
- release/*
- feat/multichain
push:
branches:
- main
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- dev
- release/*
- feat/multichain
push:
branches:
- main
Expand Down
4 changes: 2 additions & 2 deletions explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@tanstack/react-table": "^8.10.7",
"@verax-attestation-registry/verax-sdk": "2.0.0",
"@verax-attestation-registry/verax-sdk": "3.0.0-beta-4",
"@wagmi/core": "^1.4.7",
"abitype": "^0.10.3",
"class-variance-authority": "^0.7.0",
Expand Down Expand Up @@ -71,7 +71,7 @@
"prettier": "^3.1.0",
"tailwindcss": "^3.3.5",
"typescript": "5.2.2",
"vite": "^4.5.3",
"vite": "^5.4.8",
"vite-plugin-radar": "^0.9.1",
"vite-plugin-svgr": "^4.2.0"
}
Expand Down
8 changes: 0 additions & 8 deletions explorer/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,4 @@ export default defineConfig({
"@": path.resolve(__dirname, "./src"),
},
},
optimizeDeps: {
include: ["@verax-attestation-registry/verax-sdk"],
},
build: {
commonjsOptions: {
include: [/@verax-attestation-registry\/verax-sdk/, /node_modules/],
},
},
});
2,596 changes: 1,513 additions & 1,083 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/.graphclient/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,7 @@ sources[0] = {
}
const additionalTypeDefs = [parse("extend type Attestation {\n chainName: String\n}\n\nextend type Portal {\n chainName: String\n}\n\nextend type Schema {\n chainName: String\n}\n\nextend type Module {\n chainName: String\n}\n\nextend type Query {\n multichainAttestations(chainNames: [String!]!, first: Int, skip: Int, where: Attestation_filter, orderBy: Attestation_orderBy, orderDirection: OrderDirection): [Attestation!]!\n multichainPortals(chainNames: [String!]!, first: Int, skip: Int, where: Portal_filter, orderBy: Portal_orderBy, orderDirection: OrderDirection): [Portal!]!\n multichainSchemas(chainNames: [String!]!, first: Int, skip: Int, where: Schema_filter, orderBy: Schema_orderBy, orderDirection: OrderDirection): [Schema!]!\n multichainModules(chainNames: [String!]!, first: Int, skip: Int, where: Module_filter, orderBy: Module_orderBy, orderDirection: OrderDirection): [Module!]!\n}"),] as any[];
const additionalResolvers = await Promise.all([
import("../src/resolvers.ts")
import("../src/resolvers")
.then(m => m.resolvers || m.default || m)
]);
const merger = new(BareMerger as any)({
Expand Down
2 changes: 1 addition & 1 deletion sdk/.graphclientrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ additionalTypeDefs: |
}

additionalResolvers:
- ./src/resolvers.ts
- ./src/resolvers

documents:
- ./queries.graphql
Expand Down
5 changes: 3 additions & 2 deletions sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@verax-attestation-registry/verax-sdk",
"version": "3.0.0-beta-2",
"version": "3.0.0-beta-4",
"description": "Verax Attestation Registry SDK to interact with the subgraph and the contracts",
"keywords": [
"linea-attestation-registry",
Expand All @@ -22,7 +22,7 @@
],
"scripts": {
"attestation": "ts-node examples/attestation/index.ts",
"build": "pnpm run clean && tsc --p ./tsconfig.build.json",
"build": "pnpm run clean && tsc --p ./tsconfig.build.json && esbuild src/VeraxSdk.ts --bundle --define:process.env.NODE_ENV='\"production\"' --define:process.env.NODE_DEBUG='false' --outfile=lib/src/VeraxSdk.js --format=esm && sed -i '' '/var asyncImport = (moduleName) => import(`\\${moduleName}`);/d' lib/src/VeraxSdk.js",
"clean": "rm -rf ./lib",
"generate": "graphclient build",
"module": "ts-node examples/module/index.ts",
Expand Down Expand Up @@ -63,6 +63,7 @@
"@types/node": "^18.16.20",
"babel-jest": "^29.7.0",
"babel-plugin-transform-import-meta": "^2.2.1",
"esbuild": "^0.24.0",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
Expand Down
Loading