Skip to content

Commit

Permalink
Add new svp methods and events
Browse files Browse the repository at this point in the history
  • Loading branch information
julia-zack committed Dec 17, 2024
1 parent d665a23 commit 841aa8f
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 1 deletion.
86 changes: 86 additions & 0 deletions abis/bridge.json
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,75 @@
}
]
},
{
"name": "getProposedFederationAddress",
"type": "function",
"constant": true,
"inputs": [],
"outputs": [
{
"name": "",
"type": "string"
}
]
},
{
"name": "getProposedFederationSize",
"type": "function",
"constant": true,
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getProposedFederatorPublicKeyOfType",
"type": "function",
"constant": true,
"inputs": [
{
"name": "index",
"type": "int256"
},
{
"name": "type",
"type": "string"
}
],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getProposedFederationCreationTime",
"type": "function",
"constant": true,
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getProposedFederationCreationBlockNumber",
"type": "function",
"constant": true,
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getLockWhitelistSize",
"type": "function",
Expand Down Expand Up @@ -1094,6 +1163,23 @@
"name": "commit_federation",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "proposedFederationRedeemScript",
"type": "bytes"
},
{
"indexed": false,
"name": "blockNumber",
"type": "int256"
}
],
"name": "commit_federation_failed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion tests/bridge.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('Bridge', () => {
});

it('has all the expected signatures', () => {
assert.equal(bridge.abi.length, 77);
assert.equal(bridge.abi.length, 83);
});

it('builds a valid contract', () => {
Expand Down
5 changes: 5 additions & 0 deletions tools/RootstockBridge.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ <h5 class='text-center'>Simple html page to interact with the Rootstock (RSK) Bl
'getPendingFederationHash',
'getPendingFederationSize',
'getPendingFederatorPublicKeyOfType',
'getProposedFederationAddress',
'getProposedFederationSize',
'getProposedFederatorPublicKeyOfType',
'getProposedFederationCreationTime',
'getProposedFederationCreationBlockNumber',
'getFeePerKb',
'getMinimumLockTxValue',
'hasBtcBlockCoinbaseTransactionInformation',
Expand Down

0 comments on commit 841aa8f

Please sign in to comment.