Skip to content

Commit 2d65716

Browse files
committed
Adds new base and super event get methods and keeping the expected sort order.
1 parent 0ec4201 commit 2d65716

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

tools/RootstockBridge.html

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,43 +101,45 @@ <h5 class='text-center'>Simple html page to interact with the Rootstock (RSK) Bl
101101
const allowedMethods = [
102102
'getBtcBlockchainBestChainHeight',
103103
'getBtcBlockchainInitialBlockHeight',
104-
'getBtcBlockchainBlockHashAtDepth',
105-
'getBtcTxHashProcessedHeight',
106-
'isBtcTxHashAlreadyProcessed',
107104
'getFederationAddress',
108105
'getFederationSize',
109106
'getFederationThreshold',
110-
'getFederatorPublicKeyOfType',
111107
'getFederationCreationTime',
112108
'getFederationCreationBlockNumber',
113109
'getRetiringFederationAddress',
114110
'getRetiringFederationSize',
115111
'getRetiringFederationThreshold',
116-
'getRetiringFederatorPublicKeyOfType',
117112
'getRetiringFederationCreationTime',
118113
'getRetiringFederationCreationBlockNumber',
119114
'getPendingFederationHash',
120115
'getPendingFederationSize',
121-
'getPendingFederatorPublicKeyOfType',
122116
'getProposedFederationAddress',
123117
'getProposedFederationSize',
124-
'getProposedFederatorPublicKeyOfType',
125118
'getProposedFederationCreationTime',
126119
'getProposedFederationCreationBlockNumber',
127120
'getFeePerKb',
128121
'getMinimumLockTxValue',
129-
'hasBtcBlockCoinbaseTransactionInformation',
130122
'getActiveFederationCreationBlockHeight',
131123
'getBtcBlockchainBestBlockHeader',
132-
'getBtcBlockchainBlockHeaderByHash',
133-
'getBtcBlockchainBlockHeaderByHeight',
134-
'getBtcBlockchainParentBlockHeaderByHash',
135-
'getEstimatedFeesForPegOutAmount',
136124
'getEstimatedFeesForNextPegOutEvent',
125+
'getEstimatedFeesForPegOutAmount',
137126
'getNextPegoutCreationBlockNumber',
138127
'getQueuedPegoutsCount',
139128
'getActivePowpegRedeemScript',
140-
'getBtcTransactionConfirmations',
129+
'getSuperEvent',
130+
'getBaseEvent',
131+
'getBtcBlockchainBlockHashAtDepth',
132+
'getBtcTxHashProcessedHeight',
133+
'isBtcTxHashAlreadyProcessed',
134+
'hasBtcBlockCoinbaseTransactionInformation',
135+
'getBtcBlockchainBlockHeaderByHash',
136+
'getBtcBlockchainBlockHeaderByHeight',
137+
'getBtcBlockchainParentBlockHeaderByHash',
138+
'getFederatorPublicKeyOfType',
139+
'getRetiringFederatorPublicKeyOfType',
140+
'getPendingFederatorPublicKeyOfType',
141+
'getProposedFederatorPublicKeyOfType',
142+
'getBtcTransactionConfirmations'
141143
];
142144

143145
const bridgeAddress = '0x0000000000000000000000000000000001000006';
@@ -384,7 +386,7 @@ <h5 class='text-center'>Simple html page to interact with the Rootstock (RSK) Bl
384386
return element.type === 'function' && allowedMethods.includes(element.name);
385387
})
386388
.sort((method1, method2) => {
387-
return method1.inputs.length - method2.inputs.length;
389+
return allowedMethods.indexOf(method1.name) - allowedMethods.indexOf(method2.name);
388390
})
389391
.map(element => {
390392
return mapToHtmlElementsGroup(element);

0 commit comments

Comments
 (0)