-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugin-htlc-eth-besu): add private HTLCs and forge build & test
Primary Change: --------------- Adds privacy-preserving HTLCs to the htlc-eth-besu package. Secondary Change(s): ------------------- 1. Applied the remappings in the foundry.toml file which is local to the package that's being changed. I figured out the parameters by reverse engineering the output of `foundry config` 2. Also removed the remappings.txt file because it is deprecated according to the foundry issue tracker on GitHub. 3. ci(htlc): add foundry setup and tests to the besu HTLC package tests 4. build(package.json): removed global nohoist, add localized remappings Co-authored-by: Peter Somogyvari <peter.somogyvari@accenture.com> Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com> Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt>
- Loading branch information
Showing
31 changed files
with
6,036 additions
and
17,621 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
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 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,5 @@ | ||
.env | ||
cache | ||
lib | ||
vendor | ||
.gas-snapshot |
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,45 @@ | ||
# Foundry Configuration File | ||
# Default definitions: https://github.com/gakonst/foundry/blob/b7917fa8491aedda4dd6db53fbb206ea233cd531/config/src/lib.rs#L782 | ||
|
||
[profile.default] | ||
# The source directory | ||
src = './src/main/solidity/contracts' | ||
# The test directory | ||
test = 'src/test/solidity/integration' | ||
# The script directory | ||
script = './src/main/solidity/contracts/scripts' | ||
# The artifact directory | ||
out = 'build' | ||
solc_version = '0.8.19' | ||
auto_detect_solc = false | ||
optimizer_runs = 1_000 | ||
sender = '0x00a329c0648769a73afac7f9381e08fb43dbea72' # the address of `msg.sender` in tests | ||
tx_origin = '0x00a329c0648769a73afac7f9381e08fb43dbea72' # the address of `tx.origin` in tests | ||
block_number = 0 # the block number we are at in tests | ||
chain_id = 99 # the chain id we are on in tests | ||
gas_limit = 9223372036854775807 # the gas limit in tests | ||
gas_reports = ['*'] | ||
gas_price = 0 # the gas price (in wei) in tests | ||
block_base_fee_per_gas = 0 # the base fee (in wei) in tests | ||
block_coinbase = '0x0000000000000000000000000000000000000000' # the address of `block.coinbase` in tests | ||
block_timestamp = 0 # the value of `block.timestamp` in tests | ||
block_difficulty = 0 | ||
fuzz = { runs = 256 } # the number of fuzz runs for tests | ||
libs = ["../../node_modules"] | ||
remappings = [ | ||
"ds-test/=../../node_modules/ds-test/src/", | ||
"forge-std/=../../node_modules/forge-std/src/", | ||
] | ||
|
||
# Fuzzing CI | ||
[profile.ci] | ||
fuzz_runs = 100_00 | ||
verbosity = 4 | ||
|
||
[rpc_endpoints] | ||
goerli = "${RPC_URL_GOERLI}" | ||
mainnet = "${RPC_URL_MAINNET}" | ||
|
||
[etherscan] | ||
goerli = {key = "${ETHERSCAN_KEY}", url = "https://api-goerli.etherscan.io/api"} | ||
mainnet = {key = "${ETHERSCAN_KEY}"} |
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.