mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Upgrade contracts and parse init events
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
27
eth/contracts/update.sh
Executable file
27
eth/contracts/update.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
gen() {
|
||||
local name=$1
|
||||
local pkg=$2
|
||||
local folder=$3
|
||||
if [ -z "$3" ]; then
|
||||
folder=$name
|
||||
fi
|
||||
|
||||
jq .abi "${CONTRACTS}/artifacts/${pkg}.json" > /tmp/${name}.abi
|
||||
abigen --abi /tmp/${name}.abi --pkg=${pkg} --out=${folder}/${pkg}.go
|
||||
}
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
echo "Usage: $0 CONTRACTS_REPO_PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CONTRACTS="$1"
|
||||
|
||||
gen hermez Hermez
|
||||
gen auction HermezAuctionProtocol
|
||||
gen withdrawdelayer WithdrawalDelayer
|
||||
gen HEZ HEZ tokenHEZ
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user