We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 130f883 commit cd2c59eCopy full SHA for cd2c59e
.gitignore
@@ -1,4 +1,5 @@
1
- artifacts/
2
- cache/
3
- gnoshcontracts/
4
- out/
+artifacts/
+cache/
+gnoshcontracts/
+shopcontracts/
5
+out/
gen_shop_bindings.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+CONTRACTS=(
+ "Inbox"
+ "ValidatorRegistry"
6
+ "KeyperSetManager"
7
+ "KeyperSet"
8
+ "EonKeyPublish"
9
+ "KeyBroadcastContract"
10
+)
11
+OUTPUT_DIR="shopcontracts"
12
+PACKAGE_NAME="shopcontracts"
13
14
+mkdir -p "$OUTPUT_DIR"
15
16
+forge build
17
18
+for contract in "${CONTRACTS[@]}"; do
19
+ pkg=$(echo "$contract" | tr '[:upper:]' '[:lower:]')
20
+ d="${OUTPUT_DIR}/${pkg}"
21
+ mkdir -p "${d}"
22
+ abigen --abi <(jq '.["abi"]' "out/${contract}.sol/${contract}.json") --pkg "${pkg}" --out "${d}/${pkg}.go"
23
+done
0 commit comments