Skip to content

Commit

Permalink
Feat/add batch transfer method to client methods (#1215)
Browse files Browse the repository at this point in the history
* feat(transfer): add method to client and type

* feat(err): simulation and tx error handlers

* feat(err): error handling test

* chore(pack): dep cleanup and updates
  • Loading branch information
bitbeckers authored Dec 6, 2023
1 parent 2637ed0 commit 1cc481f
Show file tree
Hide file tree
Showing 14 changed files with 3,082 additions and 1,992 deletions.
4,552 changes: 2,697 additions & 1,855 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion sdk/.graphclient/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,8 @@ export type DirectiveResolvers<ContextType = MeshContext & { graphName: string }
export type MeshContext = HypercertsTypes.Context & BaseMeshContext;


const baseDir = pathModule.join(typeof __dirname === 'string' ? __dirname : '/', '..');
import { fileURLToPath } from '@graphql-mesh/utils';
const baseDir = pathModule.join(pathModule.dirname(fileURLToPath(import.meta.url)), '..');

const importFn: ImportFn = <T>(moduleId: string) => {
const relativeModuleId = (pathModule.isAbsolute(moduleId) ? pathModule.relative(baseDir, moduleId) : moduleId).split('\\').join('/').replace(baseDir + '/', '');
Expand Down
67 changes: 29 additions & 38 deletions sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hypercerts-org/sdk",
"version": "1.0.0-alpha.14",
"version": "1.0.0-alpha.15",
"description": "SDK for hypercerts protocol",
"repository": "git@github.com:hypercerts-org/hypercerts.git",
"author": "Hypercerts team",
Expand All @@ -21,75 +21,67 @@
"package.json"
],
"dependencies": {
"@ethereum-attestation-service/eas-sdk": "1.2.2-beta.0",
"@ethereum-attestation-service/eas-sdk": "1.3.7",
"@ethersproject/abstract-signer": "^5.7.0",
"@graphprotocol/client-add-source-name": "^2.0.0",
"@graphprotocol/client-cli": "^3.0.0",
"@graphprotocol/client-polling-live": "^2.0.0",
"@graphql-mesh/cache-localforage": "^0.96.0",
"@graphql-mesh/cache-localforage": "^0.96.1",
"@graphql-mesh/cross-helpers": "^0.4.1",
"@graphql-mesh/graphql": "^0.96.0",
"@graphql-mesh/http": "^0.96.13",
"@graphql-mesh/merger-bare": "^0.95.7",
"@graphql-mesh/runtime": "^0.96.12",
"@graphql-mesh/store": "^0.95.7",
"@graphql-mesh/utils": "^0.95.7",
"@graphql-mesh/graphql": "^0.96.1",
"@graphql-mesh/http": "^0.97.2",
"@graphql-mesh/merger-bare": "^0.96.1",
"@graphql-mesh/runtime": "^0.97.2",
"@graphql-mesh/store": "^0.96.1",
"@graphql-mesh/utils": "^0.96.1",
"@graphql-typed-document-node/core": "^3.2.0",
"@hypercerts-org/contracts": "1.0.0-alpha.6",
"@openzeppelin/merkle-tree": "^1.0.5",
"@whatwg-node/fetch": "^0.9.13",
"ajv": "^8.11.2",
"axios": "^1.2.2",
"axios": "^1.6.2",
"dotenv": "^16.0.3",
"ethers": "5.7.2",
"graphql": "^16.6.0",
"ipfs-core": "^0.17.0",
"loglevel": "^1.8.1",
"mime": "^3.0.0",
"nft.storage": "^7.1.1",
"viem": "^1.19.9",
"web3.storage": "^4.5.5"
},
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@babel/preset-typescript": "^7.23.2",
"@faker-js/faker": "^8.0.2",
"@babel/core": "^7.23.5",
"@babel/preset-env": "^7.23.5",
"@babel/preset-typescript": "^7.23.3",
"@faker-js/faker": "^8.3.1",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@types/chai": "^4.3.4",
"@types/chai-subset": "^1.3.3",
"@types/jest": "^29.2.5",
"@types/mocha": "9.1.0",
"@types/chai": "^4.3.11",
"@types/chai-subset": "^1.3.5",
"@types/node": "^18.11.17",
"@types/sinon": "^10.0.15",
"@types/sinon": "^17.0.2",
"@viem/anvil": "^0.0.6",
"abitype": "^0.10.2",
"abitype": "^0.10.3",
"chai": "^4.3.7",
"chai-assertions-count": "^1.0.2",
"chai-subset": "^1.6.0",
"esbuild": "^0.17.10",
"ethereum-waffle": "^4.0.10",
"it-all": "^2.0.0",
"json-schema-to-typescript": "^12.0.0",
"esbuild": "^0.19.8",
"it-all": "^3.0.4",
"json-schema-to-typescript": "^13.1.1",
"nyc": "^15.1.0",
"rollup": "^3.17.2",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-dts": "^5.2.0",
"rollup-plugin-esbuild": "^5.0.0",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-esbuild": "^6.1.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"shx": "^0.3.4",
"sinon": "^15.2.0",
"ts-mocha": "^10.0.0",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0",
"ts-node": "^10.9.1",
"tslib": "^2.5.0",
"tsx": "^3.14.0",
"typedoc": "^0.23.25",
"typedoc-plugin-markdown": "^3.14.0",
"typedoc": "^0.25.4",
"typedoc-plugin-markdown": "^3.17.1",
"typedoc-plugin-missing-exports": "^2.0.0",
"typescript": "5.1.6",
"vitest": "^0.28.4"
"typescript": "5.3.2",
"vitest": "^1.0.1"
},
"scripts": {
"build": "pnpm types:json && pnpm graph:build && rollup -c",
Expand All @@ -98,7 +90,6 @@
"graph:serve": "graphclient serve-dev",
"graph:watch": "graphql-codegen -w",
"graph:build": "rm -rf ./src/.graphclient && graphclient build --throwOnInvalidConfig",
"graph:build:esm": "rm -rf ./src/.graphclient && NODE_OPTIONS='--loader ts-node/esm' graphclient build --throwOnInvalidConfig",
"clean": "rm -rf ./dist",
"prebuild": "pnpm clean",
"prepack": "pnpm build",
Expand Down
Loading

0 comments on commit 1cc481f

Please sign in to comment.