Skip to content

Commit

Permalink
add oracle sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoyangLiu committed Jun 15, 2020
1 parent 9b6e096 commit 21887fe
Show file tree
Hide file tree
Showing 20 changed files with 884 additions and 338 deletions.
108 changes: 89 additions & 19 deletions abi/bscvalidatorset.abi
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,25 @@
"name": "systemTransfer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "channelId",
"type": "uint8"
},
{
"indexed": false,
"internalType": "bytes",
"name": "msgBytes",
"type": "bytes"
}
],
"name": "unexpectedPackage",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -376,6 +395,21 @@
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "EXPIRE_TIME_SECOND_GAP",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
Expand Down Expand Up @@ -466,6 +500,21 @@
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "PRECISION",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
Expand Down Expand Up @@ -631,6 +680,21 @@
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "bscChainID",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
Expand Down Expand Up @@ -677,6 +741,27 @@
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "currentValidatorSetMap",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
Expand Down Expand Up @@ -763,12 +848,12 @@
"inputs": [
{
"internalType": "uint8",
"name": "",
"name": "channelId",
"type": "uint8"
},
{
"internalType": "bytes",
"name": "",
"name": "msgBytes",
"type": "bytes"
}
],
Expand All @@ -783,12 +868,12 @@
"inputs": [
{
"internalType": "uint8",
"name": "",
"name": "channelId",
"type": "uint8"
},
{
"internalType": "bytes",
"name": "",
"name": "msgBytes",
"type": "bytes"
}
],
Expand Down Expand Up @@ -848,21 +933,6 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "previousDepositHeight",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
Expand Down
137 changes: 122 additions & 15 deletions abi/crosschain.abi
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@
{
"indexed": true,
"internalType": "uint64",
"name": "sequence",
"name": "oracleSequence",
"type": "uint64"
},
{
"indexed": true,
"internalType": "uint64",
"name": "packageSequence",
"type": "uint64"
},
{
Expand Down Expand Up @@ -161,6 +167,21 @@
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "CODE_OK",
"outputs": [
{
"internalType": "uint32",
"name": "",
"type": "uint32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
Expand All @@ -176,6 +197,21 @@
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ERROR_FAIL_DECODE",
"outputs": [
{
"internalType": "uint32",
"name": "",
"type": "uint32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
Expand Down Expand Up @@ -236,6 +272,21 @@
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "INIT_BATCH_SIZE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
Expand Down Expand Up @@ -329,7 +380,7 @@
{
"constant": true,
"inputs": [],
"name": "SYNC_PACKAGE",
"name": "SYN_PACKAGE",
"outputs": [
{
"internalType": "uint8",
Expand Down Expand Up @@ -431,6 +482,36 @@
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "batchSizeForOracle",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "bscChainID",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
Expand Down Expand Up @@ -504,12 +585,7 @@
},
{
"internalType": "uint256",
"name": "syncRelayFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ackRelayFee",
"name": "relayFee",
"type": "uint256"
},
{
Expand Down Expand Up @@ -595,6 +671,42 @@
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "oracleSequence",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "packageCounterForEachHeight",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
Expand Down Expand Up @@ -631,16 +743,11 @@
},
{
"internalType": "uint256",
"name": "syncRelayFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ackRelayFee",
"name": "relayFee",
"type": "uint256"
}
],
"name": "sendPackage",
"name": "sendSynPackage",
"outputs": [
{
"internalType": "bool",
Expand Down
Loading

0 comments on commit 21887fe

Please sign in to comment.