Bump version to 5.0.0 (#422)

This commit is contained in:
Alexander Kolotov 2020-05-25 19:34:43 +03:00 committed by GitHub
parent 45993e8a1b
commit f74821afba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 6 deletions

View File

@ -5,6 +5,7 @@ deploy/node_modules
.dockerignore
deploy/.env
deploy/*.config
deploy/*.env
docker-compose.yml
Dockerfile
*.log

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ coverage
upgrade/.env*
deploy/.env
deploy/*.config
deploy/*.env

View File

@ -2,7 +2,7 @@ pragma solidity 0.4.24;
contract VersionableBridge {
function getBridgeInterfacesVersion() external pure returns (uint64 major, uint64 minor, uint64 patch) {
return (4, 1, 0);
return (5, 0, 0);
}
/* solcov ignore next */

View File

@ -3,14 +3,20 @@ pragma solidity 0.4.24;
import "../VersionableBridge.sol";
contract VersionableAMB is VersionableBridge {
// message format version as a single 4-bytes number padded to 32-bytes value, included into every outgoing relay request
bytes32 internal constant MESSAGE_PACKING_VERSION = 0x00040000 << 224;
// message format version as a single 4-bytes number padded to 32-bytes
// value, included into every outgoing relay request
//
// the message version should be updated every time when
// - new field appears
// - some field removed
// - fields order is changed
bytes32 internal constant MESSAGE_PACKING_VERSION = 0x00050000 << 224;
/**
* Returns currently used bridge version
* @return (major, minor, patch) version triple
*/
function getBridgeInterfacesVersion() external pure returns (uint64 major, uint64 minor, uint64 patch) {
return (4, 0, 0);
return (5, 0, 0);
}
}

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "token-bridge-contracts",
"version": "5.0.0-rc0",
"version": "5.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "token-bridge-contracts",
"version": "5.0.0-rc0",
"version": "5.0.0",
"description": "Bridge",
"main": "index.js",
"scripts": {