forked from multis/gnosis-safe-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
112 lines (78 loc) · 3.07 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
type Wallet @entity {
"Unique identifier of the wallet (Safe{Wallet} address)"
id : Bytes!
"Address that created the contract"
creator : Bytes!
"Network where the wallet is deployed (plain text: mainnet, sepolia, matic, etc.)"
network : String!
"Timestamp when the wallet was deployed"
timestamp : BigInt!
"Transaction hash when the wallet was deployed"
hash : Bytes!
"Factory address that deployed the wallet"
factory : Bytes!
"Singleton address used by the proxy (formerly known as mastercopy)"
singleton : Bytes!
"Version of the Safe{Wallet} (e.g. 1.1.1, 1.3.0, 1.3.0+L2, etc.)"
version : String
"Nonce used to order and uniquely identified each transaction"
currentNonce : BigInt!
"List of owner addresses of the wallet"
owners : [Bytes!]!
"Number of confirmations required to execute a transaction"
threshold : BigInt!
"List of successful and failed transactions executed from the wallet"
transactions : [Transaction!]! @derivedFrom(field: "wallet")
}
type Transaction @entity {
"Unique identifier of the transaction = keccak256(concat(walletAddress, txHash))"
id : Bytes!
"Timestamp when the transaction was executed"
timestamp : BigInt
"Block on Ethereum"
block : BigInt
"Status of the transaction"
status : TransactionStatus
"Network transaction hash"
hash : Bytes
"Safe{Wallet} transaction hash"
txHash : Bytes
"Ether Amount (in WEI) included in the transaction - transfered from the wallet when the transaction is executed"
value : BigInt
"Destination of the transaction"
to : Bytes
"Data of the transaction - smart contract input data bytecode"
data : Bytes
"Signatures"
signatures : Bytes
"Nonce"
nonce : BigInt
"Operation"
operation : Operation
"Estimated Gas that should be used for the underlying Safe transaction"
estimatedSafeTxGas : BigInt
"Estimated Gas costs independent of the transaction execution (e.g. base transaction fee, signature check, payment of the refund)"
estimatedBaseGas : BigInt
"gasPrice (in gasToken)"
gasPrice : BigInt
"gasToken"
gasToken : Bytes
"refundReceiver"
refundReceiver : Bytes
"Amount paid as fee to refundReceiver"
payment : BigInt
"Present if the transaction is from a Safe module (in this case some other fields won't be available as not all fields are used in the Safe module context)"
module : Bytes
"Safe{Wallet} parent"
wallet : Wallet!
}
enum TransactionStatus {
"Transaction was executed successfully"
EXECUTED
"Transaction failed during the execution"
FAILED
}
enum Operation {
CALL
DELEGATE_CALL
}