-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge the develop branch to the master branch, preparation to v3.0.0-rc0
This merge contains the following set of changes: * [Oracle, Improvement] Oracle watcher for AMB async calls (#509), * [Common, Other] Update the contract's submodule to the release 6.0.0-rc0 (#562)
- Loading branch information
Showing
140 changed files
with
9,193 additions
and
3,998 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
10.22 | ||
12.22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,6 @@ | |
"eslint-plugin-jest": "^23.18.0" | ||
}, | ||
"engines": { | ||
"node": ">= 10.18" | ||
"node": ">= 12.22" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:10 as contracts | ||
FROM node:12 as contracts | ||
|
||
WORKDIR /mono | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,12 @@ | ||
const BRIDGE_MODES = { | ||
NATIVE_TO_ERC: 'NATIVE_TO_ERC', | ||
ERC_TO_ERC: 'ERC_TO_ERC', | ||
ERC_TO_NATIVE: 'ERC_TO_NATIVE', | ||
NATIVE_TO_ERC_V1: 'NATIVE_TO_ERC_V1', | ||
ARBITRARY_MESSAGE: 'ARBITRARY_MESSAGE', | ||
AMB_ERC_TO_ERC: 'AMB_ERC_TO_ERC', | ||
STAKE_AMB_ERC_TO_ERC: 'STAKE_AMB_ERC_TO_ERC' | ||
} | ||
|
||
const ERC_TYPES = { | ||
ERC20: 'ERC20', | ||
ERC677: 'ERC677' | ||
} | ||
|
||
const FEE_MANAGER_MODE = { | ||
ONE_DIRECTION: 'ONE_DIRECTION', | ||
BOTH_DIRECTIONS: 'BOTH_DIRECTIONS', | ||
ONE_DIRECTION_STAKE: 'ONE_DIRECTION_STAKE', | ||
UNDEFINED: 'UNDEFINED' | ||
AMB_ERC_TO_ERC: 'AMB_ERC_TO_ERC' | ||
} | ||
|
||
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000' | ||
|
||
module.exports = { | ||
BRIDGE_MODES, | ||
ERC_TYPES, | ||
FEE_MANAGER_MODE, | ||
ZERO_ADDRESS | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
const { expect } = require('chai') | ||
const { BRIDGE_MODES, ERC_TYPES } = require('../constants') | ||
const { BRIDGE_MODES } = require('../constants') | ||
|
||
describe('constants', () => { | ||
it('should contain correct number of bridge types', () => { | ||
expect(Object.keys(BRIDGE_MODES).length).to.be.equal(7) | ||
}) | ||
|
||
it('should contain correct number of erc types', () => { | ||
expect(Object.keys(ERC_TYPES).length).to.be.equal(2) | ||
expect(Object.keys(BRIDGE_MODES).length).to.be.equal(3) | ||
}) | ||
}) |
Oops, something went wrong.