|
@@ -175,11 +175,11 @@ const getLiteTx = () => {
|
|
|
})
|
|
|
}
|
|
|
//获取更多信息
|
|
|
-let amount = ref(0)
|
|
|
-let contract = ref(0)
|
|
|
+let amount = ref('-')
|
|
|
+let contract = ref('-')
|
|
|
let tradingTimeArr = ref()
|
|
|
-let l1Tol2Tx = ref(0)
|
|
|
-let l2Tol1Tx = ref(0)
|
|
|
+let l1Tol2Tx = ref('-')
|
|
|
+let l2Tol1Tx = ref('-')
|
|
|
const getMoreInfo = () => {
|
|
|
getZkSyncBridge(address.value).then((
|
|
|
{
|
|
@@ -205,9 +205,20 @@ const getMoreInfo = () => {
|
|
|
}
|
|
|
//获得layer信息
|
|
|
let apiKey:any
|
|
|
-let layerInfo = ref<any>({})
|
|
|
+let layerInfo = ref<any>({
|
|
|
+ arb:'-',
|
|
|
+ avax: '-',
|
|
|
+ bsc: '-',
|
|
|
+ eth: '-',
|
|
|
+ ftm: '-',
|
|
|
+ matic: '-',
|
|
|
+ metis: '-',
|
|
|
+ op: '-',
|
|
|
+ total: '-',
|
|
|
+ arr:[]
|
|
|
+})
|
|
|
const getLayerInfo = () => {
|
|
|
- getLayerData(address.value,apiKey).then((
|
|
|
+ getLayerData('0x555b07470647Cd159FF6595771054Aee7343e853',apiKey).then((
|
|
|
{arb, avax, bsc, eth, ftm, matic, metis, op, total, arr}:{arb:string, avax:string, bsc:string, eth:string, ftm:string, matic:string, metis:string, op:string, total:string, arr:any[]}
|
|
|
) => {
|
|
|
layerInfo.value = {
|
|
@@ -392,7 +403,7 @@ const sunAndMoon = () => {
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="number">
|
|
|
- {{ layerInfo.total || 0 }}
|
|
|
+ {{ layerInfo.total }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="item" style="gap:6px;">
|
|
@@ -409,7 +420,7 @@ const sunAndMoon = () => {
|
|
|
ETH
|
|
|
</div>
|
|
|
<div class="number">
|
|
|
- {{ layerInfo.eth || 0 }}
|
|
|
+ {{ layerInfo.eth }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="publicChainItem">
|
|
@@ -418,7 +429,7 @@ const sunAndMoon = () => {
|
|
|
MATIC
|
|
|
</div>
|
|
|
<div class="number">
|
|
|
- {{ layerInfo.matic || 0 }}
|
|
|
+ {{ layerInfo.matic }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="publicChainItem">
|
|
@@ -427,7 +438,7 @@ const sunAndMoon = () => {
|
|
|
BSC
|
|
|
</div>
|
|
|
<div class="number">
|
|
|
- {{ layerInfo.bsc || 0 }}
|
|
|
+ {{ layerInfo.bsc }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="publicChainItem">
|
|
@@ -436,7 +447,7 @@ const sunAndMoon = () => {
|
|
|
ARB
|
|
|
</div>
|
|
|
<div class="number">
|
|
|
- {{ layerInfo.arb || 0 }}
|
|
|
+ {{ layerInfo.arb }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="publicChainItem">
|
|
@@ -445,7 +456,7 @@ const sunAndMoon = () => {
|
|
|
OP
|
|
|
</div>
|
|
|
<div class="number">
|
|
|
- {{ layerInfo.op || 0 }}
|
|
|
+ {{ layerInfo.op }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="publicChainItem">
|
|
@@ -454,7 +465,7 @@ const sunAndMoon = () => {
|
|
|
AVAX
|
|
|
</div>
|
|
|
<div class="number">
|
|
|
- {{ layerInfo.avax || 0 }}
|
|
|
+ {{ layerInfo.avax }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="publicChainItem">
|
|
@@ -463,7 +474,7 @@ const sunAndMoon = () => {
|
|
|
FTM
|
|
|
</div>
|
|
|
<div class="number">
|
|
|
- {{ layerInfo.ftm || 0 }}
|
|
|
+ {{ layerInfo.ftm }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="publicChainItem">
|
|
@@ -472,7 +483,7 @@ const sunAndMoon = () => {
|
|
|
METIS
|
|
|
</div>
|
|
|
<div class="number">
|
|
|
- {{ layerInfo.metis || 0 }}
|
|
|
+ {{ layerInfo.metis }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|