From ec0ec225a1c456b6dbf7138c70bf524a57bc9094 Mon Sep 17 00:00:00 2001 From: samuelea Date: Tue, 26 Mar 2024 15:19:01 -0400 Subject: [PATCH 1/2] more metadata opptions --- examples/react/package.json | 8 +- packages/checkout/src/api/data.tsx | 11 +- packages/wallet/src/api/data.tsx | 8 +- pnpm-lock.yaml | 158 ++--------------------------- 4 files changed, 29 insertions(+), 156 deletions(-) diff --git a/examples/react/package.json b/examples/react/package.json index 32820ae2..ff891a34 100644 --- a/examples/react/package.json +++ b/examples/react/package.json @@ -7,10 +7,10 @@ "dependencies": { "0xsequence": "^1.9.11", "@0xsequence/design-system": "^1.1.0", - "@0xsequence/kit": "^2.0.0", - "@0xsequence/kit-checkout": "^2.0.0", - "@0xsequence/kit-connectors": "^2.0.0", - "@0xsequence/kit-wallet": "^2.0.0", + "@0xsequence/kit": "workspace:*", + "@0xsequence/kit-checkout": "workspace:*", + "@0xsequence/kit-connectors": "workspace:*", + "@0xsequence/kit-wallet": "workspace:*", "@tanstack/react-query": "^4.36.1", "@vanilla-extract/css": "^1.9.3", "ethers": "^5.7.2", diff --git a/packages/checkout/src/api/data.tsx b/packages/checkout/src/api/data.tsx index 259aec07..c4fadaa0 100644 --- a/packages/checkout/src/api/data.tsx +++ b/packages/checkout/src/api/data.tsx @@ -38,7 +38,13 @@ export const getTokenBalances = async ({ accountAddress, chainId }: GetTokenBala try { const { indexerClient } = await getNetworkConfigAndClients(chainId) - const res = await indexerClient.getTokenBalances({ accountAddress, includeMetadata: true}) + const res = await indexerClient.getTokenBalances({ + accountAddress, + includeMetadata: true, + metadataOptions: { + verifiedOnly: true + } + }) return res?.balances || [] } catch(e) { @@ -82,6 +88,9 @@ export const fetchCollectionBalance = async ({ accountAddress, chainId, collecti accountAddress, includeMetadata: true, contractAddress: collectionAddress, + metadataOptions: { + verifiedOnly: true + } }) return res?.balances || [] diff --git a/packages/wallet/src/api/data.tsx b/packages/wallet/src/api/data.tsx index 82ce45f5..2bc4d464 100644 --- a/packages/wallet/src/api/data.tsx +++ b/packages/wallet/src/api/data.tsx @@ -162,6 +162,9 @@ export const fetchCollectionBalance = async ({ accountAddress, includeMetadata, contractAddress: collectionAddress, + metadataOptions: { + verifiedOnly: true + } }) return res?.balances || [] @@ -378,7 +381,10 @@ export const getCollectibleBalance = async ({ accountAddress, includeMetadata: true, contractAddress: collectionAddress, - tokenID: tokenId + tokenID: tokenId, + metadataOptions: { + verifiedOnly: true + } }) const tokenBalance = res.balances[0] diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f5a5bd45..b240278c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -144,17 +144,17 @@ importers: specifier: ^1.1.0 version: 1.2.3(@types/react-dom@18.2.19)(@types/react@18.2.55)(framer-motion@8.5.5)(react-dom@18.2.0)(react@18.2.0) '@0xsequence/kit': - specifier: ^2.0.0 - version: 2.0.6(0xsequence@1.9.11)(@types/react-dom@18.2.19)(@types/react@18.2.55)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(viem@2.7.9)(wagmi@2.5.7) + specifier: workspace:* + version: link:../../packages/kit '@0xsequence/kit-checkout': - specifier: ^2.0.0 - version: 2.0.6(@0xsequence/design-system@1.2.3)(@0xsequence/kit@2.0.6)(@babel/core@7.23.9)(@vanilla-extract/css@1.14.1)(@vanilla-extract/recipes@0.3.0)(ethers@5.7.2)(framer-motion@8.5.5)(react-dom@18.2.0)(react-native@0.73.4)(react@18.2.0)(wagmi@2.5.7) + specifier: workspace:* + version: link:../../packages/checkout '@0xsequence/kit-connectors': - specifier: ^2.0.0 - version: 2.0.6(0xsequence@1.9.11)(@0xsequence/design-system@1.2.3)(@0xsequence/kit@2.0.6)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(viem@2.7.9)(wagmi@2.5.7) + specifier: workspace:* + version: link:../../packages/connectors '@0xsequence/kit-wallet': - specifier: ^2.0.0 - version: 2.0.6(@0xsequence/design-system@1.2.3)(@0xsequence/kit@2.0.6)(@types/react-dom@18.2.19)(@types/react@18.2.55)(@vanilla-extract/css@1.14.1)(@vanilla-extract/recipes@0.3.0)(ethers@5.7.2)(framer-motion@8.5.5)(react-dom@18.2.0)(react-native@0.73.4)(react@18.2.0)(wagmi@2.5.7) + specifier: workspace:* + version: link:../../packages/wallet '@tanstack/react-query': specifier: ^4.36.1 version: 4.36.1(react-dom@18.2.0)(react-native@0.73.4)(react@18.2.0) @@ -578,148 +578,6 @@ packages: /@0xsequence/indexer@1.9.11: resolution: {integrity: sha512-YsaY+oRuE1WS0CG203HBbC8iz9F2I8LvxbGW0Q9YxhJuQGYD9UJ1IncGh9qYG7b60Sz8qvZGSFsG7X5PYyEsRg==} - /@0xsequence/kit-checkout@2.0.6(@0xsequence/design-system@1.2.3)(@0xsequence/kit@2.0.6)(@babel/core@7.23.9)(@vanilla-extract/css@1.14.1)(@vanilla-extract/recipes@0.3.0)(ethers@5.7.2)(framer-motion@8.5.5)(react-dom@18.2.0)(react-native@0.73.4)(react@18.2.0)(wagmi@2.5.7): - resolution: {integrity: sha512-5oRPoS1utL8qok7XUL1S4z+3UMU7r+vm1hNg9IAt7z8ZJiPfaeXgHHWvG3dRMx5Bv/EQc1OtCRg/CwLKYX0A9g==} - peerDependencies: - '@0xsequence/design-system': '>=1.1.0' - '@0xsequence/kit': 2.0.6 - '@vanilla-extract/css': '>=1.9.3' - '@vanilla-extract/recipes': '>=0.3.0' - ethers: '>=5.7.2' - framer-motion: '>=8.5.2' - react: '>=17' - react-dom: '>=17' - wagmi: '>=2.0.0' - dependencies: - 0xsequence: 1.9.11(ethers@5.7.2) - '@0xsequence/api': 1.9.11 - '@0xsequence/design-system': 1.2.3(@types/react-dom@18.2.19)(@types/react@18.2.55)(framer-motion@8.5.5)(react-dom@18.2.0)(react@18.2.0) - '@0xsequence/indexer': 1.9.11 - '@0xsequence/kit': 2.0.6(0xsequence@1.9.11)(@types/react-dom@18.2.19)(@types/react@18.2.55)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(viem@2.7.9)(wagmi@2.5.7) - '@0xsequence/metadata': 1.9.11 - '@0xsequence/network': 1.9.11(ethers@5.7.2) - '@paperxyz/react-client-sdk': 1.1.5(@babel/core@7.23.9)(react-dom@18.2.0)(react@18.2.0) - '@tanstack/react-query': 4.36.1(react-dom@18.2.0)(react-native@0.73.4)(react@18.2.0) - '@vanilla-extract/css': 1.14.1 - '@vanilla-extract/recipes': 0.3.0(@vanilla-extract/css@1.14.1) - ethers: 5.7.2 - framer-motion: 8.5.5(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-copy-to-clipboard: 5.1.0(react@18.2.0) - react-dom: 18.2.0(react@18.2.0) - wagmi: 2.5.7(@tanstack/react-query@4.36.1)(@types/react@18.2.55)(react-dom@18.2.0)(react-native@0.73.4)(react@18.2.0)(rollup@2.79.1)(typescript@5.3.3)(viem@2.7.9) - transitivePeerDependencies: - - '@babel/core' - - bufferutil - - react-native - - utf-8-validate - dev: false - - /@0xsequence/kit-connectors@2.0.6(0xsequence@1.9.11)(@0xsequence/design-system@1.2.3)(@0xsequence/kit@2.0.6)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(viem@2.7.9)(wagmi@2.5.7): - resolution: {integrity: sha512-ZV/pzY+tiXCeiyxzxXFEZ3IHpHEBBSvf8IX6KJ80+1+69Xxtd6du6rOBJiWb3GiLI6zRh1HDMLoZtPsu1IZJgQ==} - peerDependencies: - 0xsequence: '>=1.9.11' - '@0xsequence/design-system': '>=1.1.0' - '@0xsequence/kit': 2.0.6 - ethers: '>=5.7.2' - react: '>=17' - react-dom: '>=17' - viem: '>=2.0.0' - wagmi: '>=2.0.0' - dependencies: - 0xsequence: 1.9.11(ethers@5.7.2) - '@0xsequence/design-system': 1.2.3(@types/react-dom@18.2.19)(@types/react@18.2.55)(framer-motion@8.5.5)(react-dom@18.2.0)(react@18.2.0) - '@0xsequence/kit': 2.0.6(0xsequence@1.9.11)(@types/react-dom@18.2.19)(@types/react@18.2.55)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(viem@2.7.9)(wagmi@2.5.7) - '@0xsequence/provider': 1.9.11(ethers@5.7.2) - ethers: 5.7.2 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - viem: 2.7.9(typescript@5.3.3) - wagmi: 2.5.7(@tanstack/react-query@4.36.1)(@types/react@18.2.55)(react-dom@18.2.0)(react-native@0.73.4)(react@18.2.0)(rollup@2.79.1)(typescript@5.3.3)(viem@2.7.9) - transitivePeerDependencies: - - bufferutil - - utf-8-validate - dev: false - - /@0xsequence/kit-wallet@2.0.6(@0xsequence/design-system@1.2.3)(@0xsequence/kit@2.0.6)(@types/react-dom@18.2.19)(@types/react@18.2.55)(@vanilla-extract/css@1.14.1)(@vanilla-extract/recipes@0.3.0)(ethers@5.7.2)(framer-motion@8.5.5)(react-dom@18.2.0)(react-native@0.73.4)(react@18.2.0)(wagmi@2.5.7): - resolution: {integrity: sha512-lICMiD1KnJ7nDttutoxg4kBkLyCodPuOHGKwDq/YF7Jmem+QA9BOzTwkUaqHRwAMMZGSI/G3Bs1mUPKvARmn7g==} - peerDependencies: - '@0xsequence/design-system': '>=1.1.0' - '@0xsequence/kit': 2.0.6 - '@vanilla-extract/css': '>=1.9.3' - '@vanilla-extract/recipes': '>=0.3.0' - ethers: '>=5.7.2' - framer-motion: '>=8.5.2' - react: '>=17' - react-dom: '>=17' - wagmi: '>=2.5.0' - dependencies: - 0xsequence: 1.9.11(ethers@5.7.2) - '@0xsequence/api': 1.9.11 - '@0xsequence/design-system': 1.2.3(@types/react-dom@18.2.19)(@types/react@18.2.55)(framer-motion@8.5.5)(react-dom@18.2.0)(react@18.2.0) - '@0xsequence/indexer': 1.9.11 - '@0xsequence/kit': 2.0.6(0xsequence@1.9.11)(@types/react-dom@18.2.19)(@types/react@18.2.55)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(viem@2.7.9)(wagmi@2.5.7) - '@0xsequence/metadata': 1.9.11 - '@0xsequence/network': 1.9.11(ethers@5.7.2) - '@radix-ui/react-popover': 1.0.7(@types/react-dom@18.2.19)(@types/react@18.2.55)(react-dom@18.2.0)(react@18.2.0) - '@tanstack/react-query': 4.36.1(react-dom@18.2.0)(react-native@0.73.4)(react@18.2.0) - '@vanilla-extract/css': 1.14.1 - '@vanilla-extract/recipes': 0.3.0(@vanilla-extract/css@1.14.1) - clsx: 2.1.0 - dayjs: 1.11.10 - ethers: 5.7.2 - framer-motion: 8.5.5(react-dom@18.2.0)(react@18.2.0) - fuse.js: 6.6.2 - lodash: 4.17.21 - qrcode.react: 3.1.0(react@18.2.0) - react: 18.2.0 - react-copy-to-clipboard: 5.1.0(react@18.2.0) - react-dom: 18.2.0(react@18.2.0) - wagmi: 2.5.7(@tanstack/react-query@4.36.1)(@types/react@18.2.55)(react-dom@18.2.0)(react-native@0.73.4)(react@18.2.0)(rollup@2.79.1)(typescript@5.3.3)(viem@2.7.9) - transitivePeerDependencies: - - '@types/react' - - '@types/react-dom' - - bufferutil - - react-native - - utf-8-validate - dev: false - - /@0xsequence/kit@2.0.6(0xsequence@1.9.11)(@types/react-dom@18.2.19)(@types/react@18.2.55)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(viem@2.7.9)(wagmi@2.5.7): - resolution: {integrity: sha512-Hw+Y74RzGyba2vGzPQvjIUSOjGJyOW5d/nycwGOPcXKg4IB5+XIkwbL1PsfZY/PqjnvCC7X+lQRvxwv3n5Y/Jg==} - peerDependencies: - 0xsequence: '>=1.9.11' - ethers: '>=5.7.2' - react: '>=17' - react-dom: '>=17' - viem: '>=2.0.0' - wagmi: '>=2.0.0' - dependencies: - 0xsequence: 1.9.11(ethers@5.7.2) - '@0xsequence/api': 1.9.11 - '@0xsequence/auth': 1.9.11(ethers@5.7.2) - '@0xsequence/design-system': 1.2.3(@types/react-dom@18.2.19)(@types/react@18.2.55)(framer-motion@8.5.5)(react-dom@18.2.0)(react@18.2.0) - '@0xsequence/ethauth': 0.8.1(ethers@5.7.2) - '@0xsequence/indexer': 1.9.11 - '@0xsequence/kit-connectors': 2.0.6(0xsequence@1.9.11)(@0xsequence/design-system@1.2.3)(@0xsequence/kit@2.0.6)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(viem@2.7.9)(wagmi@2.5.7) - '@0xsequence/metadata': 1.9.11 - '@0xsequence/network': 1.9.11(ethers@5.7.2) - '@0xsequence/provider': 1.9.11(ethers@5.7.2) - '@0xsequence/utils': 1.9.11(ethers@5.7.2) - '@vanilla-extract/css': 1.14.1 - '@vanilla-extract/recipes': 0.3.0(@vanilla-extract/css@1.14.1) - ethers: 5.7.2 - framer-motion: 8.5.5(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - viem: 2.7.9(typescript@5.3.3) - wagmi: 2.5.7(@tanstack/react-query@4.36.1)(@types/react@18.2.55)(react-dom@18.2.0)(react-native@0.73.4)(react@18.2.0)(rollup@2.79.1)(typescript@5.3.3)(viem@2.7.9) - transitivePeerDependencies: - - '@types/react' - - '@types/react-dom' - - bufferutil - - utf-8-validate - dev: false - /@0xsequence/metadata@1.9.11: resolution: {integrity: sha512-eTYaHLi2fwn+92TH6w3wJbEne0+DrmYMp2f7GMil66Zzsqus1O4y8zrrvjMyhTbRavG5cOrIkNDBBZponBoP5Q==} From 8482e930235d09ede90d24e97b62ef23f18df105 Mon Sep 17 00:00:00 2001 From: samuelea Date: Tue, 26 Mar 2024 15:20:31 -0400 Subject: [PATCH 2/2] version update --- examples/react/package.json | 8 ++++---- packages/checkout/package.json | 2 +- packages/connectors/package.json | 2 +- packages/kit/package.json | 2 +- packages/wallet/package.json | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/react/package.json b/examples/react/package.json index ff891a34..32820ae2 100644 --- a/examples/react/package.json +++ b/examples/react/package.json @@ -7,10 +7,10 @@ "dependencies": { "0xsequence": "^1.9.11", "@0xsequence/design-system": "^1.1.0", - "@0xsequence/kit": "workspace:*", - "@0xsequence/kit-checkout": "workspace:*", - "@0xsequence/kit-connectors": "workspace:*", - "@0xsequence/kit-wallet": "workspace:*", + "@0xsequence/kit": "^2.0.0", + "@0xsequence/kit-checkout": "^2.0.0", + "@0xsequence/kit-connectors": "^2.0.0", + "@0xsequence/kit-wallet": "^2.0.0", "@tanstack/react-query": "^4.36.1", "@vanilla-extract/css": "^1.9.3", "ethers": "^5.7.2", diff --git a/packages/checkout/package.json b/packages/checkout/package.json index 463360d4..0bb8715a 100644 --- a/packages/checkout/package.json +++ b/packages/checkout/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/kit-checkout", - "version": "2.0.6", + "version": "2.0.7", "description": "Checkout UI for Sequence Kit", "repository": "https://github.com/0xsequence/kit/tree/master/packages/checkout", "main": "dist/0xsequence-kit-checkout.cjs.js", diff --git a/packages/connectors/package.json b/packages/connectors/package.json index 1852045e..aa332598 100644 --- a/packages/connectors/package.json +++ b/packages/connectors/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/kit-connectors", - "version": "2.0.6", + "version": "2.0.7", "description": "Wallets for Sequence Kit", "repository": "https://github.com/0xsequence/kit/tree/master/packages/connectors", "main": "dist/0xsequence-kit-connectors.cjs.js", diff --git a/packages/kit/package.json b/packages/kit/package.json index 9080cb18..54f80cf1 100644 --- a/packages/kit/package.json +++ b/packages/kit/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/kit", - "version": "2.0.6", + "version": "2.0.7", "description": "Core package for Sequence Kit", "keywords": [ "sequence", diff --git a/packages/wallet/package.json b/packages/wallet/package.json index 438d26ee..61bda6a8 100644 --- a/packages/wallet/package.json +++ b/packages/wallet/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/kit-wallet", - "version": "2.0.6", + "version": "2.0.7", "description": "Wallet UI for Sequence Kit", "repository": "https://github.com/0xsequence/kit/tree/master/packages/wallet", "main": "dist/0xsequence-kit-wallet.cjs.js",