-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move contract dev scripts to dev/contracts
- Loading branch information
Showing
11 changed files
with
3,325 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
*.so | ||
*.dylib | ||
|
||
# delve debugger | ||
__debug_* | ||
|
||
# build folder | ||
build/ | ||
bin/ | ||
|
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"addresses": { | ||
"groupMessagesDeployer": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", | ||
"groupMessagesImpl": "0xc0F115A19107322cFBf1cDBC7ea011C19EbDB4F8", | ||
"groupMessagesProxy": "0xc96304e3c037f81dA488ed9dEa1D8F2a48278a75", | ||
"groupMessagesImpl": "0xB0f05d25e41FbC2b52013099ED9616f1206Ae21B", | ||
"groupMessagesProxy": "0x5FeaeBfB4439F3516c74939A9D04e95AFE82C4ae", | ||
"groupMessagesProxyAdmin": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" | ||
}, | ||
"deploymentBlock": 107, | ||
"latestUpgradeBlock": 107 | ||
"deploymentBlock": 43, | ||
"latestUpgradeBlock": 43 | ||
} |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"addresses": { | ||
"identityUpdatesDeployer": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", | ||
"identityUpdatesImpl": "0x34B40BA116d5Dec75548a9e9A8f15411461E8c70", | ||
"identityUpdatesProxy": "0xD0141E899a65C95a556fE2B27e5982A6DE7fDD7A", | ||
"identityUpdatesImpl": "0x976fcd02f7C4773dd89C309fBF55D5923B4c98a1", | ||
"identityUpdatesProxy": "0x19cEcCd6942ad38562Ee10bAfd44776ceB67e923", | ||
"identityUpdatesProxyAdmin": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" | ||
}, | ||
"deploymentBlock": 109, | ||
"latestUpgradeBlock": 109 | ||
"deploymentBlock": 45, | ||
"latestUpgradeBlock": 45 | ||
} |
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
PACKAGE_NAME="abis" | ||
BUILD_DIR="build" | ||
OUTPUT_DIR="pkg/abis" | ||
|
||
mkdir -p ./build | ||
rm -f ./build/*.abi.json | ||
rm -f ./pkg/abis/*.go | ||
|
||
function generate_bindings() { | ||
cd contracts | ||
forge inspect ./src/${1}.sol:${1} abi > ../${BUILD_DIR}/${1}.abi.json | ||
forge inspect ./src/${1}.sol:${1} bytecode > ../${BUILD_DIR}/${1}.bin.json | ||
|
||
cd .. | ||
abigen --abi ./${BUILD_DIR}/${1}.abi.json --bin ./${BUILD_DIR}/${1}.bin.json --pkg "${PACKAGE_NAME}" --type "${1}" --out "./${OUTPUT_DIR}/${1}.go" > /dev/null 2>&1 | ||
|
||
} | ||
|
||
for contract in Nodes GroupMessages IdentityUpdates; do | ||
generate_bindings $contract | ||
done |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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