/
transaction_body.proto
360 lines (294 loc) · 9.14 KB
/
transaction_body.proto
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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
syntax = "proto3";
package proto;
/*-
*
* Hedera Network Services Protobuf
*
* Copyright (C) 2018 - 2021 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
option java_package = "com.hedera.hashgraph.sdk.proto";
// <<<pbj.java_package = "com.hedera.hapi.node.transaction">>> This comment is special code for setting PBJ Compiler java package
option java_multiple_files = true;
import "system_delete.proto";
import "system_undelete.proto";
import "freeze.proto";
import "contract_call.proto";
import "contract_create.proto";
import "contract_update.proto";
import "crypto_add_live_hash.proto";
import "crypto_create.proto";
import "crypto_delete.proto";
import "crypto_delete_live_hash.proto";
import "crypto_transfer.proto";
import "crypto_update.proto";
import "crypto_approve_allowance.proto";
import "crypto_delete_allowance.proto";
import "ethereum_transaction.proto";
import "file_append.proto";
import "file_create.proto";
import "file_delete.proto";
import "file_update.proto";
import "duration.proto";
import "basic_types.proto";
import "contract_delete.proto";
import "consensus_create_topic.proto";
import "consensus_update_topic.proto";
import "consensus_delete_topic.proto";
import "consensus_submit_message.proto";
import "unchecked_submit.proto";
import "token_create.proto";
import "token_freeze_account.proto";
import "token_unfreeze_account.proto";
import "token_grant_kyc.proto";
import "token_revoke_kyc.proto";
import "token_delete.proto";
import "token_update.proto";
import "token_mint.proto";
import "token_burn.proto";
import "token_wipe_account.proto";
import "token_associate.proto";
import "token_dissociate.proto";
import "token_fee_schedule_update.proto";
import "token_pause.proto";
import "token_unpause.proto";
import "token_update_nfts.proto";
import "schedule_create.proto";
import "schedule_delete.proto";
import "schedule_sign.proto";
import "node_stake_update.proto";
import "util_prng.proto";
/**
* A single transaction. All transaction types are possible here.
*/
message TransactionBody {
/**
* The ID for this transaction, which includes the payer's account (the account paying the
* transaction fee). If two transactions have the same transactionID, they won't both have an
* effect
*/
TransactionID transactionID = 1;
/**
* The account of the node that submits the client's transaction to the network
*/
AccountID nodeAccountID = 2;
/**
* The maximum transaction fee the client is willing to pay
*/
uint64 transactionFee = 3;
/**
* The transaction is invalid if consensusTimestamp > transactionID.transactionValidStart +
* transactionValidDuration
*/
Duration transactionValidDuration = 4;
/**
* Should a record of this transaction be generated? (A receipt is always generated, but the
* record is optional)
*/
bool generateRecord = 5 [deprecated = true];
/**
* Any notes or descriptions that should be put into the record (max length 100)
*/
string memo = 6;
/**
* The choices here are arranged by service in roughly lexicographical order. The field ordinals are non-sequential, and a result of the historical order of implementation.
*/
oneof data {
/**
* Calls a function of a contract instance
*/
ContractCallTransactionBody contractCall = 7;
/**
* Creates a contract instance
*/
ContractCreateTransactionBody contractCreateInstance = 8;
/**
* Updates a contract
*/
ContractUpdateTransactionBody contractUpdateInstance = 9;
/**
* Delete contract and transfer remaining balance into specified account
*/
ContractDeleteTransactionBody contractDeleteInstance = 22;
/**
* An Ethereum encoded transaction.
*/
EthereumTransactionBody ethereumTransaction = 50;
/**
* Attach a new livehash to an account
*/
CryptoAddLiveHashTransactionBody cryptoAddLiveHash = 10;
/**
* Adds one or more approved allowances for spenders to transfer the paying account's hbar or tokens.
*/
CryptoApproveAllowanceTransactionBody cryptoApproveAllowance = 48;
/**
* Deletes one or more of the specific approved NFT serial numbers on an owner account.
*/
CryptoDeleteAllowanceTransactionBody cryptoDeleteAllowance = 49;
/**
* Create a new cryptocurrency account
*/
CryptoCreateTransactionBody cryptoCreateAccount = 11;
/**
* Delete a cryptocurrency account (mark as deleted, and transfer hbars out)
*/
CryptoDeleteTransactionBody cryptoDelete = 12;
/**
* Remove a livehash from an account
*/
CryptoDeleteLiveHashTransactionBody cryptoDeleteLiveHash = 13;
/**
* Transfer amount between accounts
*/
CryptoTransferTransactionBody cryptoTransfer = 14;
/**
* Modify information such as the expiration date for an account
*/
CryptoUpdateTransactionBody cryptoUpdateAccount = 15;
/**
* Add bytes to the end of the contents of a file
*/
FileAppendTransactionBody fileAppend = 16;
/**
* Create a new file
*/
FileCreateTransactionBody fileCreate = 17;
/**
* Delete a file (remove contents and mark as deleted until it expires)
*/
FileDeleteTransactionBody fileDelete = 18;
/**
* Modify information such as the expiration date for a file
*/
FileUpdateTransactionBody fileUpdate = 19;
/**
* Hedera administrative deletion of a file or smart contract
*/
SystemDeleteTransactionBody systemDelete = 20;
/**
* To undelete an entity deleted by SystemDelete
*/
SystemUndeleteTransactionBody systemUndelete = 21;
/**
* Freeze the nodes
*/
FreezeTransactionBody freeze = 23;
/**
* Creates a topic
*/
ConsensusCreateTopicTransactionBody consensusCreateTopic = 24;
/**
* Updates a topic
*/
ConsensusUpdateTopicTransactionBody consensusUpdateTopic = 25;
/**
* Deletes a topic
*/
ConsensusDeleteTopicTransactionBody consensusDeleteTopic = 26;
/**
* Submits message to a topic
*/
ConsensusSubmitMessageTransactionBody consensusSubmitMessage = 27;
/**
* UNDOCUMENTED
*/
UncheckedSubmitBody uncheckedSubmit = 28;
/**
* Creates a token instance
*/
TokenCreateTransactionBody tokenCreation = 29;
/**
* Freezes account not to be able to transact with a token
*/
TokenFreezeAccountTransactionBody tokenFreeze = 31;
/**
* Unfreezes account for a token
*/
TokenUnfreezeAccountTransactionBody tokenUnfreeze = 32;
/**
* Grants KYC to an account for a token
*/
TokenGrantKycTransactionBody tokenGrantKyc = 33;
/**
* Revokes KYC of an account for a token
*/
TokenRevokeKycTransactionBody tokenRevokeKyc = 34;
/**
* Deletes a token instance
*/
TokenDeleteTransactionBody tokenDeletion = 35;
/**
* Updates a token instance
*/
TokenUpdateTransactionBody tokenUpdate = 36;
/**
* Mints new tokens to a token's treasury account
*/
TokenMintTransactionBody tokenMint = 37;
/**
* Burns tokens from a token's treasury account
*/
TokenBurnTransactionBody tokenBurn = 38;
/**
* Wipes amount of tokens from an account
*/
TokenWipeAccountTransactionBody tokenWipe = 39;
/**
* Associate tokens to an account
*/
TokenAssociateTransactionBody tokenAssociate = 40;
/**
* Dissociate tokens from an account
*/
TokenDissociateTransactionBody tokenDissociate = 41;
/**
* Updates a token's custom fee schedule
*/
TokenFeeScheduleUpdateTransactionBody token_fee_schedule_update = 45;
/**
* Pauses the Token
*/
TokenPauseTransactionBody token_pause = 46;
/**
* Unpauses the Token
*/
TokenUnpauseTransactionBody token_unpause = 47;
/**
* Creates a schedule in the network's action queue
*/
ScheduleCreateTransactionBody scheduleCreate = 42;
/**
* Deletes a schedule from the network's action queue
*/
ScheduleDeleteTransactionBody scheduleDelete = 43;
/**
* Adds one or more Ed25519 keys to the affirmed signers of a scheduled transaction
*/
ScheduleSignTransactionBody scheduleSign = 44;
/**
* Updates the staking info at the end of staking period to indicate new staking period has started.
*/
NodeStakeUpdateTransactionBody node_stake_update = 51;
/**
* Generates a pseudorandom number.
*/
UtilPrngTransactionBody util_prng = 52;
/**
* Update the metadata of one or more NFT's of a specific token type.
*/
TokenUpdateNftsTransactionBody token_update_nfts = 53;
}
}