-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
17,698 additions
and
0 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 |
---|---|---|
|
@@ -23,3 +23,5 @@ go.work.sum | |
|
||
# env file | ||
.env | ||
|
||
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "safe-smart-account"] | ||
path = safe-smart-account | ||
url = [email protected]:safe-global/safe-smart-account.git |
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,33 @@ | ||
.PHONY: clean hardhat bindings build rebuild | ||
|
||
rebuild: clean hardhat bindings build | ||
|
||
build: bin/safes | ||
|
||
bin/safes: | ||
mkdir -p bin | ||
go build -o bin/safes ./ | ||
|
||
bindings/Safe/Safe.go: | ||
mkdir -p bindings/Safe | ||
seer evm generate --package Safe --output bindings/Safe/Safe.go --hardhat safe-smart-account/build/artifacts/contracts/Safe.sol/Safe.json --cli --struct Safe | ||
|
||
bindings/SafeL2/SafeL2.go: | ||
mkdir -p bindings/SafeL2 | ||
seer evm generate --package SafeL2 --output bindings/SafeL2/SafeL2.go --hardhat safe-smart-account/build/artifacts/contracts/SafeL2.sol/SafeL2.json --cli --struct SafeL2 | ||
|
||
bindings/SafeProxy/SafeProxy.go: | ||
mkdir -p bindings/SafeProxy | ||
seer evm generate --package SafeProxy --output bindings/SafeProxy/SafeProxy.go --hardhat safe-smart-account/build/artifacts/contracts/proxies/SafeProxy.sol/SafeProxy.json --cli --struct SafeProxy | ||
|
||
bindings/SafeProxyFactory/SafeProxyFactory.go: | ||
mkdir -p bindings/SafeProxyFactory | ||
seer evm generate --package SafeProxyFactory --output bindings/SafeProxyFactory/SafeProxyFactory.go --hardhat safe-smart-account/build/artifacts/contracts/proxies/SafeProxyFactory.sol/SafeProxyFactory.json --cli --struct SafeProxyFactory | ||
|
||
bindings: bindings/Safe/Safe.go bindings/SafeL2/SafeL2.go bindings/SafeProxy/SafeProxy.go bindings/SafeProxyFactory/SafeProxyFactory.go | ||
|
||
clean: | ||
rm -rf bindings/* bin/* | ||
|
||
hardhat: | ||
cd safe-smart-account && npm install && npx hardhat compile |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.