Skip to content

Update: SDK V5 #478

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

Closed
wants to merge 24 commits into from
Closed

Update: SDK V5 #478

wants to merge 24 commits into from

Conversation

farhanW3
Copy link
Contributor

@farhanW3 farhanW3 commented Apr 3, 2024

PR-Codex overview

This PR updates to SDK V5 for thirdweb integration. Changes include exporting schemas, using new SDK methods, and updating contract handling.

Detailed summary

  • Updated thirdweb version to 5.6.0
  • Exported replyBodySchema in sharedApiSchemas.ts
  • Updated client creation in getClient.ts
  • Changed summary and description in totalCount.ts and index.ts
  • Updated schemas in erc20/index.ts and nft/index.ts
  • Updated contract handling in various routes

The following files were skipped due to too many changes: src/server/routes/contract/extensions/erc721/read/totalClaimedSupply.ts, src/server/routes/contract/extensions/erc721/read/totalUnclaimedSupply.ts, src/server/routes/contract/extensions/erc1155/read/get.ts, src/server/routes/contract/extensions/erc721/read/getAll.ts, src/server/routes/contract/extensions/erc1155/read/getAll.ts, src/server/routes/contract/extensions/erc721/read/get.ts, src/server/routes/contract/extensions/erc20/read/totalSupply.ts, src/server/routes/contract/extensions/erc20/read/balanceOf.ts, src/server/routes/contract/metadata/functions.ts, src/server/routes/contract/read/read.ts, src/server/routes/contract/extensions/erc20/read/allowanceOf.ts, src/server/routes/contract/metadata/events.ts, src/server/schemas/contract/index.ts, yarn.lock

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

zeet-co bot commented Apr 3, 2024

We're building your pull request over on Zeet.
Click me for more info about your build and deployment.
Once built, this branch can be tested at: https://web3-api-akbv-fk-sdk-unified.chainsaw-dev.zeet.app before merging 😉

Copy link

socket-security bot commented Apr 3, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@aws-sdk/client-kms@3.540.0 Transitive: environment, filesystem, network, shell +70 5.41 MB aws-sdk-bot
npm/@aws-sdk/types@3.535.0 None +1 282 kB aws-sdk-bot
npm/@babel/helper-module-imports@7.24.3 None 0 63.8 kB nicolo-ribaudo
npm/@babel/helper-plugin-utils@7.24.0 None 0 11.7 kB nicolo-ribaudo
npm/@babel/runtime@7.24.4 None +1 290 kB nicolo-ribaudo
npm/@emotion/serialize@1.1.4 environment +5 1.34 MB emotion-release-bot
npm/@eslint-community/regexpp@4.10.0 None 0 431 kB eslint-community-bot
npm/@fastify/error@3.4.1 None 0 18.5 kB jsumners
npm/@fastify/swagger@8.14.0 Transitive: environment +5 1.51 MB climba03003
npm/@fastify/type-provider-typebox@3.6.0 None 0 25.5 kB matteo.collina
npm/@fastify/websocket@8.3.1 None 0 83.5 kB matteo.collina
npm/@grpc/proto-loader@0.7.12 filesystem +7 348 kB murgatroid99
npm/@jridgewell/resolve-uri@3.1.2 None 0 53.2 kB jridgewell
npm/@lit-labs/ssr-dom-shim@1.2.0 environment 0 35.7 kB lit-robot
npm/@lit/reactive-element@1.6.3 None 0 788 kB lit-robot
npm/@motionone/animation@10.17.0 None +1 50.9 kB popmotion
npm/@motionone/dom@10.17.0 None +2 531 kB popmotion
npm/@motionone/types@10.17.0 None 0 15.4 kB popmotion
npm/@motionone/utils@10.17.0 None +1 40.7 kB popmotion
npm/@safe-global/safe-deployments@1.34.0 None 0 742 kB mikheevm
npm/@scure/base@1.1.6 None 0 80.4 kB paulmillr
npm/@smithy/middleware-retry@2.3.0 Transitive: environment, filesystem, network +25 1.17 MB smithy-team
npm/@t3-oss/env-core@0.6.1 environment 0 25.8 kB juliusmarminge
npm/@types/babel__traverse@7.20.5 None 0 84.1 kB types
npm/@types/cli-progress@3.11.5 None 0 12.9 kB types
npm/@types/connect@3.4.38 None 0 5.91 kB types
npm/@types/cookie@0.5.4 None 0 9.45 kB types
npm/@types/express@4.17.21 None +8 101 kB types
npm/@types/jest@29.5.12 None 0 78.7 kB types
npm/@types/json-schema@7.0.15 None 0 31.7 kB types
npm/@types/node-cron@3.0.11 None 0 6.23 kB types
npm/@types/node@18.19.29 None 0 1.96 MB types
npm/@types/pg@8.11.4 None +9 100 kB types
npm/@types/uuid@9.0.8 None 0 6.74 kB types
npm/@types/ws@8.5.10 None 0 21.7 kB types
npm/@typescript-eslint/eslint-plugin@5.62.0 Transitive: environment, filesystem +19 6.28 MB jameshenry
npm/@typescript-eslint/parser@5.62.0 Transitive: environment, filesystem +11 1.97 MB jameshenry
npm/bignumber.js@9.1.2 None 0 351 kB mikemcl
npm/commander@11.1.0 environment, filesystem, shell 0 177 kB abetomo
npm/d@1.0.2 None +1 103 kB medikoo
npm/dotenv@16.4.5 environment, filesystem 0 79.1 kB motdotla
npm/duplexify@4.1.3 None +1 22.8 kB mafintosh
npm/es5-ext@0.10.64 eval +5 588 kB medikoo
npm/es6-symbol@3.1.4 None +2 128 kB medikoo
npm/eslint-config-prettier@8.10.0 None 0 19.9 kB lydell
npm/eslint-visitor-keys@3.4.3 None 0 32.3 kB eslintbot
npm/eslint@8.57.0 environment, filesystem Transitive: eval, unsafe +46 8.84 MB eslintbot
npm/espree@9.6.1 None +1 98 kB eslintbot
npm/fast-json-stringify@5.13.0 eval Transitive: unsafe +7 1.1 MB matteo.collina
npm/fast-redact@3.5.0 eval 0 92.7 kB matteo.collina
npm/fast-uri@2.3.0 None 0 64.4 kB eomm
npm/fastify-plugin@4.5.1 None 0 40.3 kB matteo.collina
npm/fastify@4.26.2 Transitive: eval, unsafe +21 4.95 MB matteo.collina
npm/fastq@1.17.1 None 0 41.9 kB matteo.collina
npm/has-tostringtag@1.0.2 None +1 38.2 kB ljharb
npm/http-status-codes@2.3.0 None 0 223 kB prettymuchbryce
npm/keccak@3.0.4 None +1 1.58 MB fanatid
npm/node-cron@3.0.3 shell +1 184 kB merencia
npm/node-gyp-build@4.8.0 environment, filesystem 0 13.4 kB mafintosh
npm/pg-protocol@1.6.1 None 0 188 kB brianc
npm/pg@8.11.5 environment, network Transitive: filesystem +10 245 kB brianc
npm/pino-pretty@10.3.1 environment Transitive: filesystem +12 868 kB matteo.collina
npm/pino@8.19.0 environment, unsafe Transitive: eval +11 1.39 MB matteo.collina
npm/prisma@5.12.0 environment Transitive: eval, filesystem, shell +5 13.6 MB prismabot
npm/qs@6.12.0 None 0 245 kB ljharb
npm/rfdc@1.3.1 None 0 25.2 kB matteo.collina
npm/side-channel@1.0.6 None +2 133 kB ljharb
npm/ts-jest@29.1.2 environment, filesystem, unsafe Transitive: eval, network, shell +50 2 MB kul
npm/ts-node@10.9.2 environment, filesystem, unsafe +12 1.39 MB blakeembrey
npm/typescript@5.4.3 None 0 32.4 MB typescript-bot
npm/viem@1.21.4 network Transitive: environment +10 10.4 MB jmoxey
npm/web3-utils@1.10.4 Transitive: network +14 3.48 MB jdevcs
npm/which-typed-array@1.1.15 None +5 122 kB ljharb
npm/ws@8.16.0 environment, network +2 958 kB lpinca

🚮 Removed packages: npm/@aws-sdk/client-kms@3.398.0, npm/@aws-sdk/types@3.398.0, npm/@babel/code-frame@7.23.5, npm/@babel/core@7.23.6, npm/@babel/generator@7.23.6, npm/@babel/parser@7.23.6, npm/@babel/runtime@7.22.6, npm/@babel/template@7.22.15, npm/@babel/types@7.23.6, npm/@emotion/serialize@1.1.3, npm/@fastify/swagger@8.9.0, npm/@fastify/type-provider-typebox@3.2.0, npm/@fastify/websocket@8.2.0, npm/@lit-labs/ssr-dom-shim@1.1.1, npm/@lit/reactive-element@1.6.2, npm/@noble/hashes@1.3.1, npm/@safe-global/safe-deployments@1.26.0, npm/@scure/base@1.1.3, npm/@smithy/credential-provider-imds@2.0.5, npm/@smithy/property-provider@2.0.5, npm/@smithy/shared-ini-file-loader@2.0.5, npm/@t3-oss/env-core@0.6.0, npm/@types/babel__traverse@7.20.4, npm/@types/cli-progress@3.11.3, npm/@types/connect@3.4.35, npm/@types/cookie@0.5.1, npm/@types/express@4.17.17, npm/@types/jest@29.5.11, npm/@types/json-schema@7.0.11, npm/@types/mime@1.3.2, npm/@types/node-cron@3.0.8, npm/@types/node@18.16.6, npm/@types/pg@8.6.6, npm/@types/uuid@9.0.1, npm/@types/ws@8.5.5, npm/@typescript-eslint/eslint-plugin@5.59.5, npm/@typescript-eslint/parser@5.59.5, npm/acorn@8.8.2, npm/bignumber.js@9.1.1, npm/call-bind@1.0.2, npm/commander@11.0.0, npm/d@1.0.1, npm/dotenv@16.0.3, npm/duplexify@4.1.2, npm/es5-ext@0.10.62, npm/es6-symbol@3.1.3, npm/eslint-config-prettier@8.8.0, npm/eslint-visitor-keys@3.4.1, npm/eslint@8.40.0, npm/espree@9.5.2, npm/fast-redact@3.2.0, npm/fast-uri@2.2.0, npm/fastify-plugin@4.5.0, npm/fastify@4.17.0, npm/get-intrinsic@1.2.1, npm/http-status-codes@2.2.0, npm/is-core-module@2.12.1, npm/keccak@3.0.3, npm/node-cron@3.0.2, npm/node-gyp-build@4.6.0, npm/object-inspect@1.12.3, npm/pg-protocol@1.6.0, npm/pg@8.11.3, npm/pino-pretty@10.0.0, npm/pino@8.15.1, npm/prisma@5.2.0, npm/qs@6.11.2, npm/regenerator-runtime@0.13.11, npm/resolve@1.22.2, npm/rfdc@1.3.0, npm/side-channel@1.0.4, npm/thirdweb@5.1.0, npm/ts-jest@29.1.1, npm/ts-node@10.9.1, npm/typescript@5.1.3, npm/viem@1.14.0, npm/web3-utils@1.10.0, npm/which-typed-array@1.1.11, npm/word-wrap@1.2.3

View full report↗︎

Copy link

This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this PR will be closed in 3 days.

@farhanW3 farhanW3 requested a review from arcoraven April 16, 2024 01:20
Copy link

This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this PR will be closed in 3 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants