Update widget lib and timeline

pi-gas-details
J M Rossy 2 years ago
parent f4a2ee9610
commit 1fb99eb0bd
  1. 4
      package.json
  2. 21
      src/features/messages/cards/TimelineCard.tsx
  3. 44
      yarn.lock

@ -5,8 +5,8 @@
"author": "J M Rossy",
"dependencies": {
"@headlessui/react": "^1.7.11",
"@hyperlane-xyz/sdk": "1.2.2",
"@hyperlane-xyz/widgets": "1.2.2",
"@hyperlane-xyz/sdk": "1.2.3",
"@hyperlane-xyz/widgets": "1.2.3",
"@metamask/jazzicon": "https://github.com/jmrossy/jazzicon#7a8df28974b4e81129bfbe3cab76308b889032a6",
"@rainbow-me/rainbowkit": "^0.11.0",
"@tanstack/react-query": "^4.24.10",

@ -1,5 +1,3 @@
import { useMemo } from 'react';
import { MessageTimeline, useMessageStage } from '@hyperlane-xyz/widgets';
import { Card } from '../../../components/layout/Card';
@ -11,24 +9,7 @@ interface Props {
}
export function TimelineCard({ message }: Props) {
// TODO update Timeline widget schema to newer message shape so this x-form is not needed
const partialMessage = useMemo(
() => ({
...message,
originTransaction: {
blockNumber: message.origin.blockNumber,
timestamp: message.origin.timestamp,
},
destinationTransaction: message.destination
? {
blockNumber: message.destination.blockNumber,
timestamp: message.destination.timestamp,
}
: undefined,
}),
[message],
);
const { stage, timings } = useMessageStage({ message: partialMessage });
const { stage, timings } = useMessageStage({ message });
return (
<Card classes="w-full">

@ -1294,14 +1294,14 @@ __metadata:
languageName: node
linkType: hard
"@hyperlane-xyz/core@npm:1.2.2":
version: 1.2.2
resolution: "@hyperlane-xyz/core@npm:1.2.2"
"@hyperlane-xyz/core@npm:1.2.3":
version: 1.2.3
resolution: "@hyperlane-xyz/core@npm:1.2.3"
dependencies:
"@hyperlane-xyz/utils": 1.2.2
"@hyperlane-xyz/utils": 1.2.3
"@openzeppelin/contracts": ^4.8.0
"@openzeppelin/contracts-upgradeable": ^4.8.0
checksum: f20bdb6aed949a5b4a16fbb5bbd232647c39f515cc68985d9445f76082c190856e99d80f9ff0565febdd55047e4b1e0b111345a08c68971574fb3a87e5c0cff5
checksum: c7e8f5c37d2e6874b6ca5f16024a4ea8b413393a2a4bb770a467ca7cc031b51a89fbe6989598c171de38acafcd2e990525be0274f793742faafc832a0db359fa
languageName: node
linkType: hard
@ -1310,8 +1310,8 @@ __metadata:
resolution: "@hyperlane-xyz/explorer@workspace:."
dependencies:
"@headlessui/react": ^1.7.11
"@hyperlane-xyz/sdk": 1.2.2
"@hyperlane-xyz/widgets": 1.2.2
"@hyperlane-xyz/sdk": 1.2.3
"@hyperlane-xyz/widgets": 1.2.3
"@metamask/jazzicon": "https://github.com/jmrossy/jazzicon#7a8df28974b4e81129bfbe3cab76308b889032a6"
"@rainbow-me/rainbowkit": ^0.11.0
"@tanstack/react-query": ^4.24.10
@ -1349,39 +1349,39 @@ __metadata:
languageName: unknown
linkType: soft
"@hyperlane-xyz/sdk@npm:1.2.2":
version: 1.2.2
resolution: "@hyperlane-xyz/sdk@npm:1.2.2"
"@hyperlane-xyz/sdk@npm:1.2.3":
version: 1.2.3
resolution: "@hyperlane-xyz/sdk@npm:1.2.3"
dependencies:
"@hyperlane-xyz/core": 1.2.2
"@hyperlane-xyz/utils": 1.2.2
"@hyperlane-xyz/core": 1.2.3
"@hyperlane-xyz/utils": 1.2.3
"@wagmi/chains": ^0.2.6
coingecko-api: ^1.0.10
cross-fetch: ^3.1.5
debug: ^4.3.4
ethers: ^5.7.2
zod: ^3.21.2
checksum: 5e6e856e413474ab9a241ce8c507683db7ff6933649d58d17323deff7c13393ce2c7b973bbd404bdd99409ff883d934b386a1e7c1830fa7257c08a893c742ceb
checksum: a1afc8bdfe64916fdc6623c1df06bbe1393359fe6b29cefe3f25bb5ded16108e1bac037da9a29df7f0d61cc84940e571d148e41c7fd8539964a87e9a95c03c35
languageName: node
linkType: hard
"@hyperlane-xyz/utils@npm:1.2.2":
version: 1.2.2
resolution: "@hyperlane-xyz/utils@npm:1.2.2"
"@hyperlane-xyz/utils@npm:1.2.3":
version: 1.2.3
resolution: "@hyperlane-xyz/utils@npm:1.2.3"
dependencies:
ethers: ^5.7.2
checksum: ac118a1604eb3d14064ccfc6208735ea6fbf909cf178592a22570864fcbce4ba55833e0bb7ec0942240eec7db36412ec21ea4ce10f3c3dd0167213c6734b302b
checksum: 14222632d7ef2419f6b698afa0c4c466302dd0eb6f97d3c9031b7d42c033418547bf4092d480cc4346331f0233d4076caae75b86ffa2b7beed79741a146d3325
languageName: node
linkType: hard
"@hyperlane-xyz/widgets@npm:1.2.2":
version: 1.2.2
resolution: "@hyperlane-xyz/widgets@npm:1.2.2"
"@hyperlane-xyz/widgets@npm:1.2.3":
version: 1.2.3
resolution: "@hyperlane-xyz/widgets@npm:1.2.3"
peerDependencies:
"@hyperlane-xyz/sdk": ^1.2
"@hyperlane-xyz/sdk": ^1.2.3
react: ^18
react-dom: ^18
checksum: bbe6a3180555f214aac5897e2837fa1d15f99d4fe931cd194ba83282be9606b348aa46d36a274f9226f36cf7b69bd0e30b73168e0593eaec6d642b9042a2dc11
checksum: 7695de9b9a89d8ef7c6b3ddb2c6b5874fe27514972d2080d9eade05bf2ad68ce2389706090dd7498436ec719a4c64b2ebf6246c6527a0c8fc2f0daf3144b1b28
languageName: node
linkType: hard

Loading…
Cancel
Save