forked from omni/tokenbridge-contracts
-
Notifications
You must be signed in to change notification settings - Fork 7
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 v6.0.0-rc1
This set of changes includes the following improvements and fixes: * [Improvement] EIP2612 permit (omni#618) * [Fix] Make _sendMessage internal (omni#613) * [Other] Fix coverage (omni#606) * [Other] Remove unused upgrade dir (omni#339 * [Other] Bump package version before 6.0.0-rc1 (omni#619)
- Loading branch information
Showing
41 changed files
with
14,011 additions
and
24,361 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,3 +1,3 @@ | ||
node_modules | ||
deploy | ||
upgrade | ||
coverage |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const Web3 = require('web3') | ||
|
||
async function waitCompoundDeploy(config) { | ||
const web3 = new Web3(config.provider) | ||
const abi = [{ | ||
inputs: [{ name: "", type: "address"}], | ||
outputs: [{ name: "", type: "uint256" }], | ||
name: "balanceOf", | ||
stateMutability: "view", | ||
type: "function" | ||
}] | ||
const cDai = new web3.eth.Contract(abi, '0x615cba17EE82De39162BB87dBA9BcfD6E8BcF298') | ||
const faucet = (await web3.eth.getAccounts())[6] | ||
while (true) { | ||
try { | ||
if (await cDai.methods.balanceOf(faucet).call() !== '0') break | ||
} catch (e) { | ||
await new Promise(res => setTimeout(res, 1000)) | ||
} | ||
} | ||
} | ||
|
||
module.exports = { | ||
skipFiles: [ | ||
'Migrations.sol', | ||
'mocks', | ||
'interfaces', | ||
'helpers' | ||
], | ||
providerOptions: { | ||
port: 8545, | ||
_chainId: 1337, | ||
network_id: 1337, | ||
seed: 'TestRPC is awesome!', | ||
default_balance_ether: 1000000 | ||
}, | ||
onServerReady: waitCompoundDeploy, | ||
istanbulReporter: ['lcov'] | ||
} |
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
File renamed without changes.
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.