Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/pages/protocol/tip20/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,4 @@ By using TIP-20 tokens as quote tokens, the DEX benefits from the same payment-o
icon="lucide:rocket"
title="Guide: Issue Stablecoins"
/>
<Card
description="Solidity reference implementation of the TIP-20 standard"
to="https://github.com/tempoxyz/tempo/blob/main/tips/ref-impls/src/TIP20.sol"
icon="lucide:file-text"
title="Reference Implementation"
/>
</Cards>
6 changes: 0 additions & 6 deletions src/pages/protocol/tip403/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ TIP-403 is Tempo's policy registry system that enables TIP-20 tokens to enforce
icon="lucide:settings"
title="Guide: Manage Your Stablecoin"
/>
<Card
description="Solidity reference implementation of the TIP-403 standard"
to="https://github.com/tempoxyz/tempo/blob/main/tips/ref-impls/src/TIP403Registry.sol"
icon="lucide:file-text"
title="Reference Implementation"
/>
<Card
description="Rust implementation in the Tempo client"
to="https://github.com/tempoxyz/tempo/tree/main/crates/precompiles/src/tip403_registry"
Expand Down
18 changes: 7 additions & 11 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,16 @@ function syncTips(): Plugin {
await Promise.all(
tipFiles.map(async (file) => {
let content = await fetch(file.download_url).then((r) => r.text())
// Fix dead links in TIPs that reference paths in the tempoxyz/tempo
// repo. These resolve fine on github.com but break Vocs' dead-link
// checker, since the files don't exist in the docs site. Rewriting
// them here lets us keep `checkDeadlinks: true` without forking
// upstream content. Add new patterns as upstream typos appear.
// Strip stale Solidity interface links from upstream TIPs. The linked
// files are no longer published, so keeping the link would surface dead
// references in the docs UI and fail Vocs' dead-link checker.
content = content.replace(
/\(tips\/ref-impls\/src\/interfaces\/(\w+\.sol)\)/g,
'(https://github.com/tempoxyz/tempo-std/blob/master/src/interfaces/$1)',
/^- \[[^\]]+\.sol\]\(tips\/(?:ref-impls|verify)\/src\/interfaces\/[^)]+\)\n/gm,
'',
)
// TIP-1011 references `tips/verify/src/interfaces/...` (upstream typo
// of `ref-impls`). Map it to the actual tempoxyz/tempo location.
content = content.replace(
/\(tips\/verify\/src\/interfaces\/(\w+\.sol)\)/g,
'(https://github.com/tempoxyz/tempo/blob/main/tips/ref-impls/src/interfaces/$1)',
/\[([^\]]+\.sol)\]\(tips\/(?:ref-impls|verify)\/src\/interfaces\/[^)]+\)/g,
'$1',
)
// tip-0000 links to `./tip_template.md`, which lives in the tempo
// repo but not in the docs site.
Expand Down
16 changes: 0 additions & 16 deletions vocs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,6 @@ export default defineConfig({
text: 'Virtual addresses',
link: '/protocol/tip20/virtual-addresses',
},
{
text: 'Reference Implementation',
link: 'https://github.com/tempoxyz/tempo-std/blob/master/src/interfaces/ITIP20.sol',
},
{
text: 'Rust Implementation',
link: 'https://github.com/tempoxyz/tempo/tree/main/crates/precompiles/src/tip20',
Expand Down Expand Up @@ -501,10 +497,6 @@ export default defineConfig({
text: 'Specification',
link: '/protocol/tip403/spec',
},
{
text: 'Reference Implementation',
link: 'https://github.com/tempoxyz/tempo-std/blob/master/src/interfaces/ITIP403Registry.sol',
},
{
text: 'Rust Implementation',
link: 'https://github.com/tempoxyz/tempo/tree/main/crates/precompiles/src/tip403_registry',
Expand Down Expand Up @@ -535,10 +527,6 @@ export default defineConfig({
text: 'Specification',
link: '/protocol/fees/spec-fee-amm',
},
{
text: 'Reference Implementation',
link: 'https://github.com/tempoxyz/tempo-std/blob/master/src/interfaces/IFeeManager.sol',
},
{
text: 'Rust Implementation',
link: 'https://github.com/tempoxyz/tempo/tree/main/crates/precompiles/src/tip_fee_manager',
Expand Down Expand Up @@ -623,10 +611,6 @@ export default defineConfig({
text: 'DEX Balance',
link: '/protocol/exchange/exchange-balance',
},
{
text: 'Reference Implementation',
link: 'https://github.com/tempoxyz/tempo-std/blob/master/src/interfaces/IStablecoinDEX.sol',
},
{
text: 'Rust Implementation',
link: 'https://github.com/tempoxyz/tempo/tree/main/crates/precompiles/src/stablecoin_dex',
Expand Down
Loading