-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
247 lines (184 loc) · 5.15 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
schema {
query: query
mutation: mutation
}
"""uint64 encoded as a json string representing an ammount of currency"""
scalar CurrencyAmount
"""uint64 encoded as a json string representing a fee"""
scalar Fee
"""Update to gating config and added peers"""
input GatingUpdate {
"""Peers to connect to"""
addedPeers: [NetworkPeer!]!
"""If true, resets added peers to an empty list (including seeds)"""
cleanAddedPeers: Boolean!
"""
If true, no connections will be allowed unless they are from a trusted peer
"""
isolate: Boolean!
"""
Peers we will never allow connections from (unless they are also trusted!)
"""
bannedPeers: [NetworkPeer!]!
"""Peers we will always allow connections from"""
trustedPeers: [NetworkPeer!]!
}
type ItnAuth {
"""Uuid of the ITN GraphQL server"""
serverUuid: String!
"""Sequence number for the signer of the auth query"""
signerSequenceNumber: UInt16!
"""Libp2p port"""
libp2pPort: UInt16!
"""Peer id"""
peerId: String!
"""Is the node a block producer"""
isBlockProducer: Boolean!
}
type ItnLog {
"""the log ID"""
id: Int!
"""timestamp of the log"""
timestamp: String!
"""the log message"""
message: String!
"""metadata for the log"""
metadata: [logMetadatum!]!
"""if not the daemon, which process sent the log (prover or verifier)"""
process: String
}
"""Arbitrary JSON"""
scalar JSON
type logMetadatum {
"""metadatum item"""
item: String!
"""metadatum value"""
value: JSON!
}
type mutation {
schedulePayments(
"""Payments details"""
input: PaymentsDetails!
): String!
scheduleZkappCommands(
"""Zkapp commands details"""
input: ZkappCommandsDetails!
): String!
stopScheduledTransactions(
"""Transaction scheduler handle"""
handle: String!
): String!
updateGating(
"""Gating update"""
input: GatingUpdate!
): String!
"""Returns number of logs deleted from queue"""
flushInternalLogs(
"""Greatest log ID to be deleted"""
endLogId: Int!
): String!
"""Stop the Mina daemon"""
stopDaemon(
"""Whether to remove saved configuration data (default false)"""
cleanConfig: Boolean
"""Seconds to delay before stopping daemon (minimum 5)"""
delaySeconds: Int
): String!
"""Set zkApp commands per block limit for the block producer."""
zkAppCommandLimit(
"""ZkApp commands per block limit."""
limit: Int
): Int
}
"""Network identifiers for another protocol participant"""
input NetworkPeer {
libp2pPort: Int!
"""IP address of the remote host"""
host: String!
"""base58-encoded peer ID"""
peerId: String!
}
"""Keys and other information for scheduling payments"""
input PaymentsDetails {
"""Length of scheduler run, in minutes"""
durationMin: Int!
"""Frequency of transactions (transactions per second)"""
tps: Float!
"""Memo, up to 32 characters"""
memoPrefix: String!
"""Maximum fee"""
maxFee: Fee!
"""Minimum fee"""
minFee: Fee!
"""Amount for payments"""
amount: CurrencyAmount!
"""Public key of receiver of payments"""
receiver: PublicKey!
"""Private keys of accounts to send from"""
senders: [PrivateKey!]!
}
"""Base58Check-encoded private key"""
scalar PrivateKey
"""Public key in Base58Check format"""
scalar PublicKey
type query {
"""Uuid for GraphQL server, sequence number for signing public key"""
auth: ItnAuth!
"""Slots won by a block producer for current epoch"""
slotsWon: [Int!]!
"""Internal logs generated by the daemon"""
internalLogs(
"""Least log ID to start with"""
startLogId: Int!
): [ItnLog!]!
}
"""String representing a uint16 number in base 10"""
scalar UInt16
"""Keys and other information for scheduling zkapp commands"""
input ZkappCommandsDetails {
"""
Parameter of zkapp generation, each generated zkapp tx will have
(2*maxAccountUpdates+2) account updates (including balancing and fee payer)
"""
maxAccountUpdates: Int
"""Generate max cost zkApp command"""
maxCost: Boolean!
"""The size of queue for recently used accounts"""
accountQueueSize: Int!
"""Fee for the initial deployment of zkApp accounts"""
deploymentFee: Fee!
"""Maximum fee"""
maxFee: Fee!
"""Minimum fee"""
minFee: Fee!
"""
Initial balance for zkApp accounts that we initially deploy for the purpose of test
"""
initBalance: CurrencyAmount!
"""Maximum new zkapp balance"""
maxNewZkappBalance: CurrencyAmount!
"""Minimum new zkapp balance"""
minNewZkappBalance: CurrencyAmount!
"""Maximum balance change"""
maxBalanceChange: CurrencyAmount!
"""Minimum balance change"""
minBalanceChange: CurrencyAmount!
"""Disable the precondition in account updates"""
noPrecondition: Boolean!
"""Prefix of memo"""
memoPrefix: String!
"""Length of scheduler run, in minutes"""
durationMin: Int!
"""Frequency of transactions (transactions per seconds)"""
tps: Float!
"""Number of zkapp accounts that the scheduler generates during the test"""
numNewAccounts: Int!
"""
Number of zkApp accounts that we initially deploy for the purpose of test
"""
numZkappsToDeploy: Int!
"""
Private keys of fee payers (fee payers also function as the account creators)
"""
feePayers: [PrivateKey!]!
}