Skip to content

Commit 1f4438b

Browse files
authored
op-service: add gnosis safe client (#16629)
* gnosis: add safe client * gnosis: add integration tests * gnosis: remove justfile, contain all tests in go * gnosis: fix linter errors * gnosis: always build contracts during test setup
1 parent 93cbd0d commit 1f4438b

File tree

8 files changed

+829
-0
lines changed

8 files changed

+829
-0
lines changed

op-service/gnosis/abi.go

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
package gnosis
2+
3+
var safeABIString = `[
4+
{
5+
"inputs": [],
6+
"name": "getOwners",
7+
"outputs": [{"internalType": "address[]", "name": "", "type": "address[]"}],
8+
"stateMutability": "view",
9+
"type": "function"
10+
},
11+
{
12+
"inputs": [{"type": "address", "name": "owner"}],
13+
"name": "isOwner",
14+
"outputs": [{"type": "bool", "name": ""}],
15+
"stateMutability": "view",
16+
"type": "function"
17+
},
18+
{
19+
"inputs": [
20+
{"type": "address", "name": "to"},
21+
{"type": "uint256", "name": "value"},
22+
{"type": "bytes", "name": "data"},
23+
{"type": "uint8", "name": "operation"},
24+
{"type": "uint256", "name": "safeTxGas"},
25+
{"type": "uint256", "name": "baseGas"},
26+
{"type": "uint256", "name": "gasPrice"},
27+
{"type": "address", "name": "gasToken"},
28+
{"type": "address", "name": "refundReceiver"},
29+
{"type": "bytes", "name": "signatures"}
30+
],
31+
"name": "execTransaction",
32+
"outputs": [{"type": "bool", "name": "success"}],
33+
"type": "function"
34+
},
35+
{
36+
"inputs": [],
37+
"name": "nonce",
38+
"outputs": [{"type": "uint256", "name": ""}],
39+
"type": "function"
40+
},
41+
{
42+
"inputs": [],
43+
"name": "getThreshold",
44+
"outputs": [{"type": "uint256", "name": ""}],
45+
"type": "function"
46+
}
47+
]`

0 commit comments

Comments
 (0)