mirror of
https://github.com/AthanorLabs/atomic-swap.git
synced 2026-01-09 14:18:03 -05:00
* rework contracts to use less gas by storing just swap hash when creating a swap * prevent overriding of existing swaps * ensure swap exists when trying to refund * update bindings script and go contract bindings * update swapfactory go tests * updating protocol, compiles * update recoverer, everything builds * fix cmd/recover tests * fix recover tests * lint * fix checkContractCode * fix protocol/ tests * inherit secp256k1 instead of using library to prevent double deployment * rerun abigen and hardcode runtime bin for now * add nolint to long hardcoded runtime bin line * cleanup commented out stuff Co-authored-by: noot <elizabethjbinks@gmail.com>
9 lines
335 B
Bash
Executable File
9 lines
335 B
Bash
Executable File
#!/bin/bash
|
|
|
|
$SOLC_BIN --abi ethereum/contracts/SwapFactory.sol -o ethereum/abi/ --overwrite
|
|
$SOLC_BIN --bin ethereum/contracts/SwapFactory.sol -o ethereum/bin/ --overwrite
|
|
|
|
# this requires geth v1.10.17 or lower
|
|
abigen --sol ethereum/contracts/SwapFactory.sol --pkg swapfactory --out swap_factory.go
|
|
mv swap_factory.go ./swapfactory
|