mirror of
https://github.com/luxfi/oracle.git
synced 2026-10-30 15:23:21 +00:00
* etherscan verification example * fixed data structures Signed-off-by: Kendrick Tan <[email protected]> * partial etherscan verification Signed-off-by: Kendrick Tan <[email protected]> * checks Signed-off-by: Kendrick Tan <[email protected]> * coverage to truffle * truffle... * auto get network api url * revert contracts Signed-off-by: Kendrick Tan <[email protected]>
18 lines
662 B
Bash
Executable File
18 lines
662 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# The truffle directory is passed in as the first argument.
|
|
TRUFFLE_DIR=$1
|
|
|
|
PROTOCOL_DIR=$(pwd)
|
|
|
|
# $1 is the truffle directory over which we want to run the coverage tool.
|
|
cd $TRUFFLE_DIR
|
|
# Truffle compile can take a lot of memory, which I've experienced with the solc-0.6 compatible versions,
|
|
# so I explicitly increase the javascript heap size.
|
|
# More details here: https://github.com/trufflesuite/truffle/issues/957
|
|
# Truffle compile for DecodeTransactionData
|
|
node --max-old-space-size=4096 $(npm bin)/truffle compile
|
|
node --max-old-space-size=4096 $(npm bin)/truffle run coverage && cat coverage/lcov.info | $(npm bin)/coveralls --verbose
|
|
|