Skip to content

Commit 81d92bd

Browse files
ci(release): publish latest release
1 parent 5dc3260 commit 81d92bd

3 files changed

Lines changed: 29 additions & 14 deletions

File tree

RELEASE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
IPFS hash of the deployment:
2-
- CIDv0: `QmXsMBfGtg4dWBmSVaAVJemxCdUzmg56CrECikV1QQxHr3`
3-
- CIDv1: `bafybeienszptl53prrfxnzrmnbn2wuqdbsq36ifpuyqr7ii5ykuepctyyq`
2+
- CIDv0: `QmUgTMa7AWZXpbD3P9wo8B558jcaumSAU1T1nTXagBhbhs`
3+
- CIDv1: `bafybeic6hdtfbznszsuma6jbqmjy2attedjna2gejwcs5zdbtd25w6rrri`
44

55
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
66

@@ -10,5 +10,5 @@ You can also access the Uniswap Interface from an IPFS gateway.
1010
Your Uniswap settings are never remembered across different URLs.
1111

1212
IPFS gateways:
13-
- https://bafybeienszptl53prrfxnzrmnbn2wuqdbsq36ifpuyqr7ii5ykuepctyyq.ipfs.dweb.link/
14-
- [ipfs://QmXsMBfGtg4dWBmSVaAVJemxCdUzmg56CrECikV1QQxHr3/](ipfs://QmXsMBfGtg4dWBmSVaAVJemxCdUzmg56CrECikV1QQxHr3/)
13+
- https://bafybeic6hdtfbznszsuma6jbqmjy2attedjna2gejwcs5zdbtd25w6rrri.ipfs.dweb.link/
14+
- [ipfs://QmUgTMa7AWZXpbD3P9wo8B558jcaumSAU1T1nTXagBhbhs/](ipfs://QmUgTMa7AWZXpbD3P9wo8B558jcaumSAU1T1nTXagBhbhs/)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web/5.141.2
1+
web/5.141.3

apps/web/src/state/explore/topAuctions/useTopAuctions.ts

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PlainMessage } from '@bufbuild/protobuf'
1+
import { PlainMessage, toPlainMessage } from '@bufbuild/protobuf'
22
import { useQuery } from '@tanstack/react-query'
33
import { AuctionWithStats, ListTopAuctionsRequest } from '@uniswap/client-data-api/dist/data/v1/auction_pb'
44
import { DynamicConfigs, useDynamicConfigValue, VerifiedAuctionsConfigKey } from '@universe/gating'
@@ -144,29 +144,44 @@ export function useTopAuctions(): {
144144

145145
return topAuctions.auctions
146146
.map((auction, index) => {
147+
const coreAuction = auction.auction
148+
const currencyInfo = currencyInfos[index]
149+
147150
const startBlockTimestamp =
148-
auction.auction?.startBlock && auction.auction.chainId
149-
? getBlockTimestamp(auction.auction.chainId, auction.auction.startBlock)
151+
coreAuction?.startBlock && coreAuction.chainId
152+
? getBlockTimestamp(coreAuction.chainId, coreAuction.startBlock)
150153
: undefined
151154

152155
const endBlockTimestamp =
153-
auction.auction && auction.auction.chainId && auction.auction.endBlock
154-
? getBlockTimestamp(auction.auction.chainId, auction.auction.endBlock)
156+
coreAuction && coreAuction.chainId && coreAuction.endBlock
157+
? getBlockTimestamp(coreAuction.chainId, coreAuction.endBlock)
155158
: undefined
156159

160+
let auctionWithCurrency: PlainMessage<AuctionWithStats>['auction']
161+
if (coreAuction !== undefined) {
162+
auctionWithCurrency = {
163+
...toPlainMessage(coreAuction),
164+
tokenName: currencyInfo?.currency.name,
165+
tokenSymbol: currencyInfo?.currency.symbol ?? coreAuction.tokenSymbol,
166+
}
167+
} else {
168+
auctionWithCurrency = undefined
169+
}
170+
157171
return {
158172
// oxlint-disable-next-line typescript/no-misused-spread -- biome-parity: oxlint is stricter here
159173
...auction,
160-
verified: auction.auction ? verifiedSet.has(auction.auction.auctionId) : false,
161-
logoUrl: currencyInfos[index]?.logoUrl,
174+
verified: coreAuction ? verifiedSet.has(coreAuction.auctionId) : false,
175+
logoUrl: currencyInfo?.logoUrl,
162176
timeRemaining: {
163177
startBlockTimestamp,
164178
endBlockTimestamp,
165179
isCompleted: isAuctionCompleted({
166-
endBlock: auction.auction?.endBlock,
167-
blockNumber: auction.auction?.chainId ? blocksByChain.get(auction.auction.chainId)?.number : undefined,
180+
endBlock: coreAuction?.endBlock,
181+
blockNumber: coreAuction?.chainId ? blocksByChain.get(coreAuction.chainId)?.number : undefined,
168182
}),
169183
},
184+
auction: auctionWithCurrency,
170185
}
171186
})
172187
.filter((auctionWithInfo) => {

0 commit comments

Comments
 (0)