-
Notifications
You must be signed in to change notification settings - Fork 278
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
Adds privacy-preserving HTLCs to the htlc-eth-besu package. Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> feat: improve hash time lock base Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> feat: add privacy helper offchain relayer Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> feat: add private HTLC draft (wip) Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> chore: add configuration files Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> chore: recompile contracts Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> test(wip): private htlc Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> feat: private htlc verifications Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> docs: update documentation and configs Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> test: private HTLC (wip) Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> chore: config files and artefacts Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> feat: private htlc Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> feat: fix bug in proof verification Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> chore: lint contracts Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> chore: use hardcoded variable for contract name Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> feat: privacy enhancements Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> feat: update offchain relayer Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> feat(plugin-htlc-eth-besu): add private HTLCs and forge build & test Adds privacy-preserving HTLCs to the htlc-eth-besu package. Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> docs(htlc): update README Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> ci(htlc): add foundry setup and tests Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> fix(htlc): remove magic strings Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> fix(htlc): remove gitmodules from root Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> fix(htlc): re-order ci Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> fix(htlc): fix magic strings Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> chore(htlc): update nohoist configuration Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> build(package.json): removed global nohoist, add localized remappings 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. Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
- 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.