thirdweb-dev / engine

The most powerful backend engine for web3 apps.
https://thirdweb.com/engine
Apache License 2.0
152 stars 59 forks source link

Updates: Schemas, Naming, Tx Override, Packages #536

Closed farhanW3 closed 5 months ago

farhanW3 commented 5 months ago

We had added txOverrides on end-points but it was not being passed to queueTx(), thus not getting used. So updated that now.

So got the Typings updated for NFTMetadata.attributes / NFTMetadata.properties, but:

Redocly image

Engine SDK typing: image


PR-Codex overview

This PR updates various schemas and response objects in the server codebase.

Detailed summary

The following files were skipped due to too many changes: src/server/routes/backend-wallet/create.ts, src/server/routes/configuration/auth/get.ts, src/server/routes/configuration/cache/get.ts, src/server/routes/backend-wallet/update.ts, src/server/routes/backend-wallet/getTransactions.ts, src/server/routes/configuration/wallets/get.ts, src/server/routes/backend-wallet/withdraw.ts, src/server/routes/configuration/transactions/get.ts, src/server/routes/configuration/backend-wallet-balance/get.ts, src/server/routes/contract/extensions/accountFactory/read/isAccountDeployed.ts, src/server/routes/contract/extensions/accountFactory/read/predictAccountAddress.ts, src/server/routes/contract/extensions/account/read/getAllAdmins.ts, src/server/routes/contract/extensions/accountFactory/read/getAllAccounts.ts, src/server/routes/contract/extensions/accountFactory/read/getAssociatedAccounts.ts, src/server/routes/relayer/revoke.ts, src/server/routes/webhooks/revoke.ts, src/server/routes/relayer/index.ts, src/server/routes/backend-wallet/signMessage.ts, src/server/routes/auth/keypair/remove.ts, src/server/routes/auth/access-tokens/create.ts, src/server/routes/auth/access-tokens/revoke.ts, src/server/routes/configuration/auth/update.ts, src/server/routes/auth/permissions/revoke.ts, src/server/routes/configuration/cache/update.ts, src/server/routes/transaction/blockchain/sendSignedTx.ts, src/server/routes/backend-wallet/simulateTransaction.ts, src/server/routes/contract/extensions/erc721/read/signatureGenerate.ts, src/server/schemas/txOverrides.ts, src/server/routes/transaction/blockchain/sendSignedUserOp.ts, src/server/routes/auth/access-tokens/update.ts, src/server/schemas/nft/index.ts, src/server/routes/configuration/backend-wallet-balance/update.ts, src/server/routes/backend-wallet/signTransaction.ts, src/server/routes/contract/extensions/erc1155/read/signatureGenerate.ts, src/server/routes/backend-wallet/signTypedData.ts, src/server/routes/relayer/update.ts, src/server/routes/contract/extensions/account/read/getAllSessions.ts, src/server/routes/configuration/transactions/update.ts, src/server/routes/auth/keypair/add.ts, src/server/routes/configuration/wallets/update.ts, src/server/routes/configuration/chains/update.ts, src/server/routes/relayer/create.ts, src/server/routes/webhooks/create.ts, src/server/routes/backend-wallet/transfer.ts, src/server/routes/configuration/cors/set.ts, src/server/routes/configuration/cors/remove.ts, src/server/routes/configuration/cors/add.ts, src/server/routes/auth/permissions/grant.ts, src/server/routes/contract/write/write.ts, src/server/routes/contract/roles/write/grant.ts, src/server/routes/contract/roles/write/revoke.ts, src/server/routes/contract/extensions/erc20/write/mintBatchTo.ts, src/server/routes/contract/extensions/erc1155/write/updateTokenMetadata.ts, src/server/routes/contract/extensions/erc721/write/burn.ts, src/server/routes/contract/extensions/erc721/write/updateTokenMetadata.ts, src/server/routes/contract/extensions/erc20/write/burn.ts, src/server/routes/deploy/prebuilt.ts, src/server/routes/contract/extensions/erc721/write/lazyMint.ts, src/server/routes/contract/extensions/erc1155/write/burn.ts, src/server/routes/contract/extensions/erc721/write/transfer.ts, src/server/routes/contract/extensions/erc1155/write/lazyMint.ts, src/server/routes/contract/extensions/erc1155/write/burnBatch.ts, src/server/routes/contract/extensions/erc20/write/claimTo.ts, src/server/routes/contract/extensions/erc20/write/mintTo.ts, src/server/routes/contract/extensions/erc721/write/claimTo.ts, src/server/routes/contract/extensions/marketplaceV3/offers/write/acceptOffer.ts, src/server/routes/contract/extensions/erc1155/write/transfer.ts, src/server/routes/contract/extensions/erc20/write/transfer.ts, src/server/routes/contract/extensions/erc1155/write/airdrop.ts, src/server/routes/contract/extensions/erc721/write/mintTo.ts, src/server/routes/contract/extensions/erc20/write/burnFrom.ts, src/server/routes/contract/extensions/erc1155/write/claimTo.ts, src/server/routes/contract/extensions/erc721/write/transferFrom.ts, src/server/routes/contract/extensions/marketplaceV3/offers/write/cancelOffer.ts, src/server/routes/contract/extensions/erc20/write/updateClaimConditions.ts, src/server/routes/contract/extensions/erc20/write/setAllowance.ts, src/server/routes/contract/extensions/erc721/write/updateClaimConditions.ts, src/server/routes/contract/extensions/erc1155/write/transferFrom.ts, src/server/routes/contract/extensions/erc1155/write/mintTo.ts, src/server/routes/contract/extensions/erc721/write/mintBatchTo.ts, src/server/routes/contract/extensions/erc20/write/transferFrom.ts, src/server/routes/contract/extensions/erc20/write/signatureMint.ts, src/server/routes/contract/extensions/erc721/write/setApprovalForAll.ts, src/server/routes/contract/extensions/erc721/write/setApprovalForToken.ts, src/server/routes/contract/extensions/erc1155/write/updateClaimConditions.ts, src/server/routes/contract/extensions/erc721/write/signatureMint.ts, src/server/routes/contract/royalties/write/setTokenRoyaltyInfo.ts, src/server/routes/contract/extensions/erc1155/write/setApprovalForAll.ts, src/server/routes/contract/extensions/erc1155/write/signatureMint.ts, src/server/routes/contract/extensions/erc1155/write/mintBatchTo.ts, src/server/routes/deploy/prebuilts/pack.ts, src/server/routes/deploy/prebuilts/vote.ts, src/server/routes/contract/extensions/erc1155/write/setBatchClaimConditions.ts, src/server/routes/deploy/prebuilts/split.ts, src/server/routes/deploy/prebuilts/token.ts, src/server/routes/contract/extensions/marketplaceV3/directListings/write/approveBuyerForReservedListing.ts, src/server/routes/contract/extensions/marketplaceV3/directListings/write/buyFromListing.ts, src/server/routes/deploy/prebuilts/nftDrop.ts, src/server/routes/deploy/prebuilts/edition.ts, src/server/routes/contract/extensions/marketplaceV3/directListings/write/cancelListing.ts, src/server/routes/contract/extensions/erc1155/write/mintAdditionalSupplyTo.ts, src/server/routes/deploy/prebuilts/multiwrap.ts, src/server/routes/deploy/prebuilts/tokenDrop.ts, src/server/routes/contract/extensions/erc20/write/setClaimConditions.ts, src/server/routes/contract/extensions/erc721/write/setClaimConditions.ts, src/server/routes/deploy/prebuilts/editionDrop.ts, src/server/routes/contract/extensions/erc1155/write/setClaimConditions.ts, src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeBuyerApprovalForReservedListing.ts, src/server/routes/deploy/prebuilts/marketplaceV3.ts, src/server/routes/deploy/prebuilts/nftCollection.ts, src/server/routes/deploy/prebuilts/signatureDrop.ts, src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeCurrencyApprovalForListing.ts, src/server/routes/contract/extensions/marketplaceV3/offers/write/makeOffer.ts, src/server/routes/contract/extensions/marketplaceV3/directListings/write/updateListing.ts, src/server/routes/backend-wallet/sendTransactionBatch.ts, src/server/routes/contract/extensions/marketplaceV3/directListings/write/createListing.ts, src/server/routes/contract/royalties/write/setDefaultRoyaltyInfo.ts, src/server/routes/contract/extensions/account/write/revokeSession.ts, src/server/routes/deploy/published.ts, src/server/routes/contract/extensions/account/write/grantAdmin.ts, src/server/routes/contract/extensions/account/write/revokeAdmin.ts, src/server/routes/contract/extensions/accountFactory/write/createAccount.ts, src/server/routes/contract/extensions/account/write/updateSession.ts, src/server/routes/contract/extensions/account/write/grantSession.ts

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