forked from hashgraph/hedera-protobufs-go
/
crypto_create.pb.go
453 lines (415 loc) · 20.2 KB
/
crypto_create.pb.go
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
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v3.12.4
// source: crypto_create.proto
package services
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Create a new account. After the account is created, the AccountID for it is in the receipt. It
// can also be retrieved with a GetByKey query. Threshold values can be defined, and records are
// generated and stored for 25 hours for any transfer that exceeds the thresholds. This account is
// charged for each record generated, so the thresholds are useful for limiting record generation to
// happen only for large transactions.
//
// The Key field is the key used to sign transactions for this account. If the account has
// receiverSigRequired set to true, then all cryptocurrency transfers must be signed by this
// account's key, both for transfers in and out. If it is false, then only transfers out have to be
// signed by it. When the account is created, the payer account is charged enough hbars so that the
// new account will not expire for the next autoRenewPeriod seconds. When it reaches the expiration
// time, the new account will then be automatically charged to renew for another autoRenewPeriod
// seconds. If it does not have enough hbars to renew for that long, then the remaining hbars are
// used to extend its expiration as long as possible. If it is has a zero balance when it expires,
// then it is deleted. This transaction must be signed by the payer account. If receiverSigRequired
// is false, then the transaction does not have to be signed by the keys in the keys field. If it is
// true, then it must be signed by them, in addition to the keys of the payer account. If the
// auto_renew_account field is set, the key of the referenced account must sign.
//
// An entity (account, file, or smart contract instance) must be created in a particular realm. If
// the realmID is left null, then a new realm will be created with the given admin key. If a new
// realm has a null adminKey, then anyone can create/modify/delete entities in that realm. But if an
// admin key is given, then any transaction to create/modify/delete an entity in that realm must be
// signed by that key, though anyone can still call functions on smart contract instances that exist
// in that realm. A realm ceases to exist when everything within it has expired and no longer
// exists.
//
// The current API ignores shardID, realmID, and newRealmAdminKey, and creates everything in shard 0
// and realm 0, with a null key. Future versions of the API will support multiple realms and
// multiple shards.
type CryptoCreateTransactionBody struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// *
// The key that must sign each transfer out of the account. If receiverSigRequired is true, then
// it must also sign any transfer into the account.
Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// *
// The initial number of tinybars to put into the account
InitialBalance uint64 `protobuf:"varint,2,opt,name=initialBalance,proto3" json:"initialBalance,omitempty"`
// *
// [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
// invalid account, or is an account that isn't a node, then this account is automatically proxy
// staked to a node chosen by the network, but without earning payments. If the proxyAccountID
// account refuses to accept proxy staking , or if it is not currently running a node, then it
// will behave as if proxyAccountID was null.
//
// Deprecated: Marked as deprecated in crypto_create.proto.
ProxyAccountID *AccountID `protobuf:"bytes,3,opt,name=proxyAccountID,proto3" json:"proxyAccountID,omitempty"`
// *
// [Deprecated]. The threshold amount (in tinybars) for which an account record is created for
// any send/withdraw transaction
//
// Deprecated: Marked as deprecated in crypto_create.proto.
SendRecordThreshold uint64 `protobuf:"varint,6,opt,name=sendRecordThreshold,proto3" json:"sendRecordThreshold,omitempty"`
// *
// [Deprecated]. The threshold amount (in tinybars) for which an account record is created for
// any receive/deposit transaction
//
// Deprecated: Marked as deprecated in crypto_create.proto.
ReceiveRecordThreshold uint64 `protobuf:"varint,7,opt,name=receiveRecordThreshold,proto3" json:"receiveRecordThreshold,omitempty"`
// *
// If true, this account's key must sign any transaction depositing into this account (in
// addition to all withdrawals)
ReceiverSigRequired bool `protobuf:"varint,8,opt,name=receiverSigRequired,proto3" json:"receiverSigRequired,omitempty"`
// *
// The account is charged to extend its expiration date every this many seconds. If it doesn't
// have enough balance, it extends as long as possible. If it is empty when it expires, then it
// is deleted.
AutoRenewPeriod *Duration `protobuf:"bytes,9,opt,name=autoRenewPeriod,proto3" json:"autoRenewPeriod,omitempty"`
// *
// The shard in which this account is created
ShardID *ShardID `protobuf:"bytes,10,opt,name=shardID,proto3" json:"shardID,omitempty"`
// *
// The realm in which this account is created (leave this null to create a new realm)
RealmID *RealmID `protobuf:"bytes,11,opt,name=realmID,proto3" json:"realmID,omitempty"`
// *
// If realmID is null, then this the admin key for the new realm that will be created
NewRealmAdminKey *Key `protobuf:"bytes,12,opt,name=newRealmAdminKey,proto3" json:"newRealmAdminKey,omitempty"`
// *
// The memo associated with the account (UTF-8 encoding max 100 bytes)
Memo string `protobuf:"bytes,13,opt,name=memo,proto3" json:"memo,omitempty"`
// *
// The maximum number of tokens that an Account can be implicitly associated with. Defaults to 0
// and up to a maximum value of 1000.
MaxAutomaticTokenAssociations int32 `protobuf:"varint,14,opt,name=max_automatic_token_associations,json=maxAutomaticTokenAssociations,proto3" json:"max_automatic_token_associations,omitempty"`
// *
// ID of the account or node to which this account is staking.
//
// Types that are assignable to StakedId:
//
// *CryptoCreateTransactionBody_StakedAccountId
// *CryptoCreateTransactionBody_StakedNodeId
StakedId isCryptoCreateTransactionBody_StakedId `protobuf_oneof:"staked_id"`
// *
// If true, the account declines receiving a staking reward. The default value is false.
DeclineReward bool `protobuf:"varint,17,opt,name=decline_reward,json=declineReward,proto3" json:"decline_reward,omitempty"`
// *
// The bytes to be used as the account's alias. It will be the
// serialization of a protobuf Key message for an ED25519/ECDSA_SECP256K1 primitive key type. Currently only primitive key bytes are
// supported as the key for an account with an alias. ThresholdKey, KeyList, ContractID, and
// delegatable_contract_id are not supported.
//
// May also be the EOA 20-byte address to create that is derived from the keccak-256 hash of a ECDSA_SECP256K1 primitive key.
//
// A given alias can map to at most one account on the network at a time. This uniqueness will be enforced
// relative to aliases currently on the network at alias assignment.
//
// If a transaction creates an account using an alias, any further crypto transfers to that alias will
// simply be deposited in that account, without creating anything, and with no creation fee being charged.
Alias []byte `protobuf:"bytes,18,opt,name=alias,proto3" json:"alias,omitempty"`
}
func (x *CryptoCreateTransactionBody) Reset() {
*x = CryptoCreateTransactionBody{}
if protoimpl.UnsafeEnabled {
mi := &file_crypto_create_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CryptoCreateTransactionBody) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CryptoCreateTransactionBody) ProtoMessage() {}
func (x *CryptoCreateTransactionBody) ProtoReflect() protoreflect.Message {
mi := &file_crypto_create_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CryptoCreateTransactionBody.ProtoReflect.Descriptor instead.
func (*CryptoCreateTransactionBody) Descriptor() ([]byte, []int) {
return file_crypto_create_proto_rawDescGZIP(), []int{0}
}
func (x *CryptoCreateTransactionBody) GetKey() *Key {
if x != nil {
return x.Key
}
return nil
}
func (x *CryptoCreateTransactionBody) GetInitialBalance() uint64 {
if x != nil {
return x.InitialBalance
}
return 0
}
// Deprecated: Marked as deprecated in crypto_create.proto.
func (x *CryptoCreateTransactionBody) GetProxyAccountID() *AccountID {
if x != nil {
return x.ProxyAccountID
}
return nil
}
// Deprecated: Marked as deprecated in crypto_create.proto.
func (x *CryptoCreateTransactionBody) GetSendRecordThreshold() uint64 {
if x != nil {
return x.SendRecordThreshold
}
return 0
}
// Deprecated: Marked as deprecated in crypto_create.proto.
func (x *CryptoCreateTransactionBody) GetReceiveRecordThreshold() uint64 {
if x != nil {
return x.ReceiveRecordThreshold
}
return 0
}
func (x *CryptoCreateTransactionBody) GetReceiverSigRequired() bool {
if x != nil {
return x.ReceiverSigRequired
}
return false
}
func (x *CryptoCreateTransactionBody) GetAutoRenewPeriod() *Duration {
if x != nil {
return x.AutoRenewPeriod
}
return nil
}
func (x *CryptoCreateTransactionBody) GetShardID() *ShardID {
if x != nil {
return x.ShardID
}
return nil
}
func (x *CryptoCreateTransactionBody) GetRealmID() *RealmID {
if x != nil {
return x.RealmID
}
return nil
}
func (x *CryptoCreateTransactionBody) GetNewRealmAdminKey() *Key {
if x != nil {
return x.NewRealmAdminKey
}
return nil
}
func (x *CryptoCreateTransactionBody) GetMemo() string {
if x != nil {
return x.Memo
}
return ""
}
func (x *CryptoCreateTransactionBody) GetMaxAutomaticTokenAssociations() int32 {
if x != nil {
return x.MaxAutomaticTokenAssociations
}
return 0
}
func (m *CryptoCreateTransactionBody) GetStakedId() isCryptoCreateTransactionBody_StakedId {
if m != nil {
return m.StakedId
}
return nil
}
func (x *CryptoCreateTransactionBody) GetStakedAccountId() *AccountID {
if x, ok := x.GetStakedId().(*CryptoCreateTransactionBody_StakedAccountId); ok {
return x.StakedAccountId
}
return nil
}
func (x *CryptoCreateTransactionBody) GetStakedNodeId() int64 {
if x, ok := x.GetStakedId().(*CryptoCreateTransactionBody_StakedNodeId); ok {
return x.StakedNodeId
}
return 0
}
func (x *CryptoCreateTransactionBody) GetDeclineReward() bool {
if x != nil {
return x.DeclineReward
}
return false
}
func (x *CryptoCreateTransactionBody) GetAlias() []byte {
if x != nil {
return x.Alias
}
return nil
}
type isCryptoCreateTransactionBody_StakedId interface {
isCryptoCreateTransactionBody_StakedId()
}
type CryptoCreateTransactionBody_StakedAccountId struct {
// *
// ID of the account to which this account is staking.
StakedAccountId *AccountID `protobuf:"bytes,15,opt,name=staked_account_id,json=stakedAccountId,proto3,oneof"`
}
type CryptoCreateTransactionBody_StakedNodeId struct {
// *
// ID of the node this account is staked to.
StakedNodeId int64 `protobuf:"varint,16,opt,name=staked_node_id,json=stakedNodeId,proto3,oneof"`
}
func (*CryptoCreateTransactionBody_StakedAccountId) isCryptoCreateTransactionBody_StakedId() {}
func (*CryptoCreateTransactionBody_StakedNodeId) isCryptoCreateTransactionBody_StakedId() {}
var File_crypto_create_proto protoreflect.FileDescriptor
var file_crypto_create_proto_rawDesc = []byte{
0x0a, 0x13, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x62, 0x61,
0x73, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x0e, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0x9b, 0x06, 0x0a, 0x1b, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x6f, 0x64, 0x79, 0x12,
0x1c, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4b, 0x65, 0x79, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x26, 0x0a,
0x0e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x42, 0x61,
0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x41, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x42,
0x02, 0x18, 0x01, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x49, 0x44, 0x12, 0x34, 0x0a, 0x13, 0x73, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72,
0x64, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04,
0x42, 0x02, 0x18, 0x01, 0x52, 0x13, 0x73, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x3a, 0x0a, 0x16, 0x72, 0x65, 0x63,
0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68,
0x6f, 0x6c, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x16, 0x72,
0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x68, 0x72, 0x65,
0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x30, 0x0a, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
0x72, 0x53, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01,
0x28, 0x08, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x53, 0x69, 0x67, 0x52,
0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x0f, 0x61, 0x75, 0x74, 0x6f, 0x52,
0x65, 0x6e, 0x65, 0x77, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x52, 0x0f, 0x61, 0x75, 0x74, 0x6f, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x50, 0x65, 0x72, 0x69,
0x6f, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x44, 0x18, 0x0a, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x68, 0x61, 0x72,
0x64, 0x49, 0x44, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x44, 0x12, 0x28, 0x0a, 0x07,
0x72, 0x65, 0x61, 0x6c, 0x6d, 0x49, 0x44, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x49, 0x44, 0x52, 0x07, 0x72,
0x65, 0x61, 0x6c, 0x6d, 0x49, 0x44, 0x12, 0x36, 0x0a, 0x10, 0x6e, 0x65, 0x77, 0x52, 0x65, 0x61,
0x6c, 0x6d, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4b, 0x65, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x0a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4b, 0x65, 0x79, 0x52, 0x10, 0x6e, 0x65,
0x77, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x12,
0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65,
0x6d, 0x6f, 0x12, 0x47, 0x0a, 0x20, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61,
0x74, 0x69, 0x63, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x1d, 0x6d, 0x61,
0x78, 0x41, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41,
0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3e, 0x0a, 0x11, 0x73,
0x74, 0x61, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64,
0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x74, 0x61, 0x6b,
0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x73,
0x74, 0x61, 0x6b, 0x65, 0x64, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x10, 0x20,
0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x4e, 0x6f, 0x64,
0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x63, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x72,
0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x64, 0x65, 0x63,
0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c,
0x69, 0x61, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73,
0x42, 0x0b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x42, 0x26, 0x0a,
0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x65, 0x64, 0x65, 0x72, 0x61, 0x68, 0x61, 0x73, 0x68, 0x67,
0x72, 0x61, 0x70, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6a,
0x61, 0x76, 0x61, 0x50, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_crypto_create_proto_rawDescOnce sync.Once
file_crypto_create_proto_rawDescData = file_crypto_create_proto_rawDesc
)
func file_crypto_create_proto_rawDescGZIP() []byte {
file_crypto_create_proto_rawDescOnce.Do(func() {
file_crypto_create_proto_rawDescData = protoimpl.X.CompressGZIP(file_crypto_create_proto_rawDescData)
})
return file_crypto_create_proto_rawDescData
}
var file_crypto_create_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_crypto_create_proto_goTypes = []interface{}{
(*CryptoCreateTransactionBody)(nil), // 0: proto.CryptoCreateTransactionBody
(*Key)(nil), // 1: proto.Key
(*AccountID)(nil), // 2: proto.AccountID
(*Duration)(nil), // 3: proto.Duration
(*ShardID)(nil), // 4: proto.ShardID
(*RealmID)(nil), // 5: proto.RealmID
}
var file_crypto_create_proto_depIdxs = []int32{
1, // 0: proto.CryptoCreateTransactionBody.key:type_name -> proto.Key
2, // 1: proto.CryptoCreateTransactionBody.proxyAccountID:type_name -> proto.AccountID
3, // 2: proto.CryptoCreateTransactionBody.autoRenewPeriod:type_name -> proto.Duration
4, // 3: proto.CryptoCreateTransactionBody.shardID:type_name -> proto.ShardID
5, // 4: proto.CryptoCreateTransactionBody.realmID:type_name -> proto.RealmID
1, // 5: proto.CryptoCreateTransactionBody.newRealmAdminKey:type_name -> proto.Key
2, // 6: proto.CryptoCreateTransactionBody.staked_account_id:type_name -> proto.AccountID
7, // [7:7] is the sub-list for method output_type
7, // [7:7] is the sub-list for method input_type
7, // [7:7] is the sub-list for extension type_name
7, // [7:7] is the sub-list for extension extendee
0, // [0:7] is the sub-list for field type_name
}
func init() { file_crypto_create_proto_init() }
func file_crypto_create_proto_init() {
if File_crypto_create_proto != nil {
return
}
file_basic_types_proto_init()
file_duration_proto_init()
if !protoimpl.UnsafeEnabled {
file_crypto_create_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CryptoCreateTransactionBody); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_crypto_create_proto_msgTypes[0].OneofWrappers = []interface{}{
(*CryptoCreateTransactionBody_StakedAccountId)(nil),
(*CryptoCreateTransactionBody_StakedNodeId)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_crypto_create_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_crypto_create_proto_goTypes,
DependencyIndexes: file_crypto_create_proto_depIdxs,
MessageInfos: file_crypto_create_proto_msgTypes,
}.Build()
File_crypto_create_proto = out.File
file_crypto_create_proto_rawDesc = nil
file_crypto_create_proto_goTypes = nil
file_crypto_create_proto_depIdxs = nil
}