-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into fix/slot-blocks-cursor
- Loading branch information
Showing
16 changed files
with
116 additions
and
49 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "explorer-api", | ||
"description": "API for Tangle Explorer", | ||
"version": "3.3.8-rc.2", | ||
"version": "3.3.8", | ||
"author": "Martyn Janes <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
types { | ||
# Set Content-Type so streaming compilation works | ||
application/wasm wasm; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "explorer-client", | ||
"description": "Tangle Explorer UI", | ||
"version": "3.3.8-rc.2", | ||
"version": "3.3.8", | ||
"author": "Martyn Janes <[email protected]>", | ||
"type": "module", | ||
"repository": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { AddressType } from "@iota/sdk-wasm-nova/web"; | ||
import React from "react"; | ||
import { Redirect, RouteComponentProps } from "react-router-dom"; | ||
import { AddressHelper } from "~helpers/nova/addressHelper"; | ||
import { useNetworkInfoNova } from "~/helpers/nova/networkInfo"; | ||
|
||
interface NftRedirectRouteProps { | ||
/** | ||
* The network. | ||
*/ | ||
network: string; | ||
|
||
/** | ||
* The nftId to redirect. | ||
*/ | ||
nftId: string; | ||
} | ||
|
||
const ADDRESS_ROUTE = "addr"; | ||
|
||
const NftRedirectRoute: React.FC<RouteComponentProps<NftRedirectRouteProps>> = ({ | ||
match: { | ||
params: { network, nftId }, | ||
}, | ||
}) => { | ||
const { bech32Hrp } = useNetworkInfoNova((s) => s.networkInfo); | ||
const nftAddress = AddressHelper.buildAddress(bech32Hrp, nftId, AddressType.Nft); | ||
const redirectState = { | ||
addressDetails: nftAddress, | ||
}; | ||
const routeParam = nftAddress.bech32; | ||
const redirect = `/${network}/${ADDRESS_ROUTE}/${routeParam}`; | ||
return <Redirect to={{ pathname: redirect, state: redirectState }} />; | ||
}; | ||
|
||
export default NftRedirectRoute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters