diff --git a/docs/about-lisk/bridged-tokens.md b/docs/about-lisk/bridged-tokens.md index 533e115ff..5809b3107 100644 --- a/docs/about-lisk/bridged-tokens.md +++ b/docs/about-lisk/bridged-tokens.md @@ -22,10 +22,10 @@ If you want to add a token to the list, please check out the guide [Bridging an ## Lisk Mainnet -| Bridged Tokens Mainnet | Symbol | L1 Token | L2 Token | -| :----------------- | :----- |:----------------- | :----------------- | +| Bridged Tokens Mainnet | Symbol | L1 Token | L2 Token | Bridges | +| :--------------------- | :----- |:----------------- | :----------------- | :----- | ## Lisk Sepolia -| Bridged Tokens Sepolia | Symbol | L1 Token | L2 Token | -| :----------------- | :----- |:----------------- | :----------------- | +| Bridged Tokens Sepolia | Symbol | L1 Token | L2 Token | Bridges | +| :--------------------- | :----- |:----------------- | :----------------- | :----- | diff --git a/i18n/ind/docusaurus-plugin-content-docs/current/about-lisk/bridged-tokens.md b/i18n/ind/docusaurus-plugin-content-docs/current/about-lisk/bridged-tokens.md index 81587ff79..f797a3093 100644 --- a/i18n/ind/docusaurus-plugin-content-docs/current/about-lisk/bridged-tokens.md +++ b/i18n/ind/docusaurus-plugin-content-docs/current/about-lisk/bridged-tokens.md @@ -2,7 +2,6 @@ id: bridged-tokens title: Alamat Token yang di-bridge sidebar_position: 2 -slug: /bridged-tokens description: 'Halaman referensi yang mencantumkan semua token yang di-bridge ke Lisk.' keywords: ['Lisk', 'token yang di-bridge'] --- @@ -19,10 +18,11 @@ Jika Anda ingin menambahkan token ke daftar ini, silakan lihat panduan [Bridge T ## Lisk Mainnet -| Bridged Token di Mainnet | Simbol | Token L1 | Token L2 | -| :----------------------- | :----- | :------- | :------- | +| Bridged Token di Mainnet | Simbol | Token L1 | Token L2 | Bridges | +| :----------------------- | :----- | :------- | :------- | :------ | ## Lisk Sepolia -| Bridged Token di Sepolia | Simbol | Token L1 | Token L2 | -| :----------------------- | :----- | :------- | :------- | +| Bridged Token di Sepolia | Simbol | Token L1 | Token L2 | Bridges | +| :----------------------- | :----- | :------- | :------- | :------ | + diff --git a/plugins/generated-bridged-token-adresses-docs.js b/plugins/generated-bridged-token-adresses-docs.js index 5c2cae4e6..1080394fa 100644 --- a/plugins/generated-bridged-token-adresses-docs.js +++ b/plugins/generated-bridged-token-adresses-docs.js @@ -41,20 +41,23 @@ LiskAdresses.forEach(token => { ethAddress = {address: "Not Found"}; } token.ethAddress = ethAddress.address; + token.ethBridge = ethAddress.extensions.liskBridgeAddress }); +const tableHeads = { + eng: ["Bridged Tokens Mainnet", "Bridged Tokens Sepolia"], + ind: ["Bridged Token di Mainnet", "Bridged Token di Sepolia"], +} + export const generatedDocs = () => { return async (root) => { - visit(root, (node) => { - if (node.type !== 'table') { - return - } + visit(root, "table", (node) => { // For every table in the docs node.children.forEach(row => { row.children.forEach(cell => { cell.children.forEach(cellChild => { // Find a cell with the value 'Bridged Token Mainnet' - if( cellChild.value === 'Bridged Tokens Mainnet') { + if( cellChild.value === tableHeads.eng[0] || cellChild.value === tableHeads.ind[0]) { cellChild.value = 'Bridged Token Name'; // Add a new row for each Mainnet token LiskAdresses.forEach(token => { @@ -95,6 +98,29 @@ export const generatedDocs = () => { type: 'link', url: "https://blockscout.lisk.com/address/" + token.address, children: [{type: 'text', value: token.address }] + }, + ] + }, + { + type: 'tableCell', + children: [ + { + type: 'link', + url: "https://etherscan.io/address/" + token.ethBridge, + children: [{type: 'text', value: token.ethBridge }] + }, + { + type: 'text', + value: '(L1)' + }, + { + type: 'link', + url: "https://blockscout.lisk.com/address/" + token.extensions.liskBridgeAddress, + children: [{type: 'text', value: token.extensions.liskBridgeAddress }] + }, + { + type: 'text', + value: '(L2)' } ] }] @@ -102,7 +128,7 @@ export const generatedDocs = () => { } }); // Find a cell with the value 'Bridged Token Sepolia' - } else if (cellChild.value === 'Bridged Tokens Sepolia') { + } else if (cellChild.value === tableHeads.eng[1] || cellChild.value === tableHeads.ind[1]) { cellChild.value = 'Bridged Token Name'; // Add a new row for each Sepolia token LiskAdresses.forEach(token => {