-
Notifications
You must be signed in to change notification settings - Fork 11
/
schema.graphql
111 lines (76 loc) · 3.01 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
type Wallet @entity {
"Unique identifier of the wallet (contract Address)"
id : ID!
"ddress who created the contract"
creator : Bytes!
"Network where the wallet is deployed (plain text: rinkeby, ropsten, mainnet, etc.)"
network : String!
"Timestamp when the wallet was deployed"
stamp : BigInt!
"Transaction hash when the wallet was deployed"
hash : Bytes!
"Factory Address which deployed the wallet"
factory : Bytes!
"Mastercopy address used by the proxy"
mastercopy : Bytes
"Version of the Gnosis-Safe"
version : String
"Nonce used to order and uniquely identified each transaction"
currentNonce : BigInt!
"List of owner Addresses of the wallet"
owners : [Bytes!]!
"Number of confirmation required to execute a transaction out of the wallet "
threshold : BigInt!
"List of sucessful and failed transactions executed from the wallet"
transactions : [Transaction!]!
}
type Transaction @entity {
"Unique Identifier of the transaction called Transaction Hash = keccak256(encodeTransactionData(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce))"
id : ID!
"Timestamp when the transaction was executed"
stamp : BigInt
"Block on Ethereum"
block : BigInt
"Transaction hash on Ethereum"
hash : Bytes
"Status of the transaction"
status : TransactionStatus
"Transaction hash on the Safe"
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"
destination : Bytes
"Data of the transaction - smart contract input data bytecode - see https://lab.miguelmota.com/ethereum-input-data-decoder/example/"
data : Bytes
"Signatures"
signatures : Bytes
"Nonce"
nonce : BigInt
"Operation"
operation : Operation
"Estimated Gas that should be used for the Safe transaction."
estimatedSafeTxGas : BigInt
"Estimated Gas costs for that are indipendent 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
"Wallet parent"
wallet : Wallet! @derivedFrom(field: "transactions")
}
enum TransactionStatus {
"Transaction was executed successfully"
EXECUTED
"Transaction failed during the execution "
FAILED
}
enum Operation {
CALL
DELEGATE_CALL
}