Skip to content

Commit

Permalink
Merge pull request #67 from rsksmart/update-precompiled-abis-html
Browse files Browse the repository at this point in the history
Update PrecompiledAbis.html
  • Loading branch information
marcos-iov authored May 24, 2024
2 parents e80e622 + 77ecee0 commit c9cddf4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tools/PrecompiledAbis.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ <h5 class='text-center'>Simple html page to get bridge methods selectors and eve
</div>
<div class="col-9">
<select id='abiForForkSelect' class='form-select form-select-sm' aria-label=''>
<option selected value='arrowhead'>Arrowhead</option>
<option selected value='lovell'>Lovell</option>
<option value='arrowhead'>Arrowhead</option>
<option value='fingerroot'>Fingerroot</option>
<option value='hop'>Hop</option>
<option value='iris'>Iris</option>
Expand Down Expand Up @@ -163,6 +164,7 @@ <h5 class="modal-title" id="exampleModalLabel">Abi</h5>
const hopAbisUrl = 'https://raw.githubusercontent.com/rsksmart/precompiled-abis/5.0.0-HOP/abis/bridge.json';
const fingerrootAbisUrl = 'https://raw.githubusercontent.com/rsksmart/precompiled-abis/5.0.0-FINGERROOT/abis/bridge.json';
const arrowheadAbisUrl = 'https://raw.githubusercontent.com/rsksmart/precompiled-abis/6.0.0-ARROWHEAD/abis/bridge.json';
const lovellAbisUrl = 'https://raw.githubusercontent.com/rsksmart/precompiled-abis/7.0.0-LOVELL/abis/bridge.json';

const abisForkInfoMap = {
orchid: {
Expand Down Expand Up @@ -199,6 +201,11 @@ <h5 class="modal-title" id="exampleModalLabel">Abi</h5>
name: '6.0.0-ARROWHEAD',
key: 'arrowhead',
url: arrowheadAbisUrl
},
lovell: {
name: '7.0.0-LOVELL',
key: 'lovell',
url: lovellAbisUrl
}
};

Expand All @@ -210,6 +217,7 @@ <h5 class="modal-title" id="exampleModalLabel">Abi</h5>
hop: null,
fingerroot: null,
arrowhead: null,
lovell: null,
};

const peginMethods = [
Expand Down Expand Up @@ -259,7 +267,7 @@ <h5 class="modal-title" id="exampleModalLabel">Abi</h5>
];

let selectedAbis = null;
let selectedAbiForkInfo = abisForkInfoMap.arrowhead;
let selectedAbiForkInfo = abisForkInfoMap.lovell;

selectedAbisUrl.href = selectedAbiForkInfo.url;
selectedAbisUrl.textContent = selectedAbiForkInfo.url;
Expand Down

0 comments on commit c9cddf4

Please sign in to comment.