-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
573 additions
and
250 deletions.
There are no files selected for viewing
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
File renamed without changes.
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,21 @@ | ||
import { Network } from "../../model/network"; | ||
import { simplifyBlockId } from "../../services/blocksService"; | ||
|
||
import { Link } from "../Link"; | ||
|
||
export interface BlockLinkProps { | ||
network: Network; | ||
id: string; | ||
} | ||
|
||
export const BlockLink = (props: BlockLinkProps) => { | ||
const {network, id} = props; | ||
|
||
const simplifiedId = simplifyBlockId(id); | ||
|
||
return ( | ||
<Link to={`/${network.name}/block/${simplifiedId}`}> | ||
{simplifiedId} | ||
</Link> | ||
); | ||
}; |
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,21 @@ | ||
import { Network } from "../../model/network"; | ||
import { simplifyCallId } from "../../services/callsService"; | ||
|
||
import { Link } from "../Link"; | ||
|
||
export interface CallLinkProps { | ||
network: Network; | ||
id: string; | ||
} | ||
|
||
export const CallLink = (props: CallLinkProps) => { | ||
const {network, id} = props; | ||
|
||
const simplifiedId = simplifyCallId(id); | ||
|
||
return ( | ||
<Link to={`/${network.name}/call/${simplifiedId}`}> | ||
{simplifiedId} | ||
</Link> | ||
); | ||
}; |
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,21 @@ | ||
import { Network } from "../../model/network"; | ||
import { simplifyEventId } from "../../services/eventsService"; | ||
|
||
import { Link } from "../Link"; | ||
|
||
export interface EventLinkProps { | ||
network: Network; | ||
id: string; | ||
} | ||
|
||
export const EventLink = (props: EventLinkProps) => { | ||
const {network, id} = props; | ||
|
||
const simplifiedId = simplifyEventId(id); | ||
|
||
return ( | ||
<Link to={`/${network.name}/event/${simplifiedId}`}> | ||
{simplifiedId} | ||
</Link> | ||
); | ||
}; |
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,21 @@ | ||
import { Network } from "../../model/network"; | ||
import { simplifyExtrinsicId } from "../../services/extrinsicsService"; | ||
|
||
import { Link } from "../Link"; | ||
|
||
export interface ExtrinsicLinkProps { | ||
network: Network; | ||
id: string; | ||
} | ||
|
||
export const ExtrinsicLink = (props: ExtrinsicLinkProps) => { | ||
const {network, id} = props; | ||
|
||
const simplifiedId = simplifyExtrinsicId(id); | ||
|
||
return ( | ||
<Link to={`/${network.name}/extrinsic/${simplifiedId}`}> | ||
{simplifiedId} | ||
</Link> | ||
); | ||
}; |
Oops, something went wrong.