-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged assetBridge contract addresses with supported-chains-and-tokens
- Loading branch information
1 parent
355f018
commit 97c3c53
Showing
9 changed files
with
70 additions
and
50 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
30 changes: 0 additions & 30 deletions
30
docs/develop/asset-transfer-via-nitro/assetbridge-contract-addresses.md
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
docs/develop/asset-transfer-via-nitro/building-cross-chain-tokens/_category_.json
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 @@ | ||
{ | ||
"label": "Building Cross-chain Tokens", | ||
"position": 4 | ||
} |
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
4 changes: 0 additions & 4 deletions
4
docs/develop/asset-transfer-via-nitro/managing-cross-chain-tokens/_category_.json
This file was deleted.
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
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,55 @@ | ||
import React, { useEffect, useState } from 'react'; | ||
import axios from 'axios'; | ||
|
||
const ContractData = () => { | ||
const [data, setData] = useState([]); | ||
|
||
useEffect(() => { | ||
fetchData(); | ||
}, []); | ||
|
||
const fetchData = async () => { | ||
try { | ||
const result = await axios.get("https://api-beta.pathfinder.routerprotocol.com/api/contracts"); | ||
console.log(result) | ||
const resultArray = Object.keys(result.data).map(chainId => { | ||
return { chainId, ...result.data[chainId] }; | ||
}); | ||
console.log() | ||
setData(resultArray); | ||
} catch (error) { | ||
console.log(error); | ||
} | ||
}; | ||
|
||
return ( | ||
<div> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th style={{ fontWeight: 'bold' }}>Chain ID</th> | ||
{/* <th style={{ fontWeight: 'bold' }}>Chain Name</th> */} | ||
<th style={{ fontWeight: 'bold' }}>Gateway Contract Address</th> | ||
<th style={{ fontWeight: 'bold' }}>AssetBridge Contract Address</th> | ||
<th style={{ fontWeight: 'bold' }}>DexSpan Contract Address</th> | ||
{/* <th style={{ fontWeight: 'bold' }}>Fee Payer Address</th> */} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{data.map((item) => ( | ||
<tr key={item.chainId}> | ||
<td>{item.chainId}</td> | ||
{/* <td>{item.chainName}</td> */} | ||
<td>{item.forwarderBridge ? item.forwarderBridge : "Not present"}</td> | ||
<td>{item.mintBurnBridge ? item.mintBurnBridge : "Not present"}</td> | ||
<td>{item.dexSpan ? item.dexSpan : "Not present" }</td> | ||
{/* <td>Your Address</td> */} | ||
</tr> | ||
))} | ||
</tbody> | ||
</table> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ContractData; |