diff --git a/.changeset/ten-ducks-roll.md b/.changeset/ten-ducks-roll.md
deleted file mode 100644
index 04893a19d..000000000
--- a/.changeset/ten-ducks-roll.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-'@reservoir0x/reservoir-sdk': patch
-'@reservoir0x/reservoir-kit-ui': patch
----
-
-Add useUserBids hook and replace EditBidModal/CancelBidModal
diff --git a/demo/pages/hook/userListings.tsx b/demo/pages/hook/userListings.tsx
new file mode 100644
index 000000000..be592df82
--- /dev/null
+++ b/demo/pages/hook/userListings.tsx
@@ -0,0 +1,70 @@
+import { NextPage } from 'next'
+import { useUserListings } from '@reservoir0x/reservoir-kit-ui'
+import { ConnectButton } from '@rainbow-me/rainbowkit'
+import { useInView } from 'react-intersection-observer'
+import { useEffect } from 'react'
+import ChainSwitcher from 'components/ChainSwitcher'
+import { useAccount } from 'wagmi'
+
+const Listings: NextPage = () => {
+ const {address} = useAccount()
+ const {
+ data: listings,
+ fetchNextPage,
+ hasNextPage,
+ } = useUserListings(address, {
+ limit: 10,
+ }
+ )
+
+ const { ref, inView } = useInView()
+
+ useEffect(() => {
+ if (inView) {
+ fetchNextPage()
+ }
+ }, [inView])
+
+ return (
+
+
+
Listings
+ {listings.map((listing) => (
+
+
Id: {listing?.id}
+
Price: {listing?.price?.amount?.native}
+
Source: {listing?.source?.name as string}
+
+ ))}
+ {hasNextPage ? (
+
+ Loading
+
+ ) : (
+
No more data
+ )}
+
+
+ )
+}
+
+export default Listings
diff --git a/demo/pages/index.tsx b/demo/pages/index.tsx
index 249cd56bc..97b50089c 100644
--- a/demo/pages/index.tsx
+++ b/demo/pages/index.tsx
@@ -86,6 +86,9 @@ const Index: NextPage = () => {
useUserTopBids
+
+ useUserListings
+
useUserBids
diff --git a/demo/utils/chains.ts b/demo/utils/chains.ts
index d3e9b4323..670d67e74 100644
--- a/demo/utils/chains.ts
+++ b/demo/utils/chains.ts
@@ -181,5 +181,8 @@ export default [
},
{
...reservoirChains.bitlayer
+ },
+ {
+ ...reservoirChains.sei
}
]
diff --git a/packages/defender-relayer-adapter/CHANGELOG.md b/packages/defender-relayer-adapter/CHANGELOG.md
index 3c70c8117..32bb12c7e 100644
--- a/packages/defender-relayer-adapter/CHANGELOG.md
+++ b/packages/defender-relayer-adapter/CHANGELOG.md
@@ -1,5 +1,37 @@
# @reservoir0x/defender-relayer-adapter
+## 3.0.8
+
+### Patch Changes
+
+- Updated dependencies [c1b0b1a]
+ - @reservoir0x/reservoir-sdk@2.2.8
+ - @reservoir0x/ethers-wallet-adapter@3.0.8
+
+## 3.0.7
+
+### Patch Changes
+
+- Updated dependencies [16db325]
+ - @reservoir0x/reservoir-sdk@2.2.7
+ - @reservoir0x/ethers-wallet-adapter@3.0.7
+
+## 3.0.6
+
+### Patch Changes
+
+- Updated dependencies [18abb7c]
+ - @reservoir0x/reservoir-sdk@2.2.6
+ - @reservoir0x/ethers-wallet-adapter@3.0.6
+
+## 3.0.5
+
+### Patch Changes
+
+- Updated dependencies [57b6b0d]
+ - @reservoir0x/reservoir-sdk@2.2.5
+ - @reservoir0x/ethers-wallet-adapter@3.0.5
+
## 3.0.4
### Patch Changes
diff --git a/packages/defender-relayer-adapter/package.json b/packages/defender-relayer-adapter/package.json
index c392c3aff..3a153beb8 100644
--- a/packages/defender-relayer-adapter/package.json
+++ b/packages/defender-relayer-adapter/package.json
@@ -1,6 +1,6 @@
{
"name": "@reservoir0x/defender-relayer-adapter",
- "version": "3.0.4",
+ "version": "3.0.8",
"description": "An adapter that intergrates OpenZeppelins defender relayer wallet to a Reservoir Wallet for use in the @reservoir0x/reservoir-sdk",
"exports": {
".": {
diff --git a/packages/ethers-wallet-adapter/CHANGELOG.md b/packages/ethers-wallet-adapter/CHANGELOG.md
index df161554e..74d2f6f2d 100644
--- a/packages/ethers-wallet-adapter/CHANGELOG.md
+++ b/packages/ethers-wallet-adapter/CHANGELOG.md
@@ -1,5 +1,33 @@
# @reservoir0x/ethers-wallet-adapter
+## 3.0.8
+
+### Patch Changes
+
+- Updated dependencies [c1b0b1a]
+ - @reservoir0x/reservoir-sdk@2.2.8
+
+## 3.0.7
+
+### Patch Changes
+
+- Updated dependencies [16db325]
+ - @reservoir0x/reservoir-sdk@2.2.7
+
+## 3.0.6
+
+### Patch Changes
+
+- Updated dependencies [18abb7c]
+ - @reservoir0x/reservoir-sdk@2.2.6
+
+## 3.0.5
+
+### Patch Changes
+
+- Updated dependencies [57b6b0d]
+ - @reservoir0x/reservoir-sdk@2.2.5
+
## 3.0.4
### Patch Changes
diff --git a/packages/ethers-wallet-adapter/package.json b/packages/ethers-wallet-adapter/package.json
index 15aab8c26..d9ee343b3 100644
--- a/packages/ethers-wallet-adapter/package.json
+++ b/packages/ethers-wallet-adapter/package.json
@@ -1,6 +1,6 @@
{
"name": "@reservoir0x/ethers-wallet-adapter",
- "version": "3.0.4",
+ "version": "3.0.8",
"description": "An adapter used to convert an ethersjs signer to a Reservoir Wallet for use in the @reservoir0x/reservoir-sdk",
"exports": {
".": {
diff --git a/packages/gelato-adapter/CHANGELOG.md b/packages/gelato-adapter/CHANGELOG.md
index 14a21720b..141bdcbc3 100644
--- a/packages/gelato-adapter/CHANGELOG.md
+++ b/packages/gelato-adapter/CHANGELOG.md
@@ -1,5 +1,33 @@
# @reservoir0x/gelato-adapter
+## 3.0.8
+
+### Patch Changes
+
+- Updated dependencies [c1b0b1a]
+ - @reservoir0x/reservoir-sdk@2.2.8
+
+## 3.0.7
+
+### Patch Changes
+
+- Updated dependencies [16db325]
+ - @reservoir0x/reservoir-sdk@2.2.7
+
+## 3.0.6
+
+### Patch Changes
+
+- Updated dependencies [18abb7c]
+ - @reservoir0x/reservoir-sdk@2.2.6
+
+## 3.0.5
+
+### Patch Changes
+
+- Updated dependencies [57b6b0d]
+ - @reservoir0x/reservoir-sdk@2.2.5
+
## 3.0.4
### Patch Changes
diff --git a/packages/gelato-adapter/package.json b/packages/gelato-adapter/package.json
index 478a8c9c2..2401b16a1 100644
--- a/packages/gelato-adapter/package.json
+++ b/packages/gelato-adapter/package.json
@@ -1,6 +1,6 @@
{
"name": "@reservoir0x/gelato-adapter",
- "version": "3.0.4",
+ "version": "3.0.8",
"description": "An adapter used to enhance a ethers wallet adapter with the gelato SDK for use in the @reservoir0x/reservoir-sdk to enable gasless transactions",
"exports": {
".": {
diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md
index 80d3e49b2..ef7ee485e 100644
--- a/packages/sdk/CHANGELOG.md
+++ b/packages/sdk/CHANGELOG.md
@@ -1,5 +1,29 @@
## 1.12.15
+## 2.2.8
+
+### Patch Changes
+
+- c1b0b1a: adding sei chain
+
+## 2.2.7
+
+### Patch Changes
+
+- 16db325: Add new useUserListings hook and replace existing useListings hook in EditListingModal/CancelListingModal
+
+## 2.2.6
+
+### Patch Changes
+
+- 18abb7c: adding ETH symbol check, removing SFUEL paymentToken for nebula
+
+## 2.2.5
+
+### Patch Changes
+
+- 57b6b0d: Add useUserBids hook and replace EditBidModal/CancelBidModal
+
## 2.2.4
### Patch Changes
diff --git a/packages/sdk/package.json b/packages/sdk/package.json
index bd258a786..017528a4b 100644
--- a/packages/sdk/package.json
+++ b/packages/sdk/package.json
@@ -1,6 +1,6 @@
{
"name": "@reservoir0x/reservoir-sdk",
- "version": "2.2.4",
+ "version": "2.2.8",
"description": "An SDK that can be used in any javascript/typescript context to easily interact with Reservoir liquidity APIs",
"author": "Reservoir Protocol",
"license": "MIT",
diff --git a/packages/sdk/src/utils/customChains.ts b/packages/sdk/src/utils/customChains.ts
index 51ed9f364..f75b25533 100644
--- a/packages/sdk/src/utils/customChains.ts
+++ b/packages/sdk/src/utils/customChains.ts
@@ -390,6 +390,30 @@ export const bitlayer = {
},
} as const satisfies Chain
+export const sei = {
+ id: 1329,
+ name: 'Sei',
+ nativeCurrency: { name: 'Sei', symbol: 'SEI', decimals: 18 },
+ rpcUrls: {
+ default: {
+ http: ['https://evm-rpc.sei-apis.com'],
+ },
+ public: {
+ http: ['https://evm-rpc.sei-apis.com'],
+ },
+ },
+ blockExplorers: {
+ etherscan: {
+ name: 'Sei Scan',
+ url: 'https://seitrace.com',
+ },
+ default: {
+ name: 'Sei Scan',
+ url: 'https://seitrace.com',
+ },
+ },
+} as const satisfies Chain
+
export const customChains = {
ancient8,
ancient8Testnet,
@@ -407,4 +431,5 @@ export const customChains = {
seiTestnet,
cyber,
bitlayer,
+ sei,
} as const satisfies Record
diff --git a/packages/sdk/src/utils/paymentTokens.ts b/packages/sdk/src/utils/paymentTokens.ts
index 26ea8c7f6..59b8b3ab6 100644
--- a/packages/sdk/src/utils/paymentTokens.ts
+++ b/packages/sdk/src/utils/paymentTokens.ts
@@ -645,13 +645,6 @@ export const chainPaymentTokensMap = {
// Nebula
1482601649: [
- {
- chainId: 1482601649,
- address: zeroAddress,
- symbol: 'SFUEL',
- name: 'SFUEL',
- decimals: 18,
- },
{
chainId: 1482601649,
address: '0xab01bad2c86e24d371a13ed6367bdca819589c5d',
@@ -714,4 +707,22 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],
+
+ // Sei Testnet
+ 1329: [
+ {
+ chainId: 1329,
+ address: zeroAddress,
+ symbol: 'SEI',
+ name: 'SEI',
+ decimals: 18,
+ },
+ {
+ chainId: 1329,
+ address: '0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7',
+ symbol: 'WSEI',
+ name: 'WSEI',
+ decimals: 18,
+ },
+ ],
} as Record
diff --git a/packages/sdk/src/utils/reservoirChains.ts b/packages/sdk/src/utils/reservoirChains.ts
index e208d8236..17a3af20a 100644
--- a/packages/sdk/src/utils/reservoirChains.ts
+++ b/packages/sdk/src/utils/reservoirChains.ts
@@ -298,6 +298,14 @@ const bitlayer = {
checkPollingInterval: 1000,
} satisfies ReservoirBaseChain
+const sei = {
+ id: 1329,
+ name: 'Sei',
+ baseApiUrl: 'https://api-sei.reservoir.tools',
+ paymentTokens: chainPaymentTokensMap[1329],
+ checkPollingInterval: 1000,
+} satisfies ReservoirBaseChain
+
export const reservoirChains = {
mainnet,
polygon,
@@ -335,4 +343,5 @@ export const reservoirChains = {
seiTestnet,
cyber,
bitlayer,
+ sei,
}
diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md
index b67809d1d..5e101b8d3 100644
--- a/packages/ui/CHANGELOG.md
+++ b/packages/ui/CHANGELOG.md
@@ -1,5 +1,43 @@
## 1.25.10
+## 2.5.18
+
+### Patch Changes
+
+- c1b0b1a: adding sei chain
+- Updated dependencies [c1b0b1a]
+ - @reservoir0x/reservoir-sdk@2.2.8
+
+## 2.5.17
+
+### Patch Changes
+
+- 16db325: Add new useUserListings hook and replace existing useListings hook in EditListingModal/CancelListingModal
+- Updated dependencies [16db325]
+ - @reservoir0x/reservoir-sdk@2.2.7
+
+## 2.5.16
+
+### Patch Changes
+
+- 18abb7c: adding ETH symbol check, removing SFUEL paymentToken for nebula
+- Updated dependencies [18abb7c]
+ - @reservoir0x/reservoir-sdk@2.2.6
+
+## 2.5.15
+
+### Patch Changes
+
+- 1316b8a: adding cyber and bitlayer icons
+
+## 2.5.14
+
+### Patch Changes
+
+- 57b6b0d: Add useUserBids hook and replace EditBidModal/CancelBidModal
+- Updated dependencies [57b6b0d]
+ - @reservoir0x/reservoir-sdk@2.2.5
+
## 2.5.13
### Patch Changes
diff --git a/packages/ui/package.json b/packages/ui/package.json
index deddb677a..474faf26a 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -1,7 +1,7 @@
{
"name": "@reservoir0x/reservoir-kit-ui",
"description": "ReservoirKit is the official frontend kit to get you started building dApps with the ReservoirProtocol.",
- "version": "2.5.13",
+ "version": "2.5.18",
"author": "Reservoir Protocol",
"license": "MIT",
"exports": {
diff --git a/packages/ui/src/constants/chainIcons.tsx b/packages/ui/src/constants/chainIcons.tsx
index 77f2c428b..0915dea68 100644
--- a/packages/ui/src/constants/chainIcons.tsx
+++ b/packages/ui/src/constants/chainIcons.tsx
@@ -82,6 +82,9 @@ import CyberIconColor from '../img/chains/CyberIconColor'
import BitlayerIconLight from '../img/chains/BitlayerIconLight'
import BitlayerIconDark from '../img/chains/BitlayerIconDark'
import BitlayerIconColor from '../img/chains/BitlayerIconColor'
+import SeiIconLight from '../img/chains/SeiIconLight'
+import SeiIconDark from '../img/chains/SeiIconDark'
+import SeiIconColor from '../img/chains/SeiIconColor'
const chainIcons = {
[reservoirChains.ancient8.id]: {
@@ -260,6 +263,11 @@ const chainIcons = {
dark: ,
color: ,
},
+ [reservoirChains.sei.id]: {
+ light: ,
+ dark: ,
+ color: ,
+ },
}
export default chainIcons
diff --git a/packages/ui/src/constants/wrappedContractNames.ts b/packages/ui/src/constants/wrappedContractNames.ts
index ee4ea303e..1516cb658 100644
--- a/packages/ui/src/constants/wrappedContractNames.ts
+++ b/packages/ui/src/constants/wrappedContractNames.ts
@@ -35,5 +35,6 @@ const wrappedContractNames: Record = {
713715: 'WSEI', // sei testnet
7560: 'WETH', // cyber
200901: 'WBTC', // bitlayer
+ 1329: 'WSEI', // sei
}
export default wrappedContractNames
diff --git a/packages/ui/src/constants/wrappedContracts.ts b/packages/ui/src/constants/wrappedContracts.ts
index 1b536128b..bf08f65fb 100644
--- a/packages/ui/src/constants/wrappedContracts.ts
+++ b/packages/ui/src/constants/wrappedContracts.ts
@@ -35,6 +35,7 @@ const wrappedContracts: Record = {
713715: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // sei testnet
7560: '0x4200000000000000000000000000000000000006', // cyber
200901: '0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f', // bitlayer
+ 1329: '0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7', // sei
}
export default wrappedContracts
diff --git a/packages/ui/src/hooks/index.ts b/packages/ui/src/hooks/index.ts
index 8e1ffa565..28c2f2c20 100644
--- a/packages/ui/src/hooks/index.ts
+++ b/packages/ui/src/hooks/index.ts
@@ -21,6 +21,7 @@ export { default as useTrendingMints } from './useTrendingMints'
export { default as useMarketplaceConfigs } from './useMarketplaceConfigs'
export { default as useSolverCapacity } from './useSolverCapacity'
export { default as useCurrencyConversion } from './useCurrencyConversion'
+export { default as useUserListings } from './useUserListings'
//Internal
export { default as useMediaQuery } from './useMediaQuery'
diff --git a/packages/ui/src/hooks/useOwnerListings.ts b/packages/ui/src/hooks/useOwnerListings.ts
index 34979d23a..9f3247bc8 100644
--- a/packages/ui/src/hooks/useOwnerListings.ts
+++ b/packages/ui/src/hooks/useOwnerListings.ts
@@ -1,22 +1,19 @@
-import useListings from './useListings'
import { useAccount } from 'wagmi'
import { paths } from '@reservoir0x/reservoir-sdk'
import { SWRConfiguration } from 'swr'
+import useUserListings from './useUserListings'
export default function (
- query?: paths['/orders/asks/v5']['get']['parameters']['query'] | false,
+ query?: paths['/users/{user}/asks/v1']['get']['parameters']['query'] | false,
swrOptions?: SWRConfiguration,
chainId?: number
) {
const { address } = useAccount()
- let queryOptions = {
- maker: address as string,
- }
- if (query) {
- queryOptions = {
- ...queryOptions,
- ...query,
- }
- }
- return useListings(queryOptions, swrOptions, address !== undefined, chainId)
+ return useUserListings(
+ address,
+ query ? query : undefined,
+ swrOptions,
+ address !== undefined,
+ chainId
+ )
}
diff --git a/packages/ui/src/hooks/useUserListings.ts b/packages/ui/src/hooks/useUserListings.ts
new file mode 100644
index 000000000..67a2b0c43
--- /dev/null
+++ b/packages/ui/src/hooks/useUserListings.ts
@@ -0,0 +1,60 @@
+import { paths, setParams } from '@reservoir0x/reservoir-sdk'
+import useReservoirClient from './useReservoirClient'
+import { SWRInfiniteConfiguration } from 'swr/infinite'
+import useInfiniteApi from './useInfiniteApi'
+
+type Asks = paths['/users/{user}/asks/v1']['get']['responses']['200']['schema']
+type AsksQuery = paths['/users/{user}/asks/v1']['get']['parameters']['query']
+
+export default function (
+ address?: string,
+ options?: AsksQuery,
+ swrOptions: SWRInfiniteConfiguration = {},
+ enabled: boolean = true,
+ chainId?: number
+) {
+ const client = useReservoirClient()
+ const chain =
+ chainId !== undefined
+ ? client?.chains.find((chain) => chain.id === chainId)
+ : client?.currentChain()
+
+ const response = useInfiniteApi(
+ (pageIndex, previousPageData) => {
+ if (!enabled || !address) {
+ return null
+ }
+
+ const url = new URL(`${chain?.baseApiUrl || ''}/users/${address}/asks/v1`)
+ let query: AsksQuery = options || {}
+
+ if (
+ query.normalizeRoyalties === undefined &&
+ client?.normalizeRoyalties !== undefined
+ ) {
+ query.normalizeRoyalties = client.normalizeRoyalties
+ }
+
+ if (previousPageData && !previousPageData.continuation) {
+ return null
+ } else if (previousPageData && pageIndex > 0) {
+ query.continuation = previousPageData.continuation
+ }
+
+ setParams(url, query)
+ return [url.href, client?.apiKey, client?.version]
+ },
+ {
+ revalidateOnMount: true,
+ revalidateFirstPage: false,
+ ...swrOptions,
+ }
+ )
+
+ const listings = response.data?.flatMap((page) => page.orders || []) ?? []
+
+ return {
+ ...response,
+ data: listings,
+ }
+}
diff --git a/packages/ui/src/img/chains/BitlayerIconColor.tsx b/packages/ui/src/img/chains/BitlayerIconColor.tsx
index d39223b91..fb7a91d08 100644
--- a/packages/ui/src/img/chains/BitlayerIconColor.tsx
+++ b/packages/ui/src/img/chains/BitlayerIconColor.tsx
@@ -8,23 +8,14 @@ export default () => (
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
-
-
-
-
-
+
+
-
-
-
-
+
diff --git a/packages/ui/src/img/chains/BitlayerIconDark.tsx b/packages/ui/src/img/chains/BitlayerIconDark.tsx
index 67d5bf2f5..0a6a2de95 100644
--- a/packages/ui/src/img/chains/BitlayerIconDark.tsx
+++ b/packages/ui/src/img/chains/BitlayerIconDark.tsx
@@ -8,16 +8,14 @@ export default () => (
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
-
+
-
+
diff --git a/packages/ui/src/img/chains/BitlayerIconLight.tsx b/packages/ui/src/img/chains/BitlayerIconLight.tsx
index 8babab1db..3b86dde2e 100644
--- a/packages/ui/src/img/chains/BitlayerIconLight.tsx
+++ b/packages/ui/src/img/chains/BitlayerIconLight.tsx
@@ -8,16 +8,14 @@ export default () => (
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
-
+
-
+
diff --git a/packages/ui/src/img/chains/CyberIconColor.tsx b/packages/ui/src/img/chains/CyberIconColor.tsx
index d39223b91..c3784ac1e 100644
--- a/packages/ui/src/img/chains/CyberIconColor.tsx
+++ b/packages/ui/src/img/chains/CyberIconColor.tsx
@@ -8,23 +8,26 @@ export default () => (
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
-
-
-
-
-
+
+
+
+
+
-
-
-
-
+
diff --git a/packages/ui/src/img/chains/CyberIconDark.tsx b/packages/ui/src/img/chains/CyberIconDark.tsx
index 67d5bf2f5..d1c3b605f 100644
--- a/packages/ui/src/img/chains/CyberIconDark.tsx
+++ b/packages/ui/src/img/chains/CyberIconDark.tsx
@@ -8,16 +8,26 @@ export default () => (
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
-
+
+
+
+
-
+
diff --git a/packages/ui/src/img/chains/CyberIconLight.tsx b/packages/ui/src/img/chains/CyberIconLight.tsx
index 8babab1db..262093037 100644
--- a/packages/ui/src/img/chains/CyberIconLight.tsx
+++ b/packages/ui/src/img/chains/CyberIconLight.tsx
@@ -8,16 +8,26 @@ export default () => (
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
-
+
+
+
+
-
+
diff --git a/packages/ui/src/img/chains/SeiIconColor.tsx b/packages/ui/src/img/chains/SeiIconColor.tsx
new file mode 100644
index 000000000..c3dc104ab
--- /dev/null
+++ b/packages/ui/src/img/chains/SeiIconColor.tsx
@@ -0,0 +1,41 @@
+import React from 'react'
+
+export default () => (
+
+)
diff --git a/packages/ui/src/img/chains/SeiIconDark.tsx b/packages/ui/src/img/chains/SeiIconDark.tsx
new file mode 100644
index 000000000..991e71a1d
--- /dev/null
+++ b/packages/ui/src/img/chains/SeiIconDark.tsx
@@ -0,0 +1,30 @@
+import React from 'react'
+
+export default () => (
+
+)
diff --git a/packages/ui/src/img/chains/SeiIconLight.tsx b/packages/ui/src/img/chains/SeiIconLight.tsx
new file mode 100644
index 000000000..3f30572d5
--- /dev/null
+++ b/packages/ui/src/img/chains/SeiIconLight.tsx
@@ -0,0 +1,30 @@
+import React from 'react'
+
+export default () => (
+
+)
diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts
index 828208319..e010d5353 100644
--- a/packages/ui/src/index.ts
+++ b/packages/ui/src/index.ts
@@ -27,6 +27,7 @@ export {
useCurrencyConversion,
useSolverCapacity,
useMarketplaceConfigs,
+ useUserListings,
useUserBids,
} from './hooks'
diff --git a/packages/ui/src/modal/SelectPaymentToken.tsx b/packages/ui/src/modal/SelectPaymentToken.tsx
index 9584fb3d2..31c3d7c15 100644
--- a/packages/ui/src/modal/SelectPaymentToken.tsx
+++ b/packages/ui/src/modal/SelectPaymentToken.tsx
@@ -74,7 +74,8 @@ const PaymentTokenRow = ({
width: '100%',
}}
>
- {paymentToken?.address === zeroAddress ? (
+ {paymentToken?.address === zeroAddress &&
+ paymentToken.symbol === 'ETH' ? (
['data']>[0]
+ listing?: NonNullable['data']>[0]
tokenId?: string
contract?: string
cancelStep: CancelStep
@@ -58,7 +62,7 @@ export const CancelListingModalRenderer: FC = ({
const [transactionError, setTransactionError] = useState()
const [stepData, setStepData] = useState(null)
const [steps, setSteps] = useState(null)
-
+ const { address } = useAccount()
const client = useReservoirClient()
const currentChain = client?.currentChain()
const config = useConfig()
@@ -81,7 +85,8 @@ export const CancelListingModalRenderer: FC = ({
const blockExplorerName =
wagmiChain?.blockExplorers?.default?.name || 'Etherscan'
- const { data: listings, isFetchingPage } = useListings(
+ const { data: listings, isFetchingPage } = useUserListings(
+ address,
{
ids: listingId,
normalizeRoyalties,
diff --git a/packages/ui/src/modal/editListing/EditListingModalRenderer.tsx b/packages/ui/src/modal/editListing/EditListingModalRenderer.tsx
index 82924e49c..99ec8e4fb 100644
--- a/packages/ui/src/modal/editListing/EditListingModalRenderer.tsx
+++ b/packages/ui/src/modal/editListing/EditListingModalRenderer.tsx
@@ -14,6 +14,7 @@ import {
useUserTokens,
useCollections,
useMarketplaces,
+ useUserListings,
} from '../../hooks'
import { useWalletClient, useAccount, useConfig } from 'wagmi'
import { Execute, ReservoirWallet, axios } from '@reservoir0x/reservoir-sdk'
@@ -114,7 +115,8 @@ export const EditListingModalRenderer: FC = ({
const [price, setPrice] = useState(0)
const [quantity, setQuantity] = useState(1)
- const { data: listings } = useListings(
+ const { data: listings } = useUserListings(
+ account.address,
{
ids: listingId,
normalizeRoyalties,
diff --git a/packages/ui/src/modal/list/ListModalRenderer.tsx b/packages/ui/src/modal/list/ListModalRenderer.tsx
index 9652aac56..2eccfc205 100644
--- a/packages/ui/src/modal/list/ListModalRenderer.tsx
+++ b/packages/ui/src/modal/list/ListModalRenderer.tsx
@@ -284,7 +284,7 @@ export const ListModalRenderer: FC = ({
if (marketplace && !exchange) {
setListStep(ListStep.Unavailable)
}
- }, [marketplace, exchange])
+ }, [marketplace, exchange, open])
useEffect(() => {
if (currencies && currencies.length > 5) {