diff --git a/go.mod b/go.mod index 4bd159aaf..a6e76f233 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ module github.com/hashgraph/hedera-sdk-go go 1.13 + +require github.com/golang/protobuf v1.3.2 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 000000000..9a46bf954 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= diff --git a/proto/BasicTypes.pb.go b/proto/BasicTypes.pb.go new file mode 100644 index 000000000..8bf0a6468 --- /dev/null +++ b/proto/BasicTypes.pb.go @@ -0,0 +1,1629 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: BasicTypes.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// The functionality provided by hedera hashgraph +type HederaFunctionality int32 + +const ( + HederaFunctionality_NONE HederaFunctionality = 0 + HederaFunctionality_CryptoTransfer HederaFunctionality = 1 + HederaFunctionality_CryptoUpdate HederaFunctionality = 2 + HederaFunctionality_CryptoDelete HederaFunctionality = 3 + HederaFunctionality_CryptoAddClaim HederaFunctionality = 4 + HederaFunctionality_CryptoDeleteClaim HederaFunctionality = 5 + HederaFunctionality_ContractCall HederaFunctionality = 6 + HederaFunctionality_ContractCreate HederaFunctionality = 7 + HederaFunctionality_ContractUpdate HederaFunctionality = 8 + HederaFunctionality_FileCreate HederaFunctionality = 9 + HederaFunctionality_FileAppend HederaFunctionality = 10 + HederaFunctionality_FileUpdate HederaFunctionality = 11 + HederaFunctionality_FileDelete HederaFunctionality = 12 + HederaFunctionality_CryptoGetAccountBalance HederaFunctionality = 13 + HederaFunctionality_CryptoGetAccountRecords HederaFunctionality = 14 + HederaFunctionality_CryptoGetInfo HederaFunctionality = 15 + HederaFunctionality_ContractCallLocal HederaFunctionality = 16 + HederaFunctionality_ContractGetInfo HederaFunctionality = 17 + HederaFunctionality_ContractGetBytecode HederaFunctionality = 18 + HederaFunctionality_GetBySolidityID HederaFunctionality = 19 + HederaFunctionality_GetByKey HederaFunctionality = 20 + HederaFunctionality_CryptoGetClaim HederaFunctionality = 21 + HederaFunctionality_CryptoGetStakers HederaFunctionality = 22 + HederaFunctionality_FileGetContents HederaFunctionality = 23 + HederaFunctionality_FileGetInfo HederaFunctionality = 24 + HederaFunctionality_TransactionGetRecord HederaFunctionality = 25 + HederaFunctionality_ContractGetRecords HederaFunctionality = 26 + HederaFunctionality_CryptoCreate HederaFunctionality = 27 + HederaFunctionality_SystemDelete HederaFunctionality = 28 + HederaFunctionality_SystemUndelete HederaFunctionality = 29 + HederaFunctionality_ContractDelete HederaFunctionality = 30 + HederaFunctionality_Freeze HederaFunctionality = 31 + HederaFunctionality_CreateTransactionRecord HederaFunctionality = 32 + HederaFunctionality_CryptoAccountAutoRenew HederaFunctionality = 33 + HederaFunctionality_ContractAutoRenew HederaFunctionality = 34 + HederaFunctionality_getVersion HederaFunctionality = 35 + HederaFunctionality_TransactionGetReceipt HederaFunctionality = 36 +) + +var HederaFunctionality_name = map[int32]string{ + 0: "NONE", + 1: "CryptoTransfer", + 2: "CryptoUpdate", + 3: "CryptoDelete", + 4: "CryptoAddClaim", + 5: "CryptoDeleteClaim", + 6: "ContractCall", + 7: "ContractCreate", + 8: "ContractUpdate", + 9: "FileCreate", + 10: "FileAppend", + 11: "FileUpdate", + 12: "FileDelete", + 13: "CryptoGetAccountBalance", + 14: "CryptoGetAccountRecords", + 15: "CryptoGetInfo", + 16: "ContractCallLocal", + 17: "ContractGetInfo", + 18: "ContractGetBytecode", + 19: "GetBySolidityID", + 20: "GetByKey", + 21: "CryptoGetClaim", + 22: "CryptoGetStakers", + 23: "FileGetContents", + 24: "FileGetInfo", + 25: "TransactionGetRecord", + 26: "ContractGetRecords", + 27: "CryptoCreate", + 28: "SystemDelete", + 29: "SystemUndelete", + 30: "ContractDelete", + 31: "Freeze", + 32: "CreateTransactionRecord", + 33: "CryptoAccountAutoRenew", + 34: "ContractAutoRenew", + 35: "getVersion", + 36: "TransactionGetReceipt", +} + +var HederaFunctionality_value = map[string]int32{ + "NONE": 0, + "CryptoTransfer": 1, + "CryptoUpdate": 2, + "CryptoDelete": 3, + "CryptoAddClaim": 4, + "CryptoDeleteClaim": 5, + "ContractCall": 6, + "ContractCreate": 7, + "ContractUpdate": 8, + "FileCreate": 9, + "FileAppend": 10, + "FileUpdate": 11, + "FileDelete": 12, + "CryptoGetAccountBalance": 13, + "CryptoGetAccountRecords": 14, + "CryptoGetInfo": 15, + "ContractCallLocal": 16, + "ContractGetInfo": 17, + "ContractGetBytecode": 18, + "GetBySolidityID": 19, + "GetByKey": 20, + "CryptoGetClaim": 21, + "CryptoGetStakers": 22, + "FileGetContents": 23, + "FileGetInfo": 24, + "TransactionGetRecord": 25, + "ContractGetRecords": 26, + "CryptoCreate": 27, + "SystemDelete": 28, + "SystemUndelete": 29, + "ContractDelete": 30, + "Freeze": 31, + "CreateTransactionRecord": 32, + "CryptoAccountAutoRenew": 33, + "ContractAutoRenew": 34, + "getVersion": 35, + "TransactionGetReceipt": 36, +} + +func (x HederaFunctionality) String() string { + return proto.EnumName(HederaFunctionality_name, int32(x)) +} + +func (HederaFunctionality) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{0} +} + +// Each shard has a nonnegative shard number. Each realm within a given shard has a nonnegative realm number (that number might be reused in other shards). And each account, file, and smart contract instance within a given realm has a nonnegative number (which might be reused in other realms). Every account, file, and smart contract instance is within exactly one realm. So a FileID is a triplet of numbers, like 0.1.2 for entity number 2 within realm 1 within shard 0. Each realm maintains a single counter for assigning numbers, so if there is a file with ID 0.1.2, then there won't be an account or smart contract instance with ID 0.1.2. +// +//Everything is partitioned into realms so that each Solidity smart contract can access everything in just a single realm, locking all those entities while it's running, but other smart contracts could potentially run in other realms in parallel. So realms allow Solidity to be parallelized somewhat, even though the language itself assumes everything is serial. +type ShardID struct { + ShardNum int64 `protobuf:"varint,1,opt,name=shardNum,proto3" json:"shardNum,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ShardID) Reset() { *m = ShardID{} } +func (m *ShardID) String() string { return proto.CompactTextString(m) } +func (*ShardID) ProtoMessage() {} +func (*ShardID) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{0} +} + +func (m *ShardID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ShardID.Unmarshal(m, b) +} +func (m *ShardID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ShardID.Marshal(b, m, deterministic) +} +func (m *ShardID) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShardID.Merge(m, src) +} +func (m *ShardID) XXX_Size() int { + return xxx_messageInfo_ShardID.Size(m) +} +func (m *ShardID) XXX_DiscardUnknown() { + xxx_messageInfo_ShardID.DiscardUnknown(m) +} + +var xxx_messageInfo_ShardID proto.InternalMessageInfo + +func (m *ShardID) GetShardNum() int64 { + if m != nil { + return m.ShardNum + } + return 0 +} + +// The ID for a realm. Within a given shard, every realm has a unique ID. Each account, file, and contract instance belongs to exactly one realm. +type RealmID struct { + ShardNum int64 `protobuf:"varint,1,opt,name=shardNum,proto3" json:"shardNum,omitempty"` + RealmNum int64 `protobuf:"varint,2,opt,name=realmNum,proto3" json:"realmNum,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RealmID) Reset() { *m = RealmID{} } +func (m *RealmID) String() string { return proto.CompactTextString(m) } +func (*RealmID) ProtoMessage() {} +func (*RealmID) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{1} +} + +func (m *RealmID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RealmID.Unmarshal(m, b) +} +func (m *RealmID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RealmID.Marshal(b, m, deterministic) +} +func (m *RealmID) XXX_Merge(src proto.Message) { + xxx_messageInfo_RealmID.Merge(m, src) +} +func (m *RealmID) XXX_Size() int { + return xxx_messageInfo_RealmID.Size(m) +} +func (m *RealmID) XXX_DiscardUnknown() { + xxx_messageInfo_RealmID.DiscardUnknown(m) +} + +var xxx_messageInfo_RealmID proto.InternalMessageInfo + +func (m *RealmID) GetShardNum() int64 { + if m != nil { + return m.ShardNum + } + return 0 +} + +func (m *RealmID) GetRealmNum() int64 { + if m != nil { + return m.RealmNum + } + return 0 +} + +// The ID for an a cryptocurrency account +type AccountID struct { + ShardNum int64 `protobuf:"varint,1,opt,name=shardNum,proto3" json:"shardNum,omitempty"` + RealmNum int64 `protobuf:"varint,2,opt,name=realmNum,proto3" json:"realmNum,omitempty"` + AccountNum int64 `protobuf:"varint,3,opt,name=accountNum,proto3" json:"accountNum,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AccountID) Reset() { *m = AccountID{} } +func (m *AccountID) String() string { return proto.CompactTextString(m) } +func (*AccountID) ProtoMessage() {} +func (*AccountID) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{2} +} + +func (m *AccountID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AccountID.Unmarshal(m, b) +} +func (m *AccountID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AccountID.Marshal(b, m, deterministic) +} +func (m *AccountID) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccountID.Merge(m, src) +} +func (m *AccountID) XXX_Size() int { + return xxx_messageInfo_AccountID.Size(m) +} +func (m *AccountID) XXX_DiscardUnknown() { + xxx_messageInfo_AccountID.DiscardUnknown(m) +} + +var xxx_messageInfo_AccountID proto.InternalMessageInfo + +func (m *AccountID) GetShardNum() int64 { + if m != nil { + return m.ShardNum + } + return 0 +} + +func (m *AccountID) GetRealmNum() int64 { + if m != nil { + return m.RealmNum + } + return 0 +} + +func (m *AccountID) GetAccountNum() int64 { + if m != nil { + return m.AccountNum + } + return 0 +} + +// The ID for a file +type FileID struct { + ShardNum int64 `protobuf:"varint,1,opt,name=shardNum,proto3" json:"shardNum,omitempty"` + RealmNum int64 `protobuf:"varint,2,opt,name=realmNum,proto3" json:"realmNum,omitempty"` + FileNum int64 `protobuf:"varint,3,opt,name=fileNum,proto3" json:"fileNum,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileID) Reset() { *m = FileID{} } +func (m *FileID) String() string { return proto.CompactTextString(m) } +func (*FileID) ProtoMessage() {} +func (*FileID) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{3} +} + +func (m *FileID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileID.Unmarshal(m, b) +} +func (m *FileID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileID.Marshal(b, m, deterministic) +} +func (m *FileID) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileID.Merge(m, src) +} +func (m *FileID) XXX_Size() int { + return xxx_messageInfo_FileID.Size(m) +} +func (m *FileID) XXX_DiscardUnknown() { + xxx_messageInfo_FileID.DiscardUnknown(m) +} + +var xxx_messageInfo_FileID proto.InternalMessageInfo + +func (m *FileID) GetShardNum() int64 { + if m != nil { + return m.ShardNum + } + return 0 +} + +func (m *FileID) GetRealmNum() int64 { + if m != nil { + return m.RealmNum + } + return 0 +} + +func (m *FileID) GetFileNum() int64 { + if m != nil { + return m.FileNum + } + return 0 +} + +// The ID for a smart contract instance +type ContractID struct { + ShardNum int64 `protobuf:"varint,1,opt,name=shardNum,proto3" json:"shardNum,omitempty"` + RealmNum int64 `protobuf:"varint,2,opt,name=realmNum,proto3" json:"realmNum,omitempty"` + ContractNum int64 `protobuf:"varint,3,opt,name=contractNum,proto3" json:"contractNum,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractID) Reset() { *m = ContractID{} } +func (m *ContractID) String() string { return proto.CompactTextString(m) } +func (*ContractID) ProtoMessage() {} +func (*ContractID) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{4} +} + +func (m *ContractID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractID.Unmarshal(m, b) +} +func (m *ContractID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractID.Marshal(b, m, deterministic) +} +func (m *ContractID) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractID.Merge(m, src) +} +func (m *ContractID) XXX_Size() int { + return xxx_messageInfo_ContractID.Size(m) +} +func (m *ContractID) XXX_DiscardUnknown() { + xxx_messageInfo_ContractID.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractID proto.InternalMessageInfo + +func (m *ContractID) GetShardNum() int64 { + if m != nil { + return m.ShardNum + } + return 0 +} + +func (m *ContractID) GetRealmNum() int64 { + if m != nil { + return m.RealmNum + } + return 0 +} + +func (m *ContractID) GetContractNum() int64 { + if m != nil { + return m.ContractNum + } + return 0 +} + +// The ID for a transaction. This is used for retrieving receipts and records for a transaction, for appending to a file right after creating it, for instantiating a smart contract with bytecode in a file just created, and internally by the network for detecting when duplicate transactions are submitted. A user might get a transaction processed faster by submitting it to N nodes, each with a different node account, but all with the same TransactionID. Then, the transaction will take effect when the first of all those nodes submits the transaction and it reaches consensus. The other transactions will not take effect. So this could make the transaction take effect faster, if any given node might be slow. However, the full transaction fee is charged for each transaction, so the total fee is N times as much if the transaction is sent to N nodes. +type TransactionID struct { + TransactionValidStart *Timestamp `protobuf:"bytes,1,opt,name=transactionValidStart,proto3" json:"transactionValidStart,omitempty"` + AccountID *AccountID `protobuf:"bytes,2,opt,name=accountID,proto3" json:"accountID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionID) Reset() { *m = TransactionID{} } +func (m *TransactionID) String() string { return proto.CompactTextString(m) } +func (*TransactionID) ProtoMessage() {} +func (*TransactionID) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{5} +} + +func (m *TransactionID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionID.Unmarshal(m, b) +} +func (m *TransactionID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionID.Marshal(b, m, deterministic) +} +func (m *TransactionID) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionID.Merge(m, src) +} +func (m *TransactionID) XXX_Size() int { + return xxx_messageInfo_TransactionID.Size(m) +} +func (m *TransactionID) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionID.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionID proto.InternalMessageInfo + +func (m *TransactionID) GetTransactionValidStart() *Timestamp { + if m != nil { + return m.TransactionValidStart + } + return nil +} + +func (m *TransactionID) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +// A Key can be a public key from one of the three supported systems (ed25519, RSA-3072, ECDSA with p384). Or, it can be the ID of a smart contract instance, which is authorized to act as if it had a key. If an account has an ed25519 key associated with it, then the corresponding private key must sign any transaction to transfer cryptocurrency out of it. And similarly for RSA and ECDSA. +// +// A Key can be a smart contract ID, which means that smart contract is to authorize operations as if it had signed with a key that it owned. The smart contract doesn't actually have a key, and doesn't actually sign a transaction. But it's as if a virtual transaction were created, and the smart contract signed it with a private key. +// +// A key can be a "threshold key", which means a list of M keys, any N of which must sign in order for the threshold signature to be considered valid. The keys within a threshold signature may themselves be threshold signatures, to allow complex signature requirements. +// +// A Key can be a list of keys. Their use is dependent on context. For example, a Hedera file is created with a list of keys, where all of them must sign a transaction to create or modify the file, but only one of them is needed to sign a transaction to delete the file. So it's a single list that sometimes acts as a 1-of-M threshold key, and sometimes acts as an M-of-M threshold key. +// +// A Key can contain a ThresholdKey or KeyList, which in turn contain a Key, so this mutual recursion would allow nesting arbitrarily deep. A ThresholdKey which contains a list of primitive keys (e.g., ed25519) has 3 levels: ThresholdKey -> KeyList -> Key. A KeyList which contains several primitive keys (e.g., ed25519) has 2 levels: KeyList -> Key. A Key with 2 levels of nested ThresholdKeys has 7 levels: Key -> ThresholdKey -> KeyList -> Key -> ThresholdKey -> KeyList -> Key. +// +// Each Key should not have more than 46 levels, which implies 15 levels of nested ThresholdKeys. +type Key struct { + // Types that are valid to be assigned to Key: + // *Key_ContractID + // *Key_Ed25519 + // *Key_RSA_3072 + // *Key_ECDSA_384 + // *Key_ThresholdKey + // *Key_KeyList + Key isKey_Key `protobuf_oneof:"key"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Key) Reset() { *m = Key{} } +func (m *Key) String() string { return proto.CompactTextString(m) } +func (*Key) ProtoMessage() {} +func (*Key) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{6} +} + +func (m *Key) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Key.Unmarshal(m, b) +} +func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Key.Marshal(b, m, deterministic) +} +func (m *Key) XXX_Merge(src proto.Message) { + xxx_messageInfo_Key.Merge(m, src) +} +func (m *Key) XXX_Size() int { + return xxx_messageInfo_Key.Size(m) +} +func (m *Key) XXX_DiscardUnknown() { + xxx_messageInfo_Key.DiscardUnknown(m) +} + +var xxx_messageInfo_Key proto.InternalMessageInfo + +type isKey_Key interface { + isKey_Key() +} + +type Key_ContractID struct { + ContractID *ContractID `protobuf:"bytes,1,opt,name=contractID,proto3,oneof"` +} + +type Key_Ed25519 struct { + Ed25519 []byte `protobuf:"bytes,2,opt,name=ed25519,proto3,oneof"` +} + +type Key_RSA_3072 struct { + RSA_3072 []byte `protobuf:"bytes,3,opt,name=RSA_3072,json=RSA3072,proto3,oneof"` +} + +type Key_ECDSA_384 struct { + ECDSA_384 []byte `protobuf:"bytes,4,opt,name=ECDSA_384,json=ECDSA384,proto3,oneof"` +} + +type Key_ThresholdKey struct { + ThresholdKey *ThresholdKey `protobuf:"bytes,5,opt,name=thresholdKey,proto3,oneof"` +} + +type Key_KeyList struct { + KeyList *KeyList `protobuf:"bytes,6,opt,name=keyList,proto3,oneof"` +} + +func (*Key_ContractID) isKey_Key() {} + +func (*Key_Ed25519) isKey_Key() {} + +func (*Key_RSA_3072) isKey_Key() {} + +func (*Key_ECDSA_384) isKey_Key() {} + +func (*Key_ThresholdKey) isKey_Key() {} + +func (*Key_KeyList) isKey_Key() {} + +func (m *Key) GetKey() isKey_Key { + if m != nil { + return m.Key + } + return nil +} + +func (m *Key) GetContractID() *ContractID { + if x, ok := m.GetKey().(*Key_ContractID); ok { + return x.ContractID + } + return nil +} + +func (m *Key) GetEd25519() []byte { + if x, ok := m.GetKey().(*Key_Ed25519); ok { + return x.Ed25519 + } + return nil +} + +func (m *Key) GetRSA_3072() []byte { + if x, ok := m.GetKey().(*Key_RSA_3072); ok { + return x.RSA_3072 + } + return nil +} + +func (m *Key) GetECDSA_384() []byte { + if x, ok := m.GetKey().(*Key_ECDSA_384); ok { + return x.ECDSA_384 + } + return nil +} + +func (m *Key) GetThresholdKey() *ThresholdKey { + if x, ok := m.GetKey().(*Key_ThresholdKey); ok { + return x.ThresholdKey + } + return nil +} + +func (m *Key) GetKeyList() *KeyList { + if x, ok := m.GetKey().(*Key_KeyList); ok { + return x.KeyList + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Key) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Key_ContractID)(nil), + (*Key_Ed25519)(nil), + (*Key_RSA_3072)(nil), + (*Key_ECDSA_384)(nil), + (*Key_ThresholdKey)(nil), + (*Key_KeyList)(nil), + } +} + +// A set of public keys that are used together to form a threshold signature. If the threshold is N and there are M keys, then this is an N of M threshold signature. If an account is associated with ThresholdKeys, then a transaction to move cryptocurrency out of it must be signed by a list of M signatures, where at most M-N of them are blank, and the other at least N of them are valid signatures corresponding to at least N of the public keys listed here. +type ThresholdKey struct { + Threshold uint32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"` + Keys *KeyList `protobuf:"bytes,2,opt,name=keys,proto3" json:"keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ThresholdKey) Reset() { *m = ThresholdKey{} } +func (m *ThresholdKey) String() string { return proto.CompactTextString(m) } +func (*ThresholdKey) ProtoMessage() {} +func (*ThresholdKey) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{7} +} + +func (m *ThresholdKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ThresholdKey.Unmarshal(m, b) +} +func (m *ThresholdKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ThresholdKey.Marshal(b, m, deterministic) +} +func (m *ThresholdKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_ThresholdKey.Merge(m, src) +} +func (m *ThresholdKey) XXX_Size() int { + return xxx_messageInfo_ThresholdKey.Size(m) +} +func (m *ThresholdKey) XXX_DiscardUnknown() { + xxx_messageInfo_ThresholdKey.DiscardUnknown(m) +} + +var xxx_messageInfo_ThresholdKey proto.InternalMessageInfo + +func (m *ThresholdKey) GetThreshold() uint32 { + if m != nil { + return m.Threshold + } + return 0 +} + +func (m *ThresholdKey) GetKeys() *KeyList { + if m != nil { + return m.Keys + } + return nil +} + +// A list of keys +type KeyList struct { + Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyList) Reset() { *m = KeyList{} } +func (m *KeyList) String() string { return proto.CompactTextString(m) } +func (*KeyList) ProtoMessage() {} +func (*KeyList) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{8} +} + +func (m *KeyList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KeyList.Unmarshal(m, b) +} +func (m *KeyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KeyList.Marshal(b, m, deterministic) +} +func (m *KeyList) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyList.Merge(m, src) +} +func (m *KeyList) XXX_Size() int { + return xxx_messageInfo_KeyList.Size(m) +} +func (m *KeyList) XXX_DiscardUnknown() { + xxx_messageInfo_KeyList.DiscardUnknown(m) +} + +var xxx_messageInfo_KeyList proto.InternalMessageInfo + +func (m *KeyList) GetKeys() []*Key { + if m != nil { + return m.Keys + } + return nil +} + +// A Signature corresponding to a Key. It is a sequence of bytes holding a public key signature from one of the three supported systems (ed25519, RSA-3072, ECDSA with p384). Or, it can be a list of signatures corresponding to a single threshold key. Or, it can be the ID of a smart contract instance, which is authorized to act as if it had a key. If an account has an ed25519 key associated with it, then the corresponding private key must sign any transaction to transfer cryptocurrency out of it. If it has a smart contract ID associated with it, then that smart contract is allowed to transfer cryptocurrency out of it. The smart contract doesn't actually have a key, and doesn't actually sign a transaction. But it's as if a virtual transaction were created, and the smart contract signed it with a private key. A key can also be a "threshold key", which means a list of M keys, any N of which must sign in order for the threshold signature to be considered valid. The keys within a threshold signature may themselves be threshold signatures, to allow complex signature requirements (this nesting is not supported in the currently, but will be supported in a future version of API). If a Signature message is missing the "signature" field, then this is considered to be a null signature. That is useful in cases such as threshold signatures, where some of the signatures can be null. +// The definition of Key uses mutual recursion, so it allows nesting that is arbitrarily deep. But the current API only accepts Key messages up to 3 levels deep, such as a list of threshold keys, each of which is a list of primitive keys. Therefore, the matching Signature will have the same limitation. This restriction may be relaxed in future versions of the API, to allow deeper nesting. +// This message is deprecated and succeeded by SignaturePair and SignatureMap messages. +// +// Deprecated: Do not use. +type Signature struct { + // Types that are valid to be assigned to Signature: + // *Signature_Contract + // *Signature_Ed25519 + // *Signature_RSA_3072 + // *Signature_ECDSA_384 + // *Signature_ThresholdSignature + // *Signature_SignatureList + Signature isSignature_Signature `protobuf_oneof:"signature"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Signature) Reset() { *m = Signature{} } +func (m *Signature) String() string { return proto.CompactTextString(m) } +func (*Signature) ProtoMessage() {} +func (*Signature) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{9} +} + +func (m *Signature) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Signature.Unmarshal(m, b) +} +func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Signature.Marshal(b, m, deterministic) +} +func (m *Signature) XXX_Merge(src proto.Message) { + xxx_messageInfo_Signature.Merge(m, src) +} +func (m *Signature) XXX_Size() int { + return xxx_messageInfo_Signature.Size(m) +} +func (m *Signature) XXX_DiscardUnknown() { + xxx_messageInfo_Signature.DiscardUnknown(m) +} + +var xxx_messageInfo_Signature proto.InternalMessageInfo + +type isSignature_Signature interface { + isSignature_Signature() +} + +type Signature_Contract struct { + Contract []byte `protobuf:"bytes,1,opt,name=contract,proto3,oneof"` +} + +type Signature_Ed25519 struct { + Ed25519 []byte `protobuf:"bytes,2,opt,name=ed25519,proto3,oneof"` +} + +type Signature_RSA_3072 struct { + RSA_3072 []byte `protobuf:"bytes,3,opt,name=RSA_3072,json=RSA3072,proto3,oneof"` +} + +type Signature_ECDSA_384 struct { + ECDSA_384 []byte `protobuf:"bytes,4,opt,name=ECDSA_384,json=ECDSA384,proto3,oneof"` +} + +type Signature_ThresholdSignature struct { + ThresholdSignature *ThresholdSignature `protobuf:"bytes,5,opt,name=thresholdSignature,proto3,oneof"` +} + +type Signature_SignatureList struct { + SignatureList *SignatureList `protobuf:"bytes,6,opt,name=signatureList,proto3,oneof"` +} + +func (*Signature_Contract) isSignature_Signature() {} + +func (*Signature_Ed25519) isSignature_Signature() {} + +func (*Signature_RSA_3072) isSignature_Signature() {} + +func (*Signature_ECDSA_384) isSignature_Signature() {} + +func (*Signature_ThresholdSignature) isSignature_Signature() {} + +func (*Signature_SignatureList) isSignature_Signature() {} + +func (m *Signature) GetSignature() isSignature_Signature { + if m != nil { + return m.Signature + } + return nil +} + +func (m *Signature) GetContract() []byte { + if x, ok := m.GetSignature().(*Signature_Contract); ok { + return x.Contract + } + return nil +} + +func (m *Signature) GetEd25519() []byte { + if x, ok := m.GetSignature().(*Signature_Ed25519); ok { + return x.Ed25519 + } + return nil +} + +func (m *Signature) GetRSA_3072() []byte { + if x, ok := m.GetSignature().(*Signature_RSA_3072); ok { + return x.RSA_3072 + } + return nil +} + +func (m *Signature) GetECDSA_384() []byte { + if x, ok := m.GetSignature().(*Signature_ECDSA_384); ok { + return x.ECDSA_384 + } + return nil +} + +func (m *Signature) GetThresholdSignature() *ThresholdSignature { + if x, ok := m.GetSignature().(*Signature_ThresholdSignature); ok { + return x.ThresholdSignature + } + return nil +} + +func (m *Signature) GetSignatureList() *SignatureList { + if x, ok := m.GetSignature().(*Signature_SignatureList); ok { + return x.SignatureList + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Signature) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Signature_Contract)(nil), + (*Signature_Ed25519)(nil), + (*Signature_RSA_3072)(nil), + (*Signature_ECDSA_384)(nil), + (*Signature_ThresholdSignature)(nil), + (*Signature_SignatureList)(nil), + } +} + +// A signature corresponding to a ThresholdKey. For an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null. +// This message is deprecated and succeeded by SignaturePair and SignatureMap messages. +// +// Deprecated: Do not use. +type ThresholdSignature struct { + Sigs *SignatureList `protobuf:"bytes,2,opt,name=sigs,proto3" json:"sigs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ThresholdSignature) Reset() { *m = ThresholdSignature{} } +func (m *ThresholdSignature) String() string { return proto.CompactTextString(m) } +func (*ThresholdSignature) ProtoMessage() {} +func (*ThresholdSignature) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{10} +} + +func (m *ThresholdSignature) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ThresholdSignature.Unmarshal(m, b) +} +func (m *ThresholdSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ThresholdSignature.Marshal(b, m, deterministic) +} +func (m *ThresholdSignature) XXX_Merge(src proto.Message) { + xxx_messageInfo_ThresholdSignature.Merge(m, src) +} +func (m *ThresholdSignature) XXX_Size() int { + return xxx_messageInfo_ThresholdSignature.Size(m) +} +func (m *ThresholdSignature) XXX_DiscardUnknown() { + xxx_messageInfo_ThresholdSignature.DiscardUnknown(m) +} + +var xxx_messageInfo_ThresholdSignature proto.InternalMessageInfo + +func (m *ThresholdSignature) GetSigs() *SignatureList { + if m != nil { + return m.Sigs + } + return nil +} + +// The signatures corresponding to a KeyList of the same length. +// This message is deprecated and succeeded by SignaturePair and SignatureMap messages. +// +// Deprecated: Do not use. +type SignatureList struct { + Sigs []*Signature `protobuf:"bytes,2,rep,name=sigs,proto3" json:"sigs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SignatureList) Reset() { *m = SignatureList{} } +func (m *SignatureList) String() string { return proto.CompactTextString(m) } +func (*SignatureList) ProtoMessage() {} +func (*SignatureList) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{11} +} + +func (m *SignatureList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignatureList.Unmarshal(m, b) +} +func (m *SignatureList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignatureList.Marshal(b, m, deterministic) +} +func (m *SignatureList) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignatureList.Merge(m, src) +} +func (m *SignatureList) XXX_Size() int { + return xxx_messageInfo_SignatureList.Size(m) +} +func (m *SignatureList) XXX_DiscardUnknown() { + xxx_messageInfo_SignatureList.DiscardUnknown(m) +} + +var xxx_messageInfo_SignatureList proto.InternalMessageInfo + +func (m *SignatureList) GetSigs() []*Signature { + if m != nil { + return m.Sigs + } + return nil +} + +// The client may use any number of bytes from 0 to the whole length of the public key for pubKeyPrefix. +// If 0 bytes is used, then it is assumed that only one public key is used to sign. +type SignaturePair struct { + PubKeyPrefix []byte `protobuf:"bytes,1,opt,name=pubKeyPrefix,proto3" json:"pubKeyPrefix,omitempty"` + // Types that are valid to be assigned to Signature: + // *SignaturePair_Contract + // *SignaturePair_Ed25519 + // *SignaturePair_RSA_3072 + // *SignaturePair_ECDSA_384 + Signature isSignaturePair_Signature `protobuf_oneof:"signature"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SignaturePair) Reset() { *m = SignaturePair{} } +func (m *SignaturePair) String() string { return proto.CompactTextString(m) } +func (*SignaturePair) ProtoMessage() {} +func (*SignaturePair) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{12} +} + +func (m *SignaturePair) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignaturePair.Unmarshal(m, b) +} +func (m *SignaturePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignaturePair.Marshal(b, m, deterministic) +} +func (m *SignaturePair) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignaturePair.Merge(m, src) +} +func (m *SignaturePair) XXX_Size() int { + return xxx_messageInfo_SignaturePair.Size(m) +} +func (m *SignaturePair) XXX_DiscardUnknown() { + xxx_messageInfo_SignaturePair.DiscardUnknown(m) +} + +var xxx_messageInfo_SignaturePair proto.InternalMessageInfo + +func (m *SignaturePair) GetPubKeyPrefix() []byte { + if m != nil { + return m.PubKeyPrefix + } + return nil +} + +type isSignaturePair_Signature interface { + isSignaturePair_Signature() +} + +type SignaturePair_Contract struct { + Contract []byte `protobuf:"bytes,2,opt,name=contract,proto3,oneof"` +} + +type SignaturePair_Ed25519 struct { + Ed25519 []byte `protobuf:"bytes,3,opt,name=ed25519,proto3,oneof"` +} + +type SignaturePair_RSA_3072 struct { + RSA_3072 []byte `protobuf:"bytes,4,opt,name=RSA_3072,json=RSA3072,proto3,oneof"` +} + +type SignaturePair_ECDSA_384 struct { + ECDSA_384 []byte `protobuf:"bytes,5,opt,name=ECDSA_384,json=ECDSA384,proto3,oneof"` +} + +func (*SignaturePair_Contract) isSignaturePair_Signature() {} + +func (*SignaturePair_Ed25519) isSignaturePair_Signature() {} + +func (*SignaturePair_RSA_3072) isSignaturePair_Signature() {} + +func (*SignaturePair_ECDSA_384) isSignaturePair_Signature() {} + +func (m *SignaturePair) GetSignature() isSignaturePair_Signature { + if m != nil { + return m.Signature + } + return nil +} + +func (m *SignaturePair) GetContract() []byte { + if x, ok := m.GetSignature().(*SignaturePair_Contract); ok { + return x.Contract + } + return nil +} + +func (m *SignaturePair) GetEd25519() []byte { + if x, ok := m.GetSignature().(*SignaturePair_Ed25519); ok { + return x.Ed25519 + } + return nil +} + +func (m *SignaturePair) GetRSA_3072() []byte { + if x, ok := m.GetSignature().(*SignaturePair_RSA_3072); ok { + return x.RSA_3072 + } + return nil +} + +func (m *SignaturePair) GetECDSA_384() []byte { + if x, ok := m.GetSignature().(*SignaturePair_ECDSA_384); ok { + return x.ECDSA_384 + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SignaturePair) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SignaturePair_Contract)(nil), + (*SignaturePair_Ed25519)(nil), + (*SignaturePair_RSA_3072)(nil), + (*SignaturePair_ECDSA_384)(nil), + } +} + +// A set of signatures corresponding to every unique public key used to sign a given transaction. +// If one public key matches more than one prefixes on the signature map, the transaction containing the map will fail immediately with the response code KEY_PREFIX_MISMATCH. +type SignatureMap struct { + SigPair []*SignaturePair `protobuf:"bytes,1,rep,name=sigPair,proto3" json:"sigPair,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SignatureMap) Reset() { *m = SignatureMap{} } +func (m *SignatureMap) String() string { return proto.CompactTextString(m) } +func (*SignatureMap) ProtoMessage() {} +func (*SignatureMap) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{13} +} + +func (m *SignatureMap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignatureMap.Unmarshal(m, b) +} +func (m *SignatureMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignatureMap.Marshal(b, m, deterministic) +} +func (m *SignatureMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignatureMap.Merge(m, src) +} +func (m *SignatureMap) XXX_Size() int { + return xxx_messageInfo_SignatureMap.Size(m) +} +func (m *SignatureMap) XXX_DiscardUnknown() { + xxx_messageInfo_SignatureMap.DiscardUnknown(m) +} + +var xxx_messageInfo_SignatureMap proto.InternalMessageInfo + +func (m *SignatureMap) GetSigPair() []*SignaturePair { + if m != nil { + return m.SigPair + } + return nil +} + +type FeeComponents struct { + Min int64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"` + Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"` + Constant int64 `protobuf:"varint,3,opt,name=constant,proto3" json:"constant,omitempty"` + Bpt int64 `protobuf:"varint,4,opt,name=bpt,proto3" json:"bpt,omitempty"` + Vpt int64 `protobuf:"varint,5,opt,name=vpt,proto3" json:"vpt,omitempty"` + Rbh int64 `protobuf:"varint,6,opt,name=rbh,proto3" json:"rbh,omitempty"` + Sbh int64 `protobuf:"varint,7,opt,name=sbh,proto3" json:"sbh,omitempty"` + Gas int64 `protobuf:"varint,8,opt,name=gas,proto3" json:"gas,omitempty"` + Tv int64 `protobuf:"varint,9,opt,name=tv,proto3" json:"tv,omitempty"` + Bpr int64 `protobuf:"varint,10,opt,name=bpr,proto3" json:"bpr,omitempty"` + Sbpr int64 `protobuf:"varint,11,opt,name=sbpr,proto3" json:"sbpr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FeeComponents) Reset() { *m = FeeComponents{} } +func (m *FeeComponents) String() string { return proto.CompactTextString(m) } +func (*FeeComponents) ProtoMessage() {} +func (*FeeComponents) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{14} +} + +func (m *FeeComponents) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FeeComponents.Unmarshal(m, b) +} +func (m *FeeComponents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FeeComponents.Marshal(b, m, deterministic) +} +func (m *FeeComponents) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeComponents.Merge(m, src) +} +func (m *FeeComponents) XXX_Size() int { + return xxx_messageInfo_FeeComponents.Size(m) +} +func (m *FeeComponents) XXX_DiscardUnknown() { + xxx_messageInfo_FeeComponents.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeComponents proto.InternalMessageInfo + +func (m *FeeComponents) GetMin() int64 { + if m != nil { + return m.Min + } + return 0 +} + +func (m *FeeComponents) GetMax() int64 { + if m != nil { + return m.Max + } + return 0 +} + +func (m *FeeComponents) GetConstant() int64 { + if m != nil { + return m.Constant + } + return 0 +} + +func (m *FeeComponents) GetBpt() int64 { + if m != nil { + return m.Bpt + } + return 0 +} + +func (m *FeeComponents) GetVpt() int64 { + if m != nil { + return m.Vpt + } + return 0 +} + +func (m *FeeComponents) GetRbh() int64 { + if m != nil { + return m.Rbh + } + return 0 +} + +func (m *FeeComponents) GetSbh() int64 { + if m != nil { + return m.Sbh + } + return 0 +} + +func (m *FeeComponents) GetGas() int64 { + if m != nil { + return m.Gas + } + return 0 +} + +func (m *FeeComponents) GetTv() int64 { + if m != nil { + return m.Tv + } + return 0 +} + +func (m *FeeComponents) GetBpr() int64 { + if m != nil { + return m.Bpr + } + return 0 +} + +func (m *FeeComponents) GetSbpr() int64 { + if m != nil { + return m.Sbpr + } + return 0 +} + +// The fees for a specific transaction or query based on the fee data. +type TransactionFeeSchedule struct { + HederaFunctionality HederaFunctionality `protobuf:"varint,1,opt,name=hederaFunctionality,proto3,enum=proto.HederaFunctionality" json:"hederaFunctionality,omitempty"` + FeeData *FeeData `protobuf:"bytes,2,opt,name=feeData,proto3" json:"feeData,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionFeeSchedule) Reset() { *m = TransactionFeeSchedule{} } +func (m *TransactionFeeSchedule) String() string { return proto.CompactTextString(m) } +func (*TransactionFeeSchedule) ProtoMessage() {} +func (*TransactionFeeSchedule) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{15} +} + +func (m *TransactionFeeSchedule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionFeeSchedule.Unmarshal(m, b) +} +func (m *TransactionFeeSchedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionFeeSchedule.Marshal(b, m, deterministic) +} +func (m *TransactionFeeSchedule) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionFeeSchedule.Merge(m, src) +} +func (m *TransactionFeeSchedule) XXX_Size() int { + return xxx_messageInfo_TransactionFeeSchedule.Size(m) +} +func (m *TransactionFeeSchedule) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionFeeSchedule.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionFeeSchedule proto.InternalMessageInfo + +func (m *TransactionFeeSchedule) GetHederaFunctionality() HederaFunctionality { + if m != nil { + return m.HederaFunctionality + } + return HederaFunctionality_NONE +} + +func (m *TransactionFeeSchedule) GetFeeData() *FeeData { + if m != nil { + return m.FeeData + } + return nil +} + +// The total fees charged for a transaction. It contains three parts namely node data, network data and service data +type FeeData struct { + Nodedata *FeeComponents `protobuf:"bytes,1,opt,name=nodedata,proto3" json:"nodedata,omitempty"` + Networkdata *FeeComponents `protobuf:"bytes,2,opt,name=networkdata,proto3" json:"networkdata,omitempty"` + Servicedata *FeeComponents `protobuf:"bytes,3,opt,name=servicedata,proto3" json:"servicedata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FeeData) Reset() { *m = FeeData{} } +func (m *FeeData) String() string { return proto.CompactTextString(m) } +func (*FeeData) ProtoMessage() {} +func (*FeeData) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{16} +} + +func (m *FeeData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FeeData.Unmarshal(m, b) +} +func (m *FeeData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FeeData.Marshal(b, m, deterministic) +} +func (m *FeeData) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeData.Merge(m, src) +} +func (m *FeeData) XXX_Size() int { + return xxx_messageInfo_FeeData.Size(m) +} +func (m *FeeData) XXX_DiscardUnknown() { + xxx_messageInfo_FeeData.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeData proto.InternalMessageInfo + +func (m *FeeData) GetNodedata() *FeeComponents { + if m != nil { + return m.Nodedata + } + return nil +} + +func (m *FeeData) GetNetworkdata() *FeeComponents { + if m != nil { + return m.Networkdata + } + return nil +} + +func (m *FeeData) GetServicedata() *FeeComponents { + if m != nil { + return m.Servicedata + } + return nil +} + +// The fee schedule for a specific hedera functionality and the time period this fee schedule will expire +type FeeSchedule struct { + TransactionFeeSchedule []*TransactionFeeSchedule `protobuf:"bytes,1,rep,name=transactionFeeSchedule,proto3" json:"transactionFeeSchedule,omitempty"` + ExpiryTime *TimestampSeconds `protobuf:"bytes,2,opt,name=expiryTime,proto3" json:"expiryTime,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FeeSchedule) Reset() { *m = FeeSchedule{} } +func (m *FeeSchedule) String() string { return proto.CompactTextString(m) } +func (*FeeSchedule) ProtoMessage() {} +func (*FeeSchedule) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{17} +} + +func (m *FeeSchedule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FeeSchedule.Unmarshal(m, b) +} +func (m *FeeSchedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FeeSchedule.Marshal(b, m, deterministic) +} +func (m *FeeSchedule) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeSchedule.Merge(m, src) +} +func (m *FeeSchedule) XXX_Size() int { + return xxx_messageInfo_FeeSchedule.Size(m) +} +func (m *FeeSchedule) XXX_DiscardUnknown() { + xxx_messageInfo_FeeSchedule.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeSchedule proto.InternalMessageInfo + +func (m *FeeSchedule) GetTransactionFeeSchedule() []*TransactionFeeSchedule { + if m != nil { + return m.TransactionFeeSchedule + } + return nil +} + +func (m *FeeSchedule) GetExpiryTime() *TimestampSeconds { + if m != nil { + return m.ExpiryTime + } + return nil +} + +// This contains two Fee Schedules with expiry timestamp. +type CurrentAndNextFeeSchedule struct { + CurrentFeeSchedule *FeeSchedule `protobuf:"bytes,1,opt,name=currentFeeSchedule,proto3" json:"currentFeeSchedule,omitempty"` + NextFeeSchedule *FeeSchedule `protobuf:"bytes,2,opt,name=nextFeeSchedule,proto3" json:"nextFeeSchedule,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CurrentAndNextFeeSchedule) Reset() { *m = CurrentAndNextFeeSchedule{} } +func (m *CurrentAndNextFeeSchedule) String() string { return proto.CompactTextString(m) } +func (*CurrentAndNextFeeSchedule) ProtoMessage() {} +func (*CurrentAndNextFeeSchedule) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{18} +} + +func (m *CurrentAndNextFeeSchedule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CurrentAndNextFeeSchedule.Unmarshal(m, b) +} +func (m *CurrentAndNextFeeSchedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CurrentAndNextFeeSchedule.Marshal(b, m, deterministic) +} +func (m *CurrentAndNextFeeSchedule) XXX_Merge(src proto.Message) { + xxx_messageInfo_CurrentAndNextFeeSchedule.Merge(m, src) +} +func (m *CurrentAndNextFeeSchedule) XXX_Size() int { + return xxx_messageInfo_CurrentAndNextFeeSchedule.Size(m) +} +func (m *CurrentAndNextFeeSchedule) XXX_DiscardUnknown() { + xxx_messageInfo_CurrentAndNextFeeSchedule.DiscardUnknown(m) +} + +var xxx_messageInfo_CurrentAndNextFeeSchedule proto.InternalMessageInfo + +func (m *CurrentAndNextFeeSchedule) GetCurrentFeeSchedule() *FeeSchedule { + if m != nil { + return m.CurrentFeeSchedule + } + return nil +} + +func (m *CurrentAndNextFeeSchedule) GetNextFeeSchedule() *FeeSchedule { + if m != nil { + return m.NextFeeSchedule + } + return nil +} + +// The information about a node +type NodeAddress struct { + IpAddress []byte `protobuf:"bytes,1,opt,name=ipAddress,proto3" json:"ipAddress,omitempty"` + Portno int32 `protobuf:"varint,2,opt,name=portno,proto3" json:"portno,omitempty"` + Memo []byte `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` + RSA_PubKey string `protobuf:"bytes,4,opt,name=RSA_PubKey,json=RSAPubKey,proto3" json:"RSA_PubKey,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeAddress) Reset() { *m = NodeAddress{} } +func (m *NodeAddress) String() string { return proto.CompactTextString(m) } +func (*NodeAddress) ProtoMessage() {} +func (*NodeAddress) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{19} +} + +func (m *NodeAddress) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeAddress.Unmarshal(m, b) +} +func (m *NodeAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeAddress.Marshal(b, m, deterministic) +} +func (m *NodeAddress) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeAddress.Merge(m, src) +} +func (m *NodeAddress) XXX_Size() int { + return xxx_messageInfo_NodeAddress.Size(m) +} +func (m *NodeAddress) XXX_DiscardUnknown() { + xxx_messageInfo_NodeAddress.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeAddress proto.InternalMessageInfo + +func (m *NodeAddress) GetIpAddress() []byte { + if m != nil { + return m.IpAddress + } + return nil +} + +func (m *NodeAddress) GetPortno() int32 { + if m != nil { + return m.Portno + } + return 0 +} + +func (m *NodeAddress) GetMemo() []byte { + if m != nil { + return m.Memo + } + return nil +} + +func (m *NodeAddress) GetRSA_PubKey() string { + if m != nil { + return m.RSA_PubKey + } + return "" +} + +// Gives the node addresses in the address book +type NodeAddressBook struct { + NodeAddress []*NodeAddress `protobuf:"bytes,1,rep,name=nodeAddress,proto3" json:"nodeAddress,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeAddressBook) Reset() { *m = NodeAddressBook{} } +func (m *NodeAddressBook) String() string { return proto.CompactTextString(m) } +func (*NodeAddressBook) ProtoMessage() {} +func (*NodeAddressBook) Descriptor() ([]byte, []int) { + return fileDescriptor_a7917cbf7afa9e9a, []int{20} +} + +func (m *NodeAddressBook) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeAddressBook.Unmarshal(m, b) +} +func (m *NodeAddressBook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeAddressBook.Marshal(b, m, deterministic) +} +func (m *NodeAddressBook) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeAddressBook.Merge(m, src) +} +func (m *NodeAddressBook) XXX_Size() int { + return xxx_messageInfo_NodeAddressBook.Size(m) +} +func (m *NodeAddressBook) XXX_DiscardUnknown() { + xxx_messageInfo_NodeAddressBook.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeAddressBook proto.InternalMessageInfo + +func (m *NodeAddressBook) GetNodeAddress() []*NodeAddress { + if m != nil { + return m.NodeAddress + } + return nil +} + +func init() { + proto.RegisterEnum("proto.HederaFunctionality", HederaFunctionality_name, HederaFunctionality_value) + proto.RegisterType((*ShardID)(nil), "proto.ShardID") + proto.RegisterType((*RealmID)(nil), "proto.RealmID") + proto.RegisterType((*AccountID)(nil), "proto.AccountID") + proto.RegisterType((*FileID)(nil), "proto.FileID") + proto.RegisterType((*ContractID)(nil), "proto.ContractID") + proto.RegisterType((*TransactionID)(nil), "proto.TransactionID") + proto.RegisterType((*Key)(nil), "proto.Key") + proto.RegisterType((*ThresholdKey)(nil), "proto.ThresholdKey") + proto.RegisterType((*KeyList)(nil), "proto.KeyList") + proto.RegisterType((*Signature)(nil), "proto.Signature") + proto.RegisterType((*ThresholdSignature)(nil), "proto.ThresholdSignature") + proto.RegisterType((*SignatureList)(nil), "proto.SignatureList") + proto.RegisterType((*SignaturePair)(nil), "proto.SignaturePair") + proto.RegisterType((*SignatureMap)(nil), "proto.SignatureMap") + proto.RegisterType((*FeeComponents)(nil), "proto.FeeComponents") + proto.RegisterType((*TransactionFeeSchedule)(nil), "proto.TransactionFeeSchedule") + proto.RegisterType((*FeeData)(nil), "proto.FeeData") + proto.RegisterType((*FeeSchedule)(nil), "proto.FeeSchedule") + proto.RegisterType((*CurrentAndNextFeeSchedule)(nil), "proto.CurrentAndNextFeeSchedule") + proto.RegisterType((*NodeAddress)(nil), "proto.NodeAddress") + proto.RegisterType((*NodeAddressBook)(nil), "proto.NodeAddressBook") +} + +func init() { proto.RegisterFile("BasicTypes.proto", fileDescriptor_a7917cbf7afa9e9a) } + +var fileDescriptor_a7917cbf7afa9e9a = []byte{ + // 1376 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x52, 0x1b, 0xc7, + 0x16, 0x46, 0x12, 0x20, 0xe9, 0x48, 0xc0, 0x70, 0xf8, 0x13, 0xd8, 0xf8, 0x72, 0xe7, 0xfa, 0xde, + 0xe2, 0x7a, 0x41, 0x39, 0x60, 0xc7, 0x76, 0xca, 0x95, 0x2a, 0x09, 0xcc, 0x4f, 0xe1, 0x10, 0xaa, + 0x65, 0x7b, 0x91, 0x4d, 0xaa, 0x99, 0x39, 0x48, 0x13, 0xa4, 0x99, 0xa9, 0x9e, 0x16, 0x66, 0xb2, + 0xca, 0x2a, 0xd9, 0xe6, 0x05, 0xfc, 0x04, 0xd9, 0xe7,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 0x0b, 0xbf, 0x84, 0x86, 0x4f, 0xf2, 0x63, 0x20, 0xae, 0xdc, 0x3c, 0xd6, 0x64, 0xa3, 0x22, + 0x51, 0xd9, 0x45, 0x24, 0xae, 0x3d, 0x27, 0x09, 0x56, 0xb9, 0xcf, 0xae, 0x40, 0xb4, 0x3f, 0x95, + 0xa0, 0x51, 0xec, 0xda, 0x7b, 0x58, 0x95, 0x13, 0xfb, 0x69, 0x6e, 0xdc, 0x66, 0xba, 0x4a, 0x26, + 0x92, 0xd8, 0x5f, 0x18, 0xe3, 0x0b, 0x00, 0xba, 0x09, 0x3d, 0x11, 0xab, 0x6f, 0x9f, 0xa9, 0x6a, + 0xed, 0xf6, 0xe7, 0xb0, 0x4b, 0x4e, 0xe0, 0xbb, 0x11, 0x2b, 0x50, 0x55, 0x7e, 0xeb, 0xfb, 0x23, + 0x21, 0xc8, 0x97, 0x6d, 0xdf, 0x3d, 0xa3, 0x1b, 0x59, 0x74, 0xdb, 0x01, 0x74, 0x12, 0xe5, 0x78, + 0xa6, 0xca, 0x3d, 0xe6, 0xc5, 0x67, 0xe9, 0x4d, 0x60, 0xe3, 0x6b, 0x58, 0xf0, 0xc7, 0xdd, 0x9a, + 0xfc, 0x26, 0x39, 0xb8, 0x4d, 0xb5, 0xaf, 0xa1, 0x71, 0x16, 0xb8, 0xd4, 0x76, 0x5d, 0x41, 0x51, + 0xa4, 0x3e, 0x3b, 0x5e, 0x68, 0x04, 0xb3, 0x55, 0x72, 0x00, 0x57, 0x61, 0x36, 0x0c, 0x84, 0xf4, + 0x03, 0x1d, 0x61, 0x86, 0x19, 0x49, 0xdd, 0xec, 0x21, 0x0d, 0x83, 0x64, 0x93, 0x30, 0x7d, 0xc6, + 0x4d, 0x00, 0xb5, 0x44, 0xce, 0xf5, 0x4a, 0xd2, 0x0f, 0xae, 0xce, 0xea, 0xac, 0xdb, 0x4e, 0x00, + 0xfb, 0x08, 0x16, 0x0a, 0x71, 0x3b, 0x41, 0x70, 0x85, 0xcf, 0xa0, 0xe1, 0xe7, 0x90, 0x99, 0x57, + 0x5a, 0x44, 0x81, 0xcc, 0x8a, 0xb4, 0x27, 0x3f, 0xcf, 0xc2, 0xd2, 0x84, 0x57, 0x80, 0x35, 0x98, + 0x3e, 0xfb, 0xf6, 0xec, 0x8d, 0x35, 0x85, 0x08, 0xf3, 0xfb, 0x22, 0x0e, 0x65, 0xa0, 0x67, 0x7e, + 0x49, 0xc2, 0x2a, 0xa1, 0x05, 0xcd, 0x04, 0x7b, 0x1f, 0xba, 0x5c, 0x92, 0x55, 0xce, 0x91, 0x03, + 0x1a, 0x90, 0x24, 0xab, 0x92, 0xdb, 0xb5, 0x5d, 0x77, 0x7f, 0xc0, 0xbd, 0xa1, 0x35, 0x8d, 0x2b, + 0xb0, 0x58, 0x64, 0x25, 0xf0, 0x8c, 0x36, 0x36, 0x9b, 0x75, 0x9f, 0x0f, 0x06, 0xd6, 0xac, 0x36, + 0x4e, 0x11, 0x41, 0x2a, 0x44, 0xb5, 0x88, 0x99, 0xb0, 0x35, 0x9c, 0x07, 0x50, 0x7f, 0x24, 0x0d, + 0xa7, 0x9e, 0xca, 0xed, 0x30, 0x24, 0xdf, 0xb5, 0x20, 0x95, 0x0d, 0xbf, 0x91, 0xca, 0x26, 0xc9, + 0x26, 0x3e, 0x80, 0xb5, 0x24, 0xa1, 0x23, 0x92, 0xe6, 0xbf, 0x55, 0x87, 0x0f, 0xb8, 0xef, 0x90, + 0x35, 0x37, 0x49, 0xc9, 0xc8, 0x09, 0x84, 0x1b, 0x59, 0xf3, 0xb8, 0x08, 0x73, 0x99, 0xf2, 0xc4, + 0xbf, 0x0c, 0xac, 0x05, 0x5d, 0x5d, 0xa1, 0x8c, 0xb7, 0x81, 0xc3, 0x07, 0x96, 0x85, 0x4b, 0xb0, + 0x90, 0xc2, 0x29, 0x77, 0x11, 0xd7, 0x60, 0xa9, 0x00, 0x76, 0x62, 0x49, 0x4e, 0xe0, 0x92, 0x85, + 0x8a, 0xad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 0x13, 0xfa, 0x81, 0x5f, 0xf3, 0xf3, 0xd2, 0xc5, 0xac, + 0x96, 0xf6, 0xfe, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x66, 0x02, 0xc4, 0xf4, 0xbc, 0x0d, 0x00, 0x00, +} diff --git a/proto/ContractCall.pb.go b/proto/ContractCall.pb.go new file mode 100644 index 000000000..12973c643 --- /dev/null +++ b/proto/ContractCall.pb.go @@ -0,0 +1,110 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: ContractCall.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Call a function of the given smart contract instance, giving it functionParameters as its inputs. it can use the given amount of gas, and any unspent gas will be refunded to the paying account. +// +// If this function stores information, it is charged gas to store it. There is a fee in hbars to maintain that storage until the expiration time, and that fee is added as part of the transaction fee. +type ContractCallTransactionBody struct { + ContractID *ContractID `protobuf:"bytes,1,opt,name=contractID,proto3" json:"contractID,omitempty"` + Gas int64 `protobuf:"varint,2,opt,name=gas,proto3" json:"gas,omitempty"` + Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + FunctionParameters []byte `protobuf:"bytes,4,opt,name=functionParameters,proto3" json:"functionParameters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractCallTransactionBody) Reset() { *m = ContractCallTransactionBody{} } +func (m *ContractCallTransactionBody) String() string { return proto.CompactTextString(m) } +func (*ContractCallTransactionBody) ProtoMessage() {} +func (*ContractCallTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_bd9f6f84c001af30, []int{0} +} + +func (m *ContractCallTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractCallTransactionBody.Unmarshal(m, b) +} +func (m *ContractCallTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractCallTransactionBody.Marshal(b, m, deterministic) +} +func (m *ContractCallTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractCallTransactionBody.Merge(m, src) +} +func (m *ContractCallTransactionBody) XXX_Size() int { + return xxx_messageInfo_ContractCallTransactionBody.Size(m) +} +func (m *ContractCallTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_ContractCallTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractCallTransactionBody proto.InternalMessageInfo + +func (m *ContractCallTransactionBody) GetContractID() *ContractID { + if m != nil { + return m.ContractID + } + return nil +} + +func (m *ContractCallTransactionBody) GetGas() int64 { + if m != nil { + return m.Gas + } + return 0 +} + +func (m *ContractCallTransactionBody) GetAmount() int64 { + if m != nil { + return m.Amount + } + return 0 +} + +func (m *ContractCallTransactionBody) GetFunctionParameters() []byte { + if m != nil { + return m.FunctionParameters + } + return nil +} + +func init() { + proto.RegisterType((*ContractCallTransactionBody)(nil), "proto.ContractCallTransactionBody") +} + +func init() { proto.RegisterFile("ContractCall.proto", fileDescriptor_bd9f6f84c001af30) } + +var fileDescriptor_bd9f6f84c001af30 = []byte{ + // 207 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8e, 0x41, 0x4e, 0x85, 0x30, + 0x10, 0x86, 0x53, 0x51, 0x16, 0xa3, 0x0b, 0xec, 0xc2, 0x34, 0xba, 0x21, 0x2c, 0x0c, 0xab, 0x26, + 0xea, 0x0d, 0xc0, 0x8d, 0x3b, 0x42, 0xb8, 0xc0, 0x58, 0x2a, 0xc5, 0x40, 0xdb, 0xb4, 0xc5, 0x84, + 0x2b, 0x79, 0xca, 0x97, 0x57, 0xc8, 0x0b, 0x8b, 0xb7, 0x9a, 0xf9, 0xe7, 0xfb, 0x26, 0x33, 0x40, + 0x6b, 0xa3, 0x83, 0x43, 0x11, 0x6a, 0x9c, 0x26, 0x6e, 0x9d, 0x09, 0x86, 0xde, 0xc5, 0xf2, 0x9c, + 0x55, 0xe8, 0x47, 0xd1, 0xad, 0x56, 0xfa, 0x0d, 0x14, 0xff, 0x04, 0x5e, 0x8e, 0x7e, 0xe7, 0x50, + 0x7b, 0x14, 0x61, 0x34, 0xba, 0x32, 0xfd, 0x4a, 0xdf, 0x00, 0xc4, 0x8e, 0xbf, 0x3e, 0x19, 0xc9, + 0x49, 0x79, 0xff, 0xfe, 0xb8, 0xed, 0xf2, 0xfa, 0x02, 0xda, 0x83, 0x44, 0x33, 0x48, 0x06, 0xf4, + 0xec, 0x26, 0x27, 0x65, 0xd2, 0x9e, 0x5b, 0xfa, 0x04, 0x29, 0xce, 0x66, 0xd1, 0x81, 0x25, 0x71, + 0xb8, 0x27, 0xca, 0x81, 0xfe, 0x2c, 0x3a, 0x1e, 0x6b, 0xd0, 0xe1, 0x2c, 0x83, 0x74, 0x9e, 0xdd, + 0xe6, 0xa4, 0x7c, 0x68, 0xaf, 0x90, 0xea, 0x15, 0x0a, 0x61, 0x66, 0xae, 0x64, 0x2f, 0x1d, 0x2a, + 0xf4, 0x6a, 0x70, 0x68, 0x15, 0x47, 0x3b, 0xee, 0x1f, 0xfd, 0xe2, 0x1f, 0x36, 0xe4, 0x3b, 0x8d, + 0xe9, 0xe3, 0x14, 0x00, 0x00, 0xff, 0xff, 0x1d, 0x49, 0x35, 0xd6, 0x0a, 0x01, 0x00, 0x00, +} diff --git a/proto/ContractCallLocal.pb.go b/proto/ContractCallLocal.pb.go new file mode 100644 index 000000000..4be5b96cd --- /dev/null +++ b/proto/ContractCallLocal.pb.go @@ -0,0 +1,327 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: ContractCallLocal.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// The log information for an event returned by a smart contract function call. One function call may return several such events. +type ContractLoginfo struct { + ContractID *ContractID `protobuf:"bytes,1,opt,name=contractID,proto3" json:"contractID,omitempty"` + Bloom []byte `protobuf:"bytes,2,opt,name=bloom,proto3" json:"bloom,omitempty"` + Topic [][]byte `protobuf:"bytes,3,rep,name=topic,proto3" json:"topic,omitempty"` + Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractLoginfo) Reset() { *m = ContractLoginfo{} } +func (m *ContractLoginfo) String() string { return proto.CompactTextString(m) } +func (*ContractLoginfo) ProtoMessage() {} +func (*ContractLoginfo) Descriptor() ([]byte, []int) { + return fileDescriptor_676e8f21aa93aa2e, []int{0} +} + +func (m *ContractLoginfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractLoginfo.Unmarshal(m, b) +} +func (m *ContractLoginfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractLoginfo.Marshal(b, m, deterministic) +} +func (m *ContractLoginfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractLoginfo.Merge(m, src) +} +func (m *ContractLoginfo) XXX_Size() int { + return xxx_messageInfo_ContractLoginfo.Size(m) +} +func (m *ContractLoginfo) XXX_DiscardUnknown() { + xxx_messageInfo_ContractLoginfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractLoginfo proto.InternalMessageInfo + +func (m *ContractLoginfo) GetContractID() *ContractID { + if m != nil { + return m.ContractID + } + return nil +} + +func (m *ContractLoginfo) GetBloom() []byte { + if m != nil { + return m.Bloom + } + return nil +} + +func (m *ContractLoginfo) GetTopic() [][]byte { + if m != nil { + return m.Topic + } + return nil +} + +func (m *ContractLoginfo) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +// The result returned by a call to a smart contract function. This is part of the response to a ContractCallLocal query, and is in the record for a ContractCall or ContractCreateInstance transaction. The ContractCreateInstance transaction record has the results of the call to the constructor. +type ContractFunctionResult struct { + ContractID *ContractID `protobuf:"bytes,1,opt,name=contractID,proto3" json:"contractID,omitempty"` + ContractCallResult []byte `protobuf:"bytes,2,opt,name=contractCallResult,proto3" json:"contractCallResult,omitempty"` + ErrorMessage string `protobuf:"bytes,3,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` + Bloom []byte `protobuf:"bytes,4,opt,name=bloom,proto3" json:"bloom,omitempty"` + GasUsed uint64 `protobuf:"varint,5,opt,name=gasUsed,proto3" json:"gasUsed,omitempty"` + LogInfo []*ContractLoginfo `protobuf:"bytes,6,rep,name=logInfo,proto3" json:"logInfo,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractFunctionResult) Reset() { *m = ContractFunctionResult{} } +func (m *ContractFunctionResult) String() string { return proto.CompactTextString(m) } +func (*ContractFunctionResult) ProtoMessage() {} +func (*ContractFunctionResult) Descriptor() ([]byte, []int) { + return fileDescriptor_676e8f21aa93aa2e, []int{1} +} + +func (m *ContractFunctionResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractFunctionResult.Unmarshal(m, b) +} +func (m *ContractFunctionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractFunctionResult.Marshal(b, m, deterministic) +} +func (m *ContractFunctionResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractFunctionResult.Merge(m, src) +} +func (m *ContractFunctionResult) XXX_Size() int { + return xxx_messageInfo_ContractFunctionResult.Size(m) +} +func (m *ContractFunctionResult) XXX_DiscardUnknown() { + xxx_messageInfo_ContractFunctionResult.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractFunctionResult proto.InternalMessageInfo + +func (m *ContractFunctionResult) GetContractID() *ContractID { + if m != nil { + return m.ContractID + } + return nil +} + +func (m *ContractFunctionResult) GetContractCallResult() []byte { + if m != nil { + return m.ContractCallResult + } + return nil +} + +func (m *ContractFunctionResult) GetErrorMessage() string { + if m != nil { + return m.ErrorMessage + } + return "" +} + +func (m *ContractFunctionResult) GetBloom() []byte { + if m != nil { + return m.Bloom + } + return nil +} + +func (m *ContractFunctionResult) GetGasUsed() uint64 { + if m != nil { + return m.GasUsed + } + return 0 +} + +func (m *ContractFunctionResult) GetLogInfo() []*ContractLoginfo { + if m != nil { + return m.LogInfo + } + return nil +} + +// Call a function of the given smart contract instance, giving it functionParameters as its inputs. It will consume the entire given amount of gas. +// +// This is performed locally on the particular node that the client is communicating with. It cannot change the state of the contract instance (and so, cannot spend anything from the instance's cryptocurrency account). It will not have a consensus timestamp. It cannot generate a record or a receipt. The response will contain the output returned by the function call. This is useful for calling getter functions, which purely read the state and don't change it. It is faster and cheaper than a normal call, because it is purely local to a single node. +type ContractCallLocalQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ContractID *ContractID `protobuf:"bytes,2,opt,name=contractID,proto3" json:"contractID,omitempty"` + Gas int64 `protobuf:"varint,3,opt,name=gas,proto3" json:"gas,omitempty"` + FunctionParameters []byte `protobuf:"bytes,4,opt,name=functionParameters,proto3" json:"functionParameters,omitempty"` + MaxResultSize int64 `protobuf:"varint,5,opt,name=maxResultSize,proto3" json:"maxResultSize,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractCallLocalQuery) Reset() { *m = ContractCallLocalQuery{} } +func (m *ContractCallLocalQuery) String() string { return proto.CompactTextString(m) } +func (*ContractCallLocalQuery) ProtoMessage() {} +func (*ContractCallLocalQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_676e8f21aa93aa2e, []int{2} +} + +func (m *ContractCallLocalQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractCallLocalQuery.Unmarshal(m, b) +} +func (m *ContractCallLocalQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractCallLocalQuery.Marshal(b, m, deterministic) +} +func (m *ContractCallLocalQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractCallLocalQuery.Merge(m, src) +} +func (m *ContractCallLocalQuery) XXX_Size() int { + return xxx_messageInfo_ContractCallLocalQuery.Size(m) +} +func (m *ContractCallLocalQuery) XXX_DiscardUnknown() { + xxx_messageInfo_ContractCallLocalQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractCallLocalQuery proto.InternalMessageInfo + +func (m *ContractCallLocalQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *ContractCallLocalQuery) GetContractID() *ContractID { + if m != nil { + return m.ContractID + } + return nil +} + +func (m *ContractCallLocalQuery) GetGas() int64 { + if m != nil { + return m.Gas + } + return 0 +} + +func (m *ContractCallLocalQuery) GetFunctionParameters() []byte { + if m != nil { + return m.FunctionParameters + } + return nil +} + +func (m *ContractCallLocalQuery) GetMaxResultSize() int64 { + if m != nil { + return m.MaxResultSize + } + return 0 +} + +// Response when the client sends the node ContractCallLocalQuery +type ContractCallLocalResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + FunctionResult *ContractFunctionResult `protobuf:"bytes,2,opt,name=functionResult,proto3" json:"functionResult,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractCallLocalResponse) Reset() { *m = ContractCallLocalResponse{} } +func (m *ContractCallLocalResponse) String() string { return proto.CompactTextString(m) } +func (*ContractCallLocalResponse) ProtoMessage() {} +func (*ContractCallLocalResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_676e8f21aa93aa2e, []int{3} +} + +func (m *ContractCallLocalResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractCallLocalResponse.Unmarshal(m, b) +} +func (m *ContractCallLocalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractCallLocalResponse.Marshal(b, m, deterministic) +} +func (m *ContractCallLocalResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractCallLocalResponse.Merge(m, src) +} +func (m *ContractCallLocalResponse) XXX_Size() int { + return xxx_messageInfo_ContractCallLocalResponse.Size(m) +} +func (m *ContractCallLocalResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ContractCallLocalResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractCallLocalResponse proto.InternalMessageInfo + +func (m *ContractCallLocalResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *ContractCallLocalResponse) GetFunctionResult() *ContractFunctionResult { + if m != nil { + return m.FunctionResult + } + return nil +} + +func init() { + proto.RegisterType((*ContractLoginfo)(nil), "proto.ContractLoginfo") + proto.RegisterType((*ContractFunctionResult)(nil), "proto.ContractFunctionResult") + proto.RegisterType((*ContractCallLocalQuery)(nil), "proto.ContractCallLocalQuery") + proto.RegisterType((*ContractCallLocalResponse)(nil), "proto.ContractCallLocalResponse") +} + +func init() { proto.RegisterFile("ContractCallLocal.proto", fileDescriptor_676e8f21aa93aa2e) } + +var fileDescriptor_676e8f21aa93aa2e = []byte{ + // 430 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xe1, 0x6a, 0xd4, 0x40, + 0x10, 0xc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+ 0x46, 0x3f, 0x9d, 0x3f, 0x85, 0x58, 0xaa, 0x75, 0x9a, 0xd3, 0x92, 0x34, 0xe6, 0x68, 0xf2, 0x4c, + 0x63, 0x9d, 0xa7, 0x58, 0x17, 0xbe, 0xcf, 0x17, 0xfc, 0x8a, 0x57, 0xec, 0x7a, 0xee, 0xa2, 0x57, + 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x42, 0x36, 0x6f, 0x84, 0x8c, 0x03, 0x00, 0x00, +} diff --git a/proto/ContractCreate.pb.go b/proto/ContractCreate.pb.go new file mode 100644 index 000000000..dadc6b11a --- /dev/null +++ b/proto/ContractCreate.pb.go @@ -0,0 +1,186 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: ContractCreate.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Start a new smart contract instance. After the instance is created, the ContractID for it is in the receipt, or can be retrieved with a GetByKey query, or by asking for a Record of the transaction to be created, and retrieving that. The instance will run the bytecode stored in the given file, referenced either by FileID or by the transaction ID of the transaction that created the file. The constructor will be executed using the given amount of gas, and any unspent gas will be refunded to the paying account. Constructor inputs come from the given constructorParameters. +// +// The instance will exist for autoRenewPeriod seconds. When that is reached, it will renew itself for another autoRenewPeriod seconds by charging its associated cryptocurrency account (which it creates here). If it has insufficient cryptocurrency to extend that long, it will extend as long as it can. If its balance is zero, the instance will be deleted. +// +// A smart contract instance normally enforces rules, so "the code is law". For example, an ERC-20 contract prevents a transfer from being undone without a signature by the recipient of the transfer. This is always enforced if the contract instance was created with the adminKeys being null. But for some uses, it might be desirable to create something like an ERC-20 contract that has a specific group of trusted individuals who can act as a "supreme court" with the ability to override the normal operation, when a sufficient number of them agree to do so. If adminKeys is not null, then they can sign a transaction that can change the state of the smart contract in arbitrary ways, such as to reverse a transaction that violates some standard of behavior that is not covered by the code itself. The admin keys can also be used to change the autoRenewPeriod, and change the adminKeys field itself. The API currently does not implement this ability. But it does allow the adminKeys field to be set and queried, and will in the future implement such admin abilities for any instance that has a non-null adminKeys. +// +// If this constructor stores information, it is charged gas to store it. There is a fee in hbars to maintain that storage until the expiration time, and that fee is added as part of the transaction fee. +// +// 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. +// +// The optional memo field can contain a string whose length is up to 100 bytes. That is the size after Unicode NFD then UTF-8 conversion. This field can be used to describe the smart contract. It could also be used for other purposes. One recommended purpose is to hold a hexadecimal string that is the SHA-384 hash of a PDF file containing a human-readable legal contract. Then, if the admin keys are the public keys of human arbitrators, they can use that legal document to guide their decisions during a binding arbitration tribunal, convened to consider any changes to the smart contract in the future. The memo field can only be changed using the admin keys. If there are no admin keys, then it cannot be changed after the smart contract is created. +type ContractCreateTransactionBody struct { + FileID *FileID `protobuf:"bytes,1,opt,name=fileID,proto3" json:"fileID,omitempty"` + AdminKey *Key `protobuf:"bytes,3,opt,name=adminKey,proto3" json:"adminKey,omitempty"` + Gas int64 `protobuf:"varint,4,opt,name=gas,proto3" json:"gas,omitempty"` + InitialBalance int64 `protobuf:"varint,5,opt,name=initialBalance,proto3" json:"initialBalance,omitempty"` + ProxyAccountID *AccountID `protobuf:"bytes,6,opt,name=proxyAccountID,proto3" json:"proxyAccountID,omitempty"` + AutoRenewPeriod *Duration `protobuf:"bytes,8,opt,name=autoRenewPeriod,proto3" json:"autoRenewPeriod,omitempty"` + ConstructorParameters []byte `protobuf:"bytes,9,opt,name=constructorParameters,proto3" json:"constructorParameters,omitempty"` + ShardID *ShardID `protobuf:"bytes,10,opt,name=shardID,proto3" json:"shardID,omitempty"` + RealmID *RealmID `protobuf:"bytes,11,opt,name=realmID,proto3" json:"realmID,omitempty"` + NewRealmAdminKey *Key `protobuf:"bytes,12,opt,name=newRealmAdminKey,proto3" json:"newRealmAdminKey,omitempty"` + Memo string `protobuf:"bytes,13,opt,name=memo,proto3" json:"memo,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractCreateTransactionBody) Reset() { *m = ContractCreateTransactionBody{} } +func (m *ContractCreateTransactionBody) String() string { return proto.CompactTextString(m) } +func (*ContractCreateTransactionBody) ProtoMessage() {} +func (*ContractCreateTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_07d90cd594b2010a, []int{0} +} + +func (m *ContractCreateTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractCreateTransactionBody.Unmarshal(m, b) +} +func (m *ContractCreateTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractCreateTransactionBody.Marshal(b, m, deterministic) +} +func (m *ContractCreateTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractCreateTransactionBody.Merge(m, src) +} +func (m *ContractCreateTransactionBody) XXX_Size() int { + return xxx_messageInfo_ContractCreateTransactionBody.Size(m) +} +func (m *ContractCreateTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_ContractCreateTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractCreateTransactionBody proto.InternalMessageInfo + +func (m *ContractCreateTransactionBody) GetFileID() *FileID { + if m != nil { + return m.FileID + } + return nil +} + +func (m *ContractCreateTransactionBody) GetAdminKey() *Key { + if m != nil { + return m.AdminKey + } + return nil +} + +func (m *ContractCreateTransactionBody) GetGas() int64 { + if m != nil { + return m.Gas + } + return 0 +} + +func (m *ContractCreateTransactionBody) GetInitialBalance() int64 { + if m != nil { + return m.InitialBalance + } + return 0 +} + +func (m *ContractCreateTransactionBody) GetProxyAccountID() *AccountID { + if m != nil { + return m.ProxyAccountID + } + return nil +} + +func (m *ContractCreateTransactionBody) GetAutoRenewPeriod() *Duration { + if m != nil { + return m.AutoRenewPeriod + } + return nil +} + +func (m *ContractCreateTransactionBody) GetConstructorParameters() []byte { + if m != nil { + return m.ConstructorParameters + } + return nil +} + +func (m *ContractCreateTransactionBody) GetShardID() *ShardID { + if m != nil { + return m.ShardID + } + return nil +} + +func (m *ContractCreateTransactionBody) GetRealmID() *RealmID { + if m != nil { + return m.RealmID + } + return nil +} + +func (m *ContractCreateTransactionBody) GetNewRealmAdminKey() *Key { + if m != nil { + return m.NewRealmAdminKey + } + return nil +} + +func (m *ContractCreateTransactionBody) GetMemo() string { + if m != nil { + return m.Memo + } + return "" +} + +func init() { + proto.RegisterType((*ContractCreateTransactionBody)(nil), "proto.ContractCreateTransactionBody") +} + +func init() { proto.RegisterFile("ContractCreate.proto", fileDescriptor_07d90cd594b2010a) } + +var fileDescriptor_07d90cd594b2010a = []byte{ + // 362 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xd1, 0x6a, 0xdb, 0x30, + 0x14, 0x86, 0x31, 0x6e, 0xb3, 0x56, 0x6d, 0x5d, 0x23, 0x36, 0x10, 0x85, 0x81, 0x29, 0x2c, 0xf8, + 0xca, 0x17, 0xdb, 0x18, 0xdb, 0x65, 0x1d, 0x33, 0x30, 0xb9, 0x09, 0x5a, 0x5e, 0xe0, 0x4c, 0x3e, + 0x8b, 0x35, 0x6c, 0xc9, 0x48, 0xf2, 0x32, 0x3f, 0xf7, 0x5e, 0x60, 0x44, 0x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 0x33, 0xbd, 0x70, 0xda, 0x6c, 0xc0, 0x40, 0x8b, 0x0e, 0x8d, 0x65, 0xb7, 0x49, 0x90, + 0xde, 0xf3, 0xd7, 0x21, 0x4d, 0xc9, 0x1b, 0x5b, 0x83, 0xa9, 0xca, 0x82, 0x11, 0x5f, 0x14, 0x4d, + 0x45, 0x3f, 0xc6, 0x94, 0xcf, 0xf8, 0x60, 0x1a, 0x84, 0xa6, 0x2d, 0x0b, 0x76, 0x77, 0x62, 0xf2, + 0x31, 0xe5, 0x33, 0xa6, 0x5f, 0x48, 0xac, 0x70, 0xef, 0xe3, 0x97, 0x79, 0xd1, 0xf7, 0x17, 0x8b, + 0xbe, 0x70, 0x28, 0x25, 0x57, 0x2d, 0xb6, 0x9a, 0x3d, 0x24, 0x41, 0x7a, 0xcb, 0xfd, 0x3d, 0x5f, + 0x92, 0x67, 0xa1, 0xdb, 0xac, 0xc6, 0x0a, 0x0d, 0xd4, 0x60, 0xeb, 0x9d, 0x81, 0xae, 0xce, 0xa0, + 0x93, 0xd3, 0x57, 0xbf, 0xe1, 0x0f, 0x6c, 0x82, 0x9f, 0x0b, 0xff, 0xfa, 0xf4, 0x3f, 0x00, 0x00, + 0xff, 0xff, 0x78, 0x41, 0x8a, 0xa3, 0x65, 0x02, 0x00, 0x00, +} diff --git a/proto/ContractDelete.pb.go b/proto/ContractDelete.pb.go new file mode 100644 index 000000000..9e7c31e91 --- /dev/null +++ b/proto/ContractDelete.pb.go @@ -0,0 +1,134 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: ContractDelete.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Modify a smart contract instance to have the given parameter values. Any null field is ignored (left unchanged). If only the contractInstanceExpirationTime is being modified, then no signature is needed on this transaction other than for the account paying for the transaction itself. But if any of the other fields are being modified, then it must be signed by the adminKey. The use of adminKey is not currently supported in this API, but in the future will be implemented to allow these fields to be modified, and also to make modifications to the state of the instance. If the contract is created with no admin key, then none of the fields can be changed that need an admin signature, and therefore no admin key can ever be added. So if there is no admin key, then things like the bytecode are immutable. But if there is an admin key, then they can be changed. For example, the admin key might be a threshold key, which requires 3 of 5 binding arbitration judges to agree before the bytecode can be changed. This can be used to add flexibility to the mangement of smart contract behavior. But this is optional. If the smart contract is created without an admin key, then such a key can never be added, and its bytecode will be immutable. +type ContractDeleteTransactionBody struct { + ContractID *ContractID `protobuf:"bytes,1,opt,name=contractID,proto3" json:"contractID,omitempty"` + // Types that are valid to be assigned to Obtainers: + // *ContractDeleteTransactionBody_TransferAccountID + // *ContractDeleteTransactionBody_TransferContractID + Obtainers isContractDeleteTransactionBody_Obtainers `protobuf_oneof:"obtainers"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractDeleteTransactionBody) Reset() { *m = ContractDeleteTransactionBody{} } +func (m *ContractDeleteTransactionBody) String() string { return proto.CompactTextString(m) } +func (*ContractDeleteTransactionBody) ProtoMessage() {} +func (*ContractDeleteTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_4ef03593b4c31413, []int{0} +} + +func (m *ContractDeleteTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractDeleteTransactionBody.Unmarshal(m, b) +} +func (m *ContractDeleteTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractDeleteTransactionBody.Marshal(b, m, deterministic) +} +func (m *ContractDeleteTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractDeleteTransactionBody.Merge(m, src) +} +func (m *ContractDeleteTransactionBody) XXX_Size() int { + return xxx_messageInfo_ContractDeleteTransactionBody.Size(m) +} +func (m *ContractDeleteTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_ContractDeleteTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractDeleteTransactionBody proto.InternalMessageInfo + +func (m *ContractDeleteTransactionBody) GetContractID() *ContractID { + if m != nil { + return m.ContractID + } + return nil +} + +type isContractDeleteTransactionBody_Obtainers interface { + isContractDeleteTransactionBody_Obtainers() +} + +type ContractDeleteTransactionBody_TransferAccountID struct { + TransferAccountID *AccountID `protobuf:"bytes,2,opt,name=transferAccountID,proto3,oneof"` +} + +type ContractDeleteTransactionBody_TransferContractID struct { + TransferContractID *ContractID `protobuf:"bytes,3,opt,name=transferContractID,proto3,oneof"` +} + +func (*ContractDeleteTransactionBody_TransferAccountID) isContractDeleteTransactionBody_Obtainers() {} + +func (*ContractDeleteTransactionBody_TransferContractID) isContractDeleteTransactionBody_Obtainers() {} + +func (m *ContractDeleteTransactionBody) GetObtainers() isContractDeleteTransactionBody_Obtainers { + if m != nil { + return m.Obtainers + } + return nil +} + +func (m *ContractDeleteTransactionBody) GetTransferAccountID() *AccountID { + if x, ok := m.GetObtainers().(*ContractDeleteTransactionBody_TransferAccountID); ok { + return x.TransferAccountID + } + return nil +} + +func (m *ContractDeleteTransactionBody) GetTransferContractID() *ContractID { + if x, ok := m.GetObtainers().(*ContractDeleteTransactionBody_TransferContractID); ok { + return x.TransferContractID + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ContractDeleteTransactionBody) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ContractDeleteTransactionBody_TransferAccountID)(nil), + (*ContractDeleteTransactionBody_TransferContractID)(nil), + } +} + +func init() { + proto.RegisterType((*ContractDeleteTransactionBody)(nil), "proto.ContractDeleteTransactionBody") +} + +func init() { proto.RegisterFile("ContractDelete.proto", fileDescriptor_4ef03593b4c31413) } + +var fileDescriptor_4ef03593b4c31413 = []byte{ + // 213 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x71, 0xce, 0xcf, 0x2b, + 0x29, 0x4a, 0x4c, 0x2e, 0x71, 0x49, 0xcd, 0x49, 0x2d, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, + 0x17, 0x62, 0x05, 0x53, 0x52, 0x02, 0x4e, 0x89, 0xc5, 0x99, 0xc9, 0x21, 0x95, 0x05, 0xa9, 0xc5, + 0x10, 0x09, 0xa5, 0x67, 0x8c, 0x5c, 0xb2, 0xa8, 0x3a, 0x42, 0x8a, 0x12, 0xf3, 0x8a, 0x13, 0x93, + 0x4b, 0x32, 0xf3, 0xf3, 0x9c, 0xf2, 0x53, 0x2a, 0x85, 0x0c, 0xb9, 0xb8, 0x92, 0xa1, 0x0a, 0x3c, + 0x5d, 0x24, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, 0x04, 0x21, 0xba, 0xf5, 0x9c, 0xe1, 0x12, 0x41, + 0x48, 0x8a, 0x84, 0x1c, 0xb8, 0x04, 0x4b, 0x40, 0xa6, 0xa4, 0xa5, 0x16, 0x39, 0x26, 0x27, 0xe7, + 0x97, 0xe6, 0x81, 0x74, 0x32, 0x81, 0x75, 0x0a, 0x40, 0x75, 0xc2, 0xc5, 0x3d, 0x18, 0x82, 0x30, + 0x15, 0x0b, 0x39, 0x73, 0x09, 0xc1, 0x04, 0x11, 0x76, 0x48, 0x30, 0xe3, 0xb0, 0xdc, 0x83, 0x21, + 0x08, 0x8b, 0x72, 0x27, 0x6e, 0x2e, 0xce, 0xfc, 0xa4, 0x92, 0xc4, 0xcc, 0xbc, 0xd4, 0xa2, 0x62, + 0x27, 0x35, 0x2e, 0xa5, 0xe4, 0xfc, 0x5c, 0xbd, 0x8c, 0xd4, 0x94, 0xd4, 0xa2, 0xc4, 0x8c, 0xc4, + 0xe2, 0x8c, 0xf4, 0xa2, 0xc4, 0x82, 0x0c, 0xbd, 0xc4, 0x82, 0x4c, 0xa8, 0x71, 0x59, 0x89, 0x65, + 0x89, 0x01, 0x8c, 0x49, 0x6c, 0x60, 0x9e, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x28, 0xf4, 0x64, + 0x5c, 0x48, 0x01, 0x00, 0x00, +} diff --git a/proto/ContractGetBytecode.pb.go b/proto/ContractGetBytecode.pb.go new file mode 100644 index 000000000..2c7a1ad2c --- /dev/null +++ b/proto/ContractGetBytecode.pb.go @@ -0,0 +1,142 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: ContractGetBytecode.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get the bytecode for a smart contract instance +type ContractGetBytecodeQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ContractID *ContractID `protobuf:"bytes,2,opt,name=contractID,proto3" json:"contractID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractGetBytecodeQuery) Reset() { *m = ContractGetBytecodeQuery{} } +func (m *ContractGetBytecodeQuery) String() string { return proto.CompactTextString(m) } +func (*ContractGetBytecodeQuery) ProtoMessage() {} +func (*ContractGetBytecodeQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_72d8843f452292c3, []int{0} +} + +func (m *ContractGetBytecodeQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractGetBytecodeQuery.Unmarshal(m, b) +} +func (m *ContractGetBytecodeQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractGetBytecodeQuery.Marshal(b, m, deterministic) +} +func (m *ContractGetBytecodeQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractGetBytecodeQuery.Merge(m, src) +} +func (m *ContractGetBytecodeQuery) XXX_Size() int { + return xxx_messageInfo_ContractGetBytecodeQuery.Size(m) +} +func (m *ContractGetBytecodeQuery) XXX_DiscardUnknown() { + xxx_messageInfo_ContractGetBytecodeQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractGetBytecodeQuery proto.InternalMessageInfo + +func (m *ContractGetBytecodeQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *ContractGetBytecodeQuery) GetContractID() *ContractID { + if m != nil { + return m.ContractID + } + return nil +} + +// Response when the client sends the node ContractGetBytecodeQuery +type ContractGetBytecodeResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Bytecode []byte `protobuf:"bytes,6,opt,name=bytecode,proto3" json:"bytecode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractGetBytecodeResponse) Reset() { *m = ContractGetBytecodeResponse{} } +func (m *ContractGetBytecodeResponse) String() string { return proto.CompactTextString(m) } +func (*ContractGetBytecodeResponse) ProtoMessage() {} +func (*ContractGetBytecodeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_72d8843f452292c3, []int{1} +} + +func (m *ContractGetBytecodeResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractGetBytecodeResponse.Unmarshal(m, b) +} +func (m *ContractGetBytecodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractGetBytecodeResponse.Marshal(b, m, deterministic) +} +func (m *ContractGetBytecodeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractGetBytecodeResponse.Merge(m, src) +} +func (m *ContractGetBytecodeResponse) XXX_Size() int { + return xxx_messageInfo_ContractGetBytecodeResponse.Size(m) +} +func (m *ContractGetBytecodeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ContractGetBytecodeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractGetBytecodeResponse proto.InternalMessageInfo + +func (m *ContractGetBytecodeResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *ContractGetBytecodeResponse) GetBytecode() []byte { + if m != nil { + return m.Bytecode + } + return nil +} + +func init() { + proto.RegisterType((*ContractGetBytecodeQuery)(nil), "proto.ContractGetBytecodeQuery") + proto.RegisterType((*ContractGetBytecodeResponse)(nil), "proto.ContractGetBytecodeResponse") +} + +func init() { proto.RegisterFile("ContractGetBytecode.proto", fileDescriptor_72d8843f452292c3) } + +var fileDescriptor_72d8843f452292c3 = []byte{ + // 221 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0xc1, 0x4a, 0xc4, 0x30, + 0x10, 0x86, 0x89, 0x60, 0x91, 0xd1, 0x83, 0x1b, 0x14, 0x62, 0xbd, 0x2c, 0x3d, 0xc8, 0x22, 0x18, + 0x50, 0xdf, 0xa0, 0x2b, 0xa8, 0x37, 0x0d, 0xbe, 0xc0, 0x34, 0x1d, 0x4c, 0x05, 0x9b, 0x90, 0x44, + 0x21, 0x6f, 0x2f, 0xa4, 0xb1, 0x54, 0xe9, 0x29, 0xcc, 0xcc, 0x37, 0xdf, 0xfc, 0x81, 0x8b, 0xbd, + 0x1d, 0xa3, 0x47, 0x1d, 0x1f, 0x29, 0xb6, 0x29, 0x92, 0xb6, 0x3d, 0x49, 0xe7, 0x6d, 0xb4, 0xfc, + 0x30, 0x3f, 0xf5, 0x69, 0x8b, 0x61, 0xd0, 0x6f, 0xc9, 0x51, 0x98, 0x06, 0xf5, 0xe6, 0xf5, 0x8b, + 0x7c, 0x7a, 0x22, 0xec, 0xc9, 0x97, 0xd6, 0x99, 0xa2, 0xe0, 0xec, 0x18, 0x68, 0xd9, 0x6d, 0x12, + 0x88, 0x15, 0x7d, 0xde, 0xe6, 0xd7, 0x50, 0x99, 0xcc, 0x0a, 0xb6, 0x65, 0xbb, 0xe3, 0x3b, 0x3e, + 0xed, 0xc8, 0x85, 0x5b, 0x15, 0x82, 0xdf, 0x02, 0xe8, 0xe2, 0x79, 0x7e, 0x10, 0x07, 0x99, 0xdf, + 0x14, 0x7e, 0x3f, 0x0f, 0xd4, 0x02, 0x6a, 0x0c, 0x5c, 0xae, 0x9c, 0xfe, 0x4d, 0xc9, 0x6f, 0xfe, + 0x5d, 0x3f, 0x2f, 0xb6, 0xbf, 0xdf, 0x98, 0x03, 0xd4, 0x70, 0xd4, 0x15, 0x85, 0xa8, 0xb6, 0x6c, + 0x77, 0xa2, 0xe6, 0xba, 0xbd, 0x82, 0x46, 0xdb, 0x4f, 0x69, 0xa8, 0x27, 0x8f, 0x06, 0x83, 0x79, + 0xf7, 0xe8, 0x8c, 0x44, 0x37, 0x14, 0xe7, 0x07, 0x7e, 0xe3, 0x0b, 0xeb, 0xaa, 0x5c, 0xdd, 0xff, + 0x04, 0x00, 0x00, 0xff, 0xff, 0xb9, 0xa7, 0x85, 0x4c, 0x72, 0x01, 0x00, 0x00, +} diff --git a/proto/ContractGetInfo.pb.go b/proto/ContractGetInfo.pb.go new file mode 100644 index 000000000..f3839d469 --- /dev/null +++ b/proto/ContractGetInfo.pb.go @@ -0,0 +1,249 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: ContractGetInfo.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get information about a smart contract instance. This includes the account that it uses, the file containing its bytecode, and the time when it will expire. +type ContractGetInfoQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ContractID *ContractID `protobuf:"bytes,2,opt,name=contractID,proto3" json:"contractID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractGetInfoQuery) Reset() { *m = ContractGetInfoQuery{} } +func (m *ContractGetInfoQuery) String() string { return proto.CompactTextString(m) } +func (*ContractGetInfoQuery) ProtoMessage() {} +func (*ContractGetInfoQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_fdb79514465b69d4, []int{0} +} + +func (m *ContractGetInfoQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractGetInfoQuery.Unmarshal(m, b) +} +func (m *ContractGetInfoQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractGetInfoQuery.Marshal(b, m, deterministic) +} +func (m *ContractGetInfoQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractGetInfoQuery.Merge(m, src) +} +func (m *ContractGetInfoQuery) XXX_Size() int { + return xxx_messageInfo_ContractGetInfoQuery.Size(m) +} +func (m *ContractGetInfoQuery) XXX_DiscardUnknown() { + xxx_messageInfo_ContractGetInfoQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractGetInfoQuery proto.InternalMessageInfo + +func (m *ContractGetInfoQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *ContractGetInfoQuery) GetContractID() *ContractID { + if m != nil { + return m.ContractID + } + return nil +} + +// Response when the client sends the node ContractGetInfoQuery +type ContractGetInfoResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ContractInfo *ContractGetInfoResponse_ContractInfo `protobuf:"bytes,2,opt,name=contractInfo,proto3" json:"contractInfo,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractGetInfoResponse) Reset() { *m = ContractGetInfoResponse{} } +func (m *ContractGetInfoResponse) String() string { return proto.CompactTextString(m) } +func (*ContractGetInfoResponse) ProtoMessage() {} +func (*ContractGetInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_fdb79514465b69d4, []int{1} +} + +func (m *ContractGetInfoResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractGetInfoResponse.Unmarshal(m, b) +} +func (m *ContractGetInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractGetInfoResponse.Marshal(b, m, deterministic) +} +func (m *ContractGetInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractGetInfoResponse.Merge(m, src) +} +func (m *ContractGetInfoResponse) XXX_Size() int { + return xxx_messageInfo_ContractGetInfoResponse.Size(m) +} +func (m *ContractGetInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ContractGetInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractGetInfoResponse proto.InternalMessageInfo + +func (m *ContractGetInfoResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *ContractGetInfoResponse) GetContractInfo() *ContractGetInfoResponse_ContractInfo { + if m != nil { + return m.ContractInfo + } + return nil +} + +type ContractGetInfoResponse_ContractInfo struct { + ContractID *ContractID `protobuf:"bytes,1,opt,name=contractID,proto3" json:"contractID,omitempty"` + AccountID *AccountID `protobuf:"bytes,2,opt,name=accountID,proto3" json:"accountID,omitempty"` + ContractAccountID string `protobuf:"bytes,3,opt,name=contractAccountID,proto3" json:"contractAccountID,omitempty"` + AdminKey *Key `protobuf:"bytes,4,opt,name=adminKey,proto3" json:"adminKey,omitempty"` + ExpirationTime *Timestamp `protobuf:"bytes,5,opt,name=expirationTime,proto3" json:"expirationTime,omitempty"` + AutoRenewPeriod *Duration `protobuf:"bytes,6,opt,name=autoRenewPeriod,proto3" json:"autoRenewPeriod,omitempty"` + Storage int64 `protobuf:"varint,7,opt,name=storage,proto3" json:"storage,omitempty"` + Memo string `protobuf:"bytes,8,opt,name=memo,proto3" json:"memo,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractGetInfoResponse_ContractInfo) Reset() { *m = ContractGetInfoResponse_ContractInfo{} } +func (m *ContractGetInfoResponse_ContractInfo) String() string { return proto.CompactTextString(m) } +func (*ContractGetInfoResponse_ContractInfo) ProtoMessage() {} +func (*ContractGetInfoResponse_ContractInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_fdb79514465b69d4, []int{1, 0} +} + +func (m *ContractGetInfoResponse_ContractInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractGetInfoResponse_ContractInfo.Unmarshal(m, b) +} +func (m *ContractGetInfoResponse_ContractInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractGetInfoResponse_ContractInfo.Marshal(b, m, deterministic) +} +func (m *ContractGetInfoResponse_ContractInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractGetInfoResponse_ContractInfo.Merge(m, src) +} +func (m *ContractGetInfoResponse_ContractInfo) XXX_Size() int { + return xxx_messageInfo_ContractGetInfoResponse_ContractInfo.Size(m) +} +func (m *ContractGetInfoResponse_ContractInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ContractGetInfoResponse_ContractInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractGetInfoResponse_ContractInfo proto.InternalMessageInfo + +func (m *ContractGetInfoResponse_ContractInfo) GetContractID() *ContractID { + if m != nil { + return m.ContractID + } + return nil +} + +func (m *ContractGetInfoResponse_ContractInfo) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +func (m *ContractGetInfoResponse_ContractInfo) GetContractAccountID() string { + if m != nil { + return m.ContractAccountID + } + return "" +} + +func (m *ContractGetInfoResponse_ContractInfo) GetAdminKey() *Key { + if m != nil { + return m.AdminKey + } + return nil +} + +func (m *ContractGetInfoResponse_ContractInfo) GetExpirationTime() *Timestamp { + if m != nil { + return m.ExpirationTime + } + return nil +} + +func (m *ContractGetInfoResponse_ContractInfo) GetAutoRenewPeriod() *Duration { + if m != nil { + return m.AutoRenewPeriod + } + return nil +} + +func (m *ContractGetInfoResponse_ContractInfo) GetStorage() int64 { + if m != nil { + return m.Storage + } + return 0 +} + +func (m *ContractGetInfoResponse_ContractInfo) GetMemo() string { + if m != nil { + return m.Memo + } + return "" +} + +func init() { + proto.RegisterType((*ContractGetInfoQuery)(nil), "proto.ContractGetInfoQuery") + proto.RegisterType((*ContractGetInfoResponse)(nil), "proto.ContractGetInfoResponse") + proto.RegisterType((*ContractGetInfoResponse_ContractInfo)(nil), "proto.ContractGetInfoResponse.ContractInfo") +} + +func init() { proto.RegisterFile("ContractGetInfo.proto", fileDescriptor_fdb79514465b69d4) } + +var fileDescriptor_fdb79514465b69d4 = []byte{ + // 385 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4b, 0xce, 0xda, 0x30, + 0x10, 0x56, 0x78, 0x33, 0x45, 0x3c, 0x2c, 0x50, 0x2d, 0x56, 0x88, 0x05, 0x42, 0x7d, 0x44, 0x6a, + 0xbb, 0x69, 0x97, 0x05, 0xa4, 0x16, 0xb1, 0x28, 0xb5, 0xb8, 0x80, 0x9b, 0x0c, 0x24, 0x95, 0x62, + 0x47, 0x8e, 0xd3, 0x36, 0x17, 0xe8, 0x61, 0x7b, 0x8a, 0x0a, 0xe3, 0x84, 0xe0, 0x7f, 0xf3, 0xaf, + 0x92, 0xf9, 0xe6, 0x7b, 0xcc, 0x58, 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7, 0xd9, 0xd3, 0x06, + 0x59, 0x41, 0x8f, 0x87, 0x49, 0x2c, 0x0e, 0x58, 0xd0, 0x96, 0x31, 0x07, 0x6b, 0x7e, 0xc0, 0x82, + 0x55, 0x3d, 0xf2, 0x11, 0x86, 0xf8, 0x27, 0x8d, 0x6f, 0xb7, 0x72, 0x3d, 0x22, 0xda, 0x7e, 0x18, + 0xa5, 0xba, 0x2b, 0xe6, 0xf0, 0xc8, 0x27, 0x18, 0xf1, 0x5c, 0x4b, 0x86, 0x02, 0x7f, 0x1f, 0x51, + 0xc5, 0x32, 0xa4, 0x1d, 0x23, 0x1d, 0x59, 0x69, 0x79, 0x81, 0xcc, 0xe5, 0x11, 0x0a, 0xdd, 0x4c, + 0x4b, 0xc5, 0x2f, 0x48, 0xbb, 0x0b, 0x6f, 0xdd, 0x64, 0x65, 0x49, 0x08, 0xb4, 0x12, 0x4c, 0x24, + 0xed, 0x99, 0xbd, 0xcc, 0xff, 0x66, 0x05, 0xcb, 0x40, 0x26, 0x7e, 0x84, 0x21, 0x2a, 0x1e, 0xf1, + 0x2c, 0xba, 0x28, 0x9e, 0x46, 0x3e, 0x4f, 0x63, 0x1b, 0xf4, 0x93, 0xff, 0xe2, 0x47, 0xef, 0x47, + 0xc7, 0x54, 0x1f, 0xfe, 0x07, 0x00, 0x00, 0xff, 0xff, 0x0e, 0xaf, 0xd6, 0x59, 0x2a, 0x03, 0x00, + 0x00, +} diff --git a/proto/ContractGetRecords.pb.go b/proto/ContractGetRecords.pb.go new file mode 100644 index 000000000..1becfd271 --- /dev/null +++ b/proto/ContractGetRecords.pb.go @@ -0,0 +1,152 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: ContractGetRecords.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get all the records for a smart contract instance, for any function call (or the constructor call) during the last 25 hours, for which a Record was requested. +type ContractGetRecordsQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ContractID *ContractID `protobuf:"bytes,2,opt,name=contractID,proto3" json:"contractID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractGetRecordsQuery) Reset() { *m = ContractGetRecordsQuery{} } +func (m *ContractGetRecordsQuery) String() string { return proto.CompactTextString(m) } +func (*ContractGetRecordsQuery) ProtoMessage() {} +func (*ContractGetRecordsQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_b6832342edea4bb5, []int{0} +} + +func (m *ContractGetRecordsQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractGetRecordsQuery.Unmarshal(m, b) +} +func (m *ContractGetRecordsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractGetRecordsQuery.Marshal(b, m, deterministic) +} +func (m *ContractGetRecordsQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractGetRecordsQuery.Merge(m, src) +} +func (m *ContractGetRecordsQuery) XXX_Size() int { + return xxx_messageInfo_ContractGetRecordsQuery.Size(m) +} +func (m *ContractGetRecordsQuery) XXX_DiscardUnknown() { + xxx_messageInfo_ContractGetRecordsQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractGetRecordsQuery proto.InternalMessageInfo + +func (m *ContractGetRecordsQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *ContractGetRecordsQuery) GetContractID() *ContractID { + if m != nil { + return m.ContractID + } + return nil +} + +// Response when the client sends the node ContractGetRecordsQuery +type ContractGetRecordsResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ContractID *ContractID `protobuf:"bytes,2,opt,name=contractID,proto3" json:"contractID,omitempty"` + Records []*TransactionRecord `protobuf:"bytes,3,rep,name=records,proto3" json:"records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractGetRecordsResponse) Reset() { *m = ContractGetRecordsResponse{} } +func (m *ContractGetRecordsResponse) String() string { return proto.CompactTextString(m) } +func (*ContractGetRecordsResponse) ProtoMessage() {} +func (*ContractGetRecordsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b6832342edea4bb5, []int{1} +} + +func (m *ContractGetRecordsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractGetRecordsResponse.Unmarshal(m, b) +} +func (m *ContractGetRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractGetRecordsResponse.Marshal(b, m, deterministic) +} +func (m *ContractGetRecordsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractGetRecordsResponse.Merge(m, src) +} +func (m *ContractGetRecordsResponse) XXX_Size() int { + return xxx_messageInfo_ContractGetRecordsResponse.Size(m) +} +func (m *ContractGetRecordsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ContractGetRecordsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractGetRecordsResponse proto.InternalMessageInfo + +func (m *ContractGetRecordsResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *ContractGetRecordsResponse) GetContractID() *ContractID { + if m != nil { + return m.ContractID + } + return nil +} + +func (m *ContractGetRecordsResponse) GetRecords() []*TransactionRecord { + if m != nil { + return m.Records + } + return nil +} + +func init() { + proto.RegisterType((*ContractGetRecordsQuery)(nil), "proto.ContractGetRecordsQuery") + proto.RegisterType((*ContractGetRecordsResponse)(nil), "proto.ContractGetRecordsResponse") +} + +func init() { proto.RegisterFile("ContractGetRecords.proto", fileDescriptor_b6832342edea4bb5) } + +var fileDescriptor_b6832342edea4bb5 = []byte{ + // 243 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x90, 0xc1, 0x4a, 0x03, 0x31, + 0x10, 0x86, 0x59, 0x8b, 0x15, 0xd2, 0x8b, 0x0d, 0x4a, 0xc3, 0x9e, 0xca, 0x1e, 0xa4, 0x08, 0x2e, + 0xb8, 0xbe, 0x41, 0x2b, 0xa8, 0x37, 0x0d, 0x7d, 0x81, 0x31, 0x3b, 0x98, 0x15, 0x4c, 0xc2, 0x24, + 0x8a, 0x7d, 0x2d, 0x9f, 0x50, 0xc8, 0xce, 0xca, 0xea, 0x1e, 0x3d, 0x85, 0xcc, 0xff, 0xfd, 0xff, + 0x3f, 0x89, 0x50, 0x3b, 0xef, 0x12, 0x81, 0x49, 0x77, 0x98, 0x34, 0x1a, 0x4f, 0x6d, 0xac, 0x03, + 0xf9, 0xe4, 0xe5, 0x71, 0x3e, 0xca, 0xd3, 0x2d, 0xc4, 0xce, 0xec, 0x0f, 0x01, 0x59, 0x28, 0x57, + 0x7b, 0x02, 0x17, 0xc1, 0xa4, 0xce, 0xbb, 0xde, 0xc2, 0xc2, 0xf2, 0xe9, 0x1d, 0xe9, 0x70, 0x8f, + 0xd0, 0x22, 0xf1, 0xe8, 0x4c, 0x63, 0x0c, 0xde, 0x45, 0x1c, 0x4f, 0xab, 0x4f, 0xb1, 0x9a, 0xd6, + 0x66, 0xb3, 0xbc, 0x14, 0x73, 0x9b, 0x51, 0x55, 0xac, 0x8b, 0xcd, 0xa2, 0x91, 0xbd, 0xa5, 0x1e, + 0x45, 0x6b, 0x26, 0xe4, 0xb5, 0x10, 0x86, 0x63, 0x1e, 0x6e, 0xd5, 0x51, 0xe6, 0x97, 0xcc, 0xef, + 0x7e, 0x04, 0x3d, 0x82, 0xaa, 0xaf, 0x42, 0x94, 0xd3, 0xea, 0x61, 0x49, 0x79, 0xf5, 0xa7, 0xfd, + 0x9c, 0xd3, 0x7e, 0xbf, 0xe2, 0x1f, 0x0b, 0xc8, 0x46, 0x9c, 0x50, 0x5f, 0xaa, 0x66, 0xeb, 0xd9, + 0x66, 0xd1, 0x28, 0xe6, 0x27, 0x9f, 0xaa, 0x07, 0x70, 0x7b, 0x21, 0x2a, 0xe3, 0xdf, 0x6a, 0x8b, + 0x2d, 0x12, 0x58, 0x88, 0xf6, 0x85, 0x20, 0xd8, 0x1a, 0x42, 0xc7, 0xde, 0x57, 0xf8, 0x80, 0xc7, + 0xe2, 0x79, 0x9e, 0x6f, 0x37, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x20, 0x2f, 0xa3, 0xad, 0xd4, + 0x01, 0x00, 0x00, +} diff --git a/proto/ContractUpdate.pb.go b/proto/ContractUpdate.pb.go new file mode 100644 index 000000000..f2a0a990b --- /dev/null +++ b/proto/ContractUpdate.pb.go @@ -0,0 +1,138 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: ContractUpdate.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Modify a smart contract instance to have the given parameter values. Any null field is ignored (left unchanged). If only the contractInstanceExpirationTime is being modified, then no signature is needed on this transaction other than for the account paying for the transaction itself. But if any of the other fields are being modified, then it must be signed by the adminKey. The use of adminKey is not currently supported in this API, but in the future will be implemented to allow these fields to be modified, and also to make modifications to the state of the instance. If the contract is created with no admin key, then none of the fields can be changed that need an admin signature, and therefore no admin key can ever be added. So if there is no admin key, then things like the bytecode are immutable. But if there is an admin key, then they can be changed. For example, the admin key might be a threshold key, which requires 3 of 5 binding arbitration judges to agree before the bytecode can be changed. This can be used to add flexibility to the management of smart contract behavior. But this is optional. If the smart contract is created without an admin key, then such a key can never be added, and its bytecode will be immutable. +type ContractUpdateTransactionBody struct { + ContractID *ContractID `protobuf:"bytes,1,opt,name=contractID,proto3" json:"contractID,omitempty"` + ExpirationTime *Timestamp `protobuf:"bytes,2,opt,name=expirationTime,proto3" json:"expirationTime,omitempty"` + AdminKey *Key `protobuf:"bytes,3,opt,name=adminKey,proto3" json:"adminKey,omitempty"` + ProxyAccountID *AccountID `protobuf:"bytes,6,opt,name=proxyAccountID,proto3" json:"proxyAccountID,omitempty"` + AutoRenewPeriod *Duration `protobuf:"bytes,7,opt,name=autoRenewPeriod,proto3" json:"autoRenewPeriod,omitempty"` + FileID *FileID `protobuf:"bytes,8,opt,name=fileID,proto3" json:"fileID,omitempty"` + Memo string `protobuf:"bytes,9,opt,name=memo,proto3" json:"memo,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContractUpdateTransactionBody) Reset() { *m = ContractUpdateTransactionBody{} } +func (m *ContractUpdateTransactionBody) String() string { return proto.CompactTextString(m) } +func (*ContractUpdateTransactionBody) ProtoMessage() {} +func (*ContractUpdateTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_97d278ba35610687, []int{0} +} + +func (m *ContractUpdateTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContractUpdateTransactionBody.Unmarshal(m, b) +} +func (m *ContractUpdateTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContractUpdateTransactionBody.Marshal(b, m, deterministic) +} +func (m *ContractUpdateTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractUpdateTransactionBody.Merge(m, src) +} +func (m *ContractUpdateTransactionBody) XXX_Size() int { + return xxx_messageInfo_ContractUpdateTransactionBody.Size(m) +} +func (m *ContractUpdateTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_ContractUpdateTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractUpdateTransactionBody proto.InternalMessageInfo + +func (m *ContractUpdateTransactionBody) GetContractID() *ContractID { + if m != nil { + return m.ContractID + } + return nil +} + +func (m *ContractUpdateTransactionBody) GetExpirationTime() *Timestamp { + if m != nil { + return m.ExpirationTime + } + return nil +} + +func (m *ContractUpdateTransactionBody) GetAdminKey() *Key { + if m != nil { + return m.AdminKey + } + return nil +} + +func (m *ContractUpdateTransactionBody) GetProxyAccountID() *AccountID { + if m != nil { + return m.ProxyAccountID + } + return nil +} + +func (m *ContractUpdateTransactionBody) GetAutoRenewPeriod() *Duration { + if m != nil { + return m.AutoRenewPeriod + } + return nil +} + +func (m *ContractUpdateTransactionBody) GetFileID() *FileID { + if m != nil { + return m.FileID + } + return nil +} + +func (m *ContractUpdateTransactionBody) GetMemo() string { + if m != nil { + return m.Memo + } + return "" +} + +func init() { + proto.RegisterType((*ContractUpdateTransactionBody)(nil), "proto.ContractUpdateTransactionBody") +} + +func init() { proto.RegisterFile("ContractUpdate.proto", fileDescriptor_97d278ba35610687) } + +var fileDescriptor_97d278ba35610687 = []byte{ + // 300 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xcf, 0x4a, 0xf3, 0x40, + 0x14, 0xc5, 0x49, 0xbf, 0xcf, 0xda, 0x8e, 0xd8, 0xd6, 0xc1, 0xc5, 0x50, 0x10, 0x4a, 0xc1, 0xd2, + 0x55, 0x40, 0xdd, 0xe8, 0xd2, 0xb6, 0x08, 0xa5, 0x9b, 0x32, 0xd4, 0x07, 0xb8, 0x4e, 0xae, 0x66, + 0xc4, 0xf9, 0xc3, 0x64, 0xaa, 0xcd, 0xfb, 0xfa, 0x20, 0x92, 0xc9, 0x18, 0x6c, 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x79, 0x34, 0x29, 0x25, 0xff, 0x15, 0x2a, 0xc3, 0xfa, 0x93, 0x64, 0xde, 0xe7, + 0xe1, 0x7f, 0x31, 0x23, 0x53, 0x61, 0x54, 0x9a, 0x63, 0x86, 0x0e, 0x72, 0x28, 0xf2, 0x37, 0x07, + 0x36, 0x4f, 0xc1, 0xca, 0xb8, 0xe3, 0x1d, 0x3e, 0x61, 0x9b, 0xbc, 0x74, 0xc3, 0x74, 0xf7, 0x13, + 0x00, 0x00, 0xff, 0xff, 0x72, 0xaf, 0x26, 0x98, 0xe7, 0x01, 0x00, 0x00, +} diff --git a/proto/CryptoAddClaim.pb.go b/proto/CryptoAddClaim.pb.go new file mode 100644 index 000000000..197121667 --- /dev/null +++ b/proto/CryptoAddClaim.pb.go @@ -0,0 +1,156 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: CryptoAddClaim.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// A hash (presumably of some kind of credential or certificate), along with a list of keys (each of which is either a primitive or a threshold key). Each of them must reach its threshold when signing the transaction, to attach this claim to this account. At least one of them must reach its threshold to delete this Claim from this account. This is intended to provide a revocation service: all the authorities agree to attach the hash, to attest to the fact that the credential or certificate is valid. Any one of the authorities can later delete the hash, to indicate that the credential has been revoked. In this way, any client can prove to a third party that any particular account has certain credentials, or to identity facts proved about it, and that none of them have been revoked yet. +type Claim struct { + AccountID *AccountID `protobuf:"bytes,1,opt,name=accountID,proto3" json:"accountID,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Keys *KeyList `protobuf:"bytes,3,opt,name=keys,proto3" json:"keys,omitempty"` + ClaimDuration *Duration `protobuf:"bytes,5,opt,name=claimDuration,proto3" json:"claimDuration,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Claim) Reset() { *m = Claim{} } +func (m *Claim) String() string { return proto.CompactTextString(m) } +func (*Claim) ProtoMessage() {} +func (*Claim) Descriptor() ([]byte, []int) { + return fileDescriptor_ec938addb78951d5, []int{0} +} + +func (m *Claim) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Claim.Unmarshal(m, b) +} +func (m *Claim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Claim.Marshal(b, m, deterministic) +} +func (m *Claim) XXX_Merge(src proto.Message) { + xxx_messageInfo_Claim.Merge(m, src) +} +func (m *Claim) XXX_Size() int { + return xxx_messageInfo_Claim.Size(m) +} +func (m *Claim) XXX_DiscardUnknown() { + xxx_messageInfo_Claim.DiscardUnknown(m) +} + +var xxx_messageInfo_Claim proto.InternalMessageInfo + +func (m *Claim) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +func (m *Claim) GetHash() []byte { + if m != nil { + return m.Hash + } + return nil +} + +func (m *Claim) GetKeys() *KeyList { + if m != nil { + return m.Keys + } + return nil +} + +func (m *Claim) GetClaimDuration() *Duration { + if m != nil { + return m.ClaimDuration + } + return nil +} + +// Attach the given hash to the given account. The hash can be deleted by the keys used to transfer money from the account. The hash can also be deleted by any one of the deleteKeys (where that one may itself be a threshold key made up of multiple keys). Therefore, this acts as a revocation service for claims about the account. External authorities may issue certificates or credentials of some kind that make a claim about this account. The account owner can then attach a hash of that claim to the account. The transaction that adds the claim will be signed by the owner of the account, and also by all the authorities that are attesting to the truth of that claim. If the claim ever ceases to be true, such as when a certificate is revoked, then any one of the listed authorities has the ability to delete it. The account owner also has the ability to delete it at any time. +// +// In this way, it acts as a revocation server, and the account owner can prove to any third party that the claim is still true for this account, by sending the third party the signed credential, and then having the third party query to discover whether the hash of that credential is still attached to the account. +// +// For a given account, each Claim must contain a different hash. To modify the list of keys in a Claim, the existing Claim should first be deleted, then the Claim with the new list of keys can be added. +type CryptoAddClaimTransactionBody struct { + Claim *Claim `protobuf:"bytes,3,opt,name=claim,proto3" json:"claim,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoAddClaimTransactionBody) Reset() { *m = CryptoAddClaimTransactionBody{} } +func (m *CryptoAddClaimTransactionBody) String() string { return proto.CompactTextString(m) } +func (*CryptoAddClaimTransactionBody) ProtoMessage() {} +func (*CryptoAddClaimTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_ec938addb78951d5, []int{1} +} + +func (m *CryptoAddClaimTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoAddClaimTransactionBody.Unmarshal(m, b) +} +func (m *CryptoAddClaimTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoAddClaimTransactionBody.Marshal(b, m, deterministic) +} +func (m *CryptoAddClaimTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoAddClaimTransactionBody.Merge(m, src) +} +func (m *CryptoAddClaimTransactionBody) XXX_Size() int { + return xxx_messageInfo_CryptoAddClaimTransactionBody.Size(m) +} +func (m *CryptoAddClaimTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoAddClaimTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoAddClaimTransactionBody proto.InternalMessageInfo + +func (m *CryptoAddClaimTransactionBody) GetClaim() *Claim { + if m != nil { + return m.Claim + } + return nil +} + +func init() { + proto.RegisterType((*Claim)(nil), "proto.Claim") + proto.RegisterType((*CryptoAddClaimTransactionBody)(nil), "proto.CryptoAddClaimTransactionBody") +} + +func init() { proto.RegisterFile("CryptoAddClaim.proto", fileDescriptor_ec938addb78951d5) } + +var fileDescriptor_ec938addb78951d5 = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0xc1, 0x4a, 0x03, 0x31, + 0x10, 0x86, 0x59, 0xed, 0x0a, 0x8e, 0xb5, 0x96, 0xe0, 0x61, 0x29, 0x08, 0x25, 0x07, 0xe9, 0x29, + 0x07, 0xc5, 0x07, 0xe8, 0x6e, 0x2f, 0xa2, 0x07, 0x09, 0x7d, 0x81, 0x31, 0x1b, 0xdc, 0xa8, 0xdd, + 0x84, 0x24, 0x15, 0xf2, 0x42, 0x3e, 0xa7, 0xec, 0x6c, 0x16, 0xe9, 0x29, 0x99, 0xf9, 0xbf, 0x2f, + 0x33, 0x81, 0xdb, 0xc6, 0x27, 0x17, 0xed, 0xb6, 0x6d, 0x9b, 0x6f, 0x34, 0x07, 0xe1, 0xbc, 0x8d, + 0x96, 0x95, 0x74, 0xac, 0x96, 0x35, 0x06, 0xa3, 0xf6, 0xc9, 0xe9, 0x30, 0x06, 0xab, 0xc5, 0xee, + 0xe8, 0x31, 0x1a, 0xdb, 0x8f, 0x35, 0xff, 0x2d, 0xa0, 0x24, 0x91, 0x09, 0xb8, 0x44, 0xa5, 0xec, + 0xb1, 0x8f, 0xcf, 0xbb, 0xaa, 0x58, 0x17, 0x9b, 0xab, 0x87, 0xe5, 0x08, 0x89, 0xed, 0xd4, 0x97, + 0xff, 0x08, 0x63, 0x30, 0xeb, 0x30, 0x74, 0xd5, 0xd9, 0xba, 0xd8, 0xcc, 0x25, 0xdd, 0x19, 0x87, + 0xd9, 0x97, 0x4e, 0xa1, 0x3a, 0x27, 0x7d, 0x91, 0xf5, 0x17, 0x9d, 0x5e, 0x4d, 0x88, 0x92, 0x32, + 0xf6, 0x04, 0xd7, 0x6a, 0x18, 0x38, 0x2d, 0x52, 0x95, 0x04, 0xdf, 0x64, 0x78, 0x6a, 0xcb, 0x53, + 0x8a, 0x37, 0x70, 0x77, 0xfa, 0xd3, 0xbd, 0xc7, 0x3e, 0xa0, 0x1a, 0xc2, 0xda, 0xb6, 0x89, 0x71, + 0x28, 0xc9, 0xc8, 0xc3, 0xe7, 0xf9, 0x3d, 0x62, 0xe5, 0x18, 0xd5, 0xf7, 0xc0, 0x95, 0x3d, 0x88, + 0x4e, 0xb7, 0xda, 0xe3, 0xb0, 0xf1, 0x87, 0x47, 0xd7, 0x09, 0x74, 0x26, 0xd3, 0x9f, 0xf8, 0x83, + 0x6f, 0xc5, 0xfb, 0x05, 0x55, 0x8f, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0d, 0xdf, 0xf7, 0x71, + 0x5d, 0x01, 0x00, 0x00, +} diff --git a/proto/CryptoCreate.pb.go b/proto/CryptoCreate.pb.go new file mode 100644 index 000000000..aeefc08ef --- /dev/null +++ b/proto/CryptoCreate.pb.go @@ -0,0 +1,169 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: CryptoCreate.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Create a new account. After the account is created, the AccountID for it is in the receipt, or can be retrieved with a GetByKey query, or by asking for a Record of the transaction to be created, and retrieving that. The account can then automatically generate records for large transfers into it or out of it, which each last for 25 hours. Records are generated for any transfer that exceeds the thresholds given here. This account is charged cryptocurrency 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. +// +// 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 { + Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + InitialBalance uint64 `protobuf:"varint,2,opt,name=initialBalance,proto3" json:"initialBalance,omitempty"` + ProxyAccountID *AccountID `protobuf:"bytes,3,opt,name=proxyAccountID,proto3" json:"proxyAccountID,omitempty"` + SendRecordThreshold uint64 `protobuf:"varint,6,opt,name=sendRecordThreshold,proto3" json:"sendRecordThreshold,omitempty"` + ReceiveRecordThreshold uint64 `protobuf:"varint,7,opt,name=receiveRecordThreshold,proto3" json:"receiveRecordThreshold,omitempty"` + ReceiverSigRequired bool `protobuf:"varint,8,opt,name=receiverSigRequired,proto3" json:"receiverSigRequired,omitempty"` + AutoRenewPeriod *Duration `protobuf:"bytes,9,opt,name=autoRenewPeriod,proto3" json:"autoRenewPeriod,omitempty"` + ShardID *ShardID `protobuf:"bytes,10,opt,name=shardID,proto3" json:"shardID,omitempty"` + RealmID *RealmID `protobuf:"bytes,11,opt,name=realmID,proto3" json:"realmID,omitempty"` + NewRealmAdminKey *Key `protobuf:"bytes,12,opt,name=newRealmAdminKey,proto3" json:"newRealmAdminKey,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoCreateTransactionBody) Reset() { *m = CryptoCreateTransactionBody{} } +func (m *CryptoCreateTransactionBody) String() string { return proto.CompactTextString(m) } +func (*CryptoCreateTransactionBody) ProtoMessage() {} +func (*CryptoCreateTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_89b414cfdad72647, []int{0} +} + +func (m *CryptoCreateTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoCreateTransactionBody.Unmarshal(m, b) +} +func (m *CryptoCreateTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoCreateTransactionBody.Marshal(b, m, deterministic) +} +func (m *CryptoCreateTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoCreateTransactionBody.Merge(m, src) +} +func (m *CryptoCreateTransactionBody) XXX_Size() int { + return xxx_messageInfo_CryptoCreateTransactionBody.Size(m) +} +func (m *CryptoCreateTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoCreateTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoCreateTransactionBody proto.InternalMessageInfo + +func (m *CryptoCreateTransactionBody) GetKey() *Key { + if m != nil { + return m.Key + } + return nil +} + +func (m *CryptoCreateTransactionBody) GetInitialBalance() uint64 { + if m != nil { + return m.InitialBalance + } + return 0 +} + +func (m *CryptoCreateTransactionBody) GetProxyAccountID() *AccountID { + if m != nil { + return m.ProxyAccountID + } + return nil +} + +func (m *CryptoCreateTransactionBody) GetSendRecordThreshold() uint64 { + if m != nil { + return m.SendRecordThreshold + } + return 0 +} + +func (m *CryptoCreateTransactionBody) GetReceiveRecordThreshold() uint64 { + if m != nil { + return m.ReceiveRecordThreshold + } + return 0 +} + +func (m *CryptoCreateTransactionBody) GetReceiverSigRequired() bool { + if m != nil { + return m.ReceiverSigRequired + } + return false +} + +func (m *CryptoCreateTransactionBody) GetAutoRenewPeriod() *Duration { + if m != nil { + return m.AutoRenewPeriod + } + return nil +} + +func (m *CryptoCreateTransactionBody) GetShardID() *ShardID { + if m != nil { + return m.ShardID + } + return nil +} + +func (m *CryptoCreateTransactionBody) GetRealmID() *RealmID { + if m != nil { + return m.RealmID + } + return nil +} + +func (m *CryptoCreateTransactionBody) GetNewRealmAdminKey() *Key { + if m != nil { + return m.NewRealmAdminKey + } + return nil +} + +func init() { + proto.RegisterType((*CryptoCreateTransactionBody)(nil), "proto.CryptoCreateTransactionBody") +} + +func init() { proto.RegisterFile("CryptoCreate.proto", fileDescriptor_89b414cfdad72647) } + +var fileDescriptor_89b414cfdad72647 = []byte{ + // 352 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xc1, 0x8e, 0xd3, 0x30, + 0x10, 0x86, 0x15, 0x76, 0xd9, 0x5d, 0xbc, 0x28, 0xad, 0x8c, 0x84, 0xac, 0xc2, 0xa1, 0xea, 0xa1, + 0xca, 0x29, 0x42, 0x20, 0x55, 0x70, 0x6c, 0x9a, 0x4b, 0xd5, 0x4b, 0xe5, 0xf6, 0x05, 0x06, 0x7b, + 0xd4, 0x18, 0x52, 0x3b, 0x4c, 0x92, 0x96, 0xdc, 0x78, 0x74, 0x14, 0x27, 0x45, 0x90, 0x96, 0x53, + 0xe4, 0xff, 0xfb, 0x3f, 0x8f, 0x26, 0x66, 0x7c, 0x45, 0x4d, 0x51, 0xb9, 0x15, 0x21, 0x54, 0x18, + 0x17, 0xe4, 0x2a, 0xc7, 0x5f, 0xfa, 0xcf, 0x64, 0x9c, 0x40, 0x69, 0xd4, 0xbe, 0x29, 0xb0, 0xec, + 0xc0, 0x24, 0x4c, 0x6b, 0x82, 0xca, 0x38, 0xdb, 0x9d, 0x67, 0xbf, 0xee, 0xd9, 0xbb, 0xbf, 0xfd, + 0x3d, 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, 0x67, 0x1f, 0x2f, 0xf5, 0xd1, 0xd8, 0x0d, 0x36, 0xe2, + 0xf5, 0xd5, 0xbb, 0x5d, 0x75, 0x92, 0x39, 0x9b, 0x29, 0x77, 0x8c, 0x33, 0xd4, 0x48, 0x90, 0x41, + 0x99, 0x1d, 0x08, 0x8a, 0x2c, 0x86, 0xc2, 0xf4, 0xda, 0x37, 0x38, 0xc1, 0x36, 0xf8, 0xfa, 0xe0, + 0x4f, 0x9f, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0x6b, 0xb6, 0xef, 0x04, 0x70, 0x02, 0x00, 0x00, +} diff --git a/proto/CryptoDelete.pb.go b/proto/CryptoDelete.pb.go new file mode 100644 index 000000000..740027f4e --- /dev/null +++ b/proto/CryptoDelete.pb.go @@ -0,0 +1,90 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: CryptoDelete.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Mark an account as deleted, moving all its current hbars to another account. It will remain in the ledger, marked as deleted, until it expires. Transfers into it a deleted account fail. But a deleted account can still have its expiration extended in the normal way. +type CryptoDeleteTransactionBody struct { + TransferAccountID *AccountID `protobuf:"bytes,1,opt,name=transferAccountID,proto3" json:"transferAccountID,omitempty"` + DeleteAccountID *AccountID `protobuf:"bytes,2,opt,name=deleteAccountID,proto3" json:"deleteAccountID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoDeleteTransactionBody) Reset() { *m = CryptoDeleteTransactionBody{} } +func (m *CryptoDeleteTransactionBody) String() string { return proto.CompactTextString(m) } +func (*CryptoDeleteTransactionBody) ProtoMessage() {} +func (*CryptoDeleteTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_600103b910f0c423, []int{0} +} + +func (m *CryptoDeleteTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoDeleteTransactionBody.Unmarshal(m, b) +} +func (m *CryptoDeleteTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoDeleteTransactionBody.Marshal(b, m, deterministic) +} +func (m *CryptoDeleteTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoDeleteTransactionBody.Merge(m, src) +} +func (m *CryptoDeleteTransactionBody) XXX_Size() int { + return xxx_messageInfo_CryptoDeleteTransactionBody.Size(m) +} +func (m *CryptoDeleteTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoDeleteTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoDeleteTransactionBody proto.InternalMessageInfo + +func (m *CryptoDeleteTransactionBody) GetTransferAccountID() *AccountID { + if m != nil { + return m.TransferAccountID + } + return nil +} + +func (m *CryptoDeleteTransactionBody) GetDeleteAccountID() *AccountID { + if m != nil { + return m.DeleteAccountID + } + return nil +} + +func init() { + proto.RegisterType((*CryptoDeleteTransactionBody)(nil), "proto.CryptoDeleteTransactionBody") +} + +func init() { proto.RegisterFile("CryptoDelete.proto", fileDescriptor_600103b910f0c423) } + +var fileDescriptor_600103b910f0c423 = []byte{ + // 173 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x72, 0x2e, 0xaa, 0x2c, + 0x28, 0xc9, 0x77, 0x49, 0xcd, 0x49, 0x2d, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, + 0x05, 0x53, 0x52, 0x02, 0x4e, 0x89, 0xc5, 0x99, 0xc9, 0x21, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x09, + 0xa5, 0x99, 0x8c, 0x5c, 0xd2, 0xc8, 0xea, 0x43, 0x8a, 0x12, 0xf3, 0x8a, 0x13, 0x93, 0x4b, 0x32, + 0xf3, 0xf3, 0x9c, 0xf2, 0x53, 0x2a, 0x85, 0xec, 0xb8, 0x04, 0x4b, 0x40, 0x42, 0x69, 0xa9, 0x45, + 0x8e, 0xc9, 0xc9, 0xf9, 0xa5, 0x79, 0x25, 0x9e, 0x2e, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, + 0x02, 0x10, 0x23, 0xf4, 0xe0, 0xe2, 0x41, 0x98, 0x4a, 0x85, 0xac, 0xb8, 0xf8, 0x53, 0xc0, 0x06, + 0x23, 0x74, 0x33, 0xe1, 0xd0, 0x8d, 0xae, 0xd0, 0x49, 0x8d, 0x4b, 0x29, 0x39, 0x3f, 0x57, 0x2f, + 0x23, 0x35, 0x25, 0xb5, 0x28, 0x31, 0x23, 0xb1, 0x38, 0x23, 0xbd, 0x28, 0xb1, 0x20, 0x43, 0x2f, + 0xb1, 0x20, 0x13, 0xaa, 0x37, 0x2b, 0xb1, 0x2c, 0x31, 0x80, 0x31, 0x89, 0x0d, 0xcc, 0x33, 0x06, + 0x04, 0x00, 0x00, 0xff, 0xff, 0x53, 0x6e, 0x31, 0x95, 0xf9, 0x00, 0x00, 0x00, +} diff --git a/proto/CryptoDeleteClaim.pb.go b/proto/CryptoDeleteClaim.pb.go new file mode 100644 index 000000000..60fa7712e --- /dev/null +++ b/proto/CryptoDeleteClaim.pb.go @@ -0,0 +1,91 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: CryptoDeleteClaim.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Delete a claim hash that was attached to the given account. This transaction is valid if signed by all the keys used for transfers out of the account. It is also valid if signed by any single ThresholdKeys in the deleteKeys list for this hash. See CryptoAddClaimTransaction for more information about claim hashes. +type CryptoDeleteClaimTransactionBody struct { + AccountIDToDeleteFrom *AccountID `protobuf:"bytes,1,opt,name=accountIDToDeleteFrom,proto3" json:"accountIDToDeleteFrom,omitempty"` + HashToDelete []byte `protobuf:"bytes,2,opt,name=hashToDelete,proto3" json:"hashToDelete,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoDeleteClaimTransactionBody) Reset() { *m = CryptoDeleteClaimTransactionBody{} } +func (m *CryptoDeleteClaimTransactionBody) String() string { return proto.CompactTextString(m) } +func (*CryptoDeleteClaimTransactionBody) ProtoMessage() {} +func (*CryptoDeleteClaimTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_24a86ad0f5a08bed, []int{0} +} + +func (m *CryptoDeleteClaimTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoDeleteClaimTransactionBody.Unmarshal(m, b) +} +func (m *CryptoDeleteClaimTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoDeleteClaimTransactionBody.Marshal(b, m, deterministic) +} +func (m *CryptoDeleteClaimTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoDeleteClaimTransactionBody.Merge(m, src) +} +func (m *CryptoDeleteClaimTransactionBody) XXX_Size() int { + return xxx_messageInfo_CryptoDeleteClaimTransactionBody.Size(m) +} +func (m *CryptoDeleteClaimTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoDeleteClaimTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoDeleteClaimTransactionBody proto.InternalMessageInfo + +func (m *CryptoDeleteClaimTransactionBody) GetAccountIDToDeleteFrom() *AccountID { + if m != nil { + return m.AccountIDToDeleteFrom + } + return nil +} + +func (m *CryptoDeleteClaimTransactionBody) GetHashToDelete() []byte { + if m != nil { + return m.HashToDelete + } + return nil +} + +func init() { + proto.RegisterType((*CryptoDeleteClaimTransactionBody)(nil), "proto.CryptoDeleteClaimTransactionBody") +} + +func init() { proto.RegisterFile("CryptoDeleteClaim.proto", fileDescriptor_24a86ad0f5a08bed) } + +var fileDescriptor_24a86ad0f5a08bed = []byte{ + // 183 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x77, 0x2e, 0xaa, 0x2c, + 0x28, 0xc9, 0x77, 0x49, 0xcd, 0x49, 0x2d, 0x49, 0x75, 0xce, 0x49, 0xcc, 0xcc, 0xd5, 0x2b, 0x28, + 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x53, 0x52, 0x02, 0x4e, 0x89, 0xc5, 0x99, 0xc9, 0x21, 0x95, + 0x05, 0xa9, 0xc5, 0x10, 0x09, 0xa5, 0x3e, 0x46, 0x2e, 0x05, 0x0c, 0x4d, 0x21, 0x45, 0x89, 0x79, + 0xc5, 0x89, 0xc9, 0x25, 0x99, 0xf9, 0x79, 0x4e, 0xf9, 0x29, 0x95, 0x42, 0x6e, 0x5c, 0xa2, 0x89, + 0xc9, 0xc9, 0xf9, 0xa5, 0x79, 0x25, 0x9e, 0x2e, 0x21, 0x50, 0x85, 0x6e, 0x45, 0xf9, 0xb9, 0x12, + 0x8c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 0x02, 0x10, 0xb3, 0xf4, 0x1c, 0x61, 0x6a, 0x82, 0xb0, 0x2b, + 0x17, 0x52, 0xe2, 0xe2, 0xc9, 0x48, 0x2c, 0xce, 0x80, 0x89, 0x49, 0x30, 0x29, 0x30, 0x6a, 0xf0, + 0x04, 0xa1, 0x88, 0x39, 0xa9, 0x71, 0x29, 0x25, 0xe7, 0xe7, 0xea, 0x65, 0xa4, 0xa6, 0xa4, 0x16, + 0x25, 0x82, 0x64, 0xd2, 0x8b, 0x12, 0x0b, 0x32, 0xf4, 0x12, 0x0b, 0x32, 0xa1, 0xb6, 0x64, 0x25, + 0x96, 0x25, 0x06, 0x30, 0x26, 0xb1, 0x81, 0x79, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5d, + 0xbc, 0x2e, 0xf4, 0xf3, 0x00, 0x00, 0x00, +} diff --git a/proto/CryptoGetAccountBalance.pb.go b/proto/CryptoGetAccountBalance.pb.go new file mode 100644 index 000000000..f76d17ce8 --- /dev/null +++ b/proto/CryptoGetAccountBalance.pb.go @@ -0,0 +1,151 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: CryptoGetAccountBalance.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get the balance of a cryptocurrency account. This returns only the balance, so it is a smaller and faster reply than CryptoGetInfo, which returns the balance plus additional information. +type CryptoGetAccountBalanceQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + AccountID *AccountID `protobuf:"bytes,2,opt,name=accountID,proto3" json:"accountID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoGetAccountBalanceQuery) Reset() { *m = CryptoGetAccountBalanceQuery{} } +func (m *CryptoGetAccountBalanceQuery) String() string { return proto.CompactTextString(m) } +func (*CryptoGetAccountBalanceQuery) ProtoMessage() {} +func (*CryptoGetAccountBalanceQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_1234ca4865d9771d, []int{0} +} + +func (m *CryptoGetAccountBalanceQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoGetAccountBalanceQuery.Unmarshal(m, b) +} +func (m *CryptoGetAccountBalanceQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoGetAccountBalanceQuery.Marshal(b, m, deterministic) +} +func (m *CryptoGetAccountBalanceQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoGetAccountBalanceQuery.Merge(m, src) +} +func (m *CryptoGetAccountBalanceQuery) XXX_Size() int { + return xxx_messageInfo_CryptoGetAccountBalanceQuery.Size(m) +} +func (m *CryptoGetAccountBalanceQuery) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoGetAccountBalanceQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoGetAccountBalanceQuery proto.InternalMessageInfo + +func (m *CryptoGetAccountBalanceQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *CryptoGetAccountBalanceQuery) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +// Response when the client sends the node CryptoGetAccountBalanceQuery +type CryptoGetAccountBalanceResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + AccountID *AccountID `protobuf:"bytes,2,opt,name=accountID,proto3" json:"accountID,omitempty"` + Balance uint64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoGetAccountBalanceResponse) Reset() { *m = CryptoGetAccountBalanceResponse{} } +func (m *CryptoGetAccountBalanceResponse) String() string { return proto.CompactTextString(m) } +func (*CryptoGetAccountBalanceResponse) ProtoMessage() {} +func (*CryptoGetAccountBalanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1234ca4865d9771d, []int{1} +} + +func (m *CryptoGetAccountBalanceResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoGetAccountBalanceResponse.Unmarshal(m, b) +} +func (m *CryptoGetAccountBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoGetAccountBalanceResponse.Marshal(b, m, deterministic) +} +func (m *CryptoGetAccountBalanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoGetAccountBalanceResponse.Merge(m, src) +} +func (m *CryptoGetAccountBalanceResponse) XXX_Size() int { + return xxx_messageInfo_CryptoGetAccountBalanceResponse.Size(m) +} +func (m *CryptoGetAccountBalanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoGetAccountBalanceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoGetAccountBalanceResponse proto.InternalMessageInfo + +func (m *CryptoGetAccountBalanceResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *CryptoGetAccountBalanceResponse) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +func (m *CryptoGetAccountBalanceResponse) GetBalance() uint64 { + if m != nil { + return m.Balance + } + return 0 +} + +func init() { + proto.RegisterType((*CryptoGetAccountBalanceQuery)(nil), "proto.CryptoGetAccountBalanceQuery") + proto.RegisterType((*CryptoGetAccountBalanceResponse)(nil), "proto.CryptoGetAccountBalanceResponse") +} + +func init() { proto.RegisterFile("CryptoGetAccountBalance.proto", fileDescriptor_1234ca4865d9771d) } + +var fileDescriptor_1234ca4865d9771d = []byte{ + // 230 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x75, 0x2e, 0xaa, 0x2c, + 0x28, 0xc9, 0x77, 0x4f, 0x2d, 0x71, 0x4c, 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0x71, 0x4a, 0xcc, 0x49, + 0xcc, 0x4b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x53, 0x52, 0x02, 0x4e, + 0x89, 0xc5, 0x99, 0xc9, 0x21, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x09, 0x29, 0xc1, 0xc0, 0xd2, 0xd4, + 0xa2, 0x4a, 0x8f, 0xd4, 0xc4, 0x94, 0xd4, 0x22, 0xa8, 0x90, 0x48, 0x50, 0x6a, 0x71, 0x41, 0x7e, + 0x5e, 0x71, 0x2a, 0xb2, 0xa8, 0x52, 0x15, 0x97, 0x0c, 0x0e, 0x2b, 0xc0, 0x26, 0x08, 0x69, 0x71, + 0xb1, 0x65, 0x80, 0xd5, 0x4b, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x09, 0x41, 0xf4, 0xe9, 0x21, + 0x99, 0x1f, 0x04, 0x55, 0x21, 0xa4, 0xc7, 0xc5, 0x99, 0x08, 0x31, 0xc2, 0xd3, 0x45, 0x82, 0x09, + 0xac, 0x5c, 0x00, 0xaa, 0xdc, 0x11, 0x26, 0x1e, 0x84, 0x50, 0xa2, 0x34, 0x8b, 0x91, 0x4b, 0x1e, + 0x87, 0xe5, 0x30, 0xb7, 0x0a, 0xe9, 0xa2, 0xd9, 0x2f, 0x0a, 0x35, 0x10, 0xd5, 0x33, 0xe4, 0x3a, + 0x41, 0x48, 0x82, 0x8b, 0x3d, 0x09, 0x62, 0xa3, 0x04, 0xb3, 0x02, 0xa3, 0x06, 0x4b, 0x10, 0x8c, + 0xeb, 0xa4, 0xc6, 0xa5, 0x94, 0x9c, 0x9f, 0xab, 0x97, 0x91, 0x9a, 0x92, 0x5a, 0x94, 0x98, 0x91, + 0x58, 0x9c, 0x91, 0x5e, 0x94, 0x58, 0x90, 0xa1, 0x97, 0x58, 0x90, 0x09, 0x35, 0x2f, 0x2b, 0xb1, + 0x2c, 0x31, 0x80, 0x31, 0x89, 0x0d, 0xcc, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x5b, 0x28, + 0xe1, 0xb4, 0xaa, 0x01, 0x00, 0x00, +} diff --git a/proto/CryptoGetAccountRecords.pb.go b/proto/CryptoGetAccountRecords.pb.go new file mode 100644 index 000000000..7910b7e28 --- /dev/null +++ b/proto/CryptoGetAccountRecords.pb.go @@ -0,0 +1,152 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: CryptoGetAccountRecords.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get all the records for an account for any transfers into it and out of it, that were above the threshold, during the last 25 hours. +type CryptoGetAccountRecordsQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + AccountID *AccountID `protobuf:"bytes,2,opt,name=accountID,proto3" json:"accountID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoGetAccountRecordsQuery) Reset() { *m = CryptoGetAccountRecordsQuery{} } +func (m *CryptoGetAccountRecordsQuery) String() string { return proto.CompactTextString(m) } +func (*CryptoGetAccountRecordsQuery) ProtoMessage() {} +func (*CryptoGetAccountRecordsQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_2d0010e1e19b708a, []int{0} +} + +func (m *CryptoGetAccountRecordsQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoGetAccountRecordsQuery.Unmarshal(m, b) +} +func (m *CryptoGetAccountRecordsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoGetAccountRecordsQuery.Marshal(b, m, deterministic) +} +func (m *CryptoGetAccountRecordsQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoGetAccountRecordsQuery.Merge(m, src) +} +func (m *CryptoGetAccountRecordsQuery) XXX_Size() int { + return xxx_messageInfo_CryptoGetAccountRecordsQuery.Size(m) +} +func (m *CryptoGetAccountRecordsQuery) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoGetAccountRecordsQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoGetAccountRecordsQuery proto.InternalMessageInfo + +func (m *CryptoGetAccountRecordsQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *CryptoGetAccountRecordsQuery) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +// Response when the client sends the node CryptoGetAccountRecordsQuery +type CryptoGetAccountRecordsResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + AccountID *AccountID `protobuf:"bytes,2,opt,name=accountID,proto3" json:"accountID,omitempty"` + Records []*TransactionRecord `protobuf:"bytes,3,rep,name=records,proto3" json:"records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoGetAccountRecordsResponse) Reset() { *m = CryptoGetAccountRecordsResponse{} } +func (m *CryptoGetAccountRecordsResponse) String() string { return proto.CompactTextString(m) } +func (*CryptoGetAccountRecordsResponse) ProtoMessage() {} +func (*CryptoGetAccountRecordsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2d0010e1e19b708a, []int{1} +} + +func (m *CryptoGetAccountRecordsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoGetAccountRecordsResponse.Unmarshal(m, b) +} +func (m *CryptoGetAccountRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoGetAccountRecordsResponse.Marshal(b, m, deterministic) +} +func (m *CryptoGetAccountRecordsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoGetAccountRecordsResponse.Merge(m, src) +} +func (m *CryptoGetAccountRecordsResponse) XXX_Size() int { + return xxx_messageInfo_CryptoGetAccountRecordsResponse.Size(m) +} +func (m *CryptoGetAccountRecordsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoGetAccountRecordsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoGetAccountRecordsResponse proto.InternalMessageInfo + +func (m *CryptoGetAccountRecordsResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *CryptoGetAccountRecordsResponse) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +func (m *CryptoGetAccountRecordsResponse) GetRecords() []*TransactionRecord { + if m != nil { + return m.Records + } + return nil +} + +func init() { + proto.RegisterType((*CryptoGetAccountRecordsQuery)(nil), "proto.CryptoGetAccountRecordsQuery") + proto.RegisterType((*CryptoGetAccountRecordsResponse)(nil), "proto.CryptoGetAccountRecordsResponse") +} + +func init() { proto.RegisterFile("CryptoGetAccountRecords.proto", fileDescriptor_2d0010e1e19b708a) } + +var fileDescriptor_2d0010e1e19b708a = []byte{ + // 250 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x90, 0xc1, 0x4a, 0x03, 0x31, + 0x10, 0x86, 0x59, 0x8b, 0x15, 0xd3, 0x4b, 0x0d, 0x8a, 0x4b, 0x51, 0x2c, 0x7b, 0x90, 0x22, 0x98, + 0xc3, 0xfa, 0x04, 0xad, 0x82, 0x7a, 0xd3, 0xd0, 0x17, 0x18, 0xb3, 0x83, 0x59, 0xc1, 0x4d, 0x98, + 0xa4, 0xc2, 0xfa, 0x5c, 0x3e, 0xa0, 0x90, 0x9d, 0xc5, 0xaa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ff, 0xff, 0x83, 0x43, 0x54, 0xfe, 0xdd, 0x01, 0x00, 0x00, +} diff --git a/proto/CryptoGetClaim.pb.go b/proto/CryptoGetClaim.pb.go new file mode 100644 index 000000000..ecb5e37dc --- /dev/null +++ b/proto/CryptoGetClaim.pb.go @@ -0,0 +1,152 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: CryptoGetClaim.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get a single claim attached to an account, or return null if it does not exist. +type CryptoGetClaimQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + AccountID *AccountID `protobuf:"bytes,2,opt,name=accountID,proto3" json:"accountID,omitempty"` + Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoGetClaimQuery) Reset() { *m = CryptoGetClaimQuery{} } +func (m *CryptoGetClaimQuery) String() string { return proto.CompactTextString(m) } +func (*CryptoGetClaimQuery) ProtoMessage() {} +func (*CryptoGetClaimQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_a9317107d4ba2c40, []int{0} +} + +func (m *CryptoGetClaimQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoGetClaimQuery.Unmarshal(m, b) +} +func (m *CryptoGetClaimQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoGetClaimQuery.Marshal(b, m, deterministic) +} +func (m *CryptoGetClaimQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoGetClaimQuery.Merge(m, src) +} +func (m *CryptoGetClaimQuery) XXX_Size() int { + return xxx_messageInfo_CryptoGetClaimQuery.Size(m) +} +func (m *CryptoGetClaimQuery) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoGetClaimQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoGetClaimQuery proto.InternalMessageInfo + +func (m *CryptoGetClaimQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *CryptoGetClaimQuery) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +func (m *CryptoGetClaimQuery) GetHash() []byte { + if m != nil { + return m.Hash + } + return nil +} + +// Response when the client sends the node CryptoGetClaimQuery. If the claim exists, there can be a state proof for that single claim. If the claim doesn't exist, then the state proof must be obtained for the account as a whole, which lists all the attached claims, which then proves that any claim not on the list must not exist. +type CryptoGetClaimResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Claim *Claim `protobuf:"bytes,2,opt,name=claim,proto3" json:"claim,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoGetClaimResponse) Reset() { *m = CryptoGetClaimResponse{} } +func (m *CryptoGetClaimResponse) String() string { return proto.CompactTextString(m) } +func (*CryptoGetClaimResponse) ProtoMessage() {} +func (*CryptoGetClaimResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a9317107d4ba2c40, []int{1} +} + +func (m *CryptoGetClaimResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoGetClaimResponse.Unmarshal(m, b) +} +func (m *CryptoGetClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoGetClaimResponse.Marshal(b, m, deterministic) +} +func (m *CryptoGetClaimResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoGetClaimResponse.Merge(m, src) +} +func (m *CryptoGetClaimResponse) XXX_Size() int { + return xxx_messageInfo_CryptoGetClaimResponse.Size(m) +} +func (m *CryptoGetClaimResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoGetClaimResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoGetClaimResponse proto.InternalMessageInfo + +func (m *CryptoGetClaimResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *CryptoGetClaimResponse) GetClaim() *Claim { + if m != nil { + return m.Claim + } + return nil +} + +func init() { + proto.RegisterType((*CryptoGetClaimQuery)(nil), "proto.CryptoGetClaimQuery") + proto.RegisterType((*CryptoGetClaimResponse)(nil), "proto.CryptoGetClaimResponse") +} + +func init() { proto.RegisterFile("CryptoGetClaim.proto", fileDescriptor_a9317107d4ba2c40) } + +var fileDescriptor_a9317107d4ba2c40 = []byte{ + // 245 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8f, 0xc1, 0x4a, 0x03, 0x31, + 0x10, 0x86, 0x89, 0xda, 0x82, 0x63, 0x0f, 0x35, 0x56, 0x59, 0x7a, 0x2a, 0x7b, 0x90, 0x22, 0x98, + 0x83, 0x3e, 0x41, 0x5b, 0x41, 0xbd, 0xe9, 0xe2, 0x0b, 0x8c, 0xc9, 0x60, 0x56, 0x6d, 0x13, 0x92, + 0x54, 0xd8, 0x07, 0xf0, 0xbd, 0xa5, 0x49, 0xaa, 0x1b, 0x4f, 0xbb, 0xf9, 0xe7, 0x9b, 0xff, 0xff, + 0x07, 0x26, 0x2b, 0xd7, 0xd9, 0x60, 0xee, 0x29, 0xac, 0x3e, 0xb1, 0x5d, 0x0b, 0xeb, 0x4c, 0x30, + 0x7c, 0x10, 0x3f, 0xd3, 0xf1, 0x12, 0x7d, 0x2b, 0x5f, 0x3a, 0x4b, 0x3e, 0x0d, 0xa6, 0xa7, 0xcf, + 0x5b, 0x72, 0xdd, 0x03, 0xa1, 0x22, 0x97, 0xa5, 0x49, 0x43, 0xde, 0x9a, 0x8d, 0xa7, 0x52, 0x4d, + 0xbe, 0x0b, 0xa5, 0x7a, 0xbe, 0xf5, 0x37, 0x83, 0xb3, 0x32, 0x30, 0xfa, 0xf1, 0x2b, 0x18, 0xea, + 0xb8, 0x5d, 0xb1, 0x19, 0x9b, 0x9f, 0xdc, 0xf0, 0xc4, 0x8b, 0x5e, 0x5a, 0x93, 0x09, 0x2e, 0xe0, + 0x18, 0xa5, 0x34, 0xdb, 0x4d, 0x78, 0xbc, 0xab, 0x0e, 0x22, 0x3e, 0xce, 0xf8, 0x62, 0xaf, 0x37, + 0x7f, 0x08, 0xe7, 0x70, 0xa4, 0xd1, 0xeb, 0xea, 0x70, 0xc6, 0xe6, 0xa3, 0x26, 0xfe, 0xd7, 0x1f, + 0x70, 0x51, 0xd6, 0xd8, 0xdf, 0xc0, 0xaf, 0xff, 0x35, 0x39, 0xcf, 0xd6, 0xe5, 0x91, 0xbf, 0x65, + 0x6a, 0x18, 0xc8, 0xdd, 0x7e, 0x2e, 0x32, 0xca, 0x74, 0xf2, 0x4c, 0xa3, 0xe5, 0x25, 0xd4, 0xd2, + 0xac, 0x85, 0x26, 0x45, 0x0e, 0x77, 0xf1, 0x6f, 0x0e, 0xad, 0x16, 0x68, 0xdb, 0x4c, 0xbf, 0xe3, + 0x17, 0x3e, 0xb1, 0xd7, 0x61, 0x7c, 0xdd, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xef, 0x63, 0x36, + 0x8b, 0x93, 0x01, 0x00, 0x00, +} diff --git a/proto/CryptoGetInfo.pb.go b/proto/CryptoGetInfo.pb.go new file mode 100644 index 000000000..2d7bf12bc --- /dev/null +++ b/proto/CryptoGetInfo.pb.go @@ -0,0 +1,296 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: CryptoGetInfo.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get all the information about an account, including the balance. This does not get the list of account records. +type CryptoGetInfoQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + AccountID *AccountID `protobuf:"bytes,2,opt,name=accountID,proto3" json:"accountID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoGetInfoQuery) Reset() { *m = CryptoGetInfoQuery{} } +func (m *CryptoGetInfoQuery) String() string { return proto.CompactTextString(m) } +func (*CryptoGetInfoQuery) ProtoMessage() {} +func (*CryptoGetInfoQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_bb659bcbcf0fa194, []int{0} +} + +func (m *CryptoGetInfoQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoGetInfoQuery.Unmarshal(m, b) +} +func (m *CryptoGetInfoQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoGetInfoQuery.Marshal(b, m, deterministic) +} +func (m *CryptoGetInfoQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoGetInfoQuery.Merge(m, src) +} +func (m *CryptoGetInfoQuery) XXX_Size() int { + return xxx_messageInfo_CryptoGetInfoQuery.Size(m) +} +func (m *CryptoGetInfoQuery) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoGetInfoQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoGetInfoQuery proto.InternalMessageInfo + +func (m *CryptoGetInfoQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *CryptoGetInfoQuery) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +// Response when the client sends the node CryptoGetInfoQuery +type CryptoGetInfoResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + AccountInfo *CryptoGetInfoResponse_AccountInfo `protobuf:"bytes,2,opt,name=accountInfo,proto3" json:"accountInfo,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoGetInfoResponse) Reset() { *m = CryptoGetInfoResponse{} } +func (m *CryptoGetInfoResponse) String() string { return proto.CompactTextString(m) } +func (*CryptoGetInfoResponse) ProtoMessage() {} +func (*CryptoGetInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_bb659bcbcf0fa194, []int{1} +} + +func (m *CryptoGetInfoResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoGetInfoResponse.Unmarshal(m, b) +} +func (m *CryptoGetInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoGetInfoResponse.Marshal(b, m, deterministic) +} +func (m *CryptoGetInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoGetInfoResponse.Merge(m, src) +} +func (m *CryptoGetInfoResponse) XXX_Size() int { + return xxx_messageInfo_CryptoGetInfoResponse.Size(m) +} +func (m *CryptoGetInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoGetInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoGetInfoResponse proto.InternalMessageInfo + +func (m *CryptoGetInfoResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *CryptoGetInfoResponse) GetAccountInfo() *CryptoGetInfoResponse_AccountInfo { + if m != nil { + return m.AccountInfo + } + return nil +} + +type CryptoGetInfoResponse_AccountInfo struct { + AccountID *AccountID `protobuf:"bytes,1,opt,name=accountID,proto3" json:"accountID,omitempty"` + ContractAccountID string `protobuf:"bytes,2,opt,name=contractAccountID,proto3" json:"contractAccountID,omitempty"` + Deleted bool `protobuf:"varint,3,opt,name=deleted,proto3" json:"deleted,omitempty"` + ProxyAccountID *AccountID `protobuf:"bytes,4,opt,name=proxyAccountID,proto3" json:"proxyAccountID,omitempty"` + ProxyReceived int64 `protobuf:"varint,6,opt,name=proxyReceived,proto3" json:"proxyReceived,omitempty"` + Key *Key `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"` + Balance uint64 `protobuf:"varint,8,opt,name=balance,proto3" json:"balance,omitempty"` + GenerateSendRecordThreshold uint64 `protobuf:"varint,9,opt,name=generateSendRecordThreshold,proto3" json:"generateSendRecordThreshold,omitempty"` + GenerateReceiveRecordThreshold uint64 `protobuf:"varint,10,opt,name=generateReceiveRecordThreshold,proto3" json:"generateReceiveRecordThreshold,omitempty"` + ReceiverSigRequired bool `protobuf:"varint,11,opt,name=receiverSigRequired,proto3" json:"receiverSigRequired,omitempty"` + ExpirationTime *Timestamp `protobuf:"bytes,12,opt,name=expirationTime,proto3" json:"expirationTime,omitempty"` + AutoRenewPeriod *Duration `protobuf:"bytes,13,opt,name=autoRenewPeriod,proto3" json:"autoRenewPeriod,omitempty"` + Claims []*Claim `protobuf:"bytes,14,rep,name=claims,proto3" json:"claims,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoGetInfoResponse_AccountInfo) Reset() { *m = CryptoGetInfoResponse_AccountInfo{} } +func (m *CryptoGetInfoResponse_AccountInfo) String() string { return proto.CompactTextString(m) } +func (*CryptoGetInfoResponse_AccountInfo) ProtoMessage() {} +func (*CryptoGetInfoResponse_AccountInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_bb659bcbcf0fa194, []int{1, 0} +} + +func (m *CryptoGetInfoResponse_AccountInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoGetInfoResponse_AccountInfo.Unmarshal(m, b) +} +func (m *CryptoGetInfoResponse_AccountInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoGetInfoResponse_AccountInfo.Marshal(b, m, deterministic) +} +func (m *CryptoGetInfoResponse_AccountInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoGetInfoResponse_AccountInfo.Merge(m, src) +} +func (m *CryptoGetInfoResponse_AccountInfo) XXX_Size() int { + return xxx_messageInfo_CryptoGetInfoResponse_AccountInfo.Size(m) +} +func (m *CryptoGetInfoResponse_AccountInfo) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoGetInfoResponse_AccountInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoGetInfoResponse_AccountInfo proto.InternalMessageInfo + +func (m *CryptoGetInfoResponse_AccountInfo) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +func (m *CryptoGetInfoResponse_AccountInfo) GetContractAccountID() string { + if m != nil { + return m.ContractAccountID + } + return "" +} + +func (m *CryptoGetInfoResponse_AccountInfo) GetDeleted() bool { + if m != nil { + return m.Deleted + } + return false +} + +func (m *CryptoGetInfoResponse_AccountInfo) GetProxyAccountID() *AccountID { + if m != nil { + return m.ProxyAccountID + } + return nil +} + +func (m *CryptoGetInfoResponse_AccountInfo) GetProxyReceived() int64 { + if m != nil { + return m.ProxyReceived + } + return 0 +} + +func (m *CryptoGetInfoResponse_AccountInfo) GetKey() *Key { + if m != nil { + return m.Key + } + return nil +} + +func (m *CryptoGetInfoResponse_AccountInfo) GetBalance() uint64 { + if m != nil { + return m.Balance + } + return 0 +} + +func (m *CryptoGetInfoResponse_AccountInfo) GetGenerateSendRecordThreshold() uint64 { + if m != nil { + return m.GenerateSendRecordThreshold + } + return 0 +} + +func (m *CryptoGetInfoResponse_AccountInfo) GetGenerateReceiveRecordThreshold() uint64 { + if m != nil { + return m.GenerateReceiveRecordThreshold + } + return 0 +} + +func (m *CryptoGetInfoResponse_AccountInfo) GetReceiverSigRequired() bool { + if m != nil { + return m.ReceiverSigRequired + } + return false +} + +func (m *CryptoGetInfoResponse_AccountInfo) GetExpirationTime() *Timestamp { + if m != nil { + return m.ExpirationTime + } + return nil +} + +func (m *CryptoGetInfoResponse_AccountInfo) GetAutoRenewPeriod() *Duration { + if m != nil { + return m.AutoRenewPeriod + } + return nil +} + +func (m *CryptoGetInfoResponse_AccountInfo) GetClaims() []*Claim { + if m != nil { + return m.Claims + } + return nil +} + +func init() { + proto.RegisterType((*CryptoGetInfoQuery)(nil), "proto.CryptoGetInfoQuery") + proto.RegisterType((*CryptoGetInfoResponse)(nil), "proto.CryptoGetInfoResponse") + proto.RegisterType((*CryptoGetInfoResponse_AccountInfo)(nil), "proto.CryptoGetInfoResponse.AccountInfo") +} + +func init() { proto.RegisterFile("CryptoGetInfo.proto", fileDescriptor_bb659bcbcf0fa194) } + +var fileDescriptor_bb659bcbcf0fa194 = []byte{ + // 498 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xe1, 0x6e, 0xd3, 0x3c, + 0x14, 0x55, 0xbe, 0xf6, 0xeb, 0xd6, 0xdb, 0xad, 0xdd, 0x3c, 0x26, 0x59, 0x05, 0xa1, 0xaa, 0x9a, + 0x50, 0x84, 0xa0, 0x42, 0xe3, 0x0f, 0xfc, 0xa3, 0xdb, 0x04, 0x0c, 0xfe, 0x0c, 0xaf, 0x2f, 0xe0, + 0xc5, 0x77, 0x8d, 0xa1, 0xb5, 0x8d, 0xe3, 0x8e, 0xe5, 0x11, 0x78, 0x5f, 0x1e, 0x00, 0xc5, 0x71, + 0xba, 0x26, 0x0c, 0xf6, 0x2b, 0xba, 0xe7, 0x9c, 0x7b, 0xce, 0xf5, 0x55, 0x2e, 0x1c, 0x9c, 0xda, + 0xdc, 0x38, 0xfd, 0x01, 0xdd, 0xb9, 0xba, 0xd6, 0x13, 0x63, 0xb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 0x25, 0x79, 0x03, 0x7d, 0x63, 0xf5, 0x6d, 0x7e, 0x67, 0xd2, 0xfe, 0x4b, 0x78, 0x43, 0x47, + 0x8e, 0x60, 0xd7, 0x23, 0x0c, 0x13, 0x94, 0x37, 0x28, 0x68, 0x67, 0x14, 0xc5, 0x2d, 0x56, 0x07, + 0xc9, 0x13, 0x68, 0x7d, 0xc3, 0x9c, 0x6e, 0x79, 0x53, 0x08, 0xa6, 0x9f, 0x31, 0x67, 0x05, 0x5c, + 0xcc, 0x75, 0xc5, 0x17, 0x5c, 0x25, 0x48, 0xb7, 0x47, 0x51, 0xdc, 0x66, 0x55, 0x49, 0xde, 0xc1, + 0xe3, 0x39, 0x2a, 0xb4, 0xdc, 0xe1, 0x25, 0x2a, 0xc1, 0x30, 0xd1, 0x56, 0xcc, 0x52, 0x8b, 0x59, + 0xaa, 0x17, 0x82, 0x76, 0xbd, 0xfa, 0x5f, 0x12, 0xf2, 0x1e, 0x9e, 0x56, 0x74, 0x98, 0xa6, 0x69, + 0x02, 0xde, 0xe4, 0x01, 0x15, 0x79, 0x05, 0x07, 0xb6, 0x64, 0xec, 0xa5, 0x9c, 0x33, 0xfc, 0xbe, + 0x92, 0x16, 0x05, 0xed, 0xf9, 0x3d, 0xde, 0x47, 0x15, 0x3b, 0xc5, 0x5b, 0x23, 0xcb, 0x3b, 0x2a, + 0x0e, 0x8c, 0xee, 0xd4, 0x76, 0xba, 0xbe, 0x39, 0xd6, 0xd0, 0x91, 0xb7, 0x30, 0xe0, 0x2b, 0xa7, + 0x19, 0x2a, 0xfc, 0x71, 0x81, 0x56, 0x6a, 0x41, 0x77, 0x7d, 0xeb, 0x20, 0xb4, 0x56, 0xd7, 0xc9, + 0x9a, 0x3a, 0x72, 0x04, 0x9d, 0xa4, 0x38, 0xb3, 0x8c, 0xf6, 0x47, 0xad, 0xb8, 0x77, 0xbc, 0x53, + 0xfd, 0x97, 0x05, 0xc8, 0x02, 0x77, 0xf2, 0x0c, 0xc6, 0x89, 0x5e, 0x4e, 0x52, 0x14, 0x68, 0x79, + 0xca, 0xb3, 0x74, 0x6e, 0xb9, 0x49, 0x27, 0xdc, 0xc8, 0x20, 0xff, 0xca, 0x6f, 0xf8, 0x45, 0x74, + 0xd5, 0xf1, 0xd5, 0xeb, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x46, 0x61, 0xb7, 0xf8, 0x3c, 0x04, + 0x00, 0x00, +} diff --git a/proto/CryptoGetStakers.pb.go b/proto/CryptoGetStakers.pb.go new file mode 100644 index 000000000..b7f71f4fc --- /dev/null +++ b/proto/CryptoGetStakers.pb.go @@ -0,0 +1,244 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: CryptoGetStakers.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get all the accounts that are proxy staking to this account. For each of them, give the amount currently staked. This is not yet implemented, but will be in a future version of the API. +type CryptoGetStakersQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + AccountID *AccountID `protobuf:"bytes,2,opt,name=accountID,proto3" json:"accountID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoGetStakersQuery) Reset() { *m = CryptoGetStakersQuery{} } +func (m *CryptoGetStakersQuery) String() string { return proto.CompactTextString(m) } +func (*CryptoGetStakersQuery) ProtoMessage() {} +func (*CryptoGetStakersQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_4af165a1b4c34d1f, []int{0} +} + +func (m *CryptoGetStakersQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoGetStakersQuery.Unmarshal(m, b) +} +func (m *CryptoGetStakersQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoGetStakersQuery.Marshal(b, m, deterministic) +} +func (m *CryptoGetStakersQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoGetStakersQuery.Merge(m, src) +} +func (m *CryptoGetStakersQuery) XXX_Size() int { + return xxx_messageInfo_CryptoGetStakersQuery.Size(m) +} +func (m *CryptoGetStakersQuery) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoGetStakersQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoGetStakersQuery proto.InternalMessageInfo + +func (m *CryptoGetStakersQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *CryptoGetStakersQuery) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +// information about a single account that is proxy staking +type ProxyStaker struct { + AccountID *AccountID `protobuf:"bytes,1,opt,name=accountID,proto3" json:"accountID,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProxyStaker) Reset() { *m = ProxyStaker{} } +func (m *ProxyStaker) String() string { return proto.CompactTextString(m) } +func (*ProxyStaker) ProtoMessage() {} +func (*ProxyStaker) Descriptor() ([]byte, []int) { + return fileDescriptor_4af165a1b4c34d1f, []int{1} +} + +func (m *ProxyStaker) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProxyStaker.Unmarshal(m, b) +} +func (m *ProxyStaker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProxyStaker.Marshal(b, m, deterministic) +} +func (m *ProxyStaker) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProxyStaker.Merge(m, src) +} +func (m *ProxyStaker) XXX_Size() int { + return xxx_messageInfo_ProxyStaker.Size(m) +} +func (m *ProxyStaker) XXX_DiscardUnknown() { + xxx_messageInfo_ProxyStaker.DiscardUnknown(m) +} + +var xxx_messageInfo_ProxyStaker proto.InternalMessageInfo + +func (m *ProxyStaker) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +func (m *ProxyStaker) GetAmount() int64 { + if m != nil { + return m.Amount + } + return 0 +} + +// all of the accounts proxy staking to a given account, and the amounts proxy staked +type AllProxyStakers struct { + AccountID *AccountID `protobuf:"bytes,1,opt,name=accountID,proto3" json:"accountID,omitempty"` + ProxyStaker []*ProxyStaker `protobuf:"bytes,2,rep,name=proxyStaker,proto3" json:"proxyStaker,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AllProxyStakers) Reset() { *m = AllProxyStakers{} } +func (m *AllProxyStakers) String() string { return proto.CompactTextString(m) } +func (*AllProxyStakers) ProtoMessage() {} +func (*AllProxyStakers) Descriptor() ([]byte, []int) { + return fileDescriptor_4af165a1b4c34d1f, []int{2} +} + +func (m *AllProxyStakers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AllProxyStakers.Unmarshal(m, b) +} +func (m *AllProxyStakers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AllProxyStakers.Marshal(b, m, deterministic) +} +func (m *AllProxyStakers) XXX_Merge(src proto.Message) { + xxx_messageInfo_AllProxyStakers.Merge(m, src) +} +func (m *AllProxyStakers) XXX_Size() int { + return xxx_messageInfo_AllProxyStakers.Size(m) +} +func (m *AllProxyStakers) XXX_DiscardUnknown() { + xxx_messageInfo_AllProxyStakers.DiscardUnknown(m) +} + +var xxx_messageInfo_AllProxyStakers proto.InternalMessageInfo + +func (m *AllProxyStakers) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +func (m *AllProxyStakers) GetProxyStaker() []*ProxyStaker { + if m != nil { + return m.ProxyStaker + } + return nil +} + +// Response when the client sends the node CryptoGetStakersQuery +type CryptoGetStakersResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Stakers *AllProxyStakers `protobuf:"bytes,3,opt,name=stakers,proto3" json:"stakers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoGetStakersResponse) Reset() { *m = CryptoGetStakersResponse{} } +func (m *CryptoGetStakersResponse) String() string { return proto.CompactTextString(m) } +func (*CryptoGetStakersResponse) ProtoMessage() {} +func (*CryptoGetStakersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4af165a1b4c34d1f, []int{3} +} + +func (m *CryptoGetStakersResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoGetStakersResponse.Unmarshal(m, b) +} +func (m *CryptoGetStakersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoGetStakersResponse.Marshal(b, m, deterministic) +} +func (m *CryptoGetStakersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoGetStakersResponse.Merge(m, src) +} +func (m *CryptoGetStakersResponse) XXX_Size() int { + return xxx_messageInfo_CryptoGetStakersResponse.Size(m) +} +func (m *CryptoGetStakersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoGetStakersResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoGetStakersResponse proto.InternalMessageInfo + +func (m *CryptoGetStakersResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *CryptoGetStakersResponse) GetStakers() *AllProxyStakers { + if m != nil { + return m.Stakers + } + return nil +} + +func init() { + proto.RegisterType((*CryptoGetStakersQuery)(nil), "proto.CryptoGetStakersQuery") + proto.RegisterType((*ProxyStaker)(nil), "proto.ProxyStaker") + proto.RegisterType((*AllProxyStakers)(nil), "proto.AllProxyStakers") + proto.RegisterType((*CryptoGetStakersResponse)(nil), "proto.CryptoGetStakersResponse") +} + +func init() { proto.RegisterFile("CryptoGetStakers.proto", fileDescriptor_4af165a1b4c34d1f) } + +var fileDescriptor_4af165a1b4c34d1f = []byte{ + // 282 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0x51, 0x4b, 0xc3, 0x30, + 0x10, 0xc7, 0xe9, 0x86, 0x15, 0xaf, 0x0f, 0xce, 0xe0, 0x4a, 0xd9, 0xd3, 0xe8, 0x83, 0x88, 0x60, + 0x11, 0xf5, 0x0b, 0x6c, 0x0a, 0xea, 0xdb, 0x8c, 0xfa, 0x01, 0xce, 0xee, 0x30, 0xd3, 0x6d, 0x09, + 0x49, 0xa6, 0x16, 0xbf, 0xbc, 0x98, 0xa6, 0x2e, 0xed, 0x8b, 0xf8, 0xd4, 0xde, 0xe5, 0xf7, 0xff, + 0x5f, 0xee, 0x1f, 0x48, 0xaf, 0x74, 0xa5, 0xac, 0xbc, 0x21, 0xfb, 0x60, 0xf1, 0x8d, 0xb4, 0x29, + 0x94, 0x96, 0x56, 0xb2, 0x1d, 0xf7, 0x19, 0x0d, 0xa6, 0x68, 0x16, 0xe5, 0x63, 0xa5, 0xc8, 0x1f, + 0x8c, 0x0e, 0xee, 0x37, 0xa4, 0xab, 0x5b, 0xc2, 0x39, 0x69, 0xdf, 0x3a, 0xe4, 0x64, 0x94, 0x5c, + 0x1b, 0x0a, 0xbb, 0xb9, 0x81, 0x61, 0xd7, 0xdb, 0x49, 0xd9, 0x09, 0xc4, 0xc2, 0x81, 0x59, 0x34, + 0x8e, 0x8e, 0x93, 0x73, 0x56, 0x0b, 0x8a, 0xc0, 0x98, 0x7b, 0x82, 0x15, 0xb0, 0x87, 0x65, 0x29, + 0x37, 0x6b, 0x7b, 0x77, 0x9d, 0xf5, 0x1c, 0x3e, 0xf0, 0xf8, 0xa4, 0xe9, 0xf3, 0x2d, 0x92, 0x3f, + 0x41, 0x32, 0xd3, 0xf2, 0xb3, 0xaa, 0x07, 0xb6, 0xe5, 0xd1, 0x9f, 0x72, 0x96, 0x42, 0x8c, 0xab, + 0x9f, 0x7f, 0x37, 0xab, 0xcf, 0x7d, 0x95, 0x7f, 0xc0, 0xfe, 0x64, 0xb9, 0x0c, 0x9c, 0xcd, 0xbf, + 0xad, 0x2f, 0x21, 0x51, 0x5b, 0x7d, 0xd6, 0x1b, 0xf7, 0x83, 0xd5, 0x03, 0x67, 0x1e, 0x62, 0xf9, + 0x17, 0x64, 0xdd, 0x10, 0x9b, 0xb0, 0xd9, 0x69, 0x27, 0xc7, 0xa1, 0x37, 0x6b, 0xbf, 0xc6, 0x6f, + 0x94, 0x67, 0xb0, 0x6b, 0x6a, 0x87, 0xac, 0xef, 0xf8, 0xb4, 0xb9, 0x6e, 0x7b, 0x33, 0xde, 0x60, + 0xd3, 0x23, 0xc8, 0x4b, 0xb9, 0x2a, 0x04, 0xcd, 0x49, 0xa3, 0x40, 0x23, 0x5e, 0x34, 0x2a, 0x51, + 0xa0, 0x5a, 0x78, 0xe5, 0x2b, 0xbe, 0xe3, 0x2c, 0x7a, 0x8e, 0x5d, 0x75, 0xf1, 0x1d, 0x00, 0x00, + 0xff, 0xff, 0xd9, 0x28, 0xcc, 0x52, 0x4c, 0x02, 0x00, 0x00, +} diff --git a/proto/CryptoService.pb.go b/proto/CryptoService.pb.go new file mode 100644 index 000000000..58d3eba3f --- /dev/null +++ b/proto/CryptoService.pb.go @@ -0,0 +1,600 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: CryptoService.proto + +package proto + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +func init() { proto.RegisterFile("CryptoService.proto", fileDescriptor_bfba66c9ae734f05) } + +var fileDescriptor_bfba66c9ae734f05 = []byte{ + // 329 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xdd, 0x4e, 0xc2, 0x40, + 0x10, 0x85, 0xaf, 0x24, 0x64, 0xf8, 0x51, 0x6a, 0x34, 0xda, 0x07, 0x30, 0x7a, 0x53, 0x23, 0x26, + 0x1a, 0x4d, 0xfc, 0x2b, 0x44, 0xc3, 0xa5, 0xc0, 0x0b, 0x8c, 0xbb, 0x43, 0x5b, 0x85, 0x6e, 0xb3, + 0x3b, 0x10, 0xfa, 0x58, 0xbe, 0xa1, 0xb1, 0x5b, 0x14, 0xf0, 0x62, 0x45, 0xaf, 0xda, 0xce, 0x9c, + 0xef, 0x9c, 0x9d, 0x69, 0x16, 0x76, 0x3b, 0x3a, 0xcf, 0x58, 0x0d, 0x48, 0xcf, 0x12, 0x41, 0x41, + 0xa6, 0x15, 0x2b, 0x6f, 0xab, 0x78, 0xf8, 0xb5, 0xe7, 0x29, 0xe9, 0xdc, 0xd6, 0xfc, 0x66, 0x9f, + 0x4c, 0xa6, 0x52, 0x53, 0x6a, 0xfc, 0xc3, 0xa1, 0xc6, 0xd4, 0xa0, 0xe0, 0x44, 0xa5, 0x6b, 0xad, + 0xd6, 0x52, 0xcb, 0x96, 0xda, 0xef, 0x15, 0x68, 0xac, 0x24, 0x79, 0x77, 0xd0, 0x10, 0x9a, 0x90, + 0xe9, 0x41, 0x08, 0x35, 0x4d, 0xd9, 0xf3, 0xac, 0x34, 0x58, 0x82, 0x7d, 0xff, 0x67, 0x6d, 0x91, + 0xf5, 0x69, 0x30, 0xcd, 0xe4, 0x3f, 0x0c, 0xee, 0xa1, 0x29, 0x8a, 0x23, 0x15, 0xcd, 0x11, 0xe9, + 0x8d, 0x1d, 0x6e, 0xa1, 0x6e, 0x1d, 0xba, 0x34, 0x26, 0xa6, 0x8d, 0xf9, 0x6b, 0xa8, 0xa2, 0x94, + 0x9d, 0x31, 0x26, 0x93, 0x8d, 0xd9, 0x1b, 0xa8, 0xc9, 0x22, 0xf5, 0x6f, 0xf8, 0x09, 0x54, 0x23, + 0x62, 0xcb, 0xd6, 0x4b, 0x5d, 0xf1, 0xbb, 0xfd, 0xed, 0xf2, 0xeb, 0x4b, 0xda, 0x86, 0x56, 0x44, + 0x5c, 0x6e, 0xb9, 0x4f, 0x42, 0x69, 0x69, 0x5c, 0xcc, 0x19, 0xec, 0xd8, 0xcd, 0x3c, 0x11, 0x87, + 0x38, 0xc6, 0x54, 0x90, 0x0b, 0x39, 0x85, 0xe6, 0x77, 0x4c, 0x2f, 0x1d, 0x29, 0x17, 0x70, 0x09, + 0xfb, 0x11, 0xf1, 0xca, 0x70, 0x82, 0x92, 0x8c, 0x9d, 0x87, 0xbb, 0x82, 0x83, 0x88, 0xf8, 0x11, + 0xcd, 0x1a, 0xac, 0xb4, 0xfc, 0xdd, 0x2e, 0x86, 0x73, 0xab, 0x0e, 0xf3, 0xe1, 0xbc, 0xd7, 0x75, + 0x31, 0x17, 0xb0, 0x17, 0x11, 0x0f, 0x18, 0xdf, 0x48, 0x9b, 0x30, 0x5f, 0x4c, 0xe8, 0xe2, 0xc2, + 0x63, 0x38, 0x12, 0x6a, 0x12, 0xc4, 0x24, 0x49, 0x63, 0x8c, 0x26, 0x8e, 0x34, 0x66, 0x71, 0x60, + 0x96, 0xaf, 0x6a, 0xf0, 0x8a, 0x33, 0x7c, 0xa9, 0x14, 0xef, 0xe7, 0x1f, 0x01, 0x00, 0x00, 0xff, + 0xff, 0x8b, 0xfb, 0x9f, 0xb6, 0xcd, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// CryptoServiceClient is the client API for CryptoService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type CryptoServiceClient interface { + CreateAccount(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + UpdateAccount(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + CryptoTransfer(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + CryptoDelete(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + AddClaim(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + DeleteClaim(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + GetClaim(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + GetAccountRecords(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + CryptoGetBalance(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + GetAccountInfo(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + GetTransactionReceipts(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + GetFastTransactionRecord(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + GetTxRecordByTxID(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + GetStakersByAccountID(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) +} + +type cryptoServiceClient struct { + cc *grpc.ClientConn +} + +func NewCryptoServiceClient(cc *grpc.ClientConn) CryptoServiceClient { + return &cryptoServiceClient{cc} +} + +func (c *cryptoServiceClient) CreateAccount(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.CryptoService/createAccount", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cryptoServiceClient) UpdateAccount(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.CryptoService/updateAccount", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cryptoServiceClient) CryptoTransfer(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.CryptoService/cryptoTransfer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cryptoServiceClient) CryptoDelete(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.CryptoService/cryptoDelete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cryptoServiceClient) AddClaim(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.CryptoService/addClaim", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cryptoServiceClient) DeleteClaim(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.CryptoService/deleteClaim", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cryptoServiceClient) GetClaim(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.CryptoService/getClaim", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cryptoServiceClient) GetAccountRecords(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.CryptoService/getAccountRecords", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cryptoServiceClient) CryptoGetBalance(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.CryptoService/cryptoGetBalance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cryptoServiceClient) GetAccountInfo(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.CryptoService/getAccountInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cryptoServiceClient) GetTransactionReceipts(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.CryptoService/getTransactionReceipts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cryptoServiceClient) GetFastTransactionRecord(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.CryptoService/getFastTransactionRecord", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cryptoServiceClient) GetTxRecordByTxID(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.CryptoService/getTxRecordByTxID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cryptoServiceClient) GetStakersByAccountID(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.CryptoService/getStakersByAccountID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// CryptoServiceServer is the server API for CryptoService service. +type CryptoServiceServer interface { + CreateAccount(context.Context, *Transaction) (*TransactionResponse, error) + UpdateAccount(context.Context, *Transaction) (*TransactionResponse, error) + CryptoTransfer(context.Context, *Transaction) (*TransactionResponse, error) + CryptoDelete(context.Context, *Transaction) (*TransactionResponse, error) + AddClaim(context.Context, *Transaction) (*TransactionResponse, error) + DeleteClaim(context.Context, *Transaction) (*TransactionResponse, error) + GetClaim(context.Context, *Query) (*Response, error) + GetAccountRecords(context.Context, *Query) (*Response, error) + CryptoGetBalance(context.Context, *Query) (*Response, error) + GetAccountInfo(context.Context, *Query) (*Response, error) + GetTransactionReceipts(context.Context, *Query) (*Response, error) + GetFastTransactionRecord(context.Context, *Query) (*Response, error) + GetTxRecordByTxID(context.Context, *Query) (*Response, error) + GetStakersByAccountID(context.Context, *Query) (*Response, error) +} + +// UnimplementedCryptoServiceServer can be embedded to have forward compatible implementations. +type UnimplementedCryptoServiceServer struct { +} + +func (*UnimplementedCryptoServiceServer) CreateAccount(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateAccount not implemented") +} +func (*UnimplementedCryptoServiceServer) UpdateAccount(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateAccount not implemented") +} +func (*UnimplementedCryptoServiceServer) CryptoTransfer(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CryptoTransfer not implemented") +} +func (*UnimplementedCryptoServiceServer) CryptoDelete(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CryptoDelete not implemented") +} +func (*UnimplementedCryptoServiceServer) AddClaim(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddClaim not implemented") +} +func (*UnimplementedCryptoServiceServer) DeleteClaim(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteClaim not implemented") +} +func (*UnimplementedCryptoServiceServer) GetClaim(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetClaim not implemented") +} +func (*UnimplementedCryptoServiceServer) GetAccountRecords(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAccountRecords not implemented") +} +func (*UnimplementedCryptoServiceServer) CryptoGetBalance(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method CryptoGetBalance not implemented") +} +func (*UnimplementedCryptoServiceServer) GetAccountInfo(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAccountInfo not implemented") +} +func (*UnimplementedCryptoServiceServer) GetTransactionReceipts(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTransactionReceipts not implemented") +} +func (*UnimplementedCryptoServiceServer) GetFastTransactionRecord(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetFastTransactionRecord not implemented") +} +func (*UnimplementedCryptoServiceServer) GetTxRecordByTxID(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTxRecordByTxID not implemented") +} +func (*UnimplementedCryptoServiceServer) GetStakersByAccountID(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetStakersByAccountID not implemented") +} + +func RegisterCryptoServiceServer(s *grpc.Server, srv CryptoServiceServer) { + s.RegisterService(&_CryptoService_serviceDesc, srv) +} + +func _CryptoService_CreateAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CryptoServiceServer).CreateAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.CryptoService/CreateAccount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CryptoServiceServer).CreateAccount(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _CryptoService_UpdateAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CryptoServiceServer).UpdateAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.CryptoService/UpdateAccount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CryptoServiceServer).UpdateAccount(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _CryptoService_CryptoTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CryptoServiceServer).CryptoTransfer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.CryptoService/CryptoTransfer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CryptoServiceServer).CryptoTransfer(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _CryptoService_CryptoDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CryptoServiceServer).CryptoDelete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.CryptoService/CryptoDelete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CryptoServiceServer).CryptoDelete(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _CryptoService_AddClaim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CryptoServiceServer).AddClaim(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.CryptoService/AddClaim", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CryptoServiceServer).AddClaim(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _CryptoService_DeleteClaim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CryptoServiceServer).DeleteClaim(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.CryptoService/DeleteClaim", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CryptoServiceServer).DeleteClaim(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _CryptoService_GetClaim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CryptoServiceServer).GetClaim(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.CryptoService/GetClaim", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CryptoServiceServer).GetClaim(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _CryptoService_GetAccountRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CryptoServiceServer).GetAccountRecords(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.CryptoService/GetAccountRecords", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CryptoServiceServer).GetAccountRecords(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _CryptoService_CryptoGetBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CryptoServiceServer).CryptoGetBalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.CryptoService/CryptoGetBalance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CryptoServiceServer).CryptoGetBalance(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _CryptoService_GetAccountInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CryptoServiceServer).GetAccountInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.CryptoService/GetAccountInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CryptoServiceServer).GetAccountInfo(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _CryptoService_GetTransactionReceipts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CryptoServiceServer).GetTransactionReceipts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.CryptoService/GetTransactionReceipts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CryptoServiceServer).GetTransactionReceipts(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _CryptoService_GetFastTransactionRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CryptoServiceServer).GetFastTransactionRecord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.CryptoService/GetFastTransactionRecord", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CryptoServiceServer).GetFastTransactionRecord(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _CryptoService_GetTxRecordByTxID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CryptoServiceServer).GetTxRecordByTxID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.CryptoService/GetTxRecordByTxID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CryptoServiceServer).GetTxRecordByTxID(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _CryptoService_GetStakersByAccountID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CryptoServiceServer).GetStakersByAccountID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.CryptoService/GetStakersByAccountID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CryptoServiceServer).GetStakersByAccountID(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +var _CryptoService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "proto.CryptoService", + HandlerType: (*CryptoServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "createAccount", + Handler: _CryptoService_CreateAccount_Handler, + }, + { + MethodName: "updateAccount", + Handler: _CryptoService_UpdateAccount_Handler, + }, + { + MethodName: "cryptoTransfer", + Handler: _CryptoService_CryptoTransfer_Handler, + }, + { + MethodName: "cryptoDelete", + Handler: _CryptoService_CryptoDelete_Handler, + }, + { + MethodName: "addClaim", + Handler: _CryptoService_AddClaim_Handler, + }, + { + MethodName: "deleteClaim", + Handler: _CryptoService_DeleteClaim_Handler, + }, + { + MethodName: "getClaim", + Handler: _CryptoService_GetClaim_Handler, + }, + { + MethodName: "getAccountRecords", + Handler: _CryptoService_GetAccountRecords_Handler, + }, + { + MethodName: "cryptoGetBalance", + Handler: _CryptoService_CryptoGetBalance_Handler, + }, + { + MethodName: "getAccountInfo", + Handler: _CryptoService_GetAccountInfo_Handler, + }, + { + MethodName: "getTransactionReceipts", + Handler: _CryptoService_GetTransactionReceipts_Handler, + }, + { + MethodName: "getFastTransactionRecord", + Handler: _CryptoService_GetFastTransactionRecord_Handler, + }, + { + MethodName: "getTxRecordByTxID", + Handler: _CryptoService_GetTxRecordByTxID_Handler, + }, + { + MethodName: "getStakersByAccountID", + Handler: _CryptoService_GetStakersByAccountID_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "CryptoService.proto", +} diff --git a/proto/CryptoTransfer.pb.go b/proto/CryptoTransfer.pb.go new file mode 100644 index 000000000..89354a53e --- /dev/null +++ b/proto/CryptoTransfer.pb.go @@ -0,0 +1,176 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: CryptoTransfer.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// An account, and the amount that it sends or receives during a cryptocurrency transfer. +type AccountAmount struct { + AccountID *AccountID `protobuf:"bytes,1,opt,name=accountID,proto3" json:"accountID,omitempty"` + Amount int64 `protobuf:"zigzag64,2,opt,name=amount,proto3" json:"amount,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AccountAmount) Reset() { *m = AccountAmount{} } +func (m *AccountAmount) String() string { return proto.CompactTextString(m) } +func (*AccountAmount) ProtoMessage() {} +func (*AccountAmount) Descriptor() ([]byte, []int) { + return fileDescriptor_1807c2e11ee8417d, []int{0} +} + +func (m *AccountAmount) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AccountAmount.Unmarshal(m, b) +} +func (m *AccountAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AccountAmount.Marshal(b, m, deterministic) +} +func (m *AccountAmount) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccountAmount.Merge(m, src) +} +func (m *AccountAmount) XXX_Size() int { + return xxx_messageInfo_AccountAmount.Size(m) +} +func (m *AccountAmount) XXX_DiscardUnknown() { + xxx_messageInfo_AccountAmount.DiscardUnknown(m) +} + +var xxx_messageInfo_AccountAmount proto.InternalMessageInfo + +func (m *AccountAmount) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +func (m *AccountAmount) GetAmount() int64 { + if m != nil { + return m.Amount + } + return 0 +} + +// A list of accounts and amounts to transfer out of each account (negative) or into it (positive). +type TransferList struct { + AccountAmounts []*AccountAmount `protobuf:"bytes,1,rep,name=accountAmounts,proto3" json:"accountAmounts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransferList) Reset() { *m = TransferList{} } +func (m *TransferList) String() string { return proto.CompactTextString(m) } +func (*TransferList) ProtoMessage() {} +func (*TransferList) Descriptor() ([]byte, []int) { + return fileDescriptor_1807c2e11ee8417d, []int{1} +} + +func (m *TransferList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransferList.Unmarshal(m, b) +} +func (m *TransferList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransferList.Marshal(b, m, deterministic) +} +func (m *TransferList) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransferList.Merge(m, src) +} +func (m *TransferList) XXX_Size() int { + return xxx_messageInfo_TransferList.Size(m) +} +func (m *TransferList) XXX_DiscardUnknown() { + xxx_messageInfo_TransferList.DiscardUnknown(m) +} + +var xxx_messageInfo_TransferList proto.InternalMessageInfo + +func (m *TransferList) GetAccountAmounts() []*AccountAmount { + if m != nil { + return m.AccountAmounts + } + return nil +} + +// Transfer cryptocurrency from some accounts to other accounts. The accounts list can contain up to 10 accounts. The amounts list must be the same length as the accounts list. Each negative amount is withdrawn from the corresponding account (a sender), and each positive one is added to the corresponding account (a receiver). The amounts list must sum to zero. Each amount is a number of tinyBars (there are 100,000,000 tinyBars in one Hbar). If any sender account fails to have sufficient hbars to do the withdrawal, then the entire transaction fails, and none of those transfers occur, though the transaction fee is still charged. This transaction must be signed by the keys for all the sending accounts, and for any receiving accounts that have receiverSigRequired == true. The signatures are in the same order as the accounts, skipping those accounts that don't need a signature. +type CryptoTransferTransactionBody struct { + Transfers *TransferList `protobuf:"bytes,1,opt,name=transfers,proto3" json:"transfers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoTransferTransactionBody) Reset() { *m = CryptoTransferTransactionBody{} } +func (m *CryptoTransferTransactionBody) String() string { return proto.CompactTextString(m) } +func (*CryptoTransferTransactionBody) ProtoMessage() {} +func (*CryptoTransferTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_1807c2e11ee8417d, []int{2} +} + +func (m *CryptoTransferTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoTransferTransactionBody.Unmarshal(m, b) +} +func (m *CryptoTransferTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoTransferTransactionBody.Marshal(b, m, deterministic) +} +func (m *CryptoTransferTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoTransferTransactionBody.Merge(m, src) +} +func (m *CryptoTransferTransactionBody) XXX_Size() int { + return xxx_messageInfo_CryptoTransferTransactionBody.Size(m) +} +func (m *CryptoTransferTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoTransferTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoTransferTransactionBody proto.InternalMessageInfo + +func (m *CryptoTransferTransactionBody) GetTransfers() *TransferList { + if m != nil { + return m.Transfers + } + return nil +} + +func init() { + proto.RegisterType((*AccountAmount)(nil), "proto.AccountAmount") + proto.RegisterType((*TransferList)(nil), "proto.TransferList") + proto.RegisterType((*CryptoTransferTransactionBody)(nil), "proto.CryptoTransferTransactionBody") +} + +func init() { proto.RegisterFile("CryptoTransfer.proto", fileDescriptor_1807c2e11ee8417d) } + +var fileDescriptor_1807c2e11ee8417d = []byte{ + // 230 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8f, 0x41, 0x4b, 0x03, 0x31, + 0x10, 0x85, 0x89, 0x62, 0xa1, 0x53, 0x95, 0x12, 0x8b, 0x2c, 0x82, 0xb0, 0xe4, 0x20, 0x7b, 0x0a, + 0x58, 0xaf, 0x5e, 0x76, 0xf5, 0x22, 0xf4, 0x20, 0xa1, 0xe0, 0x79, 0x4c, 0xa3, 0x89, 0xd0, 0x4d, + 0x48, 0xa2, 0xb0, 0xff, 0x5e, 0x4c, 0x52, 0xba, 0xeb, 0x25, 0xc3, 0xcc, 0xfb, 0xe6, 0xe5, 0x0d, + 0xac, 0x9e, 0xfc, 0xe0, 0xa2, 0xdd, 0x7a, 0xec, 0xc3, 0x87, 0xf2, 0xdc, 0x79, 0x1b, 0x2d, 0x3d, + 0x4b, 0xe5, 0x66, 0xd9, 0x61, 0x30, 0x72, 0x3b, 0x38, 0x15, 0xb2, 0xc0, 0xde, 0xe0, 0xa2, 0x95, + 0xd2, 0x7e, 0xf7, 0xb1, 0xdd, 0xff, 0xbd, 0x94, 0xc3, 0x1c, 0xf3, 0xe0, 0xe5, 0xb9, 0x22, 0x35, + 0x69, 0x16, 0xeb, 0x65, 0x66, 0x79, 0x7b, 0x98, 0x8b, 0x23, 0x42, 0xaf, 0x61, 0x86, 0x69, 0xb3, + 0x3a, 0xa9, 0x49, 0x43, 0x45, 0xe9, 0xd8, 0x06, 0xce, 0x0f, 0x19, 0x36, 0x26, 0x44, 0xfa, 0x08, + 0x97, 0x38, 0xfe, 0x28, 0x54, 0xa4, 0x3e, 0x6d, 0x16, 0xeb, 0xd5, 0xd4, 0x3c, 0x8b, 0xe2, 0x1f, + 0xcb, 0x04, 0xdc, 0x4e, 0xef, 0x4a, 0x15, 0x65, 0x34, 0xb6, 0xef, 0xec, 0x6e, 0xa0, 0xf7, 0x30, + 0x8f, 0x45, 0x0a, 0x25, 0xf6, 0x55, 0x71, 0x1e, 0xc7, 0x10, 0x47, 0xaa, 0xbb, 0x03, 0x26, 0xed, + 0x9e, 0x6b, 0xb5, 0x53, 0x1e, 0x35, 0x06, 0xfd, 0xe9, 0xd1, 0x69, 0x8e, 0xce, 0x94, 0xc5, 0x2f, + 0xfc, 0xc1, 0x57, 0xf2, 0x3e, 0x4b, 0xdd, 0xc3, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5e, 0x0a, + 0x9e, 0x8d, 0x5a, 0x01, 0x00, 0x00, +} diff --git a/proto/CryptoUpdate.pb.go b/proto/CryptoUpdate.pb.go new file mode 100644 index 000000000..99a7d86ab --- /dev/null +++ b/proto/CryptoUpdate.pb.go @@ -0,0 +1,287 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: CryptoUpdate.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Change properties for the given account. Any null field is ignored (left unchanged). This transaction must be signed by the existing key for this account. If the transaction is changing the key field, then the transaction must be signed by both the old key (from before the change) and the new key. The old key must sign for security. The new key must sign as a safeguard to avoid accidentally changing to an invalid key, and then having no way to recover. When extending the expiration date, the cost is affected by the size of the list of attached claims, and of the keys associated with the claims and the account. +type CryptoUpdateTransactionBody struct { + AccountIDToUpdate *AccountID `protobuf:"bytes,2,opt,name=accountIDToUpdate,proto3" json:"accountIDToUpdate,omitempty"` + Key *Key `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + ProxyAccountID *AccountID `protobuf:"bytes,4,opt,name=proxyAccountID,proto3" json:"proxyAccountID,omitempty"` + ProxyFraction int32 `protobuf:"varint,5,opt,name=proxyFraction,proto3" json:"proxyFraction,omitempty"` // Deprecated: Do not use. + // Types that are valid to be assigned to SendRecordThresholdField: + // *CryptoUpdateTransactionBody_SendRecordThreshold + // *CryptoUpdateTransactionBody_SendRecordThresholdWrapper + SendRecordThresholdField isCryptoUpdateTransactionBody_SendRecordThresholdField `protobuf_oneof:"sendRecordThresholdField"` + // Types that are valid to be assigned to ReceiveRecordThresholdField: + // *CryptoUpdateTransactionBody_ReceiveRecordThreshold + // *CryptoUpdateTransactionBody_ReceiveRecordThresholdWrapper + ReceiveRecordThresholdField isCryptoUpdateTransactionBody_ReceiveRecordThresholdField `protobuf_oneof:"receiveRecordThresholdField"` + AutoRenewPeriod *Duration `protobuf:"bytes,8,opt,name=autoRenewPeriod,proto3" json:"autoRenewPeriod,omitempty"` + ExpirationTime *Timestamp `protobuf:"bytes,9,opt,name=expirationTime,proto3" json:"expirationTime,omitempty"` + // Types that are valid to be assigned to ReceiverSigRequiredField: + // *CryptoUpdateTransactionBody_ReceiverSigRequired + // *CryptoUpdateTransactionBody_ReceiverSigRequiredWrapper + ReceiverSigRequiredField isCryptoUpdateTransactionBody_ReceiverSigRequiredField `protobuf_oneof:"receiverSigRequiredField"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CryptoUpdateTransactionBody) Reset() { *m = CryptoUpdateTransactionBody{} } +func (m *CryptoUpdateTransactionBody) String() string { return proto.CompactTextString(m) } +func (*CryptoUpdateTransactionBody) ProtoMessage() {} +func (*CryptoUpdateTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_bb78671897dfb7d1, []int{0} +} + +func (m *CryptoUpdateTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CryptoUpdateTransactionBody.Unmarshal(m, b) +} +func (m *CryptoUpdateTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CryptoUpdateTransactionBody.Marshal(b, m, deterministic) +} +func (m *CryptoUpdateTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_CryptoUpdateTransactionBody.Merge(m, src) +} +func (m *CryptoUpdateTransactionBody) XXX_Size() int { + return xxx_messageInfo_CryptoUpdateTransactionBody.Size(m) +} +func (m *CryptoUpdateTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_CryptoUpdateTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_CryptoUpdateTransactionBody proto.InternalMessageInfo + +func (m *CryptoUpdateTransactionBody) GetAccountIDToUpdate() *AccountID { + if m != nil { + return m.AccountIDToUpdate + } + return nil +} + +func (m *CryptoUpdateTransactionBody) GetKey() *Key { + if m != nil { + return m.Key + } + return nil +} + +func (m *CryptoUpdateTransactionBody) GetProxyAccountID() *AccountID { + if m != nil { + return m.ProxyAccountID + } + return nil +} + +// Deprecated: Do not use. +func (m *CryptoUpdateTransactionBody) GetProxyFraction() int32 { + if m != nil { + return m.ProxyFraction + } + return 0 +} + +type isCryptoUpdateTransactionBody_SendRecordThresholdField interface { + isCryptoUpdateTransactionBody_SendRecordThresholdField() +} + +type CryptoUpdateTransactionBody_SendRecordThreshold struct { + SendRecordThreshold uint64 `protobuf:"varint,6,opt,name=sendRecordThreshold,proto3,oneof"` +} + +type CryptoUpdateTransactionBody_SendRecordThresholdWrapper struct { + SendRecordThresholdWrapper *wrappers.UInt64Value `protobuf:"bytes,11,opt,name=sendRecordThresholdWrapper,proto3,oneof"` +} + +func (*CryptoUpdateTransactionBody_SendRecordThreshold) isCryptoUpdateTransactionBody_SendRecordThresholdField() { +} + +func (*CryptoUpdateTransactionBody_SendRecordThresholdWrapper) isCryptoUpdateTransactionBody_SendRecordThresholdField() { +} + +func (m *CryptoUpdateTransactionBody) GetSendRecordThresholdField() isCryptoUpdateTransactionBody_SendRecordThresholdField { + if m != nil { + return m.SendRecordThresholdField + } + return nil +} + +// Deprecated: Do not use. +func (m *CryptoUpdateTransactionBody) GetSendRecordThreshold() uint64 { + if x, ok := m.GetSendRecordThresholdField().(*CryptoUpdateTransactionBody_SendRecordThreshold); ok { + return x.SendRecordThreshold + } + return 0 +} + +func (m *CryptoUpdateTransactionBody) GetSendRecordThresholdWrapper() *wrappers.UInt64Value { + if x, ok := m.GetSendRecordThresholdField().(*CryptoUpdateTransactionBody_SendRecordThresholdWrapper); ok { + return x.SendRecordThresholdWrapper + } + return nil +} + +type isCryptoUpdateTransactionBody_ReceiveRecordThresholdField interface { + isCryptoUpdateTransactionBody_ReceiveRecordThresholdField() +} + +type CryptoUpdateTransactionBody_ReceiveRecordThreshold struct { + ReceiveRecordThreshold uint64 `protobuf:"varint,7,opt,name=receiveRecordThreshold,proto3,oneof"` +} + +type CryptoUpdateTransactionBody_ReceiveRecordThresholdWrapper struct { + ReceiveRecordThresholdWrapper *wrappers.UInt64Value `protobuf:"bytes,12,opt,name=receiveRecordThresholdWrapper,proto3,oneof"` +} + +func (*CryptoUpdateTransactionBody_ReceiveRecordThreshold) isCryptoUpdateTransactionBody_ReceiveRecordThresholdField() { +} + +func (*CryptoUpdateTransactionBody_ReceiveRecordThresholdWrapper) isCryptoUpdateTransactionBody_ReceiveRecordThresholdField() { +} + +func (m *CryptoUpdateTransactionBody) GetReceiveRecordThresholdField() isCryptoUpdateTransactionBody_ReceiveRecordThresholdField { + if m != nil { + return m.ReceiveRecordThresholdField + } + return nil +} + +// Deprecated: Do not use. +func (m *CryptoUpdateTransactionBody) GetReceiveRecordThreshold() uint64 { + if x, ok := m.GetReceiveRecordThresholdField().(*CryptoUpdateTransactionBody_ReceiveRecordThreshold); ok { + return x.ReceiveRecordThreshold + } + return 0 +} + +func (m *CryptoUpdateTransactionBody) GetReceiveRecordThresholdWrapper() *wrappers.UInt64Value { + if x, ok := m.GetReceiveRecordThresholdField().(*CryptoUpdateTransactionBody_ReceiveRecordThresholdWrapper); ok { + return x.ReceiveRecordThresholdWrapper + } + return nil +} + +func (m *CryptoUpdateTransactionBody) GetAutoRenewPeriod() *Duration { + if m != nil { + return m.AutoRenewPeriod + } + return nil +} + +func (m *CryptoUpdateTransactionBody) GetExpirationTime() *Timestamp { + if m != nil { + return m.ExpirationTime + } + return nil +} + +type isCryptoUpdateTransactionBody_ReceiverSigRequiredField interface { + isCryptoUpdateTransactionBody_ReceiverSigRequiredField() +} + +type CryptoUpdateTransactionBody_ReceiverSigRequired struct { + ReceiverSigRequired bool `protobuf:"varint,10,opt,name=receiverSigRequired,proto3,oneof"` +} + +type CryptoUpdateTransactionBody_ReceiverSigRequiredWrapper struct { + ReceiverSigRequiredWrapper *wrappers.BoolValue `protobuf:"bytes,13,opt,name=receiverSigRequiredWrapper,proto3,oneof"` +} + +func (*CryptoUpdateTransactionBody_ReceiverSigRequired) isCryptoUpdateTransactionBody_ReceiverSigRequiredField() { +} + +func (*CryptoUpdateTransactionBody_ReceiverSigRequiredWrapper) isCryptoUpdateTransactionBody_ReceiverSigRequiredField() { +} + +func (m *CryptoUpdateTransactionBody) GetReceiverSigRequiredField() isCryptoUpdateTransactionBody_ReceiverSigRequiredField { + if m != nil { + return m.ReceiverSigRequiredField + } + return nil +} + +// Deprecated: Do not use. +func (m *CryptoUpdateTransactionBody) GetReceiverSigRequired() bool { + if x, ok := m.GetReceiverSigRequiredField().(*CryptoUpdateTransactionBody_ReceiverSigRequired); ok { + return x.ReceiverSigRequired + } + return false +} + +func (m *CryptoUpdateTransactionBody) GetReceiverSigRequiredWrapper() *wrappers.BoolValue { + if x, ok := m.GetReceiverSigRequiredField().(*CryptoUpdateTransactionBody_ReceiverSigRequiredWrapper); ok { + return x.ReceiverSigRequiredWrapper + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CryptoUpdateTransactionBody) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CryptoUpdateTransactionBody_SendRecordThreshold)(nil), + (*CryptoUpdateTransactionBody_SendRecordThresholdWrapper)(nil), + (*CryptoUpdateTransactionBody_ReceiveRecordThreshold)(nil), + (*CryptoUpdateTransactionBody_ReceiveRecordThresholdWrapper)(nil), + (*CryptoUpdateTransactionBody_ReceiverSigRequired)(nil), + (*CryptoUpdateTransactionBody_ReceiverSigRequiredWrapper)(nil), + } +} + +func init() { + proto.RegisterType((*CryptoUpdateTransactionBody)(nil), "proto.CryptoUpdateTransactionBody") +} + +func init() { proto.RegisterFile("CryptoUpdate.proto", fileDescriptor_bb78671897dfb7d1) } + +var fileDescriptor_bb78671897dfb7d1 = []byte{ + // 468 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x51, 0x6b, 0xd4, 0x40, + 0x10, 0x6e, 0xae, 0xbd, 0xb3, 0x4e, 0x6d, 0xaf, 0xae, 0x20, 0x4b, 0xda, 0xca, 0xd1, 0x07, 0xc9, + 0x53, 0x0a, 0x2a, 0x45, 0x41, 0x04, 0x63, 0x29, 0x2d, 0xbe, 0x94, 0x35, 0xd5, 0x17, 0x11, 0xb6, + 0xd9, 0xf1, 0xb2, 0x9a, 0xcb, 0xae, 0x9b, 0xa4, 0x6d, 0x7e, 0xbc, 0x20, 0xd9, 0x4d, 0x0e, 0x7b, + 0xcd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 0x16, 0xa6, 0x28, + 0xd0, 0xf0, 0x94, 0x17, 0xe9, 0xd4, 0x70, 0x9d, 0x86, 0x5c, 0xcb, 0x36, 0xa7, 0x5f, 0xfc, 0x9a, + 0x5f, 0x78, 0x57, 0x23, 0x5b, 0xbd, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0x4d, 0xbb, 0x36, 0x9b, + 0x1e, 0x04, 0x00, 0x00, +} diff --git a/proto/Duration.pb.go b/proto/Duration.pb.go new file mode 100644 index 000000000..1678d6bd7 --- /dev/null +++ b/proto/Duration.pb.go @@ -0,0 +1,78 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: Duration.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// The length of a period of time. This is an identical data structure to the protobuf Duration.proto (see the comments in https://github.com/google/protobuf/blob/master/src/google/protobuf/duration.proto) +type Duration struct { + Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Duration) Reset() { *m = Duration{} } +func (m *Duration) String() string { return proto.CompactTextString(m) } +func (*Duration) ProtoMessage() {} +func (*Duration) Descriptor() ([]byte, []int) { + return fileDescriptor_3302d947548caaa4, []int{0} +} + +func (m *Duration) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Duration.Unmarshal(m, b) +} +func (m *Duration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Duration.Marshal(b, m, deterministic) +} +func (m *Duration) XXX_Merge(src proto.Message) { + xxx_messageInfo_Duration.Merge(m, src) +} +func (m *Duration) XXX_Size() int { + return xxx_messageInfo_Duration.Size(m) +} +func (m *Duration) XXX_DiscardUnknown() { + xxx_messageInfo_Duration.DiscardUnknown(m) +} + +var xxx_messageInfo_Duration proto.InternalMessageInfo + +func (m *Duration) GetSeconds() int64 { + if m != nil { + return m.Seconds + } + return 0 +} + +func init() { + proto.RegisterType((*Duration)(nil), "proto.Duration") +} + +func init() { proto.RegisterFile("Duration.proto", fileDescriptor_3302d947548caaa4) } + +var fileDescriptor_3302d947548caaa4 = []byte{ + // 110 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x73, 0x29, 0x2d, 0x4a, + 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x53, 0x4a, 0x2a, + 0x5c, 0x1c, 0x30, 0x09, 0x21, 0x09, 0x2e, 0xf6, 0xe2, 0xd4, 0xe4, 0xfc, 0xbc, 0x94, 0x62, 0x09, + 0x46, 0x05, 0x46, 0x0d, 0xe6, 0x20, 0x18, 0xd7, 0x49, 0x8d, 0x4b, 0x29, 0x39, 0x3f, 0x57, 0x2f, + 0x23, 0x35, 0x25, 0xb5, 0x28, 0x31, 0x23, 0xb1, 0x38, 0x23, 0xbd, 0x28, 0xb1, 0x20, 0x43, 0x2f, + 0xb1, 0x20, 0x13, 0x62, 0x9a, 0x5e, 0x56, 0x62, 0x59, 0x62, 0x00, 0x63, 0x12, 0x1b, 0x98, 0x67, + 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x76, 0x85, 0xe3, 0x26, 0x6d, 0x00, 0x00, 0x00, +} diff --git a/proto/ExchangeRate.pb.go b/proto/ExchangeRate.pb.go new file mode 100644 index 000000000..a3ad1702c --- /dev/null +++ b/proto/ExchangeRate.pb.go @@ -0,0 +1,151 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: ExchangeRate.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Values from these proto denotes habr and cents(USD) conversion +type ExchangeRate struct { + HbarEquiv int32 `protobuf:"varint,1,opt,name=hbarEquiv,proto3" json:"hbarEquiv,omitempty"` + CentEquiv int32 `protobuf:"varint,2,opt,name=centEquiv,proto3" json:"centEquiv,omitempty"` + ExpirationTime *TimestampSeconds `protobuf:"bytes,3,opt,name=expirationTime,proto3" json:"expirationTime,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExchangeRate) Reset() { *m = ExchangeRate{} } +func (m *ExchangeRate) String() string { return proto.CompactTextString(m) } +func (*ExchangeRate) ProtoMessage() {} +func (*ExchangeRate) Descriptor() ([]byte, []int) { + return fileDescriptor_1cf57e6604c70a20, []int{0} +} + +func (m *ExchangeRate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExchangeRate.Unmarshal(m, b) +} +func (m *ExchangeRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExchangeRate.Marshal(b, m, deterministic) +} +func (m *ExchangeRate) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExchangeRate.Merge(m, src) +} +func (m *ExchangeRate) XXX_Size() int { + return xxx_messageInfo_ExchangeRate.Size(m) +} +func (m *ExchangeRate) XXX_DiscardUnknown() { + xxx_messageInfo_ExchangeRate.DiscardUnknown(m) +} + +var xxx_messageInfo_ExchangeRate proto.InternalMessageInfo + +func (m *ExchangeRate) GetHbarEquiv() int32 { + if m != nil { + return m.HbarEquiv + } + return 0 +} + +func (m *ExchangeRate) GetCentEquiv() int32 { + if m != nil { + return m.CentEquiv + } + return 0 +} + +func (m *ExchangeRate) GetExpirationTime() *TimestampSeconds { + if m != nil { + return m.ExpirationTime + } + return nil +} + +// Two sets of exchange rate +type ExchangeRateSet struct { + CurrentRate *ExchangeRate `protobuf:"bytes,1,opt,name=currentRate,proto3" json:"currentRate,omitempty"` + NextRate *ExchangeRate `protobuf:"bytes,2,opt,name=nextRate,proto3" json:"nextRate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExchangeRateSet) Reset() { *m = ExchangeRateSet{} } +func (m *ExchangeRateSet) String() string { return proto.CompactTextString(m) } +func (*ExchangeRateSet) ProtoMessage() {} +func (*ExchangeRateSet) Descriptor() ([]byte, []int) { + return fileDescriptor_1cf57e6604c70a20, []int{1} +} + +func (m *ExchangeRateSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExchangeRateSet.Unmarshal(m, b) +} +func (m *ExchangeRateSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExchangeRateSet.Marshal(b, m, deterministic) +} +func (m *ExchangeRateSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExchangeRateSet.Merge(m, src) +} +func (m *ExchangeRateSet) XXX_Size() int { + return xxx_messageInfo_ExchangeRateSet.Size(m) +} +func (m *ExchangeRateSet) XXX_DiscardUnknown() { + xxx_messageInfo_ExchangeRateSet.DiscardUnknown(m) +} + +var xxx_messageInfo_ExchangeRateSet proto.InternalMessageInfo + +func (m *ExchangeRateSet) GetCurrentRate() *ExchangeRate { + if m != nil { + return m.CurrentRate + } + return nil +} + +func (m *ExchangeRateSet) GetNextRate() *ExchangeRate { + if m != nil { + return m.NextRate + } + return nil +} + +func init() { + proto.RegisterType((*ExchangeRate)(nil), "proto.ExchangeRate") + proto.RegisterType((*ExchangeRateSet)(nil), "proto.ExchangeRateSet") +} + +func init() { proto.RegisterFile("ExchangeRate.proto", fileDescriptor_1cf57e6604c70a20) } + +var fileDescriptor_1cf57e6604c70a20 = []byte{ + // 228 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x8e, 0x41, 0x4b, 0xc4, 0x30, + 0x14, 0x84, 0xc9, 0xca, 0x8a, 0xbe, 0x8a, 0x0b, 0xf1, 0xe0, 0x22, 0x1e, 0x96, 0x1e, 0x64, 0x4f, + 0x11, 0x56, 0x3c, 0x0b, 0xc2, 0xde, 0x25, 0xeb, 0x1f, 0x78, 0x9b, 0x7d, 0x34, 0x11, 0x9a, 0xc4, + 0x34, 0x2d, 0xf5, 0x37, 0xf8, 0xa7, 0xa5, 0x4d, 0xa9, 0x41, 0xf0, 0x14, 0x32, 0xf3, 0xcd, 0x9b, + 0x01, 0xbe, 0xef, 0x95, 0x46, 0x5b, 0x91, 0xc4, 0x48, 0xc2, 0x07, 0x17, 0x1d, 0x5f, 0x8e, 0xcf, + 0xdd, 0xea, 0xdd, 0xd4, 0xd4, 0x44, 0xac, 0x7d, 0xd2, 0xcb, 0x6f, 0x06, 0x57, 0x39, 0xce, 0xef, + 0xe1, 0x52, 0x1f, 0x31, 0xec, 0x3f, 0x5b, 0xd3, 0xad, 0xd9, 0x86, 0x6d, 0x97, 0xf2, 0x57, 0x18, + 0x5c, 0x45, 0x36, 0x26, 0x77, 0x91, 0xdc, 0x59, 0xe0, 0x2f, 0x70, 0x4d, 0xbd, 0x37, 0x01, 0xa3, + 0x71, 0x76, 0x68, 0x5a, 0x9f, 0x6d, 0xd8, 0xb6, 0xd8, 0xdd, 0xa6, 0x32, 0x31, 0x97, 0x1f, 0x48, + 0x39, 0x7b, 0x6a, 0xe4, 0x1f, 0xbc, 0xfc, 0x82, 0x55, 0x3e, 0xe6, 0x40, 0x91, 0x3f, 0x43, 0xa1, + 0xda, 0x10, 0xc8, 0xc6, 0x41, 0x19, 0x17, 0x15, 0xbb, 0x9b, 0xe9, 0x60, 0x0e, 0xcb, 0x9c, 0xe3, + 0x8f, 0x70, 0x61, 0xa9, 0x4f, 0x99, 0xc5, 0xff, 0x99, 0x19, 0x7a, 0x7d, 0x80, 0x52, 0xb9, 0x5a, + 0x68, 0x3a, 0x51, 0x40, 0x8d, 0x8d, 0xae, 0x02, 0x7a, 0x2d, 0xd0, 0x9b, 0x29, 0xf7, 0x81, 0x1d, + 0xbe, 0xb1, 0xe3, 0xf9, 0xf8, 0x7b, 0xfa, 0x09, 0x00, 0x00, 0xff, 0xff, 0xc2, 0x2b, 0x82, 0xf8, + 0x65, 0x01, 0x00, 0x00, +} diff --git a/proto/FileAppend.pb.go b/proto/FileAppend.pb.go new file mode 100644 index 000000000..b49cba68b --- /dev/null +++ b/proto/FileAppend.pb.go @@ -0,0 +1,90 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: FileAppend.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Append the given contents to the end of the file. If a file is too big to create with a single FileCreateTransaction, then it can be created with the first part of its contents, and then appended multiple times to create the entire file. +type FileAppendTransactionBody struct { + FileID *FileID `protobuf:"bytes,2,opt,name=fileID,proto3" json:"fileID,omitempty"` + Contents []byte `protobuf:"bytes,4,opt,name=contents,proto3" json:"contents,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileAppendTransactionBody) Reset() { *m = FileAppendTransactionBody{} } +func (m *FileAppendTransactionBody) String() string { return proto.CompactTextString(m) } +func (*FileAppendTransactionBody) ProtoMessage() {} +func (*FileAppendTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_4c35e7151ca7bc48, []int{0} +} + +func (m *FileAppendTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileAppendTransactionBody.Unmarshal(m, b) +} +func (m *FileAppendTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileAppendTransactionBody.Marshal(b, m, deterministic) +} +func (m *FileAppendTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileAppendTransactionBody.Merge(m, src) +} +func (m *FileAppendTransactionBody) XXX_Size() int { + return xxx_messageInfo_FileAppendTransactionBody.Size(m) +} +func (m *FileAppendTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_FileAppendTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_FileAppendTransactionBody proto.InternalMessageInfo + +func (m *FileAppendTransactionBody) GetFileID() *FileID { + if m != nil { + return m.FileID + } + return nil +} + +func (m *FileAppendTransactionBody) GetContents() []byte { + if m != nil { + return m.Contents + } + return nil +} + +func init() { + proto.RegisterType((*FileAppendTransactionBody)(nil), "proto.FileAppendTransactionBody") +} + +func init() { proto.RegisterFile("FileAppend.proto", fileDescriptor_4c35e7151ca7bc48) } + +var fileDescriptor_4c35e7151ca7bc48 = []byte{ + // 168 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x70, 0xcb, 0xcc, 0x49, + 0x75, 0x2c, 0x28, 0x48, 0xcd, 0x4b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x53, + 0x52, 0x02, 0x4e, 0x89, 0xc5, 0x99, 0xc9, 0x21, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x09, 0xa5, 0x38, + 0x2e, 0x49, 0x84, 0xe2, 0x90, 0xa2, 0xc4, 0xbc, 0xe2, 0xc4, 0xe4, 0x92, 0xcc, 0xfc, 0x3c, 0xa7, + 0xfc, 0x94, 0x4a, 0x21, 0x55, 0x2e, 0xb6, 0xb4, 0xcc, 0x9c, 0x54, 0x4f, 0x17, 0x09, 0x26, 0x05, + 0x46, 0x0d, 0x6e, 0x23, 0x5e, 0x88, 0x26, 0x3d, 0x37, 0xb0, 0x60, 0x10, 0x54, 0x52, 0x48, 0x8a, + 0x8b, 0x23, 0x39, 0x3f, 0xaf, 0x24, 0x35, 0xaf, 0xa4, 0x58, 0x82, 0x45, 0x81, 0x51, 0x83, 0x27, + 0x08, 0xce, 0x77, 0x52, 0xe3, 0x52, 0x4a, 0xce, 0xcf, 0xd5, 0xcb, 0x48, 0x4d, 0x49, 0x2d, 0x4a, + 0xcc, 0x48, 0x2c, 0xce, 0x48, 0x2f, 0x4a, 0x2c, 0xc8, 0xd0, 0x4b, 0x2c, 0xc8, 0x84, 0x9a, 0x95, + 0x95, 0x58, 0x96, 0x18, 0xc0, 0x98, 0xc4, 0x06, 0xe6, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, + 0x0b, 0x2e, 0x75, 0xf3, 0xbb, 0x00, 0x00, 0x00, +} diff --git a/proto/FileCreate.pb.go b/proto/FileCreate.pb.go new file mode 100644 index 000000000..2b66b661a --- /dev/null +++ b/proto/FileCreate.pb.go @@ -0,0 +1,138 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: FileCreate.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Create a new file, containing the given contents. It is referenced by its FileID, and does not have a filename, so it is important to get the FileID. After the file is created, the FileID for it can be found in the receipt, or retrieved with a GetByKey query, or by asking for a Record of the transaction to be created, and retrieving that. +// +// The file contains the given contents (possibly empty). The file will automatically disappear at the fileExpirationTime, unless its expiration is extended by another transaction before that time. If the file is deleted, then its contents will become empty and it will be marked as deleted until it expires, and then it will cease to exist. See FileGetInfoQuery for more information about files. +// +// The keys field is a list of keys. All the keys on the list must sign to create or modify a file, but only one of them needs to sign in order to delete the file. Each of those "keys" may itself be threshold key containing other keys (including other threshold keys). In other words, the behavior is an AND for create/modify, OR for delete. This is useful for acting as a revocation server. If it is desired to have the behavior be AND for all 3 operations (or OR for all 3), then the list should have only a single Key, which is a threshold key, with N=1 for OR, N=M for AND. +// +// If a file is created without ANY keys in the keys field, the file is immutable ONLY the expirationTime of the file can be changed using FileUpdate API. The file contents or its keys cannot be changed. +// +// 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 FileCreateTransactionBody struct { + ExpirationTime *Timestamp `protobuf:"bytes,2,opt,name=expirationTime,proto3" json:"expirationTime,omitempty"` + Keys *KeyList `protobuf:"bytes,3,opt,name=keys,proto3" json:"keys,omitempty"` + Contents []byte `protobuf:"bytes,4,opt,name=contents,proto3" json:"contents,omitempty"` + ShardID *ShardID `protobuf:"bytes,5,opt,name=shardID,proto3" json:"shardID,omitempty"` + RealmID *RealmID `protobuf:"bytes,6,opt,name=realmID,proto3" json:"realmID,omitempty"` + NewRealmAdminKey *Key `protobuf:"bytes,7,opt,name=newRealmAdminKey,proto3" json:"newRealmAdminKey,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileCreateTransactionBody) Reset() { *m = FileCreateTransactionBody{} } +func (m *FileCreateTransactionBody) String() string { return proto.CompactTextString(m) } +func (*FileCreateTransactionBody) ProtoMessage() {} +func (*FileCreateTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_dce7f6c7fa88f371, []int{0} +} + +func (m *FileCreateTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileCreateTransactionBody.Unmarshal(m, b) +} +func (m *FileCreateTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileCreateTransactionBody.Marshal(b, m, deterministic) +} +func (m *FileCreateTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileCreateTransactionBody.Merge(m, src) +} +func (m *FileCreateTransactionBody) XXX_Size() int { + return xxx_messageInfo_FileCreateTransactionBody.Size(m) +} +func (m *FileCreateTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_FileCreateTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_FileCreateTransactionBody proto.InternalMessageInfo + +func (m *FileCreateTransactionBody) GetExpirationTime() *Timestamp { + if m != nil { + return m.ExpirationTime + } + return nil +} + +func (m *FileCreateTransactionBody) GetKeys() *KeyList { + if m != nil { + return m.Keys + } + return nil +} + +func (m *FileCreateTransactionBody) GetContents() []byte { + if m != nil { + return m.Contents + } + return nil +} + +func (m *FileCreateTransactionBody) GetShardID() *ShardID { + if m != nil { + return m.ShardID + } + return nil +} + +func (m *FileCreateTransactionBody) GetRealmID() *RealmID { + if m != nil { + return m.RealmID + } + return nil +} + +func (m *FileCreateTransactionBody) GetNewRealmAdminKey() *Key { + if m != nil { + return m.NewRealmAdminKey + } + return nil +} + +func init() { + proto.RegisterType((*FileCreateTransactionBody)(nil), "proto.FileCreateTransactionBody") +} + +func init() { proto.RegisterFile("FileCreate.proto", fileDescriptor_dce7f6c7fa88f371) } + +var fileDescriptor_dce7f6c7fa88f371 = []byte{ + // 263 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x8e, 0xcd, 0x4a, 0xc4, 0x30, + 0x14, 0x85, 0xe9, 0x38, 0x3f, 0x12, 0x65, 0x2c, 0x59, 0xc5, 0xae, 0x86, 0x2e, 0xa4, 0xab, 0x2e, + 0x14, 0xc4, 0xad, 0x75, 0x10, 0x86, 0x71, 0x21, 0xb1, 0x2f, 0x70, 0x6d, 0x2f, 0x36, 0x3a, 0x4d, + 0x42, 0x12, 0xd4, 0x3c, 0x8e, 0x6f, 0x2a, 0x4d, 0xe6, 0x87, 0xd1, 0x55, 0xb8, 0xe7, 0x7c, 0xdf, + 0x21, 0x24, 0x7d, 0x14, 0x1b, 0x7c, 0x30, 0x08, 0x0e, 0x4b, 0x6d, 0x94, 0x53, 0x74, 0x12, 0x9e, + 0x2c, 0xad, 0xc0, 0x8a, 0xa6, 0xf6, 0x1a, 0x6d, 0x2c, 0xb2, 0x8b, 0x5a, 0xf4, 0x68, 0x1d, 0xf4, + 0x3a, 0x06, 0xf9, 0xcf, 0x88, 0x5c, 0x1e, 0xf4, 0xda, 0x80, 0xb4, 0xd0, 0x38, 0xa1, 0x64, 0xa5, + 0x5a, 0x4f, 0xef, 0xc8, 0x1c, 0xbf, 0xb5, 0x30, 0x30, 0x24, 0x83, 0xca, 0x46, 0x8b, 0xa4, 0x38, + 0xbb, 0x4e, 0xa3, 0x5d, 0xee, 0xd7, 0xf8, 0x1f, 0x8e, 0xe6, 0x64, 0xfc, 0x81, 0xde, 0xb2, 0x93, + 0xc0, 0xcf, 0xb7, 0xfc, 0x1a, 0xfd, 0x93, 0xb0, 0x8e, 0x87, 0x8e, 0x66, 0xe4, 0xb4, 0x51, 0xd2, + 0xa1, 0x74, 0x96, 0x8d, 0x17, 0x49, 0x71, 0xce, 0xf7, 0x37, 0x2d, 0xc8, 0xcc, 0x76, 0x60, 0xda, + 0xd5, 0x92, 0x4d, 0x8e, 0x26, 0x5e, 0x62, 0xca, 0x77, 0xf5, 0x40, 0x1a, 0x84, 0x4d, 0xbf, 0x5a, + 0xb2, 0xe9, 0x11, 0xc9, 0x63, 0xca, 0x77, 0x35, 0xbd, 0x25, 0xa9, 0xc4, 0xaf, 0x10, 0xdf, 0xb7, + 0xbd, 0x90, 0x6b, 0xf4, 0x6c, 0x16, 0x14, 0x72, 0xf8, 0x1f, 0xff, 0xc7, 0x54, 0x57, 0x24, 0x6f, + 0x54, 0x5f, 0x76, 0xd8, 0xa2, 0x81, 0x0e, 0x6c, 0xf7, 0x66, 0x40, 0x77, 0x25, 0x68, 0xb1, 0xd5, + 0xde, 0xe1, 0x13, 0x9e, 0x93, 0xd7, 0x69, 0xb8, 0x6e, 0x7e, 0x03, 0x00, 0x00, 0xff, 0xff, 0xdc, + 0x30, 0xe9, 0xc6, 0x90, 0x01, 0x00, 0x00, +} diff --git a/proto/FileDelete.pb.go b/proto/FileDelete.pb.go new file mode 100644 index 000000000..fb7f7f77a --- /dev/null +++ b/proto/FileDelete.pb.go @@ -0,0 +1,81 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: FileDelete.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Delete the given file. After deletion, it will be marked as deleted and will have no contents. But information about it will continue to exist until it expires. A list of keys was given when the file was created. All the keys on that list must sign transactions to create or modify the file, but any single one of them can be used to delete the file. Each "key" on that list may itself be a threshold key containing other keys (including other threshold keys). +type FileDeleteTransactionBody struct { + FileID *FileID `protobuf:"bytes,2,opt,name=fileID,proto3" json:"fileID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileDeleteTransactionBody) Reset() { *m = FileDeleteTransactionBody{} } +func (m *FileDeleteTransactionBody) String() string { return proto.CompactTextString(m) } +func (*FileDeleteTransactionBody) ProtoMessage() {} +func (*FileDeleteTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_45ffe7db4276a630, []int{0} +} + +func (m *FileDeleteTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileDeleteTransactionBody.Unmarshal(m, b) +} +func (m *FileDeleteTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileDeleteTransactionBody.Marshal(b, m, deterministic) +} +func (m *FileDeleteTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileDeleteTransactionBody.Merge(m, src) +} +func (m *FileDeleteTransactionBody) XXX_Size() int { + return xxx_messageInfo_FileDeleteTransactionBody.Size(m) +} +func (m *FileDeleteTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_FileDeleteTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_FileDeleteTransactionBody proto.InternalMessageInfo + +func (m *FileDeleteTransactionBody) GetFileID() *FileID { + if m != nil { + return m.FileID + } + return nil +} + +func init() { + proto.RegisterType((*FileDeleteTransactionBody)(nil), "proto.FileDeleteTransactionBody") +} + +func init() { proto.RegisterFile("FileDelete.proto", fileDescriptor_45ffe7db4276a630) } + +var fileDescriptor_45ffe7db4276a630 = []byte{ + // 147 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x70, 0xcb, 0xcc, 0x49, + 0x75, 0x49, 0xcd, 0x49, 0x2d, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x53, + 0x52, 0x02, 0x4e, 0x89, 0xc5, 0x99, 0xc9, 0x21, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x09, 0x25, 0x27, + 0x2e, 0x49, 0x84, 0xe2, 0x90, 0xa2, 0xc4, 0xbc, 0xe2, 0xc4, 0xe4, 0x92, 0xcc, 0xfc, 0x3c, 0xa7, + 0xfc, 0x94, 0x4a, 0x21, 0x55, 0x2e, 0xb6, 0xb4, 0xcc, 0x9c, 0x54, 0x4f, 0x17, 0x09, 0x26, 0x05, + 0x46, 0x0d, 0x6e, 0x23, 0x5e, 0x88, 0x26, 0x3d, 0x37, 0xb0, 0x60, 0x10, 0x54, 0xd2, 0x49, 0x8d, + 0x4b, 0x29, 0x39, 0x3f, 0x57, 0x2f, 0x23, 0x35, 0x25, 0xb5, 0x28, 0x31, 0x23, 0xb1, 0x38, 0x23, + 0xbd, 0x28, 0xb1, 0x20, 0x43, 0x2f, 0xb1, 0x20, 0x13, 0xaa, 0x3e, 0x2b, 0xb1, 0x2c, 0x31, 0x80, + 0x31, 0x89, 0x0d, 0xcc, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x2a, 0x83, 0xe2, 0xdf, 0x9f, + 0x00, 0x00, 0x00, +} diff --git a/proto/FileGetContents.pb.go b/proto/FileGetContents.pb.go new file mode 100644 index 000000000..892bf75a4 --- /dev/null +++ b/proto/FileGetContents.pb.go @@ -0,0 +1,192 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: FileGetContents.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get the contents of a file. The content field is empty (no bytes) if the file is empty. +type FileGetContentsQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + FileID *FileID `protobuf:"bytes,2,opt,name=fileID,proto3" json:"fileID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileGetContentsQuery) Reset() { *m = FileGetContentsQuery{} } +func (m *FileGetContentsQuery) String() string { return proto.CompactTextString(m) } +func (*FileGetContentsQuery) ProtoMessage() {} +func (*FileGetContentsQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_13ec89ff2179f06a, []int{0} +} + +func (m *FileGetContentsQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileGetContentsQuery.Unmarshal(m, b) +} +func (m *FileGetContentsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileGetContentsQuery.Marshal(b, m, deterministic) +} +func (m *FileGetContentsQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileGetContentsQuery.Merge(m, src) +} +func (m *FileGetContentsQuery) XXX_Size() int { + return xxx_messageInfo_FileGetContentsQuery.Size(m) +} +func (m *FileGetContentsQuery) XXX_DiscardUnknown() { + xxx_messageInfo_FileGetContentsQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_FileGetContentsQuery proto.InternalMessageInfo + +func (m *FileGetContentsQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *FileGetContentsQuery) GetFileID() *FileID { + if m != nil { + return m.FileID + } + return nil +} + +// Response when the client sends the node FileGetContentsQuery +type FileGetContentsResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + FileContents *FileGetContentsResponse_FileContents `protobuf:"bytes,2,opt,name=fileContents,proto3" json:"fileContents,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileGetContentsResponse) Reset() { *m = FileGetContentsResponse{} } +func (m *FileGetContentsResponse) String() string { return proto.CompactTextString(m) } +func (*FileGetContentsResponse) ProtoMessage() {} +func (*FileGetContentsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_13ec89ff2179f06a, []int{1} +} + +func (m *FileGetContentsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileGetContentsResponse.Unmarshal(m, b) +} +func (m *FileGetContentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileGetContentsResponse.Marshal(b, m, deterministic) +} +func (m *FileGetContentsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileGetContentsResponse.Merge(m, src) +} +func (m *FileGetContentsResponse) XXX_Size() int { + return xxx_messageInfo_FileGetContentsResponse.Size(m) +} +func (m *FileGetContentsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_FileGetContentsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_FileGetContentsResponse proto.InternalMessageInfo + +func (m *FileGetContentsResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *FileGetContentsResponse) GetFileContents() *FileGetContentsResponse_FileContents { + if m != nil { + return m.FileContents + } + return nil +} + +type FileGetContentsResponse_FileContents struct { + FileID *FileID `protobuf:"bytes,1,opt,name=fileID,proto3" json:"fileID,omitempty"` + Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileGetContentsResponse_FileContents) Reset() { *m = FileGetContentsResponse_FileContents{} } +func (m *FileGetContentsResponse_FileContents) String() string { return proto.CompactTextString(m) } +func (*FileGetContentsResponse_FileContents) ProtoMessage() {} +func (*FileGetContentsResponse_FileContents) Descriptor() ([]byte, []int) { + return fileDescriptor_13ec89ff2179f06a, []int{1, 0} +} + +func (m *FileGetContentsResponse_FileContents) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileGetContentsResponse_FileContents.Unmarshal(m, b) +} +func (m *FileGetContentsResponse_FileContents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileGetContentsResponse_FileContents.Marshal(b, m, deterministic) +} +func (m *FileGetContentsResponse_FileContents) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileGetContentsResponse_FileContents.Merge(m, src) +} +func (m *FileGetContentsResponse_FileContents) XXX_Size() int { + return xxx_messageInfo_FileGetContentsResponse_FileContents.Size(m) +} +func (m *FileGetContentsResponse_FileContents) XXX_DiscardUnknown() { + xxx_messageInfo_FileGetContentsResponse_FileContents.DiscardUnknown(m) +} + +var xxx_messageInfo_FileGetContentsResponse_FileContents proto.InternalMessageInfo + +func (m *FileGetContentsResponse_FileContents) GetFileID() *FileID { + if m != nil { + return m.FileID + } + return nil +} + +func (m *FileGetContentsResponse_FileContents) GetContents() []byte { + if m != nil { + return m.Contents + } + return nil +} + +func init() { + proto.RegisterType((*FileGetContentsQuery)(nil), "proto.FileGetContentsQuery") + proto.RegisterType((*FileGetContentsResponse)(nil), "proto.FileGetContentsResponse") + proto.RegisterType((*FileGetContentsResponse_FileContents)(nil), "proto.FileGetContentsResponse.FileContents") +} + +func init() { proto.RegisterFile("FileGetContents.proto", fileDescriptor_13ec89ff2179f06a) } + +var fileDescriptor_13ec89ff2179f06a = []byte{ + // 248 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x8f, 0xd1, 0x4a, 0x03, 0x31, + 0x10, 0x45, 0x89, 0xe0, 0x22, 0xe3, 0x0a, 0x1a, 0x5a, 0x2c, 0xfb, 0x24, 0x0b, 0x8a, 0x28, 0xee, + 0x83, 0xfe, 0x41, 0x95, 0xaa, 0x4f, 0xda, 0xe0, 0x0f, 0x8c, 0xdb, 0xd1, 0x44, 0xea, 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4f, 0x7c, 0x14, 0xcf, 0x45, 0x9a, 0xae, 0xbe, 0x03, 0x00, 0x00, 0xff, 0xff, + 0x47, 0xfd, 0xf5, 0xd6, 0xe3, 0x01, 0x00, 0x00, +} diff --git a/proto/FileGetInfo.pb.go b/proto/FileGetInfo.pb.go new file mode 100644 index 000000000..153668d76 --- /dev/null +++ b/proto/FileGetInfo.pb.go @@ -0,0 +1,220 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: FileGetInfo.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get all of the information about a file, except for its contents. When a file expires, it no longer exists, and there will be no info about it, and the fileInfo field will be blank. If a transaction or smart contract deletes the file, but it has not yet expired, then the fileInfo field will be non-empty, the deleted field will be true, its size will be 0, and its contents will be empty. Note that each file has a FileID, but does not have a filename. +type FileGetInfoQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + FileID *FileID `protobuf:"bytes,2,opt,name=fileID,proto3" json:"fileID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileGetInfoQuery) Reset() { *m = FileGetInfoQuery{} } +func (m *FileGetInfoQuery) String() string { return proto.CompactTextString(m) } +func (*FileGetInfoQuery) ProtoMessage() {} +func (*FileGetInfoQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_63e334415d6856ea, []int{0} +} + +func (m *FileGetInfoQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileGetInfoQuery.Unmarshal(m, b) +} +func (m *FileGetInfoQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileGetInfoQuery.Marshal(b, m, deterministic) +} +func (m *FileGetInfoQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileGetInfoQuery.Merge(m, src) +} +func (m *FileGetInfoQuery) XXX_Size() int { + return xxx_messageInfo_FileGetInfoQuery.Size(m) +} +func (m *FileGetInfoQuery) XXX_DiscardUnknown() { + xxx_messageInfo_FileGetInfoQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_FileGetInfoQuery proto.InternalMessageInfo + +func (m *FileGetInfoQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *FileGetInfoQuery) GetFileID() *FileID { + if m != nil { + return m.FileID + } + return nil +} + +// Response when the client sends the node FileGetInfoQuery +type FileGetInfoResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + FileInfo *FileGetInfoResponse_FileInfo `protobuf:"bytes,2,opt,name=fileInfo,proto3" json:"fileInfo,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileGetInfoResponse) Reset() { *m = FileGetInfoResponse{} } +func (m *FileGetInfoResponse) String() string { return proto.CompactTextString(m) } +func (*FileGetInfoResponse) ProtoMessage() {} +func (*FileGetInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_63e334415d6856ea, []int{1} +} + +func (m *FileGetInfoResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileGetInfoResponse.Unmarshal(m, b) +} +func (m *FileGetInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileGetInfoResponse.Marshal(b, m, deterministic) +} +func (m *FileGetInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileGetInfoResponse.Merge(m, src) +} +func (m *FileGetInfoResponse) XXX_Size() int { + return xxx_messageInfo_FileGetInfoResponse.Size(m) +} +func (m *FileGetInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_FileGetInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_FileGetInfoResponse proto.InternalMessageInfo + +func (m *FileGetInfoResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *FileGetInfoResponse) GetFileInfo() *FileGetInfoResponse_FileInfo { + if m != nil { + return m.FileInfo + } + return nil +} + +type FileGetInfoResponse_FileInfo struct { + FileID *FileID `protobuf:"bytes,1,opt,name=fileID,proto3" json:"fileID,omitempty"` + Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + ExpirationTime *Timestamp `protobuf:"bytes,3,opt,name=expirationTime,proto3" json:"expirationTime,omitempty"` + Deleted bool `protobuf:"varint,4,opt,name=deleted,proto3" json:"deleted,omitempty"` + Keys *KeyList `protobuf:"bytes,5,opt,name=keys,proto3" json:"keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileGetInfoResponse_FileInfo) Reset() { *m = FileGetInfoResponse_FileInfo{} } +func (m *FileGetInfoResponse_FileInfo) String() string { return proto.CompactTextString(m) } +func (*FileGetInfoResponse_FileInfo) ProtoMessage() {} +func (*FileGetInfoResponse_FileInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_63e334415d6856ea, []int{1, 0} +} + +func (m *FileGetInfoResponse_FileInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileGetInfoResponse_FileInfo.Unmarshal(m, b) +} +func (m *FileGetInfoResponse_FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileGetInfoResponse_FileInfo.Marshal(b, m, deterministic) +} +func (m *FileGetInfoResponse_FileInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileGetInfoResponse_FileInfo.Merge(m, src) +} +func (m *FileGetInfoResponse_FileInfo) XXX_Size() int { + return xxx_messageInfo_FileGetInfoResponse_FileInfo.Size(m) +} +func (m *FileGetInfoResponse_FileInfo) XXX_DiscardUnknown() { + xxx_messageInfo_FileGetInfoResponse_FileInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_FileGetInfoResponse_FileInfo proto.InternalMessageInfo + +func (m *FileGetInfoResponse_FileInfo) GetFileID() *FileID { + if m != nil { + return m.FileID + } + return nil +} + +func (m *FileGetInfoResponse_FileInfo) GetSize() int64 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *FileGetInfoResponse_FileInfo) GetExpirationTime() *Timestamp { + if m != nil { + return m.ExpirationTime + } + return nil +} + +func (m *FileGetInfoResponse_FileInfo) GetDeleted() bool { + if m != nil { + return m.Deleted + } + return false +} + +func (m *FileGetInfoResponse_FileInfo) GetKeys() *KeyList { + if m != nil { + return m.Keys + } + return nil +} + +func init() { + proto.RegisterType((*FileGetInfoQuery)(nil), "proto.FileGetInfoQuery") + proto.RegisterType((*FileGetInfoResponse)(nil), "proto.FileGetInfoResponse") + proto.RegisterType((*FileGetInfoResponse_FileInfo)(nil), "proto.FileGetInfoResponse.FileInfo") +} + +func init() { proto.RegisterFile("FileGetInfo.proto", fileDescriptor_63e334415d6856ea) } + +var fileDescriptor_63e334415d6856ea = []byte{ + // 320 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x4f, 0x4b, 0x03, 0x31, + 0x10, 0xc5, 0xd9, 0xfe, 0xb3, 0x8c, 0x58, 0xdb, 0xa8, 0xb0, 0xf4, 0x54, 0x56, 0x94, 0x22, 0xb8, + 0x07, 0xbd, 0x78, 0x13, 0x8a, 0x54, 0x8b, 0x1e, 0x34, 0xf4, 0x0b, 0xc4, 0xee, 0xd4, 0x8d, 0xb6, + 0x9b, 0x90, 0x44, 0x71, 0xfd, 0x6e, 0x1e, 0xfd, 0x5e, 0xd2, 0x69, 0x5a, 0xe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 0x16, 0xc3, 0x4e, 0x86, 0x0b, 0x74, 0x98, 0xc5, 0x8d, 0x41, 0x34, 0x6c, 0xf3, + 0xcd, 0x93, 0x25, 0xd0, 0x78, 0xc3, 0xd2, 0xc6, 0x4d, 0x4a, 0xea, 0xf8, 0xa4, 0x7b, 0x2c, 0x1f, + 0xa4, 0x75, 0x9c, 0x66, 0xa3, 0x53, 0x48, 0x66, 0x6a, 0x99, 0xe6, 0x98, 0xa1, 0x11, 0xb9, 0xb0, + 0xf9, 0x8b, 0x11, 0x3a, 0x4f, 0x85, 0x96, 0xde, 0xfe, 0x2a, 0x3e, 0xc4, 0x63, 0xf4, 0xdc, 0xa2, + 0xd7, 0xe5, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc3, 0xc5, 0xac, 0xd8, 0x45, 0x02, 0x00, 0x00, +} diff --git a/proto/FileService.pb.go b/proto/FileService.pb.go new file mode 100644 index 000000000..399c59434 --- /dev/null +++ b/proto/FileService.pb.go @@ -0,0 +1,379 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: FileService.proto + +package proto + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +func init() { proto.RegisterFile("FileService.proto", fileDescriptor_5003a56c7e235889) } + +var fileDescriptor_5003a56c7e235889 = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xcd, 0x4a, 0x03, 0x31, + 0x14, 0x85, 0x17, 0xa2, 0x8b, 0x3b, 0x75, 0xa4, 0xb3, 0x33, 0x0f, 0x20, 0x2e, 0x24, 0x82, 0x6e, + 0x45, 0x45, 0x45, 0x70, 0xe9, 0xdf, 0x03, 0x5c, 0x93, 0x6b, 0x33, 0xd2, 0xde, 0x84, 0x24, 0x2d, + 0xf4, 0x91, 0x7d, 0x0b, 0x99, 0x24, 0x95, 0xa0, 0x0b, 0xe9, 0xb8, 0x9a, 0xc9, 0xb9, 0xe7, 0x3b, + 0x27, 0x09, 0x81, 0xe9, 0x7d, 0x3f, 0xa7, 0x67, 0xf2, 0xab, 0x5e, 0x91, 0x74, 0xde, 0x46, 0xdb, + 0xed, 0xa6, 0x8f, 0x68, 0x1e, 0x97, 0xe4, 0xd7, 0x59, 0x13, 0xed, 0x13, 0x05, 0x67, 0x39, 0x14, + 0x8f, 0x38, 0x7c, 0xf1, 0xc8, 0x01, 0x55, 0xec, 0x2d, 0xff, 0x18, 0x4d, 0xab, 0x51, 0x96, 0xce, + 0x3e, 0x77, 0xa0, 0xa9, 0x7a, 0xba, 0x0b, 0x00, 0xe5, 0x09, 0x23, 0x0d, 0x62, 0xd7, 0x65, 0x97, + 0xac, 0x38, 0x21, 0x7e, 0x6b, 0x9b, 0x9a, 0x81, 0x5e, 0x3a, 0xfd, 0x0f, 0x5a, 0xd3, 0x9c, 0x46, + 0xd2, 0x57, 0xb0, 0x8f, 0xce, 0x11, 0xeb, 0x5b, 0xcb, 0x91, 0x38, 0x6e, 0x1d, 0x70, 0x0a, 0xed, + 0x8c, 0xe2, 0xd0, 0xbd, 0x49, 0x98, 0x14, 0x77, 0xba, 0x6e, 0x71, 0x50, 0x56, 0xdf, 0xc0, 0x09, + 0x34, 0x05, 0x78, 0xe0, 0x77, 0xfb, 0x97, 0xfb, 0x12, 0x26, 0x61, 0x1d, 0x22, 0x2d, 0xee, 0xd2, + 0x19, 0xb7, 0xde, 0xde, 0x35, 0xb4, 0x99, 0x7f, 0x65, 0x3d, 0x2a, 0xe1, 0xe6, 0x18, 0x8e, 0x94, + 0x5d, 0x48, 0x43, 0x9a, 0x3c, 0x1a, 0x0c, 0x66, 0xe6, 0xd1, 0x19, 0x19, 0xea, 0x27, 0x26, 0x3f, + 0x70, 0x85, 0x6f, 0x7b, 0xe9, 0xff, 0xfc, 0x2b, 0x00, 0x00, 0xff, 0xff, 0xee, 0xb2, 0x9f, 0x39, + 0x83, 0x02, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// FileServiceClient is the client API for FileService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type FileServiceClient interface { + CreateFile(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + UpdateFile(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + DeleteFile(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + AppendContent(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + GetFileContent(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + GetFileInfo(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + SystemDelete(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + SystemUndelete(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) +} + +type fileServiceClient struct { + cc *grpc.ClientConn +} + +func NewFileServiceClient(cc *grpc.ClientConn) FileServiceClient { + return &fileServiceClient{cc} +} + +func (c *fileServiceClient) CreateFile(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.FileService/createFile", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fileServiceClient) UpdateFile(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.FileService/updateFile", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fileServiceClient) DeleteFile(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.FileService/deleteFile", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fileServiceClient) AppendContent(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.FileService/appendContent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fileServiceClient) GetFileContent(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.FileService/getFileContent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fileServiceClient) GetFileInfo(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.FileService/getFileInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fileServiceClient) SystemDelete(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.FileService/systemDelete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fileServiceClient) SystemUndelete(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.FileService/systemUndelete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// FileServiceServer is the server API for FileService service. +type FileServiceServer interface { + CreateFile(context.Context, *Transaction) (*TransactionResponse, error) + UpdateFile(context.Context, *Transaction) (*TransactionResponse, error) + DeleteFile(context.Context, *Transaction) (*TransactionResponse, error) + AppendContent(context.Context, *Transaction) (*TransactionResponse, error) + GetFileContent(context.Context, *Query) (*Response, error) + GetFileInfo(context.Context, *Query) (*Response, error) + SystemDelete(context.Context, *Transaction) (*TransactionResponse, error) + SystemUndelete(context.Context, *Transaction) (*TransactionResponse, error) +} + +// UnimplementedFileServiceServer can be embedded to have forward compatible implementations. +type UnimplementedFileServiceServer struct { +} + +func (*UnimplementedFileServiceServer) CreateFile(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateFile not implemented") +} +func (*UnimplementedFileServiceServer) UpdateFile(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateFile not implemented") +} +func (*UnimplementedFileServiceServer) DeleteFile(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteFile not implemented") +} +func (*UnimplementedFileServiceServer) AppendContent(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AppendContent not implemented") +} +func (*UnimplementedFileServiceServer) GetFileContent(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetFileContent not implemented") +} +func (*UnimplementedFileServiceServer) GetFileInfo(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetFileInfo not implemented") +} +func (*UnimplementedFileServiceServer) SystemDelete(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SystemDelete not implemented") +} +func (*UnimplementedFileServiceServer) SystemUndelete(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SystemUndelete not implemented") +} + +func RegisterFileServiceServer(s *grpc.Server, srv FileServiceServer) { + s.RegisterService(&_FileService_serviceDesc, srv) +} + +func _FileService_CreateFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FileServiceServer).CreateFile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.FileService/CreateFile", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServiceServer).CreateFile(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _FileService_UpdateFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FileServiceServer).UpdateFile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.FileService/UpdateFile", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServiceServer).UpdateFile(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _FileService_DeleteFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FileServiceServer).DeleteFile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.FileService/DeleteFile", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServiceServer).DeleteFile(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _FileService_AppendContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FileServiceServer).AppendContent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.FileService/AppendContent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServiceServer).AppendContent(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _FileService_GetFileContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FileServiceServer).GetFileContent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.FileService/GetFileContent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServiceServer).GetFileContent(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _FileService_GetFileInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FileServiceServer).GetFileInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.FileService/GetFileInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServiceServer).GetFileInfo(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _FileService_SystemDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FileServiceServer).SystemDelete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.FileService/SystemDelete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServiceServer).SystemDelete(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _FileService_SystemUndelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FileServiceServer).SystemUndelete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.FileService/SystemUndelete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServiceServer).SystemUndelete(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +var _FileService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "proto.FileService", + HandlerType: (*FileServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "createFile", + Handler: _FileService_CreateFile_Handler, + }, + { + MethodName: "updateFile", + Handler: _FileService_UpdateFile_Handler, + }, + { + MethodName: "deleteFile", + Handler: _FileService_DeleteFile_Handler, + }, + { + MethodName: "appendContent", + Handler: _FileService_AppendContent_Handler, + }, + { + MethodName: "getFileContent", + Handler: _FileService_GetFileContent_Handler, + }, + { + MethodName: "getFileInfo", + Handler: _FileService_GetFileInfo_Handler, + }, + { + MethodName: "systemDelete", + Handler: _FileService_SystemDelete_Handler, + }, + { + MethodName: "systemUndelete", + Handler: _FileService_SystemUndelete_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "FileService.proto", +} diff --git a/proto/FileUpdate.pb.go b/proto/FileUpdate.pb.go new file mode 100644 index 000000000..dece71ae3 --- /dev/null +++ b/proto/FileUpdate.pb.go @@ -0,0 +1,112 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: FileUpdate.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Modify some of the metadata for a file. Any null field is ignored (left unchanged). Any field that is null is left unchanged. If contents is non-null, then the file's contents will be replaced with the given bytes. This transaction must be signed by all the keys for that file. If the transaction is modifying the keys field, then it must be signed by all the keys in both the old list and the new list. +// +// If a file was created without ANY keys in the keys field, ONLY the expirationTime of the file can be changed using this call. The file contents or its keys cannot be changed. +type FileUpdateTransactionBody struct { + FileID *FileID `protobuf:"bytes,1,opt,name=fileID,proto3" json:"fileID,omitempty"` + ExpirationTime *Timestamp `protobuf:"bytes,2,opt,name=expirationTime,proto3" json:"expirationTime,omitempty"` + Keys *KeyList `protobuf:"bytes,3,opt,name=keys,proto3" json:"keys,omitempty"` + Contents []byte `protobuf:"bytes,4,opt,name=contents,proto3" json:"contents,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileUpdateTransactionBody) Reset() { *m = FileUpdateTransactionBody{} } +func (m *FileUpdateTransactionBody) String() string { return proto.CompactTextString(m) } +func (*FileUpdateTransactionBody) ProtoMessage() {} +func (*FileUpdateTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_246ca33d8ea81c59, []int{0} +} + +func (m *FileUpdateTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileUpdateTransactionBody.Unmarshal(m, b) +} +func (m *FileUpdateTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileUpdateTransactionBody.Marshal(b, m, deterministic) +} +func (m *FileUpdateTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileUpdateTransactionBody.Merge(m, src) +} +func (m *FileUpdateTransactionBody) XXX_Size() int { + return xxx_messageInfo_FileUpdateTransactionBody.Size(m) +} +func (m *FileUpdateTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_FileUpdateTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_FileUpdateTransactionBody proto.InternalMessageInfo + +func (m *FileUpdateTransactionBody) GetFileID() *FileID { + if m != nil { + return m.FileID + } + return nil +} + +func (m *FileUpdateTransactionBody) GetExpirationTime() *Timestamp { + if m != nil { + return m.ExpirationTime + } + return nil +} + +func (m *FileUpdateTransactionBody) GetKeys() *KeyList { + if m != nil { + return m.Keys + } + return nil +} + +func (m *FileUpdateTransactionBody) GetContents() []byte { + if m != nil { + return m.Contents + } + return nil +} + +func init() { + proto.RegisterType((*FileUpdateTransactionBody)(nil), "proto.FileUpdateTransactionBody") +} + +func init() { proto.RegisterFile("FileUpdate.proto", fileDescriptor_246ca33d8ea81c59) } + +var fileDescriptor_246ca33d8ea81c59 = []byte{ + // 228 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8d, 0x41, 0x4b, 0xc4, 0x30, + 0x10, 0x85, 0x89, 0xae, 0x8b, 0x44, 0x5d, 0x4b, 0x4e, 0xb5, 0xa7, 0xa5, 0xa0, 0xec, 0xa9, 0x07, + 0xbd, 0x78, 0x2e, 0xb2, 0x20, 0x7a, 0x90, 0x52, 0x7f, 0xc0, 0xd8, 0x8e, 0x76, 0x74, 0x9b, 0x84, + 0x4c, 0x10, 0xf3, 0xdf, 0xfc, 0x71, 0xb2, 0x69, 0xa8, 0xb0, 0xa7, 0xe1, 0xbd, 0xf7, 0xbd, 0x79, + 0x32, 0xdb, 0xd2, 0x0e, 0x5f, 0x6d, 0x0f, 0x1e, 0x2b, 0xeb, 0x8c, 0x37, 0xea, 0x24, 0x9e, 0x22, + 0xab, 0x81, 0xa9, 0x6b, 0x83, 0x45, 0x9e, 0x82, 0xe2, 0xb2, 0xa5, 0x11, 0xd9, 0xc3, 0x68, 0x27, + 0xa3, 0xfc, 0x15, 0xf2, 0xea, 0xbf, 0xde, 0x3a, 0xd0, 0x0c, 0x9d, 0x27, 0xa3, 0x6b, 0xd3, 0x07, + 0x75, 0x2d, 0x97, 0xef, 0xb4, 0xc3, 0xc7, 0x87, 0x5c, 0xac, 0xc5, 0xe6, 0xec, 0xf6, 0x62, 0x6a, + 0x55, 0xdb, 0x68, 0x36, 0x29, 0x54, 0xf7, 0x72, 0x85, 0x3f, 0x96, 0x1c, 0xec, 0x8b, 0xfb, 0x85, + 0xfc, 0x28, 0xe2, 0x59, 0xc2, 0xe7, 0xd1, 0xe6, 0x80, 0x53, 0xa5, 0x5c, 0x7c, 0x61, 0xe0, 0xfc, + 0x38, 0xf2, 0xab, 0xc4, 0x3f, 0x61, 0x78, 0x26, 0xf6, 0x4d, 0xcc, 0x54, 0x21, 0x4f, 0x3b, 0xa3, + 0x3d, 0x6a, 0xcf, 0xf9, 0x62, 0x2d, 0x36, 0xe7, 0xcd, 0xac, 0xeb, 0x1b, 0x59, 0x76, 0x66, 0xac, + 0x06, 0xec, 0xd1, 0xc1, 0x00, 0x3c, 0x7c, 0x38, 0xb0, 0x43, 0x05, 0x96, 0xd2, 0xab, 0x4f, 0xf8, + 0x86, 0x17, 0xf1, 0xb6, 0x8c, 0xea, 0xee, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x8d, 0xe5, 0x30, 0xb3, + 0x2b, 0x01, 0x00, 0x00, +} diff --git a/proto/Freeze.pb.go b/proto/Freeze.pb.go new file mode 100644 index 000000000..bb4cce2ee --- /dev/null +++ b/proto/Freeze.pb.go @@ -0,0 +1,106 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: Freeze.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Set the freezing period in which the platform will stop creating events and accepting transactions. This is used before safely shut down the platform for maintenance. +type FreezeTransactionBody struct { + StartHour int32 `protobuf:"varint,1,opt,name=startHour,proto3" json:"startHour,omitempty"` + StartMin int32 `protobuf:"varint,2,opt,name=startMin,proto3" json:"startMin,omitempty"` + EndHour int32 `protobuf:"varint,3,opt,name=endHour,proto3" json:"endHour,omitempty"` + EndMin int32 `protobuf:"varint,4,opt,name=endMin,proto3" json:"endMin,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FreezeTransactionBody) Reset() { *m = FreezeTransactionBody{} } +func (m *FreezeTransactionBody) String() string { return proto.CompactTextString(m) } +func (*FreezeTransactionBody) ProtoMessage() {} +func (*FreezeTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_059f0f7fc660d11a, []int{0} +} + +func (m *FreezeTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FreezeTransactionBody.Unmarshal(m, b) +} +func (m *FreezeTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FreezeTransactionBody.Marshal(b, m, deterministic) +} +func (m *FreezeTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_FreezeTransactionBody.Merge(m, src) +} +func (m *FreezeTransactionBody) XXX_Size() int { + return xxx_messageInfo_FreezeTransactionBody.Size(m) +} +func (m *FreezeTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_FreezeTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_FreezeTransactionBody proto.InternalMessageInfo + +func (m *FreezeTransactionBody) GetStartHour() int32 { + if m != nil { + return m.StartHour + } + return 0 +} + +func (m *FreezeTransactionBody) GetStartMin() int32 { + if m != nil { + return m.StartMin + } + return 0 +} + +func (m *FreezeTransactionBody) GetEndHour() int32 { + if m != nil { + return m.EndHour + } + return 0 +} + +func (m *FreezeTransactionBody) GetEndMin() int32 { + if m != nil { + return m.EndMin + } + return 0 +} + +func init() { + proto.RegisterType((*FreezeTransactionBody)(nil), "proto.FreezeTransactionBody") +} + +func init() { proto.RegisterFile("Freeze.proto", fileDescriptor_059f0f7fc660d11a) } + +var fileDescriptor_059f0f7fc660d11a = []byte{ + // 168 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x71, 0x2b, 0x4a, 0x4d, + 0xad, 0x4a, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x53, 0x4a, 0xcd, 0x8c, 0x5c, + 0xa2, 0x10, 0xf1, 0x90, 0xa2, 0xc4, 0xbc, 0xe2, 0xc4, 0xe4, 0x92, 0xcc, 0xfc, 0x3c, 0xa7, 0xfc, + 0x94, 0x4a, 0x21, 0x19, 0x2e, 0xce, 0xe2, 0x92, 0xc4, 0xa2, 0x12, 0x8f, 0xfc, 0xd2, 0x22, 0x09, + 0x46, 0x05, 0x46, 0x0d, 0xd6, 0x20, 0x84, 0x80, 0x90, 0x14, 0x17, 0x07, 0x98, 0xe3, 0x9b, 0x99, + 0x27, 0xc1, 0x04, 0x96, 0x84, 0xf3, 0x85, 0x24, 0xb8, 0xd8, 0x53, 0xf3, 0x52, 0xc0, 0xfa, 0x98, + 0xc1, 0x52, 0x30, 0xae, 0x90, 0x18, 0x17, 0x5b, 0x6a, 0x5e, 0x0a, 0x48, 0x0f, 0x0b, 0x58, 0x02, + 0xca, 0x73, 0x52, 0xe3, 0x52, 0x4a, 0xce, 0xcf, 0xd5, 0xcb, 0x48, 0x4d, 0x49, 0x2d, 0x4a, 0xcc, + 0x48, 0x2c, 0xce, 0x48, 0x2f, 0x4a, 0x2c, 0xc8, 0xd0, 0x4b, 0x2c, 0xc8, 0x84, 0xb8, 0x56, 0x2f, + 0x2b, 0xb1, 0x2c, 0x31, 0x80, 0x31, 0x89, 0x0d, 0xcc, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, + 0xe2, 0x1f, 0x29, 0x18, 0xcb, 0x00, 0x00, 0x00, +} diff --git a/proto/FreezeService.pb.go b/proto/FreezeService.pb.go new file mode 100644 index 000000000..332887798 --- /dev/null +++ b/proto/FreezeService.pb.go @@ -0,0 +1,120 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: FreezeService.proto + +package proto + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +func init() { proto.RegisterFile("FreezeService.proto", fileDescriptor_924c864e465f17c1) } + +var fileDescriptor_924c864e465f17c1 = []byte{ + // 140 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x76, 0x2b, 0x4a, 0x4d, + 0xad, 0x4a, 0x0d, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x62, 0x05, 0x53, 0x52, 0x92, 0x21, 0x45, 0x89, 0x79, 0xc5, 0x89, 0xc9, 0x25, 0x99, 0xf9, 0x79, + 0x41, 0xa9, 0xc5, 0x05, 0xf9, 0x79, 0xc5, 0x50, 0x15, 0x52, 0x82, 0x48, 0x52, 0x10, 0x21, 0x23, + 0x4f, 0x2e, 0x5e, 0x14, 0xb3, 0x84, 0x2c, 0xb8, 0xd8, 0xd2, 0xc0, 0x02, 0x42, 0x42, 0x10, 0x25, + 0x7a, 0x48, 0x9a, 0xa4, 0xa4, 0x30, 0xc5, 0x60, 0x76, 0x38, 0x69, 0x70, 0xa9, 0x25, 0xe7, 0xe7, + 0xea, 0x65, 0xa4, 0xa6, 0xa4, 0x16, 0x25, 0x66, 0x24, 0x16, 0x67, 0xa4, 0x17, 0x25, 0x16, 0x64, + 0xe8, 0x15, 0x23, 0x3b, 0x52, 0x2f, 0x2b, 0xb1, 0x2c, 0x31, 0x89, 0x0d, 0xcc, 0x36, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0x2f, 0xea, 0xab, 0x2e, 0xc7, 0x00, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// FreezeServiceClient is the client API for FreezeService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type FreezeServiceClient interface { + Freeze(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) +} + +type freezeServiceClient struct { + cc *grpc.ClientConn +} + +func NewFreezeServiceClient(cc *grpc.ClientConn) FreezeServiceClient { + return &freezeServiceClient{cc} +} + +func (c *freezeServiceClient) Freeze(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.FreezeService/freeze", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// FreezeServiceServer is the server API for FreezeService service. +type FreezeServiceServer interface { + Freeze(context.Context, *Transaction) (*TransactionResponse, error) +} + +// UnimplementedFreezeServiceServer can be embedded to have forward compatible implementations. +type UnimplementedFreezeServiceServer struct { +} + +func (*UnimplementedFreezeServiceServer) Freeze(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Freeze not implemented") +} + +func RegisterFreezeServiceServer(s *grpc.Server, srv FreezeServiceServer) { + s.RegisterService(&_FreezeService_serviceDesc, srv) +} + +func _FreezeService_Freeze_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FreezeServiceServer).Freeze(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.FreezeService/Freeze", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FreezeServiceServer).Freeze(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +var _FreezeService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "proto.FreezeService", + HandlerType: (*FreezeServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "freeze", + Handler: _FreezeService_Freeze_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "FreezeService.proto", +} diff --git a/proto/GetByKey.pb.go b/proto/GetByKey.pb.go new file mode 100644 index 000000000..42a9f11f8 --- /dev/null +++ b/proto/GetByKey.pb.go @@ -0,0 +1,261 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: GetByKey.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get all accounts, claims, files, and smart contract instances whose associated keys include the given Key. The given Key must not be a contractID or a ThresholdKey. This is not yet implemented in the API, but will be in the future. +type GetByKeyQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Key *Key `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetByKeyQuery) Reset() { *m = GetByKeyQuery{} } +func (m *GetByKeyQuery) String() string { return proto.CompactTextString(m) } +func (*GetByKeyQuery) ProtoMessage() {} +func (*GetByKeyQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_0c7ecee7679d1dfd, []int{0} +} + +func (m *GetByKeyQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetByKeyQuery.Unmarshal(m, b) +} +func (m *GetByKeyQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetByKeyQuery.Marshal(b, m, deterministic) +} +func (m *GetByKeyQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetByKeyQuery.Merge(m, src) +} +func (m *GetByKeyQuery) XXX_Size() int { + return xxx_messageInfo_GetByKeyQuery.Size(m) +} +func (m *GetByKeyQuery) XXX_DiscardUnknown() { + xxx_messageInfo_GetByKeyQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_GetByKeyQuery proto.InternalMessageInfo + +func (m *GetByKeyQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *GetByKeyQuery) GetKey() *Key { + if m != nil { + return m.Key + } + return nil +} + +// the ID for a single entity (account, claim, file, or smart contract instance) +type EntityID struct { + // Types that are valid to be assigned to Entity: + // *EntityID_AccountID + // *EntityID_Claim + // *EntityID_FileID + // *EntityID_ContractID + Entity isEntityID_Entity `protobuf_oneof:"entity"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EntityID) Reset() { *m = EntityID{} } +func (m *EntityID) String() string { return proto.CompactTextString(m) } +func (*EntityID) ProtoMessage() {} +func (*EntityID) Descriptor() ([]byte, []int) { + return fileDescriptor_0c7ecee7679d1dfd, []int{1} +} + +func (m *EntityID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EntityID.Unmarshal(m, b) +} +func (m *EntityID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EntityID.Marshal(b, m, deterministic) +} +func (m *EntityID) XXX_Merge(src proto.Message) { + xxx_messageInfo_EntityID.Merge(m, src) +} +func (m *EntityID) XXX_Size() int { + return xxx_messageInfo_EntityID.Size(m) +} +func (m *EntityID) XXX_DiscardUnknown() { + xxx_messageInfo_EntityID.DiscardUnknown(m) +} + +var xxx_messageInfo_EntityID proto.InternalMessageInfo + +type isEntityID_Entity interface { + isEntityID_Entity() +} + +type EntityID_AccountID struct { + AccountID *AccountID `protobuf:"bytes,1,opt,name=accountID,proto3,oneof"` +} + +type EntityID_Claim struct { + Claim *Claim `protobuf:"bytes,2,opt,name=claim,proto3,oneof"` +} + +type EntityID_FileID struct { + FileID *FileID `protobuf:"bytes,3,opt,name=fileID,proto3,oneof"` +} + +type EntityID_ContractID struct { + ContractID *ContractID `protobuf:"bytes,4,opt,name=contractID,proto3,oneof"` +} + +func (*EntityID_AccountID) isEntityID_Entity() {} + +func (*EntityID_Claim) isEntityID_Entity() {} + +func (*EntityID_FileID) isEntityID_Entity() {} + +func (*EntityID_ContractID) isEntityID_Entity() {} + +func (m *EntityID) GetEntity() isEntityID_Entity { + if m != nil { + return m.Entity + } + return nil +} + +func (m *EntityID) GetAccountID() *AccountID { + if x, ok := m.GetEntity().(*EntityID_AccountID); ok { + return x.AccountID + } + return nil +} + +func (m *EntityID) GetClaim() *Claim { + if x, ok := m.GetEntity().(*EntityID_Claim); ok { + return x.Claim + } + return nil +} + +func (m *EntityID) GetFileID() *FileID { + if x, ok := m.GetEntity().(*EntityID_FileID); ok { + return x.FileID + } + return nil +} + +func (m *EntityID) GetContractID() *ContractID { + if x, ok := m.GetEntity().(*EntityID_ContractID); ok { + return x.ContractID + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*EntityID) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*EntityID_AccountID)(nil), + (*EntityID_Claim)(nil), + (*EntityID_FileID)(nil), + (*EntityID_ContractID)(nil), + } +} + +// Response when the client sends the node GetByKeyQuery +type GetByKeyResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Entities []*EntityID `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetByKeyResponse) Reset() { *m = GetByKeyResponse{} } +func (m *GetByKeyResponse) String() string { return proto.CompactTextString(m) } +func (*GetByKeyResponse) ProtoMessage() {} +func (*GetByKeyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_0c7ecee7679d1dfd, []int{2} +} + +func (m *GetByKeyResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetByKeyResponse.Unmarshal(m, b) +} +func (m *GetByKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetByKeyResponse.Marshal(b, m, deterministic) +} +func (m *GetByKeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetByKeyResponse.Merge(m, src) +} +func (m *GetByKeyResponse) XXX_Size() int { + return xxx_messageInfo_GetByKeyResponse.Size(m) +} +func (m *GetByKeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetByKeyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetByKeyResponse proto.InternalMessageInfo + +func (m *GetByKeyResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *GetByKeyResponse) GetEntities() []*EntityID { + if m != nil { + return m.Entities + } + return nil +} + +func init() { + proto.RegisterType((*GetByKeyQuery)(nil), "proto.GetByKeyQuery") + proto.RegisterType((*EntityID)(nil), "proto.EntityID") + proto.RegisterType((*GetByKeyResponse)(nil), "proto.GetByKeyResponse") +} + +func init() { proto.RegisterFile("GetByKey.proto", fileDescriptor_0c7ecee7679d1dfd) } + +var fileDescriptor_0c7ecee7679d1dfd = []byte{ + // 333 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0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x19, 0xb4, 0xf8, 0xf6, 0x50, 0x1b, 0xff, 0xcf, 0xd2, 0xe6, 0xf8, 0xd8, 0xa1, 0xd5, + 0x90, 0x5c, 0x80, 0xf7, 0x9a, 0xad, 0x70, 0x31, 0xf7, 0x9b, 0x06, 0xeb, 0x5a, 0xec, 0xce, 0x88, + 0xb1, 0x43, 0xed, 0x98, 0x4c, 0x00, 0xb8, 0xc8, 0x95, 0x64, 0x7c, 0x7b, 0xc1, 0x1f, 0x03, 0xf7, + 0xeb, 0xcc, 0xdd, 0x20, 0x76, 0xe8, 0x1e, 0x16, 0xb5, 0xc1, 0x43, 0xf3, 0x82, 0x20, 0x87, 0x5e, + 0xdd, 0x53, 0xdd, 0x2e, 0xb9, 0xfe, 0x55, 0xd5, 0x89, 0x8d, 0x3b, 0xac, 0x7f, 0xd7, 0xd6, 0x15, + 0xb4, 0x4d, 0x58, 0x86, 0xa5, 0xdf, 0x18, 0x36, 0x47, 0x9d, 0xf1, 0x91, 0x35, 0xd4, 0x2d, 0xd1, + 0x1d, 0x10, 0x9d, 0x43, 0xc0, 0xc5, 0x3a, 0x4c, 0x31, 0x41, 0xc9, 0x52, 0x56, 0xa6, 0x6f, 0x92, + 0x15, 0x69, 0xc8, 0x8a, 0xcc, 0x7a, 0xde, 0xd9, 0x27, 0x7b, 0x70, 0x5f, 0x3c, 0xf3, 0x37, 0xf9, + 0x0e, 0x00, 0x00, 0xff, 0xff, 0x99, 0xa7, 0x7b, 0x90, 0x30, 0x02, 0x00, 0x00, +} diff --git a/proto/GetBySolidityID.pb.go b/proto/GetBySolidityID.pb.go new file mode 100644 index 000000000..268fd03d6 --- /dev/null +++ b/proto/GetBySolidityID.pb.go @@ -0,0 +1,161 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: GetBySolidityID.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get the IDs in the format used by transactions, given the ID in the format used by Solidity. If the Solidity ID is for a smart contract instance, then both the ContractID and associated AccountID will be returned. +type GetBySolidityIDQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + SolidityID string `protobuf:"bytes,2,opt,name=solidityID,proto3" json:"solidityID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetBySolidityIDQuery) Reset() { *m = GetBySolidityIDQuery{} } +func (m *GetBySolidityIDQuery) String() string { return proto.CompactTextString(m) } +func (*GetBySolidityIDQuery) ProtoMessage() {} +func (*GetBySolidityIDQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_9aa3229a059c75ce, []int{0} +} + +func (m *GetBySolidityIDQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBySolidityIDQuery.Unmarshal(m, b) +} +func (m *GetBySolidityIDQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBySolidityIDQuery.Marshal(b, m, deterministic) +} +func (m *GetBySolidityIDQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBySolidityIDQuery.Merge(m, src) +} +func (m *GetBySolidityIDQuery) XXX_Size() int { + return xxx_messageInfo_GetBySolidityIDQuery.Size(m) +} +func (m *GetBySolidityIDQuery) XXX_DiscardUnknown() { + xxx_messageInfo_GetBySolidityIDQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBySolidityIDQuery proto.InternalMessageInfo + +func (m *GetBySolidityIDQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *GetBySolidityIDQuery) GetSolidityID() string { + if m != nil { + return m.SolidityID + } + return "" +} + +// Response when the client sends the node GetBySolidityIDQuery +type GetBySolidityIDResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + AccountID *AccountID `protobuf:"bytes,2,opt,name=accountID,proto3" json:"accountID,omitempty"` + FileID *FileID `protobuf:"bytes,3,opt,name=fileID,proto3" json:"fileID,omitempty"` + ContractID *ContractID `protobuf:"bytes,4,opt,name=contractID,proto3" json:"contractID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetBySolidityIDResponse) Reset() { *m = GetBySolidityIDResponse{} } +func (m *GetBySolidityIDResponse) String() string { return proto.CompactTextString(m) } +func (*GetBySolidityIDResponse) ProtoMessage() {} +func (*GetBySolidityIDResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9aa3229a059c75ce, []int{1} +} + +func (m *GetBySolidityIDResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBySolidityIDResponse.Unmarshal(m, b) +} +func (m *GetBySolidityIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBySolidityIDResponse.Marshal(b, m, deterministic) +} +func (m *GetBySolidityIDResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBySolidityIDResponse.Merge(m, src) +} +func (m *GetBySolidityIDResponse) XXX_Size() int { + return xxx_messageInfo_GetBySolidityIDResponse.Size(m) +} +func (m *GetBySolidityIDResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetBySolidityIDResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBySolidityIDResponse proto.InternalMessageInfo + +func (m *GetBySolidityIDResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *GetBySolidityIDResponse) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +func (m *GetBySolidityIDResponse) GetFileID() *FileID { + if m != nil { + return m.FileID + } + return nil +} + +func (m *GetBySolidityIDResponse) GetContractID() *ContractID { + if m != nil { + return m.ContractID + } + return nil +} + +func init() { + proto.RegisterType((*GetBySolidityIDQuery)(nil), "proto.GetBySolidityIDQuery") + proto.RegisterType((*GetBySolidityIDResponse)(nil), "proto.GetBySolidityIDResponse") +} + +func init() { proto.RegisterFile("GetBySolidityID.proto", fileDescriptor_9aa3229a059c75ce) } + +var fileDescriptor_9aa3229a059c75ce = []byte{ + // 263 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8e, 0xef, 0x4a, 0xc3, 0x30, + 0x14, 0xc5, 0xa9, 0x7f, 0x06, 0xbb, 0x43, 0xd8, 0xc2, 0x86, 0x65, 0x1f, 0x64, 0x14, 0x94, 0x21, + 0x58, 0x70, 0x3e, 0x81, 0x75, 0xa8, 0xfb, 0xa6, 0xd1, 0x17, 0xb8, 0x4b, 0xaf, 0x26, 0x32, 0x9b, + 0x90, 0x64, 0x42, 0x5f, 0xd3, 0x27, 0x12, 0xb3, 0xac, 0xd6, 0x7e, 0x0a, 0x39, 0xe7, 0x77, 0xce, + 0xb9, 0x30, 0x79, 0x20, 0x5f, 0xd4, 0x2f, 0x7a, 0xa3, 0x4a, 0xe5, 0xeb, 0xd5, 0x32, 0x37, 0x56, + 0x7b, 0xcd, 0x8e, 0xc3, 0x33, 0x1d, 0x16, 0xe8, 0x94, 0x78, 0xad, 0x0d, 0xb9, 0x9d, 0x31, 0x1d, + 0x3d, 0x6f, 0xc9, 0xd6, 0x8f, 0x84, 0x25, 0xd9, 0x28, 0x8d, 0x39, 0x39, 0xa3, 0x2b, 0x47, 0x6d, + 0x35, 0x5b, 0xc3, 0xb8, 0x53, 0x1d, 0x92, 0xec, 0x12, 0x7a, 0x32, 0x70, 0x69, 0x32, 0x4b, 0xe6, + 0x83, 0x05, 0xdb, 0xf1, 0x79, 0xab, 0x97, 0x47, 0x82, 0x9d, 0x01, 0xb8, 0x26, 0x9e, 0x1e, 0xcc, + 0x92, 0x79, 0x9f, 0xb7, 0x94, 0xec, 0x3b, 0x81, 0xd3, 0xce, 0xc8, 0xfe, 0x16, 0x76, 0xd5, 0xd9, + 0x99, 0xc4, 0x9d, 0xff, 0xc7, 0x36, 0x53, 0x39, 0xf4, 0x51, 0x08, 0xbd, 0xad, 0x7c, 0x5c, 0x1a, + 0x2c, 0x86, 0x31, 0x71, 0xbb, 0xd7, 0xf9, 0x1f, 0xc2, 0xce, 0xa1, 0xf7, 0xa6, 0x36, 0xb4, 0x5a, + 0xa6, 0x87, 0x01, 0x3e, 0x89, 0xf0, 0x7d, 0x10, 0x79, 0x34, 0xd9, 0x35, 0x80, 0xd0, 0x95, 0xb7, + 0x28, 0x7e, 0x7b, 0x8f, 0x02, 0x3a, 0x8a, 0xe8, 0x5d, 0x63, 0xf0, 0x16, 0x54, 0x5c, 0x40, 0x26, + 0xf4, 0x67, 0x2e, 0xa9, 0x24, 0x8b, 0x12, 0x9d, 0x7c, 0xb7, 0x68, 0x64, 0x8e, 0x46, 0xc5, 0xdc, + 0x07, 0x7e, 0xe1, 0x53, 0xb2, 0xee, 0x85, 0xdf, 0xcd, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x61, + 0x72, 0x47, 0x94, 0xc2, 0x01, 0x00, 0x00, +} diff --git a/proto/Query.pb.go b/proto/Query.pb.go new file mode 100644 index 000000000..91c88c390 --- /dev/null +++ b/proto/Query.pb.go @@ -0,0 +1,358 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: Query.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// A single query, which is sent from the client to the node. This includes all possible queries. Each Query should not have more than 50 levels. +type Query struct { + // Types that are valid to be assigned to Query: + // *Query_GetByKey + // *Query_GetBySolidityID + // *Query_ContractCallLocal + // *Query_ContractGetInfo + // *Query_ContractGetBytecode + // *Query_ContractGetRecords + // *Query_CryptogetAccountBalance + // *Query_CryptoGetAccountRecords + // *Query_CryptoGetInfo + // *Query_CryptoGetClaim + // *Query_CryptoGetProxyStakers + // *Query_FileGetContents + // *Query_FileGetInfo + // *Query_TransactionGetReceipt + // *Query_TransactionGetRecord + // *Query_TransactionGetFastRecord + Query isQuery_Query `protobuf_oneof:"query"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Query) Reset() { *m = Query{} } +func (m *Query) String() string { return proto.CompactTextString(m) } +func (*Query) ProtoMessage() {} +func (*Query) Descriptor() ([]byte, []int) { + return fileDescriptor_12565a3f476cd53f, []int{0} +} + +func (m *Query) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Query.Unmarshal(m, b) +} +func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Query.Marshal(b, m, deterministic) +} +func (m *Query) XXX_Merge(src proto.Message) { + xxx_messageInfo_Query.Merge(m, src) +} +func (m *Query) XXX_Size() int { + return xxx_messageInfo_Query.Size(m) +} +func (m *Query) XXX_DiscardUnknown() { + xxx_messageInfo_Query.DiscardUnknown(m) +} + +var xxx_messageInfo_Query proto.InternalMessageInfo + +type isQuery_Query interface { + isQuery_Query() +} + +type Query_GetByKey struct { + GetByKey *GetByKeyQuery `protobuf:"bytes,1,opt,name=getByKey,proto3,oneof"` +} + +type Query_GetBySolidityID struct { + GetBySolidityID *GetBySolidityIDQuery `protobuf:"bytes,2,opt,name=getBySolidityID,proto3,oneof"` +} + +type Query_ContractCallLocal struct { + ContractCallLocal *ContractCallLocalQuery `protobuf:"bytes,3,opt,name=contractCallLocal,proto3,oneof"` +} + +type Query_ContractGetInfo struct { + ContractGetInfo *ContractGetInfoQuery `protobuf:"bytes,4,opt,name=contractGetInfo,proto3,oneof"` +} + +type Query_ContractGetBytecode struct { + ContractGetBytecode *ContractGetBytecodeQuery `protobuf:"bytes,5,opt,name=contractGetBytecode,proto3,oneof"` +} + +type Query_ContractGetRecords struct { + ContractGetRecords *ContractGetRecordsQuery `protobuf:"bytes,6,opt,name=ContractGetRecords,proto3,oneof"` +} + +type Query_CryptogetAccountBalance struct { + CryptogetAccountBalance *CryptoGetAccountBalanceQuery `protobuf:"bytes,7,opt,name=cryptogetAccountBalance,proto3,oneof"` +} + +type Query_CryptoGetAccountRecords struct { + CryptoGetAccountRecords *CryptoGetAccountRecordsQuery `protobuf:"bytes,8,opt,name=cryptoGetAccountRecords,proto3,oneof"` +} + +type Query_CryptoGetInfo struct { + CryptoGetInfo *CryptoGetInfoQuery `protobuf:"bytes,9,opt,name=cryptoGetInfo,proto3,oneof"` +} + +type Query_CryptoGetClaim struct { + CryptoGetClaim *CryptoGetClaimQuery `protobuf:"bytes,10,opt,name=cryptoGetClaim,proto3,oneof"` +} + +type Query_CryptoGetProxyStakers struct { + CryptoGetProxyStakers *CryptoGetStakersQuery `protobuf:"bytes,11,opt,name=cryptoGetProxyStakers,proto3,oneof"` +} + +type Query_FileGetContents struct { + FileGetContents *FileGetContentsQuery `protobuf:"bytes,12,opt,name=fileGetContents,proto3,oneof"` +} + +type Query_FileGetInfo struct { + FileGetInfo *FileGetInfoQuery `protobuf:"bytes,13,opt,name=fileGetInfo,proto3,oneof"` +} + +type Query_TransactionGetReceipt struct { + TransactionGetReceipt *TransactionGetReceiptQuery `protobuf:"bytes,14,opt,name=transactionGetReceipt,proto3,oneof"` +} + +type Query_TransactionGetRecord struct { + TransactionGetRecord *TransactionGetRecordQuery `protobuf:"bytes,15,opt,name=transactionGetRecord,proto3,oneof"` +} + +type Query_TransactionGetFastRecord struct { + TransactionGetFastRecord *TransactionGetFastRecordQuery `protobuf:"bytes,16,opt,name=transactionGetFastRecord,proto3,oneof"` +} + +func (*Query_GetByKey) isQuery_Query() {} + +func (*Query_GetBySolidityID) isQuery_Query() {} + +func (*Query_ContractCallLocal) isQuery_Query() {} + +func (*Query_ContractGetInfo) isQuery_Query() {} + +func (*Query_ContractGetBytecode) isQuery_Query() {} + +func (*Query_ContractGetRecords) isQuery_Query() {} + +func (*Query_CryptogetAccountBalance) isQuery_Query() {} + +func (*Query_CryptoGetAccountRecords) isQuery_Query() {} + +func (*Query_CryptoGetInfo) isQuery_Query() {} + +func (*Query_CryptoGetClaim) isQuery_Query() {} + +func (*Query_CryptoGetProxyStakers) isQuery_Query() {} + +func (*Query_FileGetContents) isQuery_Query() {} + +func (*Query_FileGetInfo) isQuery_Query() {} + +func (*Query_TransactionGetReceipt) isQuery_Query() {} + +func (*Query_TransactionGetRecord) isQuery_Query() {} + +func (*Query_TransactionGetFastRecord) isQuery_Query() {} + +func (m *Query) GetQuery() isQuery_Query { + if m != nil { + return m.Query + } + return nil +} + +func (m *Query) GetGetByKey() *GetByKeyQuery { + if x, ok := m.GetQuery().(*Query_GetByKey); ok { + return x.GetByKey + } + return nil +} + +func (m *Query) GetGetBySolidityID() *GetBySolidityIDQuery { + if x, ok := m.GetQuery().(*Query_GetBySolidityID); ok { + return x.GetBySolidityID + } + return nil +} + +func (m *Query) GetContractCallLocal() *ContractCallLocalQuery { + if x, ok := m.GetQuery().(*Query_ContractCallLocal); ok { + return x.ContractCallLocal + } + return nil +} + +func (m *Query) GetContractGetInfo() *ContractGetInfoQuery { + if x, ok := m.GetQuery().(*Query_ContractGetInfo); ok { + return x.ContractGetInfo + } + return nil +} + +func (m *Query) GetContractGetBytecode() *ContractGetBytecodeQuery { + if x, ok := m.GetQuery().(*Query_ContractGetBytecode); ok { + return x.ContractGetBytecode + } + return nil +} + +func (m *Query) GetContractGetRecords() *ContractGetRecordsQuery { + if x, ok := m.GetQuery().(*Query_ContractGetRecords); ok { + return x.ContractGetRecords + } + return nil +} + +func (m *Query) GetCryptogetAccountBalance() *CryptoGetAccountBalanceQuery { + if x, ok := m.GetQuery().(*Query_CryptogetAccountBalance); ok { + return x.CryptogetAccountBalance + } + return nil +} + +func (m *Query) GetCryptoGetAccountRecords() *CryptoGetAccountRecordsQuery { + if x, ok := m.GetQuery().(*Query_CryptoGetAccountRecords); ok { + return x.CryptoGetAccountRecords + } + return nil +} + +func (m *Query) GetCryptoGetInfo() *CryptoGetInfoQuery { + if x, ok := m.GetQuery().(*Query_CryptoGetInfo); ok { + return x.CryptoGetInfo + } + return nil +} + +func (m *Query) GetCryptoGetClaim() *CryptoGetClaimQuery { + if x, ok := m.GetQuery().(*Query_CryptoGetClaim); ok { + return x.CryptoGetClaim + } + return nil +} + +func (m *Query) GetCryptoGetProxyStakers() *CryptoGetStakersQuery { + if x, ok := m.GetQuery().(*Query_CryptoGetProxyStakers); ok { + return x.CryptoGetProxyStakers + } + return nil +} + +func (m *Query) GetFileGetContents() *FileGetContentsQuery { + if x, ok := m.GetQuery().(*Query_FileGetContents); ok { + return x.FileGetContents + } + return nil +} + +func (m *Query) GetFileGetInfo() *FileGetInfoQuery { + if x, ok := m.GetQuery().(*Query_FileGetInfo); ok { + return x.FileGetInfo + } + return nil +} + +func (m *Query) GetTransactionGetReceipt() *TransactionGetReceiptQuery { + if x, ok := m.GetQuery().(*Query_TransactionGetReceipt); ok { + return x.TransactionGetReceipt + } + return nil +} + +func (m *Query) GetTransactionGetRecord() *TransactionGetRecordQuery { + if x, ok := m.GetQuery().(*Query_TransactionGetRecord); ok { + return x.TransactionGetRecord + } + return nil +} + +func (m *Query) GetTransactionGetFastRecord() *TransactionGetFastRecordQuery { + if x, ok := m.GetQuery().(*Query_TransactionGetFastRecord); ok { + return x.TransactionGetFastRecord + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Query) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Query_GetByKey)(nil), + (*Query_GetBySolidityID)(nil), + (*Query_ContractCallLocal)(nil), + (*Query_ContractGetInfo)(nil), + (*Query_ContractGetBytecode)(nil), + (*Query_ContractGetRecords)(nil), + (*Query_CryptogetAccountBalance)(nil), + (*Query_CryptoGetAccountRecords)(nil), + (*Query_CryptoGetInfo)(nil), + (*Query_CryptoGetClaim)(nil), + (*Query_CryptoGetProxyStakers)(nil), + (*Query_FileGetContents)(nil), + (*Query_FileGetInfo)(nil), + (*Query_TransactionGetReceipt)(nil), + (*Query_TransactionGetRecord)(nil), + (*Query_TransactionGetFastRecord)(nil), + } +} + +func init() { + proto.RegisterType((*Query)(nil), "proto.Query") +} + +func init() { proto.RegisterFile("Query.proto", fileDescriptor_12565a3f476cd53f) } + +var fileDescriptor_12565a3f476cd53f = []byte{ + // 571 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0x51, 0x6f, 0xd3, 0x3e, + 0x14, 0xc5, 0xff, 0xfd, 0x43, 0xb7, 0x71, 0xcb, 0x3a, 0xe6, 0xb5, 0xd4, 0xeb, 0xd8, 0x18, 0x03, + 0x21, 0x9e, 0xfa, 0x30, 0x1e, 0x79, 0x5a, 0x3b, 0xad, 0x4c, 0x80, 0x54, 0xd6, 0x09, 0x89, 0x27, + 0xe4, 0x39, 0x6e, 0x1b, 0xc8, 0xe2, 0xe0, 0x7a, 0x88, 0x7c, 0x05, 0x3e, 0x35, 0xea, 0x9d, 0x9d, + 0xc6, 0x8e, 0xc3, 0x53, 0x95, 0x7b, 0xee, 0xf9, 0xc5, 0xe9, 0x3d, 0xbe, 0xd0, 0xfa, 0x7c, 0x27, + 0x54, 0x3e, 0xc8, 0x94, 0xd4, 0x92, 0x34, 0xf1, 0xa7, 0xdf, 0x1e, 0x0b, 0x3d, 0xcc, 0x3f, 0x08, + 0x53, 0xee, 0x77, 0xf1, 0x79, 0x2a, 0x93, 0x38, 0x8a, 0x75, 0x7e, 0x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23, 0xb4, 0x8d, 0x98, 0x17, 0x06, 0x13, 0xdc, 0x35, + 0xc5, 0x07, 0x06, 0x09, 0xe4, 0x0b, 0x74, 0x74, 0x60, 0x0b, 0xd1, 0x1d, 0x24, 0x1f, 0xd7, 0x91, + 0xa5, 0x8a, 0x2c, 0x38, 0xe8, 0x27, 0x37, 0x40, 0x75, 0xcd, 0x06, 0xa3, 0x4f, 0x90, 0xfd, 0x2a, + 0xc8, 0x5e, 0xb7, 0x59, 0x7e, 0x2d, 0x67, 0xb8, 0x09, 0xcd, 0x9f, 0xab, 0xa6, 0xe1, 0x6b, 0x38, + 0xe1, 0xf2, 0x76, 0xb0, 0x10, 0x91, 0x50, 0x6c, 0xc1, 0x96, 0x8b, 0xb9, 0x62, 0xd9, 0x62, 0xc0, + 0xb2, 0xd8, 0xbc, 0xe3, 0x3b, 0xfb, 0xc5, 0x26, 0x8d, 0x9b, 0x0d, 0x7c, 0x7a, 0xfb, 0x37, 0x00, + 0x00, 0xff, 0xff, 0x11, 0x59, 0x55, 0xa4, 0xe1, 0x06, 0x00, 0x00, +} diff --git a/proto/QueryHeader.pb.go b/proto/QueryHeader.pb.go new file mode 100644 index 000000000..bc294a579 --- /dev/null +++ b/proto/QueryHeader.pb.go @@ -0,0 +1,127 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: QueryHeader.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// The client uses the ResponseType to request that the node send it just the answer, or both the answer and a state proof. It can also ask for just the cost for getting the answer or both. If the payment in the query fails the precheck, then the response may have some fields blank. The state proof is only available for some types of information. It is available for a Record, but not a receipt. It is available for the information in each kind of *GetInfo request. +type ResponseType int32 + +const ( + ResponseType_ANSWER_ONLY ResponseType = 0 + ResponseType_ANSWER_STATE_PROOF ResponseType = 1 + ResponseType_COST_ANSWER ResponseType = 2 + ResponseType_COST_ANSWER_STATE_PROOF ResponseType = 3 +) + +var ResponseType_name = map[int32]string{ + 0: "ANSWER_ONLY", + 1: "ANSWER_STATE_PROOF", + 2: "COST_ANSWER", + 3: "COST_ANSWER_STATE_PROOF", +} + +var ResponseType_value = map[string]int32{ + "ANSWER_ONLY": 0, + "ANSWER_STATE_PROOF": 1, + "COST_ANSWER": 2, + "COST_ANSWER_STATE_PROOF": 3, +} + +func (x ResponseType) String() string { + return proto.EnumName(ResponseType_name, int32(x)) +} + +func (ResponseType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_bef2278189e4f455, []int{0} +} + +// Each query from the client to the node will contain the QueryHeader, which gives the requested response type, and includes a payment for the response. It will sometimes leave payment blank: it is blank for TransactionGetReceiptQuery. It can also be left blank when the responseType is costAnswer or costAnswerStateProof. But it needs to be filled in for all other cases. The idea is that an answer that is only a few bytes (or that was paid for earlier) can be given for free. But if the answer is something that requires many bytes or much computation (like a state proof), then it should be paid for. +type QueryHeader struct { + Payment *Transaction `protobuf:"bytes,1,opt,name=payment,proto3" json:"payment,omitempty"` + ResponseType ResponseType `protobuf:"varint,2,opt,name=responseType,proto3,enum=proto.ResponseType" json:"responseType,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QueryHeader) Reset() { *m = QueryHeader{} } +func (m *QueryHeader) String() string { return proto.CompactTextString(m) } +func (*QueryHeader) ProtoMessage() {} +func (*QueryHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_bef2278189e4f455, []int{0} +} + +func (m *QueryHeader) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_QueryHeader.Unmarshal(m, b) +} +func (m *QueryHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_QueryHeader.Marshal(b, m, deterministic) +} +func (m *QueryHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryHeader.Merge(m, src) +} +func (m *QueryHeader) XXX_Size() int { + return xxx_messageInfo_QueryHeader.Size(m) +} +func (m *QueryHeader) XXX_DiscardUnknown() { + xxx_messageInfo_QueryHeader.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryHeader proto.InternalMessageInfo + +func (m *QueryHeader) GetPayment() *Transaction { + if m != nil { + return m.Payment + } + return nil +} + +func (m *QueryHeader) GetResponseType() ResponseType { + if m != nil { + return m.ResponseType + } + return ResponseType_ANSWER_ONLY +} + +func init() { + proto.RegisterEnum("proto.ResponseType", ResponseType_name, ResponseType_value) + proto.RegisterType((*QueryHeader)(nil), "proto.QueryHeader") +} + +func init() { proto.RegisterFile("QueryHeader.proto", fileDescriptor_bef2278189e4f455) } + +var fileDescriptor_bef2278189e4f455 = []byte{ + // 229 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x0c, 0x2c, 0x4d, 0x2d, + 0xaa, 0xf4, 0x48, 0x4d, 0x4c, 0x49, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, + 0x53, 0x52, 0x82, 0x21, 0x45, 0x89, 0x79, 0xc5, 0x89, 0xc9, 0x25, 0x99, 0xf9, 0x79, 0x10, 0x19, + 0xa5, 0x12, 0x2e, 0x6e, 0x24, 0xe5, 0x42, 0x3a, 0x5c, 0xec, 0x05, 0x89, 0x95, 0xb9, 0xa9, 0x79, + 0x25, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 0x42, 0x10, 0x75, 0x7a, 0x48, 0x3a, 0x83, 0x60, + 0x4a, 0x84, 0xcc, 0xb9, 0x78, 0x8a, 0x52, 0x8b, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x43, 0x2a, 0x0b, + 0x52, 0x25, 0x98, 0x14, 0x18, 0x35, 0xf8, 0x8c, 0x84, 0xa1, 0x5a, 0x82, 0x90, 0xa4, 0x82, 0x50, + 0x14, 0x6a, 0xa5, 0x72, 0xf1, 0x20, 0xcb, 0x0a, 0xf1, 0x73, 0x71, 0x3b, 0xfa, 0x05, 0x87, 0xbb, + 0x06, 0xc5, 0xfb, 0xfb, 0xf9, 0x44, 0x0a, 0x30, 0x08, 0x89, 0x71, 0x09, 0x41, 0x05, 0x82, 0x43, + 0x1c, 0x43, 0x5c, 0xe3, 0x03, 0x82, 0xfc, 0xfd, 0xdd, 0x04, 0x18, 0x41, 0x0a, 0x9d, 0xfd, 0x83, + 0x43, 0xe2, 0x21, 0x92, 0x02, 0x4c, 0x42, 0xd2, 0x5c, 0xe2, 0x48, 0x02, 0x28, 0xaa, 0x99, 0x9d, + 0xd4, 0xb8, 0x94, 0x92, 0xf3, 0x73, 0xf5, 0x32, 0x52, 0x53, 0x52, 0x8b, 0x12, 0x33, 0x12, 0x8b, + 0x33, 0xd2, 0x8b, 0x12, 0x0b, 0x32, 0xf4, 0x12, 0x0b, 0x32, 0xa1, 0x4e, 0xcc, 0x4a, 0x2c, 0x4b, + 0x0c, 0x60, 0x4c, 0x62, 0x03, 0xf3, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x43, 0xff, + 0x05, 0x3a, 0x01, 0x00, 0x00, +} diff --git a/proto/Response.pb.go b/proto/Response.pb.go new file mode 100644 index 000000000..1adc13c9b --- /dev/null +++ b/proto/Response.pb.go @@ -0,0 +1,359 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: Response.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// A single response, which is returned from the node to the client, after the client sent the node a query. This includes all responses. +type Response struct { + // Types that are valid to be assigned to Response: + // *Response_GetByKey + // *Response_GetBySolidityID + // *Response_ContractCallLocal + // *Response_ContractGetBytecodeResponse + // *Response_ContractGetInfo + // *Response_ContractGetRecordsResponse + // *Response_CryptogetAccountBalance + // *Response_CryptoGetAccountRecords + // *Response_CryptoGetInfo + // *Response_CryptoGetClaim + // *Response_CryptoGetProxyStakers + // *Response_FileGetContents + // *Response_FileGetInfo + // *Response_TransactionGetReceipt + // *Response_TransactionGetRecord + // *Response_TransactionGetFastRecord + Response isResponse_Response `protobuf_oneof:"response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Response) Reset() { *m = Response{} } +func (m *Response) String() string { return proto.CompactTextString(m) } +func (*Response) ProtoMessage() {} +func (*Response) Descriptor() ([]byte, []int) { + return fileDescriptor_2c4c7055b2f7bc3f, []int{0} +} + +func (m *Response) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Response.Unmarshal(m, b) +} +func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Response.Marshal(b, m, deterministic) +} +func (m *Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Response.Merge(m, src) +} +func (m *Response) XXX_Size() int { + return xxx_messageInfo_Response.Size(m) +} +func (m *Response) XXX_DiscardUnknown() { + xxx_messageInfo_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Response proto.InternalMessageInfo + +type isResponse_Response interface { + isResponse_Response() +} + +type Response_GetByKey struct { + GetByKey *GetByKeyResponse `protobuf:"bytes,1,opt,name=getByKey,proto3,oneof"` +} + +type Response_GetBySolidityID struct { + GetBySolidityID *GetBySolidityIDResponse `protobuf:"bytes,2,opt,name=getBySolidityID,proto3,oneof"` +} + +type Response_ContractCallLocal struct { + ContractCallLocal *ContractCallLocalResponse `protobuf:"bytes,3,opt,name=contractCallLocal,proto3,oneof"` +} + +type Response_ContractGetBytecodeResponse struct { + ContractGetBytecodeResponse *ContractGetBytecodeResponse `protobuf:"bytes,5,opt,name=contractGetBytecodeResponse,proto3,oneof"` +} + +type Response_ContractGetInfo struct { + ContractGetInfo *ContractGetInfoResponse `protobuf:"bytes,4,opt,name=contractGetInfo,proto3,oneof"` +} + +type Response_ContractGetRecordsResponse struct { + ContractGetRecordsResponse *ContractGetRecordsResponse `protobuf:"bytes,6,opt,name=contractGetRecordsResponse,proto3,oneof"` +} + +type Response_CryptogetAccountBalance struct { + CryptogetAccountBalance *CryptoGetAccountBalanceResponse `protobuf:"bytes,7,opt,name=cryptogetAccountBalance,proto3,oneof"` +} + +type Response_CryptoGetAccountRecords struct { + CryptoGetAccountRecords *CryptoGetAccountRecordsResponse `protobuf:"bytes,8,opt,name=cryptoGetAccountRecords,proto3,oneof"` +} + +type Response_CryptoGetInfo struct { + CryptoGetInfo *CryptoGetInfoResponse `protobuf:"bytes,9,opt,name=cryptoGetInfo,proto3,oneof"` +} + +type Response_CryptoGetClaim struct { + CryptoGetClaim *CryptoGetClaimResponse `protobuf:"bytes,10,opt,name=cryptoGetClaim,proto3,oneof"` +} + +type Response_CryptoGetProxyStakers struct { + CryptoGetProxyStakers *CryptoGetStakersResponse `protobuf:"bytes,11,opt,name=cryptoGetProxyStakers,proto3,oneof"` +} + +type Response_FileGetContents struct { + FileGetContents *FileGetContentsResponse `protobuf:"bytes,12,opt,name=fileGetContents,proto3,oneof"` +} + +type Response_FileGetInfo struct { + FileGetInfo *FileGetInfoResponse `protobuf:"bytes,13,opt,name=fileGetInfo,proto3,oneof"` +} + +type Response_TransactionGetReceipt struct { + TransactionGetReceipt *TransactionGetReceiptResponse `protobuf:"bytes,14,opt,name=transactionGetReceipt,proto3,oneof"` +} + +type Response_TransactionGetRecord struct { + TransactionGetRecord *TransactionGetRecordResponse `protobuf:"bytes,15,opt,name=transactionGetRecord,proto3,oneof"` +} + +type Response_TransactionGetFastRecord struct { + TransactionGetFastRecord *TransactionGetFastRecordResponse `protobuf:"bytes,16,opt,name=transactionGetFastRecord,proto3,oneof"` +} + +func (*Response_GetByKey) isResponse_Response() {} + +func (*Response_GetBySolidityID) isResponse_Response() {} + +func (*Response_ContractCallLocal) isResponse_Response() {} + +func (*Response_ContractGetBytecodeResponse) isResponse_Response() {} + +func (*Response_ContractGetInfo) isResponse_Response() {} + +func (*Response_ContractGetRecordsResponse) isResponse_Response() {} + +func (*Response_CryptogetAccountBalance) isResponse_Response() {} + +func (*Response_CryptoGetAccountRecords) isResponse_Response() {} + +func (*Response_CryptoGetInfo) isResponse_Response() {} + +func (*Response_CryptoGetClaim) isResponse_Response() {} + +func (*Response_CryptoGetProxyStakers) isResponse_Response() {} + +func (*Response_FileGetContents) isResponse_Response() {} + +func (*Response_FileGetInfo) isResponse_Response() {} + +func (*Response_TransactionGetReceipt) isResponse_Response() {} + +func (*Response_TransactionGetRecord) isResponse_Response() {} + +func (*Response_TransactionGetFastRecord) isResponse_Response() {} + +func (m *Response) GetResponse() isResponse_Response { + if m != nil { + return m.Response + } + return nil +} + +func (m *Response) GetGetByKey() *GetByKeyResponse { + if x, ok := m.GetResponse().(*Response_GetByKey); ok { + return x.GetByKey + } + return nil +} + +func (m *Response) GetGetBySolidityID() *GetBySolidityIDResponse { + if x, ok := m.GetResponse().(*Response_GetBySolidityID); ok { + return x.GetBySolidityID + } + return nil +} + +func (m *Response) GetContractCallLocal() *ContractCallLocalResponse { + if x, ok := m.GetResponse().(*Response_ContractCallLocal); ok { + return x.ContractCallLocal + } + return nil +} + +func (m *Response) GetContractGetBytecodeResponse() *ContractGetBytecodeResponse { + if x, ok := m.GetResponse().(*Response_ContractGetBytecodeResponse); ok { + return x.ContractGetBytecodeResponse + } + return nil +} + +func (m *Response) GetContractGetInfo() *ContractGetInfoResponse { + if x, ok := m.GetResponse().(*Response_ContractGetInfo); ok { + return x.ContractGetInfo + } + return nil +} + +func (m *Response) GetContractGetRecordsResponse() *ContractGetRecordsResponse { + if x, ok := m.GetResponse().(*Response_ContractGetRecordsResponse); ok { + return x.ContractGetRecordsResponse + } + return nil +} + +func (m *Response) GetCryptogetAccountBalance() *CryptoGetAccountBalanceResponse { + if x, ok := m.GetResponse().(*Response_CryptogetAccountBalance); ok { + return x.CryptogetAccountBalance + } + return nil +} + +func (m *Response) GetCryptoGetAccountRecords() *CryptoGetAccountRecordsResponse { + if x, ok := m.GetResponse().(*Response_CryptoGetAccountRecords); ok { + return x.CryptoGetAccountRecords + } + return nil +} + +func (m *Response) GetCryptoGetInfo() *CryptoGetInfoResponse { + if x, ok := m.GetResponse().(*Response_CryptoGetInfo); ok { + return x.CryptoGetInfo + } + return nil +} + +func (m *Response) GetCryptoGetClaim() *CryptoGetClaimResponse { + if x, ok := m.GetResponse().(*Response_CryptoGetClaim); ok { + return x.CryptoGetClaim + } + return nil +} + +func (m *Response) GetCryptoGetProxyStakers() *CryptoGetStakersResponse { + if x, ok := m.GetResponse().(*Response_CryptoGetProxyStakers); ok { + return x.CryptoGetProxyStakers + } + return nil +} + +func (m *Response) GetFileGetContents() *FileGetContentsResponse { + if x, ok := m.GetResponse().(*Response_FileGetContents); ok { + return x.FileGetContents + } + return nil +} + +func (m *Response) GetFileGetInfo() *FileGetInfoResponse { + if x, ok := m.GetResponse().(*Response_FileGetInfo); ok { + return x.FileGetInfo + } + return nil +} + +func (m *Response) GetTransactionGetReceipt() *TransactionGetReceiptResponse { + if x, ok := m.GetResponse().(*Response_TransactionGetReceipt); ok { + return x.TransactionGetReceipt + } + return nil +} + +func (m *Response) GetTransactionGetRecord() *TransactionGetRecordResponse { + if x, ok := m.GetResponse().(*Response_TransactionGetRecord); ok { + return x.TransactionGetRecord + } + return nil +} + +func (m *Response) GetTransactionGetFastRecord() *TransactionGetFastRecordResponse { + if x, ok := m.GetResponse().(*Response_TransactionGetFastRecord); ok { + return x.TransactionGetFastRecord + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Response) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Response_GetByKey)(nil), + (*Response_GetBySolidityID)(nil), + (*Response_ContractCallLocal)(nil), + (*Response_ContractGetBytecodeResponse)(nil), + (*Response_ContractGetInfo)(nil), + (*Response_ContractGetRecordsResponse)(nil), + (*Response_CryptogetAccountBalance)(nil), + (*Response_CryptoGetAccountRecords)(nil), + (*Response_CryptoGetInfo)(nil), + (*Response_CryptoGetClaim)(nil), + (*Response_CryptoGetProxyStakers)(nil), + (*Response_FileGetContents)(nil), + (*Response_FileGetInfo)(nil), + (*Response_TransactionGetReceipt)(nil), + (*Response_TransactionGetRecord)(nil), + (*Response_TransactionGetFastRecord)(nil), + } +} + +func init() { + proto.RegisterType((*Response)(nil), "proto.Response") +} + +func init() { proto.RegisterFile("Response.proto", fileDescriptor_2c4c7055b2f7bc3f) } + +var fileDescriptor_2c4c7055b2f7bc3f = []byte{ + // 579 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0x51, 0x6f, 0xd3, 0x30, + 0x10, 0xc7, 0x57, 0x60, 0xa3, 0x5c, 0x59, 0xc7, 0xcc, 0x4a, 0x4d, 0xc6, 0xc6, 0x28, 0x68, 0xf0, + 0xd4, 0x07, 0x10, 0xaf, 0x48, 0xb4, 0xd3, 0xda, 0x01, 0x0f, 0x55, 0x86, 0x84, 0x90, 0x78, 0xf1, + 0x1c, 0xb7, 0x0d, 0x64, 0x71, 0xe4, 0x18, 0x44, 0xbe, 0x2d, 0x1f, 0x05, 0xd5, 0x75, 0x52, 0xdb, + 0x71, 0xfa, 0x54, 0xe5, 0xfe, 0xf7, 0xff, 0x5d, 0x6d, 0xdf, 0x1d, 0x74, 0x43, 0x96, 0x67, 0x3c, + 0xcd, 0xd9, 0x30, 0x13, 0x5c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a1, 0xd5, 0x60, 0xce, 0x36, 0x31, 0x1b, 0xcc, 0x31, 0xa2, 0x0f, 0xd0, 0x99, 0x6f, 0x96, + 0x0c, 0xde, 0x57, 0x9c, 0xc0, 0xe6, 0x38, 0xf7, 0x65, 0x1a, 0xd0, 0x0f, 0xe8, 0x49, 0xdf, 0x46, + 0xc2, 0x5d, 0x45, 0x7a, 0xa5, 0x49, 0xde, 0xad, 0x65, 0x9e, 0xd4, 0x0b, 0x41, 0xdf, 0xe1, 0x48, + 0x7a, 0x56, 0x1a, 0x3e, 0x50, 0xf0, 0x97, 0x4d, 0x70, 0x2e, 0x22, 0x83, 0xed, 0x45, 0x20, 0x06, + 0x58, 0x36, 0x6c, 0x44, 0xfc, 0x48, 0xe1, 0x5f, 0x7b, 0xf1, 0x9b, 0x34, 0xa3, 0x44, 0x23, 0x6a, + 0x04, 0xd0, 0x16, 0x3a, 0x6f, 0x74, 0x0e, 0x03, 0xca, 0x6f, 0x87, 0x4b, 0x16, 0x31, 0x41, 0x96, + 0x24, 0x5f, 0x2e, 0x04, 0xc9, 0x96, 0x43, 0x92, 0xc5, 0xba, 0xd2, 0x4f, 0xf2, 0x87, 0xcc, 0x5a, + 0x37, 0x7b, 0xea, 0xeb, 0xdd, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x50, 0x5c, 0xfd, 0x3a, + 0x07, 0x00, 0x00, +} diff --git a/proto/ResponseCode.pb.go b/proto/ResponseCode.pb.go new file mode 100644 index 000000000..41ec1ee29 --- /dev/null +++ b/proto/ResponseCode.pb.go @@ -0,0 +1,456 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: ResponseCode.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ResponseCodeEnum int32 + +const ( + ResponseCodeEnum_OK ResponseCodeEnum = 0 + ResponseCodeEnum_INVALID_TRANSACTION ResponseCodeEnum = 1 + ResponseCodeEnum_PAYER_ACCOUNT_NOT_FOUND ResponseCodeEnum = 2 + ResponseCodeEnum_INVALID_NODE_ACCOUNT ResponseCodeEnum = 3 + ResponseCodeEnum_TRANSACTION_EXPIRED ResponseCodeEnum = 4 + ResponseCodeEnum_INVALID_TRANSACTION_START ResponseCodeEnum = 5 + ResponseCodeEnum_INVALID_TRANSACTION_DURATION ResponseCodeEnum = 6 + ResponseCodeEnum_INVALID_SIGNATURE ResponseCodeEnum = 7 + ResponseCodeEnum_MEMO_TOO_LONG ResponseCodeEnum = 8 + ResponseCodeEnum_INSUFFICIENT_TX_FEE ResponseCodeEnum = 9 + ResponseCodeEnum_INSUFFICIENT_PAYER_BALANCE ResponseCodeEnum = 10 + ResponseCodeEnum_DUPLICATE_TRANSACTION ResponseCodeEnum = 11 + ResponseCodeEnum_BUSY ResponseCodeEnum = 12 + ResponseCodeEnum_NOT_SUPPORTED ResponseCodeEnum = 13 + ResponseCodeEnum_INVALID_FILE_ID ResponseCodeEnum = 14 + ResponseCodeEnum_INVALID_ACCOUNT_ID ResponseCodeEnum = 15 + ResponseCodeEnum_INVALID_CONTRACT_ID ResponseCodeEnum = 16 + ResponseCodeEnum_INVALID_TRANSACTION_ID ResponseCodeEnum = 17 + ResponseCodeEnum_RECEIPT_NOT_FOUND ResponseCodeEnum = 18 + ResponseCodeEnum_RECORD_NOT_FOUND ResponseCodeEnum = 19 + ResponseCodeEnum_INVALID_SOLIDITY_ID ResponseCodeEnum = 20 + ResponseCodeEnum_UNKNOWN ResponseCodeEnum = 21 + ResponseCodeEnum_SUCCESS ResponseCodeEnum = 22 + ResponseCodeEnum_FAIL_INVALID ResponseCodeEnum = 23 + ResponseCodeEnum_FAIL_FEE ResponseCodeEnum = 24 + ResponseCodeEnum_FAIL_BALANCE ResponseCodeEnum = 25 + ResponseCodeEnum_KEY_REQUIRED ResponseCodeEnum = 26 + ResponseCodeEnum_BAD_ENCODING ResponseCodeEnum = 27 + ResponseCodeEnum_INSUFFICIENT_ACCOUNT_BALANCE ResponseCodeEnum = 28 + ResponseCodeEnum_INVALID_SOLIDITY_ADDRESS ResponseCodeEnum = 29 + ResponseCodeEnum_INSUFFICIENT_GAS ResponseCodeEnum = 30 + ResponseCodeEnum_CONTRACT_SIZE_LIMIT_EXCEEDED ResponseCodeEnum = 31 + ResponseCodeEnum_LOCAL_CALL_MODIFICATION_EXCEPTION ResponseCodeEnum = 32 + ResponseCodeEnum_CONTRACT_REVERT_EXECUTED ResponseCodeEnum = 33 + ResponseCodeEnum_CONTRACT_EXECUTION_EXCEPTION ResponseCodeEnum = 34 + ResponseCodeEnum_INVALID_RECEIVING_NODE_ACCOUNT ResponseCodeEnum = 35 + ResponseCodeEnum_MISSING_QUERY_HEADER ResponseCodeEnum = 36 + ResponseCodeEnum_ACCOUNT_UPDATE_FAILED ResponseCodeEnum = 37 + ResponseCodeEnum_INVALID_KEY_ENCODING ResponseCodeEnum = 38 + ResponseCodeEnum_NULL_SOLIDITY_ADDRESS ResponseCodeEnum = 39 + ResponseCodeEnum_CONTRACT_UPDATE_FAILED ResponseCodeEnum = 40 + ResponseCodeEnum_INVALID_QUERY_HEADER ResponseCodeEnum = 41 + ResponseCodeEnum_INVALID_FEE_SUBMITTED ResponseCodeEnum = 42 + ResponseCodeEnum_INVALID_PAYER_SIGNATURE ResponseCodeEnum = 43 + ResponseCodeEnum_KEY_NOT_PROVIDED ResponseCodeEnum = 44 + ResponseCodeEnum_INVALID_EXPIRATION_TIME ResponseCodeEnum = 45 + ResponseCodeEnum_NO_WACL_KEY ResponseCodeEnum = 46 + ResponseCodeEnum_FILE_CONTENT_EMPTY ResponseCodeEnum = 47 + ResponseCodeEnum_INVALID_ACCOUNT_AMOUNTS ResponseCodeEnum = 48 + ResponseCodeEnum_EMPTY_TRANSACTION_BODY ResponseCodeEnum = 49 + ResponseCodeEnum_INVALID_TRANSACTION_BODY ResponseCodeEnum = 50 + ResponseCodeEnum_INVALID_SIGNATURE_TYPE_MISMATCHING_KEY ResponseCodeEnum = 51 + ResponseCodeEnum_INVALID_SIGNATURE_COUNT_MISMATCHING_KEY ResponseCodeEnum = 52 + ResponseCodeEnum_EMPTY_CLAIM_BODY ResponseCodeEnum = 53 + ResponseCodeEnum_EMPTY_CLAIM_HASH ResponseCodeEnum = 54 + ResponseCodeEnum_EMPTY_CLAIM_KEYS ResponseCodeEnum = 55 + ResponseCodeEnum_INVALID_CLAIM_HASH_SIZE ResponseCodeEnum = 56 + ResponseCodeEnum_EMPTY_QUERY_BODY ResponseCodeEnum = 57 + ResponseCodeEnum_EMPTY_CLAIM_QUERY ResponseCodeEnum = 58 + ResponseCodeEnum_CLAIM_NOT_FOUND ResponseCodeEnum = 59 + ResponseCodeEnum_ACCOUNT_ID_DOES_NOT_EXIST ResponseCodeEnum = 60 + ResponseCodeEnum_CLAIM_ALREADY_EXISTS ResponseCodeEnum = 61 + ResponseCodeEnum_INVALID_FILE_WACL ResponseCodeEnum = 62 + ResponseCodeEnum_SERIALIZATION_FAILED ResponseCodeEnum = 63 + ResponseCodeEnum_TRANSACTION_OVERSIZE ResponseCodeEnum = 64 + ResponseCodeEnum_TRANSACTION_TOO_MANY_LAYERS ResponseCodeEnum = 65 + ResponseCodeEnum_CONTRACT_DELETED ResponseCodeEnum = 66 + ResponseCodeEnum_PLATFORM_NOT_ACTIVE ResponseCodeEnum = 67 + ResponseCodeEnum_KEY_PREFIX_MISMATCH ResponseCodeEnum = 68 + ResponseCodeEnum_PLATFORM_TRANSACTION_NOT_CREATED ResponseCodeEnum = 69 + ResponseCodeEnum_INVALID_RENEWAL_PERIOD ResponseCodeEnum = 70 + ResponseCodeEnum_INVALID_PAYER_ACCOUNT_ID ResponseCodeEnum = 71 + ResponseCodeEnum_ACCOUNT_DELETED ResponseCodeEnum = 72 + ResponseCodeEnum_FILE_DELETED ResponseCodeEnum = 73 + ResponseCodeEnum_ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS ResponseCodeEnum = 74 + ResponseCodeEnum_SETTING_NEGATIVE_ACCOUNT_BALANCE ResponseCodeEnum = 75 + ResponseCodeEnum_OBTAINER_REQUIRED ResponseCodeEnum = 76 + ResponseCodeEnum_OBTAINER_SAME_CONTRACT_ID ResponseCodeEnum = 77 + ResponseCodeEnum_OBTAINER_DOES_NOT_EXIST ResponseCodeEnum = 78 + ResponseCodeEnum_MODIFYING_IMMUTABLE_CONTRACT ResponseCodeEnum = 79 + ResponseCodeEnum_FILE_SYSTEM_EXCEPTION ResponseCodeEnum = 80 + ResponseCodeEnum_AUTORENEW_DURATION_NOT_IN_RANGE ResponseCodeEnum = 81 + ResponseCodeEnum_ERROR_DECODING_BYTESTRING ResponseCodeEnum = 82 + ResponseCodeEnum_CONTRACT_FILE_EMPTY ResponseCodeEnum = 83 + ResponseCodeEnum_CONTRACT_BYTECODE_EMPTY ResponseCodeEnum = 84 + ResponseCodeEnum_INVALID_INITIAL_BALANCE ResponseCodeEnum = 85 + ResponseCodeEnum_INVALID_RECEIVE_RECORD_THRESHOLD ResponseCodeEnum = 86 + ResponseCodeEnum_INVALID_SEND_RECORD_THRESHOLD ResponseCodeEnum = 87 + ResponseCodeEnum_ACCOUNT_IS_NOT_GENESIS_ACCOUNT ResponseCodeEnum = 88 + ResponseCodeEnum_PAYER_ACCOUNT_UNAUTHORIZED ResponseCodeEnum = 89 + ResponseCodeEnum_INVALID_FREEZE_TRANSACTION_BODY ResponseCodeEnum = 90 + ResponseCodeEnum_FREEZE_TRANSACTION_BODY_NOT_FOUND ResponseCodeEnum = 91 + ResponseCodeEnum_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED ResponseCodeEnum = 92 + ResponseCodeEnum_RESULT_SIZE_LIMIT_EXCEEDED ResponseCodeEnum = 93 + ResponseCodeEnum_NOT_SPECIAL_ACCOUNT ResponseCodeEnum = 94 + ResponseCodeEnum_CONTRACT_NEGATIVE_GAS ResponseCodeEnum = 95 + ResponseCodeEnum_CONTRACT_NEGATIVE_VALUE ResponseCodeEnum = 96 + ResponseCodeEnum_INVALID_FEE_FILE ResponseCodeEnum = 97 + ResponseCodeEnum_INVALID_EXCHANGE_RATE_FILE ResponseCodeEnum = 98 + ResponseCodeEnum_INSUFFICIENT_LOCAL_CALL_GAS ResponseCodeEnum = 99 + ResponseCodeEnum_ENTITY_NOT_ALLOWED_TO_DELETE ResponseCodeEnum = 100 + ResponseCodeEnum_AUTHORIZATION_FAILED ResponseCodeEnum = 101 + ResponseCodeEnum_FILE_UPLOADED_PROTO_INVALID ResponseCodeEnum = 102 + ResponseCodeEnum_FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK ResponseCodeEnum = 103 + ResponseCodeEnum_FEE_SCHEDULE_FILE_PART_UPLOADED ResponseCodeEnum = 104 + ResponseCodeEnum_EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED ResponseCodeEnum = 105 + ResponseCodeEnum_MAX_CONTRACT_STORAGE_EXCEEDED ResponseCodeEnum = 106 +) + +var ResponseCodeEnum_name = map[int32]string{ + 0: "OK", + 1: "INVALID_TRANSACTION", + 2: "PAYER_ACCOUNT_NOT_FOUND", + 3: "INVALID_NODE_ACCOUNT", + 4: "TRANSACTION_EXPIRED", + 5: "INVALID_TRANSACTION_START", + 6: "INVALID_TRANSACTION_DURATION", + 7: "INVALID_SIGNATURE", + 8: "MEMO_TOO_LONG", + 9: "INSUFFICIENT_TX_FEE", + 10: "INSUFFICIENT_PAYER_BALANCE", + 11: "DUPLICATE_TRANSACTION", + 12: "BUSY", + 13: "NOT_SUPPORTED", + 14: "INVALID_FILE_ID", + 15: "INVALID_ACCOUNT_ID", + 16: "INVALID_CONTRACT_ID", + 17: "INVALID_TRANSACTION_ID", + 18: "RECEIPT_NOT_FOUND", + 19: "RECORD_NOT_FOUND", + 20: "INVALID_SOLIDITY_ID", + 21: "UNKNOWN", + 22: "SUCCESS", + 23: "FAIL_INVALID", + 24: "FAIL_FEE", + 25: "FAIL_BALANCE", + 26: "KEY_REQUIRED", + 27: "BAD_ENCODING", + 28: "INSUFFICIENT_ACCOUNT_BALANCE", + 29: "INVALID_SOLIDITY_ADDRESS", + 30: "INSUFFICIENT_GAS", + 31: "CONTRACT_SIZE_LIMIT_EXCEEDED", + 32: "LOCAL_CALL_MODIFICATION_EXCEPTION", + 33: "CONTRACT_REVERT_EXECUTED", + 34: "CONTRACT_EXECUTION_EXCEPTION", + 35: "INVALID_RECEIVING_NODE_ACCOUNT", + 36: "MISSING_QUERY_HEADER", + 37: "ACCOUNT_UPDATE_FAILED", + 38: "INVALID_KEY_ENCODING", + 39: "NULL_SOLIDITY_ADDRESS", + 40: "CONTRACT_UPDATE_FAILED", + 41: "INVALID_QUERY_HEADER", + 42: "INVALID_FEE_SUBMITTED", + 43: "INVALID_PAYER_SIGNATURE", + 44: "KEY_NOT_PROVIDED", + 45: "INVALID_EXPIRATION_TIME", + 46: "NO_WACL_KEY", + 47: "FILE_CONTENT_EMPTY", + 48: "INVALID_ACCOUNT_AMOUNTS", + 49: "EMPTY_TRANSACTION_BODY", + 50: "INVALID_TRANSACTION_BODY", + 51: "INVALID_SIGNATURE_TYPE_MISMATCHING_KEY", + 52: "INVALID_SIGNATURE_COUNT_MISMATCHING_KEY", + 53: "EMPTY_CLAIM_BODY", + 54: "EMPTY_CLAIM_HASH", + 55: "EMPTY_CLAIM_KEYS", + 56: "INVALID_CLAIM_HASH_SIZE", + 57: "EMPTY_QUERY_BODY", + 58: "EMPTY_CLAIM_QUERY", + 59: "CLAIM_NOT_FOUND", + 60: "ACCOUNT_ID_DOES_NOT_EXIST", + 61: "CLAIM_ALREADY_EXISTS", + 62: "INVALID_FILE_WACL", + 63: "SERIALIZATION_FAILED", + 64: "TRANSACTION_OVERSIZE", + 65: "TRANSACTION_TOO_MANY_LAYERS", + 66: "CONTRACT_DELETED", + 67: "PLATFORM_NOT_ACTIVE", + 68: "KEY_PREFIX_MISMATCH", + 69: "PLATFORM_TRANSACTION_NOT_CREATED", + 70: "INVALID_RENEWAL_PERIOD", + 71: "INVALID_PAYER_ACCOUNT_ID", + 72: "ACCOUNT_DELETED", + 73: "FILE_DELETED", + 74: "ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS", + 75: "SETTING_NEGATIVE_ACCOUNT_BALANCE", + 76: "OBTAINER_REQUIRED", + 77: "OBTAINER_SAME_CONTRACT_ID", + 78: "OBTAINER_DOES_NOT_EXIST", + 79: "MODIFYING_IMMUTABLE_CONTRACT", + 80: "FILE_SYSTEM_EXCEPTION", + 81: "AUTORENEW_DURATION_NOT_IN_RANGE", + 82: "ERROR_DECODING_BYTESTRING", + 83: "CONTRACT_FILE_EMPTY", + 84: "CONTRACT_BYTECODE_EMPTY", + 85: "INVALID_INITIAL_BALANCE", + 86: "INVALID_RECEIVE_RECORD_THRESHOLD", + 87: "INVALID_SEND_RECORD_THRESHOLD", + 88: "ACCOUNT_IS_NOT_GENESIS_ACCOUNT", + 89: "PAYER_ACCOUNT_UNAUTHORIZED", + 90: "INVALID_FREEZE_TRANSACTION_BODY", + 91: "FREEZE_TRANSACTION_BODY_NOT_FOUND", + 92: "TRANSFER_LIST_SIZE_LIMIT_EXCEEDED", + 93: "RESULT_SIZE_LIMIT_EXCEEDED", + 94: "NOT_SPECIAL_ACCOUNT", + 95: "CONTRACT_NEGATIVE_GAS", + 96: "CONTRACT_NEGATIVE_VALUE", + 97: "INVALID_FEE_FILE", + 98: "INVALID_EXCHANGE_RATE_FILE", + 99: "INSUFFICIENT_LOCAL_CALL_GAS", + 100: "ENTITY_NOT_ALLOWED_TO_DELETE", + 101: "AUTHORIZATION_FAILED", + 102: "FILE_UPLOADED_PROTO_INVALID", + 103: "FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK", + 104: "FEE_SCHEDULE_FILE_PART_UPLOADED", + 105: "EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED", + 106: "MAX_CONTRACT_STORAGE_EXCEEDED", +} + +var ResponseCodeEnum_value = map[string]int32{ + "OK": 0, + "INVALID_TRANSACTION": 1, + "PAYER_ACCOUNT_NOT_FOUND": 2, + "INVALID_NODE_ACCOUNT": 3, + "TRANSACTION_EXPIRED": 4, + "INVALID_TRANSACTION_START": 5, + "INVALID_TRANSACTION_DURATION": 6, + "INVALID_SIGNATURE": 7, + "MEMO_TOO_LONG": 8, + "INSUFFICIENT_TX_FEE": 9, + "INSUFFICIENT_PAYER_BALANCE": 10, + "DUPLICATE_TRANSACTION": 11, + "BUSY": 12, + "NOT_SUPPORTED": 13, + "INVALID_FILE_ID": 14, + "INVALID_ACCOUNT_ID": 15, + "INVALID_CONTRACT_ID": 16, + "INVALID_TRANSACTION_ID": 17, + "RECEIPT_NOT_FOUND": 18, + "RECORD_NOT_FOUND": 19, + "INVALID_SOLIDITY_ID": 20, + "UNKNOWN": 21, + "SUCCESS": 22, + "FAIL_INVALID": 23, + "FAIL_FEE": 24, + "FAIL_BALANCE": 25, + "KEY_REQUIRED": 26, + "BAD_ENCODING": 27, + "INSUFFICIENT_ACCOUNT_BALANCE": 28, + "INVALID_SOLIDITY_ADDRESS": 29, + "INSUFFICIENT_GAS": 30, + "CONTRACT_SIZE_LIMIT_EXCEEDED": 31, + "LOCAL_CALL_MODIFICATION_EXCEPTION": 32, + "CONTRACT_REVERT_EXECUTED": 33, + "CONTRACT_EXECUTION_EXCEPTION": 34, + "INVALID_RECEIVING_NODE_ACCOUNT": 35, + "MISSING_QUERY_HEADER": 36, + "ACCOUNT_UPDATE_FAILED": 37, + "INVALID_KEY_ENCODING": 38, + "NULL_SOLIDITY_ADDRESS": 39, + "CONTRACT_UPDATE_FAILED": 40, + "INVALID_QUERY_HEADER": 41, + "INVALID_FEE_SUBMITTED": 42, + "INVALID_PAYER_SIGNATURE": 43, + "KEY_NOT_PROVIDED": 44, + "INVALID_EXPIRATION_TIME": 45, + "NO_WACL_KEY": 46, + "FILE_CONTENT_EMPTY": 47, + "INVALID_ACCOUNT_AMOUNTS": 48, + "EMPTY_TRANSACTION_BODY": 49, + "INVALID_TRANSACTION_BODY": 50, + "INVALID_SIGNATURE_TYPE_MISMATCHING_KEY": 51, + "INVALID_SIGNATURE_COUNT_MISMATCHING_KEY": 52, + "EMPTY_CLAIM_BODY": 53, + "EMPTY_CLAIM_HASH": 54, + "EMPTY_CLAIM_KEYS": 55, + "INVALID_CLAIM_HASH_SIZE": 56, + "EMPTY_QUERY_BODY": 57, + "EMPTY_CLAIM_QUERY": 58, + "CLAIM_NOT_FOUND": 59, + "ACCOUNT_ID_DOES_NOT_EXIST": 60, + "CLAIM_ALREADY_EXISTS": 61, + "INVALID_FILE_WACL": 62, + "SERIALIZATION_FAILED": 63, + "TRANSACTION_OVERSIZE": 64, + "TRANSACTION_TOO_MANY_LAYERS": 65, + "CONTRACT_DELETED": 66, + "PLATFORM_NOT_ACTIVE": 67, + "KEY_PREFIX_MISMATCH": 68, + "PLATFORM_TRANSACTION_NOT_CREATED": 69, + "INVALID_RENEWAL_PERIOD": 70, + "INVALID_PAYER_ACCOUNT_ID": 71, + "ACCOUNT_DELETED": 72, + "FILE_DELETED": 73, + "ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS": 74, + "SETTING_NEGATIVE_ACCOUNT_BALANCE": 75, + "OBTAINER_REQUIRED": 76, + "OBTAINER_SAME_CONTRACT_ID": 77, + "OBTAINER_DOES_NOT_EXIST": 78, + "MODIFYING_IMMUTABLE_CONTRACT": 79, + "FILE_SYSTEM_EXCEPTION": 80, + "AUTORENEW_DURATION_NOT_IN_RANGE": 81, + "ERROR_DECODING_BYTESTRING": 82, + "CONTRACT_FILE_EMPTY": 83, + "CONTRACT_BYTECODE_EMPTY": 84, + "INVALID_INITIAL_BALANCE": 85, + "INVALID_RECEIVE_RECORD_THRESHOLD": 86, + "INVALID_SEND_RECORD_THRESHOLD": 87, + "ACCOUNT_IS_NOT_GENESIS_ACCOUNT": 88, + "PAYER_ACCOUNT_UNAUTHORIZED": 89, + "INVALID_FREEZE_TRANSACTION_BODY": 90, + "FREEZE_TRANSACTION_BODY_NOT_FOUND": 91, + "TRANSFER_LIST_SIZE_LIMIT_EXCEEDED": 92, + "RESULT_SIZE_LIMIT_EXCEEDED": 93, + "NOT_SPECIAL_ACCOUNT": 94, + "CONTRACT_NEGATIVE_GAS": 95, + "CONTRACT_NEGATIVE_VALUE": 96, + "INVALID_FEE_FILE": 97, + "INVALID_EXCHANGE_RATE_FILE": 98, + "INSUFFICIENT_LOCAL_CALL_GAS": 99, + "ENTITY_NOT_ALLOWED_TO_DELETE": 100, + "AUTHORIZATION_FAILED": 101, + "FILE_UPLOADED_PROTO_INVALID": 102, + "FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK": 103, + "FEE_SCHEDULE_FILE_PART_UPLOADED": 104, + "EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED": 105, + "MAX_CONTRACT_STORAGE_EXCEEDED": 106, +} + +func (x ResponseCodeEnum) String() string { + return proto.EnumName(ResponseCodeEnum_name, int32(x)) +} + +func (ResponseCodeEnum) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1af33712ce1d0093, []int{0} +} + +func init() { + proto.RegisterEnum("proto.ResponseCodeEnum", ResponseCodeEnum_name, ResponseCodeEnum_value) +} + +func init() { proto.RegisterFile("ResponseCode.proto", fileDescriptor_1af33712ce1d0093) } + +var fileDescriptor_1af33712ce1d0093 = []byte{ + // 1349 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x56, 0xf9, 0x77, 0x14, 0x37, + 0x12, 0x5e, 0x58, 0xae, 0x15, 0xb0, 0x14, 0xe2, 0x30, 0xf7, 0x7d, 0x2c, 0xb0, 0x71, 0x0e, 0x72, + 0xdf, 0x1a, 0xa9, 0x66, 0x46, 0xb1, 0x5a, 0x6a,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 0xbc, 0xb1, 0xf3, 0xb2, 0xf9, 0xa8, 0x5f, 0x7e, 0xb5, 0xf1, 0xe7, 0x46, + 0x79, 0xe0, 0xe9, 0x91, 0xfc, 0xeb, 0xf1, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0a, 0xd4, 0x1b, + 0x4a, 0xf8, 0x0b, 0x00, 0x00, +} diff --git a/proto/ResponseHeader.pb.go b/proto/ResponseHeader.pb.go new file mode 100644 index 000000000..ad26e564b --- /dev/null +++ b/proto/ResponseHeader.pb.go @@ -0,0 +1,110 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: ResponseHeader.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Every query receives a response containing the QueryResponseHeader. Either or both of the cost and stateProof fields may be blank, if the responseType didn't ask for the cost or stateProof. +type ResponseHeader struct { + NodeTransactionPrecheckCode ResponseCodeEnum `protobuf:"varint,1,opt,name=nodeTransactionPrecheckCode,proto3,enum=proto.ResponseCodeEnum" json:"nodeTransactionPrecheckCode,omitempty"` + ResponseType ResponseType `protobuf:"varint,2,opt,name=responseType,proto3,enum=proto.ResponseType" json:"responseType,omitempty"` + Cost uint64 `protobuf:"varint,3,opt,name=cost,proto3" json:"cost,omitempty"` + StateProof []byte `protobuf:"bytes,4,opt,name=stateProof,proto3" json:"stateProof,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } +func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } +func (*ResponseHeader) ProtoMessage() {} +func (*ResponseHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_b707db0c2015df73, []int{0} +} + +func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResponseHeader.Unmarshal(m, b) +} +func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResponseHeader.Marshal(b, m, deterministic) +} +func (m *ResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseHeader.Merge(m, src) +} +func (m *ResponseHeader) XXX_Size() int { + return xxx_messageInfo_ResponseHeader.Size(m) +} +func (m *ResponseHeader) XXX_DiscardUnknown() { + xxx_messageInfo_ResponseHeader.DiscardUnknown(m) +} + +var xxx_messageInfo_ResponseHeader proto.InternalMessageInfo + +func (m *ResponseHeader) GetNodeTransactionPrecheckCode() ResponseCodeEnum { + if m != nil { + return m.NodeTransactionPrecheckCode + } + return ResponseCodeEnum_OK +} + +func (m *ResponseHeader) GetResponseType() ResponseType { + if m != nil { + return m.ResponseType + } + return ResponseType_ANSWER_ONLY +} + +func (m *ResponseHeader) GetCost() uint64 { + if m != nil { + return m.Cost + } + return 0 +} + +func (m *ResponseHeader) GetStateProof() []byte { + if m != nil { + return m.StateProof + } + return nil +} + +func init() { + proto.RegisterType((*ResponseHeader)(nil), "proto.ResponseHeader") +} + +func init() { proto.RegisterFile("ResponseHeader.proto", fileDescriptor_b707db0c2015df73) } + +var fileDescriptor_b707db0c2015df73 = []byte{ + // 225 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x8d, 0x41, 0x4b, 0x03, 0x31, + 0x10, 0x85, 0x89, 0xae, 0x1e, 0x86, 0x52, 0x30, 0x0a, 0x2e, 0x15, 0x64, 0xe9, 0x41, 0xf6, 0xb4, + 0x07, 0x3d, 0x78, 0x57, 0x04, 0x8f, 0x6b, 0xe8, 0xc5, 0xe3, 0x98, 0x8c,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/proto/SmartContractService.pb.go b/proto/SmartContractService.pb.go new file mode 100644 index 000000000..8a3fd6c27 --- /dev/null +++ b/proto/SmartContractService.pb.go @@ -0,0 +1,490 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: SmartContractService.proto + +package proto + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +func init() { proto.RegisterFile("SmartContractService.proto", fileDescriptor_cf1e3b82b8c3ceb2) } + +var fileDescriptor_cf1e3b82b8c3ceb2 = []byte{ + // 298 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xcd, 0x4a, 0xc3, 0x40, + 0x10, 0xc7, 0x4f, 0xf5, 0xb0, 0x96, 0x16, 0x57, 0x41, 0xdc, 0x07, 0x10, 0x4f, 0x41, 0xd4, 0x83, + 0x27, 0x29, 0x69, 0x41, 0x0a, 0x7a, 0xb0, 0xad, 0x0f, 0x30, 0xee, 0x8e, 0x4d, 0x24, 0xd9, 0x09, + 0xbb, 0xd3, 0xe2, 0xbe, 0x96, 0x4f, 0x28, 0xe6, 0x8b, 0xa0, 0x42, 0xb4, 0x3d, 0x25, 0xf3, 0xf1, + 0xfb, 0xff, 0x67, 0x92, 0x5d, 0xa1, 0x96, 0x39, 0x38, 0x9e, 0x92, 0x65, 0x07, 0x9a, 0x97, 0xe8, + 0xb6, 0xa9, 0xc6, 0xa8, 0x70, 0xc4, 0x24, 0x07, 0xe5, 0x43, 0x9d, 0xad, 0x1c, 0x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0xe8, 0x0d, 0xb6, 0xf0, 0x72, 0x50, 0xbe, 0x5f, 0x7f, 0x06, 0x00, 0x00, + 0xff, 0xff, 0x3d, 0xce, 0xdd, 0x04, 0x55, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// SmartContractServiceClient is the client API for SmartContractService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type SmartContractServiceClient interface { + CreateContract(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + UpdateContract(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + ContractCallMethod(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + GetContractInfo(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + ContractCallLocalMethod(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + ContractGetBytecode(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + GetBySolidityID(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + GetTxRecordByContractID(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + DeleteContract(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + SystemDelete(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) + SystemUndelete(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) +} + +type smartContractServiceClient struct { + cc *grpc.ClientConn +} + +func NewSmartContractServiceClient(cc *grpc.ClientConn) SmartContractServiceClient { + return &smartContractServiceClient{cc} +} + +func (c *smartContractServiceClient) CreateContract(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.SmartContractService/createContract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *smartContractServiceClient) UpdateContract(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.SmartContractService/updateContract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *smartContractServiceClient) ContractCallMethod(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.SmartContractService/contractCallMethod", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *smartContractServiceClient) GetContractInfo(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.SmartContractService/getContractInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *smartContractServiceClient) ContractCallLocalMethod(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.SmartContractService/contractCallLocalMethod", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *smartContractServiceClient) ContractGetBytecode(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.SmartContractService/ContractGetBytecode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *smartContractServiceClient) GetBySolidityID(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.SmartContractService/getBySolidityID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *smartContractServiceClient) GetTxRecordByContractID(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/proto.SmartContractService/getTxRecordByContractID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *smartContractServiceClient) DeleteContract(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.SmartContractService/deleteContract", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *smartContractServiceClient) SystemDelete(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.SmartContractService/systemDelete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *smartContractServiceClient) SystemUndelete(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*TransactionResponse, error) { + out := new(TransactionResponse) + err := c.cc.Invoke(ctx, "/proto.SmartContractService/systemUndelete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SmartContractServiceServer is the server API for SmartContractService service. +type SmartContractServiceServer interface { + CreateContract(context.Context, *Transaction) (*TransactionResponse, error) + UpdateContract(context.Context, *Transaction) (*TransactionResponse, error) + ContractCallMethod(context.Context, *Transaction) (*TransactionResponse, error) + GetContractInfo(context.Context, *Query) (*Response, error) + ContractCallLocalMethod(context.Context, *Query) (*Response, error) + ContractGetBytecode(context.Context, *Query) (*Response, error) + GetBySolidityID(context.Context, *Query) (*Response, error) + GetTxRecordByContractID(context.Context, *Query) (*Response, error) + DeleteContract(context.Context, *Transaction) (*TransactionResponse, error) + SystemDelete(context.Context, *Transaction) (*TransactionResponse, error) + SystemUndelete(context.Context, *Transaction) (*TransactionResponse, error) +} + +// UnimplementedSmartContractServiceServer can be embedded to have forward compatible implementations. +type UnimplementedSmartContractServiceServer struct { +} + +func (*UnimplementedSmartContractServiceServer) CreateContract(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateContract not implemented") +} +func (*UnimplementedSmartContractServiceServer) UpdateContract(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateContract not implemented") +} +func (*UnimplementedSmartContractServiceServer) ContractCallMethod(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ContractCallMethod not implemented") +} +func (*UnimplementedSmartContractServiceServer) GetContractInfo(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetContractInfo not implemented") +} +func (*UnimplementedSmartContractServiceServer) ContractCallLocalMethod(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method ContractCallLocalMethod not implemented") +} +func (*UnimplementedSmartContractServiceServer) ContractGetBytecode(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method ContractGetBytecode not implemented") +} +func (*UnimplementedSmartContractServiceServer) GetBySolidityID(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetBySolidityID not implemented") +} +func (*UnimplementedSmartContractServiceServer) GetTxRecordByContractID(ctx context.Context, req *Query) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTxRecordByContractID not implemented") +} +func (*UnimplementedSmartContractServiceServer) DeleteContract(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteContract not implemented") +} +func (*UnimplementedSmartContractServiceServer) SystemDelete(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SystemDelete not implemented") +} +func (*UnimplementedSmartContractServiceServer) SystemUndelete(ctx context.Context, req *Transaction) (*TransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SystemUndelete not implemented") +} + +func RegisterSmartContractServiceServer(s *grpc.Server, srv SmartContractServiceServer) { + s.RegisterService(&_SmartContractService_serviceDesc, srv) +} + +func _SmartContractService_CreateContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SmartContractServiceServer).CreateContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.SmartContractService/CreateContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SmartContractServiceServer).CreateContract(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _SmartContractService_UpdateContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SmartContractServiceServer).UpdateContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.SmartContractService/UpdateContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SmartContractServiceServer).UpdateContract(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _SmartContractService_ContractCallMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SmartContractServiceServer).ContractCallMethod(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.SmartContractService/ContractCallMethod", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SmartContractServiceServer).ContractCallMethod(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _SmartContractService_GetContractInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SmartContractServiceServer).GetContractInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.SmartContractService/GetContractInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SmartContractServiceServer).GetContractInfo(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _SmartContractService_ContractCallLocalMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SmartContractServiceServer).ContractCallLocalMethod(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.SmartContractService/ContractCallLocalMethod", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SmartContractServiceServer).ContractCallLocalMethod(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _SmartContractService_ContractGetBytecode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SmartContractServiceServer).ContractGetBytecode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.SmartContractService/ContractGetBytecode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SmartContractServiceServer).ContractGetBytecode(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _SmartContractService_GetBySolidityID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SmartContractServiceServer).GetBySolidityID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.SmartContractService/GetBySolidityID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SmartContractServiceServer).GetBySolidityID(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _SmartContractService_GetTxRecordByContractID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SmartContractServiceServer).GetTxRecordByContractID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.SmartContractService/GetTxRecordByContractID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SmartContractServiceServer).GetTxRecordByContractID(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _SmartContractService_DeleteContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SmartContractServiceServer).DeleteContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.SmartContractService/DeleteContract", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SmartContractServiceServer).DeleteContract(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _SmartContractService_SystemDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SmartContractServiceServer).SystemDelete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.SmartContractService/SystemDelete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SmartContractServiceServer).SystemDelete(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +func _SmartContractService_SystemUndelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Transaction) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SmartContractServiceServer).SystemUndelete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/proto.SmartContractService/SystemUndelete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SmartContractServiceServer).SystemUndelete(ctx, req.(*Transaction)) + } + return interceptor(ctx, in, info, handler) +} + +var _SmartContractService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "proto.SmartContractService", + HandlerType: (*SmartContractServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "createContract", + Handler: _SmartContractService_CreateContract_Handler, + }, + { + MethodName: "updateContract", + Handler: _SmartContractService_UpdateContract_Handler, + }, + { + MethodName: "contractCallMethod", + Handler: _SmartContractService_ContractCallMethod_Handler, + }, + { + MethodName: "getContractInfo", + Handler: _SmartContractService_GetContractInfo_Handler, + }, + { + MethodName: "contractCallLocalMethod", + Handler: _SmartContractService_ContractCallLocalMethod_Handler, + }, + { + MethodName: "ContractGetBytecode", + Handler: _SmartContractService_ContractGetBytecode_Handler, + }, + { + MethodName: "getBySolidityID", + Handler: _SmartContractService_GetBySolidityID_Handler, + }, + { + MethodName: "getTxRecordByContractID", + Handler: _SmartContractService_GetTxRecordByContractID_Handler, + }, + { + MethodName: "deleteContract", + Handler: _SmartContractService_DeleteContract_Handler, + }, + { + MethodName: "systemDelete", + Handler: _SmartContractService_SystemDelete_Handler, + }, + { + MethodName: "systemUndelete", + Handler: _SmartContractService_SystemUndelete_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "SmartContractService.proto", +} diff --git a/proto/SystemDelete.pb.go b/proto/SystemDelete.pb.go new file mode 100644 index 000000000..8e3947648 --- /dev/null +++ b/proto/SystemDelete.pb.go @@ -0,0 +1,135 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: SystemDelete.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Delete a file or smart contract - can only be done with a Hedera admin multisig. When it is deleted, it immediately disappears from the system as seen by the user, but is still stored internally until the expiration time, at which time it is truly and permanently deleted. Until that time, it can be undeleted by the Hedera admin multisig. When a smart contract is deleted, the cryptocurrency account within it continues to exist, and is not affected by the expiration time here. +type SystemDeleteTransactionBody struct { + // Types that are valid to be assigned to Id: + // *SystemDeleteTransactionBody_FileID + // *SystemDeleteTransactionBody_ContractID + Id isSystemDeleteTransactionBody_Id `protobuf_oneof:"id"` + ExpirationTime *TimestampSeconds `protobuf:"bytes,3,opt,name=expirationTime,proto3" json:"expirationTime,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SystemDeleteTransactionBody) Reset() { *m = SystemDeleteTransactionBody{} } +func (m *SystemDeleteTransactionBody) String() string { return proto.CompactTextString(m) } +func (*SystemDeleteTransactionBody) ProtoMessage() {} +func (*SystemDeleteTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_860c88b39ffc5dcc, []int{0} +} + +func (m *SystemDeleteTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SystemDeleteTransactionBody.Unmarshal(m, b) +} +func (m *SystemDeleteTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SystemDeleteTransactionBody.Marshal(b, m, deterministic) +} +func (m *SystemDeleteTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_SystemDeleteTransactionBody.Merge(m, src) +} +func (m *SystemDeleteTransactionBody) XXX_Size() int { + return xxx_messageInfo_SystemDeleteTransactionBody.Size(m) +} +func (m *SystemDeleteTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_SystemDeleteTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_SystemDeleteTransactionBody proto.InternalMessageInfo + +type isSystemDeleteTransactionBody_Id interface { + isSystemDeleteTransactionBody_Id() +} + +type SystemDeleteTransactionBody_FileID struct { + FileID *FileID `protobuf:"bytes,1,opt,name=fileID,proto3,oneof"` +} + +type SystemDeleteTransactionBody_ContractID struct { + ContractID *ContractID `protobuf:"bytes,2,opt,name=contractID,proto3,oneof"` +} + +func (*SystemDeleteTransactionBody_FileID) isSystemDeleteTransactionBody_Id() {} + +func (*SystemDeleteTransactionBody_ContractID) isSystemDeleteTransactionBody_Id() {} + +func (m *SystemDeleteTransactionBody) GetId() isSystemDeleteTransactionBody_Id { + if m != nil { + return m.Id + } + return nil +} + +func (m *SystemDeleteTransactionBody) GetFileID() *FileID { + if x, ok := m.GetId().(*SystemDeleteTransactionBody_FileID); ok { + return x.FileID + } + return nil +} + +func (m *SystemDeleteTransactionBody) GetContractID() *ContractID { + if x, ok := m.GetId().(*SystemDeleteTransactionBody_ContractID); ok { + return x.ContractID + } + return nil +} + +func (m *SystemDeleteTransactionBody) GetExpirationTime() *TimestampSeconds { + if m != nil { + return m.ExpirationTime + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SystemDeleteTransactionBody) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SystemDeleteTransactionBody_FileID)(nil), + (*SystemDeleteTransactionBody_ContractID)(nil), + } +} + +func init() { + proto.RegisterType((*SystemDeleteTransactionBody)(nil), "proto.SystemDeleteTransactionBody") +} + +func init() { proto.RegisterFile("SystemDelete.proto", fileDescriptor_860c88b39ffc5dcc) } + +var fileDescriptor_860c88b39ffc5dcc = []byte{ + // 230 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8e, 0xcd, 0x4a, 0x03, 0x31, + 0x14, 0x85, 0x3b, 0x55, 0xbb, 0xb8, 0xe2, 0x5f, 0x36, 0x0e, 0x75, 0x23, 0x5d, 0xa8, 0xab, 0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0xfa, 0x98, 0xe5, 0xdf, 0xf2, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xca, 0xcc, + 0x45, 0x9b, 0x33, 0x01, 0x00, 0x00, +} diff --git a/proto/SystemUndelete.pb.go b/proto/SystemUndelete.pb.go new file mode 100644 index 000000000..b37c11c17 --- /dev/null +++ b/proto/SystemUndelete.pb.go @@ -0,0 +1,124 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: SystemUndelete.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Undelete a file or smart contract that was deleted by AdminDelete - can only be done with a Hedera admin multisig. When it is deleted, it immediately disappears from the system as seen by the user, but is still stored internally until the expiration time, at which time it is truly and permanently deleted. Until that time, it can be undeleted by the Hedera admin multisig. When a smart contract is deleted, the cryptocurrency account within it continues to exist, and is not affected by the expiration time here. +type SystemUndeleteTransactionBody struct { + // Types that are valid to be assigned to Id: + // *SystemUndeleteTransactionBody_FileID + // *SystemUndeleteTransactionBody_ContractID + Id isSystemUndeleteTransactionBody_Id `protobuf_oneof:"id"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SystemUndeleteTransactionBody) Reset() { *m = SystemUndeleteTransactionBody{} } +func (m *SystemUndeleteTransactionBody) String() string { return proto.CompactTextString(m) } +func (*SystemUndeleteTransactionBody) ProtoMessage() {} +func (*SystemUndeleteTransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_ba44bcfbfa1b6abb, []int{0} +} + +func (m *SystemUndeleteTransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SystemUndeleteTransactionBody.Unmarshal(m, b) +} +func (m *SystemUndeleteTransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SystemUndeleteTransactionBody.Marshal(b, m, deterministic) +} +func (m *SystemUndeleteTransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_SystemUndeleteTransactionBody.Merge(m, src) +} +func (m *SystemUndeleteTransactionBody) XXX_Size() int { + return xxx_messageInfo_SystemUndeleteTransactionBody.Size(m) +} +func (m *SystemUndeleteTransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_SystemUndeleteTransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_SystemUndeleteTransactionBody proto.InternalMessageInfo + +type isSystemUndeleteTransactionBody_Id interface { + isSystemUndeleteTransactionBody_Id() +} + +type SystemUndeleteTransactionBody_FileID struct { + FileID *FileID `protobuf:"bytes,1,opt,name=fileID,proto3,oneof"` +} + +type SystemUndeleteTransactionBody_ContractID struct { + ContractID *ContractID `protobuf:"bytes,2,opt,name=contractID,proto3,oneof"` +} + +func (*SystemUndeleteTransactionBody_FileID) isSystemUndeleteTransactionBody_Id() {} + +func (*SystemUndeleteTransactionBody_ContractID) isSystemUndeleteTransactionBody_Id() {} + +func (m *SystemUndeleteTransactionBody) GetId() isSystemUndeleteTransactionBody_Id { + if m != nil { + return m.Id + } + return nil +} + +func (m *SystemUndeleteTransactionBody) GetFileID() *FileID { + if x, ok := m.GetId().(*SystemUndeleteTransactionBody_FileID); ok { + return x.FileID + } + return nil +} + +func (m *SystemUndeleteTransactionBody) GetContractID() *ContractID { + if x, ok := m.GetId().(*SystemUndeleteTransactionBody_ContractID); ok { + return x.ContractID + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SystemUndeleteTransactionBody) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SystemUndeleteTransactionBody_FileID)(nil), + (*SystemUndeleteTransactionBody_ContractID)(nil), + } +} + +func init() { + proto.RegisterType((*SystemUndeleteTransactionBody)(nil), "proto.SystemUndeleteTransactionBody") +} + +func init() { proto.RegisterFile("SystemUndelete.proto", fileDescriptor_ba44bcfbfa1b6abb) } + +var fileDescriptor_ba44bcfbfa1b6abb = []byte{ + // 189 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x09, 0xae, 0x2c, 0x2e, + 0x49, 0xcd, 0x0d, 0xcd, 0x4b, 0x49, 0xcd, 0x49, 0x2d, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, + 0x17, 0x62, 0x05, 0x53, 0x52, 0x02, 0x4e, 0x89, 0xc5, 0x99, 0xc9, 0x21, 0x95, 0x05, 0xa9, 0xc5, + 0x10, 0x09, 0xa5, 0x66, 0x46, 0x2e, 0x59, 0x54, 0x1d, 0x21, 0x45, 0x89, 0x79, 0xc5, 0x89, 0xc9, + 0x25, 0x99, 0xf9, 0x79, 0x4e, 0xf9, 0x29, 0x95, 0x42, 0xea, 0x5c, 0x6c, 0x69, 0x99, 0x39, 0xa9, + 0x9e, 0x2e, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 0xbc, 0x10, 0x9d, 0x7a, 0x6e, 0x60, 0x41, + 0x0f, 0x86, 0x20, 0xa8, 0xb4, 0x90, 0x31, 0x17, 0x57, 0x72, 0x7e, 0x5e, 0x49, 0x51, 0x62, 0x72, + 0x89, 0xa7, 0x8b, 0x04, 0x13, 0x58, 0xb1, 0x20, 0x54, 0xb1, 0x33, 0x5c, 0xc2, 0x83, 0x21, 0x08, + 0x49, 0x99, 0x13, 0x0b, 0x17, 0x53, 0x66, 0x8a, 0x93, 0x1a, 0x97, 0x52, 0x72, 0x7e, 0xae, 0x5e, + 0x46, 0x6a, 0x4a, 0x6a, 0x51, 0x62, 0x46, 0x62, 0x71, 0x46, 0x7a, 0x51, 0x62, 0x41, 0x86, 0x5e, + 0x62, 0x41, 0x26, 0x54, 0x7f, 0x56, 0x62, 0x59, 0x62, 0x00, 0x63, 0x12, 0x1b, 0x98, 0x67, 0x0c, + 0x08, 0x00, 0x00, 0xff, 0xff, 0xb4, 0x22, 0x0c, 0xe1, 0xe5, 0x00, 0x00, 0x00, +} diff --git a/proto/Timestamp.pb.go b/proto/Timestamp.pb.go new file mode 100644 index 000000000..d0b0688e3 --- /dev/null +++ b/proto/Timestamp.pb.go @@ -0,0 +1,129 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: Timestamp.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// An exact date and time. This is the same data structure as the protobuf Timestamp.proto (see the comments in https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto) +type Timestamp struct { + Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` + Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Timestamp) Reset() { *m = Timestamp{} } +func (m *Timestamp) String() string { return proto.CompactTextString(m) } +func (*Timestamp) ProtoMessage() {} +func (*Timestamp) Descriptor() ([]byte, []int) { + return fileDescriptor_688c79fb5dc63c9c, []int{0} +} + +func (m *Timestamp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Timestamp.Unmarshal(m, b) +} +func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Timestamp.Marshal(b, m, deterministic) +} +func (m *Timestamp) XXX_Merge(src proto.Message) { + xxx_messageInfo_Timestamp.Merge(m, src) +} +func (m *Timestamp) XXX_Size() int { + return xxx_messageInfo_Timestamp.Size(m) +} +func (m *Timestamp) XXX_DiscardUnknown() { + xxx_messageInfo_Timestamp.DiscardUnknown(m) +} + +var xxx_messageInfo_Timestamp proto.InternalMessageInfo + +func (m *Timestamp) GetSeconds() int64 { + if m != nil { + return m.Seconds + } + return 0 +} + +func (m *Timestamp) GetNanos() int32 { + if m != nil { + return m.Nanos + } + return 0 +} + +// An exact date and time, with a resolution of one second (no nanoseconds). +type TimestampSeconds struct { + Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TimestampSeconds) Reset() { *m = TimestampSeconds{} } +func (m *TimestampSeconds) String() string { return proto.CompactTextString(m) } +func (*TimestampSeconds) ProtoMessage() {} +func (*TimestampSeconds) Descriptor() ([]byte, []int) { + return fileDescriptor_688c79fb5dc63c9c, []int{1} +} + +func (m *TimestampSeconds) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TimestampSeconds.Unmarshal(m, b) +} +func (m *TimestampSeconds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TimestampSeconds.Marshal(b, m, deterministic) +} +func (m *TimestampSeconds) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimestampSeconds.Merge(m, src) +} +func (m *TimestampSeconds) XXX_Size() int { + return xxx_messageInfo_TimestampSeconds.Size(m) +} +func (m *TimestampSeconds) XXX_DiscardUnknown() { + xxx_messageInfo_TimestampSeconds.DiscardUnknown(m) +} + +var xxx_messageInfo_TimestampSeconds proto.InternalMessageInfo + +func (m *TimestampSeconds) GetSeconds() int64 { + if m != nil { + return m.Seconds + } + return 0 +} + +func init() { + proto.RegisterType((*Timestamp)(nil), "proto.Timestamp") + proto.RegisterType((*TimestampSeconds)(nil), "proto.TimestampSeconds") +} + +func init() { proto.RegisterFile("Timestamp.proto", fileDescriptor_688c79fb5dc63c9c) } + +var fileDescriptor_688c79fb5dc63c9c = []byte{ + // 140 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x0f, 0xc9, 0xcc, 0x4d, + 0x2d, 0x2e, 0x49, 0xcc, 0x2d, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x53, 0x4a, + 0xd6, 0x5c, 0x9c, 0x70, 0x19, 0x21, 0x09, 0x2e, 0xf6, 0xe2, 0xd4, 0xe4, 0xfc, 0xbc, 0x94, 0x62, + 0x09, 0x46, 0x05, 0x46, 0x0d, 0xe6, 0x20, 0x18, 0x57, 0x48, 0x84, 0x8b, 0x35, 0x2f, 0x31, 0x2f, + 0xbf, 0x58, 0x82, 0x49, 0x81, 0x51, 0x83, 0x35, 0x08, 0xc2, 0x51, 0xd2, 0xe1, 0x12, 0x80, 0x6b, + 0x0e, 0x86, 0xaa, 0xc4, 0x69, 0x86, 0x93, 0x1a, 0x97, 0x52, 0x72, 0x7e, 0xae, 0x5e, 0x46, 0x6a, + 0x4a, 0x6a, 0x51, 0x62, 0x46, 0x62, 0x71, 0x46, 0x7a, 0x51, 0x62, 0x41, 0x86, 0x5e, 0x62, 0x41, + 0x26, 0xc4, 0x49, 0x7a, 0x59, 0x89, 0x65, 0x89, 0x01, 0x8c, 0x49, 0x6c, 0x60, 0x9e, 0x31, 0x20, + 0x00, 0x00, 0xff, 0xff, 0x98, 0x65, 0x6c, 0x4a, 0xb3, 0x00, 0x00, 0x00, +} diff --git a/proto/Transaction.pb.go b/proto/Transaction.pb.go new file mode 100644 index 000000000..e2917d645 --- /dev/null +++ b/proto/Transaction.pb.go @@ -0,0 +1,146 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: Transaction.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// A single signed transaction, including all its signatures. The SignatureList will have a Signature for each Key in the transaction, either explicit or implicit, in the order that they appear in the transaction. For example, a CryptoTransfer will first have a Signature corresponding to the Key for the paying account, followed by a Signature corresponding to the Key for each account that is sending or receiving cryptocurrency in the transfer. Each Transaction should not have more than 50 levels. +// The SignatureList field is deprecated and succeeded by SignatureMap. +type Transaction struct { + // Types that are valid to be assigned to BodyData: + // *Transaction_Body + // *Transaction_BodyBytes + BodyData isTransaction_BodyData `protobuf_oneof:"bodyData"` + Sigs *SignatureList `protobuf:"bytes,2,opt,name=sigs,proto3" json:"sigs,omitempty"` // Deprecated: Do not use. + SigMap *SignatureMap `protobuf:"bytes,3,opt,name=sigMap,proto3" json:"sigMap,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Transaction) Reset() { *m = Transaction{} } +func (m *Transaction) String() string { return proto.CompactTextString(m) } +func (*Transaction) ProtoMessage() {} +func (*Transaction) Descriptor() ([]byte, []int) { + return fileDescriptor_80613087cbbd34fc, []int{0} +} + +func (m *Transaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Transaction.Unmarshal(m, b) +} +func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Transaction.Marshal(b, m, deterministic) +} +func (m *Transaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_Transaction.Merge(m, src) +} +func (m *Transaction) XXX_Size() int { + return xxx_messageInfo_Transaction.Size(m) +} +func (m *Transaction) XXX_DiscardUnknown() { + xxx_messageInfo_Transaction.DiscardUnknown(m) +} + +var xxx_messageInfo_Transaction proto.InternalMessageInfo + +type isTransaction_BodyData interface { + isTransaction_BodyData() +} + +type Transaction_Body struct { + Body *TransactionBody `protobuf:"bytes,1,opt,name=body,proto3,oneof"` +} + +type Transaction_BodyBytes struct { + BodyBytes []byte `protobuf:"bytes,4,opt,name=bodyBytes,proto3,oneof"` +} + +func (*Transaction_Body) isTransaction_BodyData() {} + +func (*Transaction_BodyBytes) isTransaction_BodyData() {} + +func (m *Transaction) GetBodyData() isTransaction_BodyData { + if m != nil { + return m.BodyData + } + return nil +} + +// Deprecated: Do not use. +func (m *Transaction) GetBody() *TransactionBody { + if x, ok := m.GetBodyData().(*Transaction_Body); ok { + return x.Body + } + return nil +} + +func (m *Transaction) GetBodyBytes() []byte { + if x, ok := m.GetBodyData().(*Transaction_BodyBytes); ok { + return x.BodyBytes + } + return nil +} + +// Deprecated: Do not use. +func (m *Transaction) GetSigs() *SignatureList { + if m != nil { + return m.Sigs + } + return nil +} + +func (m *Transaction) GetSigMap() *SignatureMap { + if m != nil { + return m.SigMap + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Transaction) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Transaction_Body)(nil), + (*Transaction_BodyBytes)(nil), + } +} + +func init() { + proto.RegisterType((*Transaction)(nil), "proto.Transaction") +} + +func init() { proto.RegisterFile("Transaction.proto", fileDescriptor_80613087cbbd34fc) } + +var fileDescriptor_80613087cbbd34fc = []byte{ + // 232 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8d, 0xcd, 0x4a, 0x03, 0x31, + 0x14, 0x85, 0x9b, 0x3a, 0x16, 0xbd, 0x75, 0xa1, 0xf1, 0x87, 0xd0, 0x85, 0x94, 0x2e, 0xa4, 0xa0, + 0x0c, 0xa2, 0x6f, 0x10, 0x5c, 0x74, 0x61, 0x41, 0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xff, + 0xb4, 0xcf, 0x12, 0xe3, 0x3c, 0x01, 0x00, 0x00, +} diff --git a/proto/TransactionBody.pb.go b/proto/TransactionBody.pb.go new file mode 100644 index 000000000..073662c27 --- /dev/null +++ b/proto/TransactionBody.pb.go @@ -0,0 +1,427 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: TransactionBody.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// A single transaction. All transaction types are possible here. +type TransactionBody struct { + TransactionID *TransactionID `protobuf:"bytes,1,opt,name=transactionID,proto3" json:"transactionID,omitempty"` + NodeAccountID *AccountID `protobuf:"bytes,2,opt,name=nodeAccountID,proto3" json:"nodeAccountID,omitempty"` + TransactionFee uint64 `protobuf:"varint,3,opt,name=transactionFee,proto3" json:"transactionFee,omitempty"` + TransactionValidDuration *Duration `protobuf:"bytes,4,opt,name=transactionValidDuration,proto3" json:"transactionValidDuration,omitempty"` + GenerateRecord bool `protobuf:"varint,5,opt,name=generateRecord,proto3" json:"generateRecord,omitempty"` // Deprecated: Do not use. + Memo string `protobuf:"bytes,6,opt,name=memo,proto3" json:"memo,omitempty"` + // Types that are valid to be assigned to Data: + // *TransactionBody_ContractCall + // *TransactionBody_ContractCreateInstance + // *TransactionBody_ContractUpdateInstance + // *TransactionBody_ContractDeleteInstance + // *TransactionBody_CryptoAddClaim + // *TransactionBody_CryptoCreateAccount + // *TransactionBody_CryptoDelete + // *TransactionBody_CryptoDeleteClaim + // *TransactionBody_CryptoTransfer + // *TransactionBody_CryptoUpdateAccount + // *TransactionBody_FileAppend + // *TransactionBody_FileCreate + // *TransactionBody_FileDelete + // *TransactionBody_FileUpdate + // *TransactionBody_SystemDelete + // *TransactionBody_SystemUndelete + // *TransactionBody_Freeze + Data isTransactionBody_Data `protobuf_oneof:"data"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionBody) Reset() { *m = TransactionBody{} } +func (m *TransactionBody) String() string { return proto.CompactTextString(m) } +func (*TransactionBody) ProtoMessage() {} +func (*TransactionBody) Descriptor() ([]byte, []int) { + return fileDescriptor_adc97762ca10f37b, []int{0} +} + +func (m *TransactionBody) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionBody.Unmarshal(m, b) +} +func (m *TransactionBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionBody.Marshal(b, m, deterministic) +} +func (m *TransactionBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionBody.Merge(m, src) +} +func (m *TransactionBody) XXX_Size() int { + return xxx_messageInfo_TransactionBody.Size(m) +} +func (m *TransactionBody) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionBody.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionBody proto.InternalMessageInfo + +func (m *TransactionBody) GetTransactionID() *TransactionID { + if m != nil { + return m.TransactionID + } + return nil +} + +func (m *TransactionBody) GetNodeAccountID() *AccountID { + if m != nil { + return m.NodeAccountID + } + return nil +} + +func (m *TransactionBody) GetTransactionFee() uint64 { + if m != nil { + return m.TransactionFee + } + return 0 +} + +func (m *TransactionBody) GetTransactionValidDuration() *Duration { + if m != nil { + return m.TransactionValidDuration + } + return nil +} + +// Deprecated: Do not use. +func (m *TransactionBody) GetGenerateRecord() bool { + if m != nil { + return m.GenerateRecord + } + return false +} + +func (m *TransactionBody) GetMemo() string { + if m != nil { + return m.Memo + } + return "" +} + +type isTransactionBody_Data interface { + isTransactionBody_Data() +} + +type TransactionBody_ContractCall struct { + ContractCall *ContractCallTransactionBody `protobuf:"bytes,7,opt,name=contractCall,proto3,oneof"` +} + +type TransactionBody_ContractCreateInstance struct { + ContractCreateInstance *ContractCreateTransactionBody `protobuf:"bytes,8,opt,name=contractCreateInstance,proto3,oneof"` +} + +type TransactionBody_ContractUpdateInstance struct { + ContractUpdateInstance *ContractUpdateTransactionBody `protobuf:"bytes,9,opt,name=contractUpdateInstance,proto3,oneof"` +} + +type TransactionBody_ContractDeleteInstance struct { + ContractDeleteInstance *ContractDeleteTransactionBody `protobuf:"bytes,22,opt,name=contractDeleteInstance,proto3,oneof"` +} + +type TransactionBody_CryptoAddClaim struct { + CryptoAddClaim *CryptoAddClaimTransactionBody `protobuf:"bytes,10,opt,name=cryptoAddClaim,proto3,oneof"` +} + +type TransactionBody_CryptoCreateAccount struct { + CryptoCreateAccount *CryptoCreateTransactionBody `protobuf:"bytes,11,opt,name=cryptoCreateAccount,proto3,oneof"` +} + +type TransactionBody_CryptoDelete struct { + CryptoDelete *CryptoDeleteTransactionBody `protobuf:"bytes,12,opt,name=cryptoDelete,proto3,oneof"` +} + +type TransactionBody_CryptoDeleteClaim struct { + CryptoDeleteClaim *CryptoDeleteClaimTransactionBody `protobuf:"bytes,13,opt,name=cryptoDeleteClaim,proto3,oneof"` +} + +type TransactionBody_CryptoTransfer struct { + CryptoTransfer *CryptoTransferTransactionBody `protobuf:"bytes,14,opt,name=cryptoTransfer,proto3,oneof"` +} + +type TransactionBody_CryptoUpdateAccount struct { + CryptoUpdateAccount *CryptoUpdateTransactionBody `protobuf:"bytes,15,opt,name=cryptoUpdateAccount,proto3,oneof"` +} + +type TransactionBody_FileAppend struct { + FileAppend *FileAppendTransactionBody `protobuf:"bytes,16,opt,name=fileAppend,proto3,oneof"` +} + +type TransactionBody_FileCreate struct { + FileCreate *FileCreateTransactionBody `protobuf:"bytes,17,opt,name=fileCreate,proto3,oneof"` +} + +type TransactionBody_FileDelete struct { + FileDelete *FileDeleteTransactionBody `protobuf:"bytes,18,opt,name=fileDelete,proto3,oneof"` +} + +type TransactionBody_FileUpdate struct { + FileUpdate *FileUpdateTransactionBody `protobuf:"bytes,19,opt,name=fileUpdate,proto3,oneof"` +} + +type TransactionBody_SystemDelete struct { + SystemDelete *SystemDeleteTransactionBody `protobuf:"bytes,20,opt,name=systemDelete,proto3,oneof"` +} + +type TransactionBody_SystemUndelete struct { + SystemUndelete *SystemUndeleteTransactionBody `protobuf:"bytes,21,opt,name=systemUndelete,proto3,oneof"` +} + +type TransactionBody_Freeze struct { + Freeze *FreezeTransactionBody `protobuf:"bytes,23,opt,name=freeze,proto3,oneof"` +} + +func (*TransactionBody_ContractCall) isTransactionBody_Data() {} + +func (*TransactionBody_ContractCreateInstance) isTransactionBody_Data() {} + +func (*TransactionBody_ContractUpdateInstance) isTransactionBody_Data() {} + +func (*TransactionBody_ContractDeleteInstance) isTransactionBody_Data() {} + +func (*TransactionBody_CryptoAddClaim) isTransactionBody_Data() {} + +func (*TransactionBody_CryptoCreateAccount) isTransactionBody_Data() {} + +func (*TransactionBody_CryptoDelete) isTransactionBody_Data() {} + +func (*TransactionBody_CryptoDeleteClaim) isTransactionBody_Data() {} + +func (*TransactionBody_CryptoTransfer) isTransactionBody_Data() {} + +func (*TransactionBody_CryptoUpdateAccount) isTransactionBody_Data() {} + +func (*TransactionBody_FileAppend) isTransactionBody_Data() {} + +func (*TransactionBody_FileCreate) isTransactionBody_Data() {} + +func (*TransactionBody_FileDelete) isTransactionBody_Data() {} + +func (*TransactionBody_FileUpdate) isTransactionBody_Data() {} + +func (*TransactionBody_SystemDelete) isTransactionBody_Data() {} + +func (*TransactionBody_SystemUndelete) isTransactionBody_Data() {} + +func (*TransactionBody_Freeze) isTransactionBody_Data() {} + +func (m *TransactionBody) GetData() isTransactionBody_Data { + if m != nil { + return m.Data + } + return nil +} + +func (m *TransactionBody) GetContractCall() *ContractCallTransactionBody { + if x, ok := m.GetData().(*TransactionBody_ContractCall); ok { + return x.ContractCall + } + return nil +} + +func (m *TransactionBody) GetContractCreateInstance() *ContractCreateTransactionBody { + if x, ok := m.GetData().(*TransactionBody_ContractCreateInstance); ok { + return x.ContractCreateInstance + } + return nil +} + +func (m *TransactionBody) GetContractUpdateInstance() *ContractUpdateTransactionBody { + if x, ok := m.GetData().(*TransactionBody_ContractUpdateInstance); ok { + return x.ContractUpdateInstance + } + return nil +} + +func (m *TransactionBody) GetContractDeleteInstance() *ContractDeleteTransactionBody { + if x, ok := m.GetData().(*TransactionBody_ContractDeleteInstance); ok { + return x.ContractDeleteInstance + } + return nil +} + +func (m *TransactionBody) GetCryptoAddClaim() *CryptoAddClaimTransactionBody { + if x, ok := m.GetData().(*TransactionBody_CryptoAddClaim); ok { + return x.CryptoAddClaim + } + return nil +} + +func (m *TransactionBody) GetCryptoCreateAccount() *CryptoCreateTransactionBody { + if x, ok := m.GetData().(*TransactionBody_CryptoCreateAccount); ok { + return x.CryptoCreateAccount + } + return nil +} + +func (m *TransactionBody) GetCryptoDelete() *CryptoDeleteTransactionBody { + if x, ok := m.GetData().(*TransactionBody_CryptoDelete); ok { + return x.CryptoDelete + } + return nil +} + +func (m *TransactionBody) GetCryptoDeleteClaim() *CryptoDeleteClaimTransactionBody { + if x, ok := m.GetData().(*TransactionBody_CryptoDeleteClaim); ok { + return x.CryptoDeleteClaim + } + return nil +} + +func (m *TransactionBody) GetCryptoTransfer() *CryptoTransferTransactionBody { + if x, ok := m.GetData().(*TransactionBody_CryptoTransfer); ok { + return x.CryptoTransfer + } + return nil +} + +func (m *TransactionBody) GetCryptoUpdateAccount() *CryptoUpdateTransactionBody { + if x, ok := m.GetData().(*TransactionBody_CryptoUpdateAccount); ok { + return x.CryptoUpdateAccount + } + return nil +} + +func (m *TransactionBody) GetFileAppend() *FileAppendTransactionBody { + if x, ok := m.GetData().(*TransactionBody_FileAppend); ok { + return x.FileAppend + } + return nil +} + +func (m *TransactionBody) GetFileCreate() *FileCreateTransactionBody { + if x, ok := m.GetData().(*TransactionBody_FileCreate); ok { + return x.FileCreate + } + return nil +} + +func (m *TransactionBody) GetFileDelete() *FileDeleteTransactionBody { + if x, ok := m.GetData().(*TransactionBody_FileDelete); ok { + return x.FileDelete + } + return nil +} + +func (m *TransactionBody) GetFileUpdate() *FileUpdateTransactionBody { + if x, ok := m.GetData().(*TransactionBody_FileUpdate); ok { + return x.FileUpdate + } + return nil +} + +func (m *TransactionBody) GetSystemDelete() *SystemDeleteTransactionBody { + if x, ok := m.GetData().(*TransactionBody_SystemDelete); ok { + return x.SystemDelete + } + return nil +} + +func (m *TransactionBody) GetSystemUndelete() *SystemUndeleteTransactionBody { + if x, ok := m.GetData().(*TransactionBody_SystemUndelete); ok { + return x.SystemUndelete + } + return nil +} + +func (m *TransactionBody) GetFreeze() *FreezeTransactionBody { + if x, ok := m.GetData().(*TransactionBody_Freeze); ok { + return x.Freeze + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TransactionBody) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TransactionBody_ContractCall)(nil), + (*TransactionBody_ContractCreateInstance)(nil), + (*TransactionBody_ContractUpdateInstance)(nil), + (*TransactionBody_ContractDeleteInstance)(nil), + (*TransactionBody_CryptoAddClaim)(nil), + (*TransactionBody_CryptoCreateAccount)(nil), + (*TransactionBody_CryptoDelete)(nil), + (*TransactionBody_CryptoDeleteClaim)(nil), + (*TransactionBody_CryptoTransfer)(nil), + (*TransactionBody_CryptoUpdateAccount)(nil), + (*TransactionBody_FileAppend)(nil), + (*TransactionBody_FileCreate)(nil), + (*TransactionBody_FileDelete)(nil), + (*TransactionBody_FileUpdate)(nil), + (*TransactionBody_SystemDelete)(nil), + (*TransactionBody_SystemUndelete)(nil), + (*TransactionBody_Freeze)(nil), + } +} + +func init() { + proto.RegisterType((*TransactionBody)(nil), "proto.TransactionBody") +} + +func init() { proto.RegisterFile("TransactionBody.proto", fileDescriptor_adc97762ca10f37b) } + +var fileDescriptor_adc97762ca10f37b = []byte{ + // 644 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x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x30, 0x7c, 0x3f, 0x6b, 0xa2, 0x05, 0x9d, 0xbb, + 0x04, 0xa4, 0xe8, 0x69, 0x65, 0x97, 0x28, 0x01, 0xf8, 0xdd, 0xad, 0x49, 0x00, 0x76, 0xd3, 0x3b, + 0xd2, 0x5e, 0x99, 0x47, 0x99, 0x5d, 0x1b, 0xce, 0x5b, 0xbb, 0x33, 0x23, 0x56, 0xfd, 0x79, 0xb5, + 0xdb, 0x26, 0x2d, 0x9f, 0x6b, 0xee, 0xde, 0x92, 0xa1, 0x88, 0x37, 0xe3, 0xb5, 0xf4, 0xa5, 0xe2, + 0x6b, 0x9e, 0xae, 0x9f, 0x14, 0x4f, 0xd6, 0x63, 0x9e, 0x04, 0x39, 0xe8, 0x37, 0xff, 0xc3, 0xbf, + 0x39, 0xbf, 0xda, 0xe6, 0xd7, 0xa7, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x34, 0x20, 0xbd, 0xeb, + 0x4b, 0x08, 0x00, 0x00, +} diff --git a/proto/TransactionGetFastRecord.pb.go b/proto/TransactionGetFastRecord.pb.go new file mode 100644 index 000000000..ecc479157 --- /dev/null +++ b/proto/TransactionGetFastRecord.pb.go @@ -0,0 +1,143 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: TransactionGetFastRecord.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get the tx record of a transaction, given its transaction ID. Once a transaction reaches consensus, then information about whether it succeeded or failed will be available until the end of the receipt period. Before and after the receipt period, and for a transaction that was never submitted, the receipt is unknown. This query is free (the payment field is left empty). +type TransactionGetFastRecordQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + TransactionID *TransactionID `protobuf:"bytes,2,opt,name=transactionID,proto3" json:"transactionID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionGetFastRecordQuery) Reset() { *m = TransactionGetFastRecordQuery{} } +func (m *TransactionGetFastRecordQuery) String() string { return proto.CompactTextString(m) } +func (*TransactionGetFastRecordQuery) ProtoMessage() {} +func (*TransactionGetFastRecordQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_df22a9c24e106d60, []int{0} +} + +func (m *TransactionGetFastRecordQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionGetFastRecordQuery.Unmarshal(m, b) +} +func (m *TransactionGetFastRecordQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionGetFastRecordQuery.Marshal(b, m, deterministic) +} +func (m *TransactionGetFastRecordQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionGetFastRecordQuery.Merge(m, src) +} +func (m *TransactionGetFastRecordQuery) XXX_Size() int { + return xxx_messageInfo_TransactionGetFastRecordQuery.Size(m) +} +func (m *TransactionGetFastRecordQuery) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionGetFastRecordQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionGetFastRecordQuery proto.InternalMessageInfo + +func (m *TransactionGetFastRecordQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *TransactionGetFastRecordQuery) GetTransactionID() *TransactionID { + if m != nil { + return m.TransactionID + } + return nil +} + +// Response when the client sends the node TransactionGetFastRecordQuery. If it created a new entity (account, file, or smart contract instance) then one of the three ID fields will be filled in with the ID of the new entity. Sometimes a single transaction will create more than one new entity, such as when a new contract instance is created, and this also creates the new account that it owned by that instance. +type TransactionGetFastRecordResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + TransactionRecord *TransactionRecord `protobuf:"bytes,2,opt,name=transactionRecord,proto3" json:"transactionRecord,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionGetFastRecordResponse) Reset() { *m = TransactionGetFastRecordResponse{} } +func (m *TransactionGetFastRecordResponse) String() string { return proto.CompactTextString(m) } +func (*TransactionGetFastRecordResponse) ProtoMessage() {} +func (*TransactionGetFastRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_df22a9c24e106d60, []int{1} +} + +func (m *TransactionGetFastRecordResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionGetFastRecordResponse.Unmarshal(m, b) +} +func (m *TransactionGetFastRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionGetFastRecordResponse.Marshal(b, m, deterministic) +} +func (m *TransactionGetFastRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionGetFastRecordResponse.Merge(m, src) +} +func (m *TransactionGetFastRecordResponse) XXX_Size() int { + return xxx_messageInfo_TransactionGetFastRecordResponse.Size(m) +} +func (m *TransactionGetFastRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionGetFastRecordResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionGetFastRecordResponse proto.InternalMessageInfo + +func (m *TransactionGetFastRecordResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *TransactionGetFastRecordResponse) GetTransactionRecord() *TransactionRecord { + if m != nil { + return m.TransactionRecord + } + return nil +} + +func init() { + proto.RegisterType((*TransactionGetFastRecordQuery)(nil), "proto.TransactionGetFastRecordQuery") + proto.RegisterType((*TransactionGetFastRecordResponse)(nil), "proto.TransactionGetFastRecordResponse") +} + +func init() { proto.RegisterFile("TransactionGetFastRecord.proto", fileDescriptor_df22a9c24e106d60) } + +var fileDescriptor_df22a9c24e106d60 = []byte{ + // 238 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x0b, 0x29, 0x4a, 0xcc, + 0x2b, 0x4e, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x73, 0x4f, 0x2d, 0x71, 0x4b, 0x2c, 0x2e, 0x09, 0x4a, + 0x4d, 0xce, 0x2f, 0x4a, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x53, 0x52, 0xe2, + 0x48, 0xca, 0x90, 0xe5, 0xa5, 0x04, 0x9c, 0x12, 0x8b, 0x33, 0x93, 0x43, 0x2a, 0x0b, 0x52, 0x8b, + 0xa1, 0x22, 0x82, 0x81, 0xa5, 0xa9, 0x45, 0x95, 0x1e, 0xa9, 0x89, 0x29, 0xa9, 0x45, 0x50, 0x21, + 0x91, 0xa0, 0xd4, 0xe2, 0x82, 0xfc, 0xbc, 0xe2, 0x54, 0x64, 0x51, 0xa5, 0x76, 0x46, 0x2e, 0x59, + 0x5c, 0xb6, 0x83, 0xcd, 0x10, 0xd2, 0xe2, 0x62, 0xcb, 0x00, 0xeb, 0x90, 0x60, 0x54, 0x60, 0xd4, + 0xe0, 0x36, 0x12, 0x82, 0xe8, 0xd4, 0x43, 0xb2, 0x21, 0x08, 0xaa, 0x42, 0xc8, 0x8a, 0x8b, 0xb7, + 0x04, 0x61, 0x98, 0xa7, 0x8b, 0x04, 0x13, 0x58, 0x8b, 0x08, 0x54, 0x4b, 0x08, 0xb2, 0x5c, 0x10, + 0xaa, 0x52, 0xa5, 0x99, 0x8c, 0x5c, 0x0a, 0xb8, 0x5c, 0x02, 0x73, 0xba, 0x90, 0x2e, 0x9a, 0x63, + 0x44, 0xa1, 0x26, 0xa3, 0xfa, 0x0d, 0xee, 0x1e, 0x37, 0x2e, 0xc1, 0x12, 0xf4, 0x30, 0x83, 0xba, + 0x49, 0x02, 0xd3, 0x4d, 0x50, 0xbb, 0x30, 0xb5, 0x38, 0xa9, 0x71, 0x29, 0x25, 0xe7, 0xe7, 0xea, + 0x65, 0xa4, 0xa6, 0xa4, 0x16, 0x25, 0x66, 0x24, 0x16, 0x67, 0xa4, 0x17, 0x25, 0x16, 0x64, 0xe8, + 0x25, 0x16, 0x64, 0x42, 0x4d, 0xc9, 0x4a, 0x2c, 0x4b, 0x0c, 0x60, 0x4c, 0x62, 0x03, 0xf3, 0x8c, + 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x08, 0xdb, 0xd1, 0x44, 0xd1, 0x01, 0x00, 0x00, +} diff --git a/proto/TransactionGetReceipt.pb.go b/proto/TransactionGetReceipt.pb.go new file mode 100644 index 000000000..7e8748b09 --- /dev/null +++ b/proto/TransactionGetReceipt.pb.go @@ -0,0 +1,143 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: TransactionGetReceipt.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get the receipt of a transaction, given its transaction ID. Once a transaction reaches consensus, then information about whether it succeeded or failed will be available until the end of the receipt period. Before and after the receipt period, and for a transaction that was never submitted, the receipt is unknown. This query is free (the payment field is left empty). No State proof is available for this response +type TransactionGetReceiptQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + TransactionID *TransactionID `protobuf:"bytes,2,opt,name=transactionID,proto3" json:"transactionID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionGetReceiptQuery) Reset() { *m = TransactionGetReceiptQuery{} } +func (m *TransactionGetReceiptQuery) String() string { return proto.CompactTextString(m) } +func (*TransactionGetReceiptQuery) ProtoMessage() {} +func (*TransactionGetReceiptQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_198911f685a2f526, []int{0} +} + +func (m *TransactionGetReceiptQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionGetReceiptQuery.Unmarshal(m, b) +} +func (m *TransactionGetReceiptQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionGetReceiptQuery.Marshal(b, m, deterministic) +} +func (m *TransactionGetReceiptQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionGetReceiptQuery.Merge(m, src) +} +func (m *TransactionGetReceiptQuery) XXX_Size() int { + return xxx_messageInfo_TransactionGetReceiptQuery.Size(m) +} +func (m *TransactionGetReceiptQuery) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionGetReceiptQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionGetReceiptQuery proto.InternalMessageInfo + +func (m *TransactionGetReceiptQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *TransactionGetReceiptQuery) GetTransactionID() *TransactionID { + if m != nil { + return m.TransactionID + } + return nil +} + +// Response when the client sends the node TransactionGetReceiptQuery. If it created a new entity (account, file, or smart contract instance) then one of the three ID fields will be filled in with the ID of the new entity. Sometimes a single transaction will create more than one new entity, such as when a new contract instance is created, and this also creates the new account that it owned by that instance. No State proof is available for this response +type TransactionGetReceiptResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Receipt *TransactionReceipt `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionGetReceiptResponse) Reset() { *m = TransactionGetReceiptResponse{} } +func (m *TransactionGetReceiptResponse) String() string { return proto.CompactTextString(m) } +func (*TransactionGetReceiptResponse) ProtoMessage() {} +func (*TransactionGetReceiptResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_198911f685a2f526, []int{1} +} + +func (m *TransactionGetReceiptResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionGetReceiptResponse.Unmarshal(m, b) +} +func (m *TransactionGetReceiptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionGetReceiptResponse.Marshal(b, m, deterministic) +} +func (m *TransactionGetReceiptResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionGetReceiptResponse.Merge(m, src) +} +func (m *TransactionGetReceiptResponse) XXX_Size() int { + return xxx_messageInfo_TransactionGetReceiptResponse.Size(m) +} +func (m *TransactionGetReceiptResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionGetReceiptResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionGetReceiptResponse proto.InternalMessageInfo + +func (m *TransactionGetReceiptResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *TransactionGetReceiptResponse) GetReceipt() *TransactionReceipt { + if m != nil { + return m.Receipt + } + return nil +} + +func init() { + proto.RegisterType((*TransactionGetReceiptQuery)(nil), "proto.TransactionGetReceiptQuery") + proto.RegisterType((*TransactionGetReceiptResponse)(nil), "proto.TransactionGetReceiptResponse") +} + +func init() { proto.RegisterFile("TransactionGetReceipt.proto", fileDescriptor_198911f685a2f526) } + +var fileDescriptor_198911f685a2f526 = []byte{ + // 232 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0x51, 0x4b, 0xc6, 0x20, + 0x14, 0x86, 0x31, 0xe8, 0x0b, 0x8c, 0xa0, 0x64, 0xc1, 0x5a, 0x04, 0xb1, 0x8b, 0x88, 0x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 0x89, 0xbc, 0x6c, 0xe2, 0xad, 0xf9, 0x09, 0x00, 0x00, 0xff, 0xff, + 0xb5, 0x32, 0xbd, 0xc3, 0xb6, 0x01, 0x00, 0x00, +} diff --git a/proto/TransactionGetRecord.pb.go b/proto/TransactionGetRecord.pb.go new file mode 100644 index 000000000..b8a3b9cc8 --- /dev/null +++ b/proto/TransactionGetRecord.pb.go @@ -0,0 +1,143 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: TransactionGetRecord.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Get the record for a transaction. If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. If the transaction called a smart contract function, then the record contains the result of that call. If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. If the transaction didn't return anything that should be in the record, then the results field will be set to nothing. +type TransactionGetRecordQuery struct { + Header *QueryHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + TransactionID *TransactionID `protobuf:"bytes,2,opt,name=transactionID,proto3" json:"transactionID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionGetRecordQuery) Reset() { *m = TransactionGetRecordQuery{} } +func (m *TransactionGetRecordQuery) String() string { return proto.CompactTextString(m) } +func (*TransactionGetRecordQuery) ProtoMessage() {} +func (*TransactionGetRecordQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_8b764c0e60fa835c, []int{0} +} + +func (m *TransactionGetRecordQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionGetRecordQuery.Unmarshal(m, b) +} +func (m *TransactionGetRecordQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionGetRecordQuery.Marshal(b, m, deterministic) +} +func (m *TransactionGetRecordQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionGetRecordQuery.Merge(m, src) +} +func (m *TransactionGetRecordQuery) XXX_Size() int { + return xxx_messageInfo_TransactionGetRecordQuery.Size(m) +} +func (m *TransactionGetRecordQuery) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionGetRecordQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionGetRecordQuery proto.InternalMessageInfo + +func (m *TransactionGetRecordQuery) GetHeader() *QueryHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *TransactionGetRecordQuery) GetTransactionID() *TransactionID { + if m != nil { + return m.TransactionID + } + return nil +} + +// Response when the client sends the node TransactionGetRecordQuery +type TransactionGetRecordResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + TransactionRecord *TransactionRecord `protobuf:"bytes,3,opt,name=transactionRecord,proto3" json:"transactionRecord,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionGetRecordResponse) Reset() { *m = TransactionGetRecordResponse{} } +func (m *TransactionGetRecordResponse) String() string { return proto.CompactTextString(m) } +func (*TransactionGetRecordResponse) ProtoMessage() {} +func (*TransactionGetRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8b764c0e60fa835c, []int{1} +} + +func (m *TransactionGetRecordResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionGetRecordResponse.Unmarshal(m, b) +} +func (m *TransactionGetRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionGetRecordResponse.Marshal(b, m, deterministic) +} +func (m *TransactionGetRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionGetRecordResponse.Merge(m, src) +} +func (m *TransactionGetRecordResponse) XXX_Size() int { + return xxx_messageInfo_TransactionGetRecordResponse.Size(m) +} +func (m *TransactionGetRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionGetRecordResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionGetRecordResponse proto.InternalMessageInfo + +func (m *TransactionGetRecordResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *TransactionGetRecordResponse) GetTransactionRecord() *TransactionRecord { + if m != nil { + return m.TransactionRecord + } + return nil +} + +func init() { + proto.RegisterType((*TransactionGetRecordQuery)(nil), "proto.TransactionGetRecordQuery") + proto.RegisterType((*TransactionGetRecordResponse)(nil), "proto.TransactionGetRecordResponse") +} + +func init() { proto.RegisterFile("TransactionGetRecord.proto", fileDescriptor_8b764c0e60fa835c) } + +var fileDescriptor_8b764c0e60fa835c = []byte{ + // 235 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x0a, 0x29, 0x4a, 0xcc, + 0x2b, 0x4e, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x73, 0x4f, 0x2d, 0x09, 0x4a, 0x4d, 0xce, 0x2f, 0x4a, + 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x53, 0x52, 0xe2, 0x48, 0x4a, 0x90, 0xe5, + 0xa5, 0x04, 0x9c, 0x12, 0x8b, 0x33, 0x93, 0x43, 0x2a, 0x0b, 0x52, 0x8b, 0xa1, 0x22, 0x82, 0x81, + 0xa5, 0xa9, 0x45, 0x95, 0x1e, 0xa9, 0x89, 0x29, 0xa9, 0x45, 0x50, 0x21, 0x91, 0xa0, 0xd4, 0xe2, + 0x82, 0xfc, 0xbc, 0xe2, 0x54, 0x64, 0x51, 0xa5, 0x66, 0x46, 0x2e, 0x49, 0x6c, 0x36, 0x83, 0xf5, + 0x0b, 0x69, 0x71, 0xb1, 0x65, 0x80, 0x55, 0x4b, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x09, 0x41, + 0x74, 0xe9, 0x21, 0x99, 0x1e, 0x04, 0x55, 0x21, 0x64, 0xc5, 0xc5, 0x5b, 0x82, 0x30, 0xc8, 0xd3, + 0x45, 0x82, 0x09, 0xac, 0x45, 0x04, 0xaa, 0x25, 0x04, 0x59, 0x2e, 0x08, 0x55, 0xa9, 0xd2, 0x54, + 0x46, 0x2e, 0x19, 0x6c, 0xae, 0x80, 0x39, 0x59, 0x48, 0x17, 0xcd, 0x21, 0xa2, 0x50, 0x53, 0x51, + 0xfd, 0x04, 0x77, 0x8b, 0x1b, 0x97, 0x60, 0x09, 0x7a, 0x58, 0x49, 0x30, 0x83, 0x75, 0x4a, 0x60, + 0xba, 0x07, 0x6a, 0x17, 0xa6, 0x16, 0x27, 0x35, 0x2e, 0xa5, 0xe4, 0xfc, 0x5c, 0xbd, 0x8c, 0xd4, + 0x94, 0xd4, 0xa2, 0xc4, 0x8c, 0xc4, 0xe2, 0x8c, 0xf4, 0xa2, 0xc4, 0x82, 0x0c, 0xbd, 0xc4, 0x82, + 0x4c, 0xa8, 0x29, 0x59, 0x89, 0x65, 0x89, 0x01, 0x8c, 0x49, 0x6c, 0x60, 0x9e, 0x31, 0x20, 0x00, + 0x00, 0xff, 0xff, 0x47, 0xb5, 0xe8, 0x8a, 0xc5, 0x01, 0x00, 0x00, +} diff --git a/proto/TransactionReceipt.pb.go b/proto/TransactionReceipt.pb.go new file mode 100644 index 000000000..2152a45ab --- /dev/null +++ b/proto/TransactionReceipt.pb.go @@ -0,0 +1,120 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: TransactionReceipt.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// The consensus result for a transaction, which might not be currently known, or may succeed or fail. +type TransactionReceipt struct { + Status ResponseCodeEnum `protobuf:"varint,1,opt,name=status,proto3,enum=proto.ResponseCodeEnum" json:"status,omitempty"` + AccountID *AccountID `protobuf:"bytes,2,opt,name=accountID,proto3" json:"accountID,omitempty"` + FileID *FileID `protobuf:"bytes,3,opt,name=fileID,proto3" json:"fileID,omitempty"` + ContractID *ContractID `protobuf:"bytes,4,opt,name=contractID,proto3" json:"contractID,omitempty"` + ExchangeRate *ExchangeRateSet `protobuf:"bytes,5,opt,name=exchangeRate,proto3" json:"exchangeRate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionReceipt) Reset() { *m = TransactionReceipt{} } +func (m *TransactionReceipt) String() string { return proto.CompactTextString(m) } +func (*TransactionReceipt) ProtoMessage() {} +func (*TransactionReceipt) Descriptor() ([]byte, []int) { + return fileDescriptor_31337d5eb7330cd9, []int{0} +} + +func (m *TransactionReceipt) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionReceipt.Unmarshal(m, b) +} +func (m *TransactionReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionReceipt.Marshal(b, m, deterministic) +} +func (m *TransactionReceipt) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionReceipt.Merge(m, src) +} +func (m *TransactionReceipt) XXX_Size() int { + return xxx_messageInfo_TransactionReceipt.Size(m) +} +func (m *TransactionReceipt) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionReceipt.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionReceipt proto.InternalMessageInfo + +func (m *TransactionReceipt) GetStatus() ResponseCodeEnum { + if m != nil { + return m.Status + } + return ResponseCodeEnum_OK +} + +func (m *TransactionReceipt) GetAccountID() *AccountID { + if m != nil { + return m.AccountID + } + return nil +} + +func (m *TransactionReceipt) GetFileID() *FileID { + if m != nil { + return m.FileID + } + return nil +} + +func (m *TransactionReceipt) GetContractID() *ContractID { + if m != nil { + return m.ContractID + } + return nil +} + +func (m *TransactionReceipt) GetExchangeRate() *ExchangeRateSet { + if m != nil { + return m.ExchangeRate + } + return nil +} + +func init() { + proto.RegisterType((*TransactionReceipt)(nil), "proto.TransactionReceipt") +} + +func init() { proto.RegisterFile("TransactionReceipt.proto", fileDescriptor_31337d5eb7330cd9) } + +var fileDescriptor_31337d5eb7330cd9 = []byte{ + // 259 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xcd, 0x4a, 0x03, 0x31, + 0x14, 0x85, 0x99, 0x6a, 0x07, 0x8c, 0x3f, 0xd4, 0x2c, 0x34, 0x74, 0x55, 0x0a, 0x4a, 0x57, 0x11, + 0xeb, 0xce, 0x9d, 0xfd, 0x11, 0xba, 0x93, 0xd8, 0x17, 0xb8, 0xa6, 0xd7, 0x26, 0x62, 0x93, 0x90, + 0xdc, 0x11, 0x7d, 0x06, 0x5f, 0x5a, 0x4c, 0x53, 0x1d, 0x71, 0x15, 0x72, 0xce, 0xf7, 0x1d, 0x48, + 0x98, 0x58, 0x46, 0x70, 0x09, 0x34, 0x59, 0xef, 0x14, 0x6a, 0xb4, 0x81, 0x64, 0x88, 0x9e, 0x3c, + 0xef, 0xe6, 0xa3, 0xdf, 0x9b, 0x40, 0xb2, 0x7a, 0xf9, 0x11, 0x30, 0x6d, 0x8b, 0x3e, 0x57, 0x98, + 0x82, 0x77, 0x09, 0xa7, 0x7e, 0x85, 0xbb, 0x6c, 0xfe, 0xae, 0x0d, 0xb8, 0x35, 0x2a, 0xa0, 0x92, + 0x0d, 0x3f, 0x3b, 0x8c, 0xff, 0x5f, 0xe7, 0x57, 0xac, 0x4e, 0x04, 0xd4, 0x24, 0x51, 0x0d, 0xaa, + 0xd1, 0xc9, 0xf8, 0x7c, 0x8b, 0xcb, 0xf6, 0xea, 0xdc, 0x35, 0x1b, 0x55, 0x30, 0x2e, 0xd9, 0x01, + 0x68, 0xed, 0x1b, 0x47, 0x8b, 0x99, 0xe8, 0x0c, 0xaa, 0xd1, 0xe1, 0xb8, 0x57, 0x9c, 0xbb, 0x5d, + 0xae, 0x7e, 0x11, 0x7e, 0xc1, 0xea, 0x67, 0xfb, 0x8a, 0x8b, 0x99, 0xd8, 0xcb, 0xf0, 0x71, 0x81, + 0xef, 0x73, 0xa8, 0x4a, 0xc9, 0xaf, 0x19, 0xd3, 0xde, 0x51, 0x04, 0xfd, 0xbd, 0xbb, 0x9f, 0xd1, + 0xd3, 0x82, 0x4e, 0x7f, 0x0a, 0xd5, 0x82, 0xf8, 0x2d, 0x3b, 0xc2, 0xd6, 0x3b, 0x45, 0x37, 0x4b, + 0x67, 0x45, 0x6a, 0x7f, 0xc1, 0x23, 0x92, 0xfa, 0xc3, 0x4e, 0x2e, 0xd9, 0x50, 0xfb, 0x8d, 0x34, + 0xb8, 0xc2, 0x08, 0x06, 0x92, 0x59, 0x47, 0x08, 0x46, 0x42, 0xb0, 0x45, 0x7f, 0x81, 0x37, 0x78, + 0xa8, 0x9e, 0xea, 0x7c, 0xbb, 0xf9, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x91, 0xbe, 0xff, 0x7b, 0x99, + 0x01, 0x00, 0x00, +} diff --git a/proto/TransactionRecord.pb.go b/proto/TransactionRecord.pb.go new file mode 100644 index 000000000..dbfd9ce7a --- /dev/null +++ b/proto/TransactionRecord.pb.go @@ -0,0 +1,191 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: TransactionRecord.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Response when the client sends the node TransactionGetRecordResponse +type TransactionRecord struct { + Receipt *TransactionReceipt `protobuf:"bytes,1,opt,name=receipt,proto3" json:"receipt,omitempty"` + TransactionHash []byte `protobuf:"bytes,2,opt,name=transactionHash,proto3" json:"transactionHash,omitempty"` + ConsensusTimestamp *Timestamp `protobuf:"bytes,3,opt,name=consensusTimestamp,proto3" json:"consensusTimestamp,omitempty"` + TransactionID *TransactionID `protobuf:"bytes,4,opt,name=transactionID,proto3" json:"transactionID,omitempty"` + Memo string `protobuf:"bytes,5,opt,name=memo,proto3" json:"memo,omitempty"` + TransactionFee uint64 `protobuf:"varint,6,opt,name=transactionFee,proto3" json:"transactionFee,omitempty"` + // Types that are valid to be assigned to Body: + // *TransactionRecord_ContractCallResult + // *TransactionRecord_ContractCreateResult + Body isTransactionRecord_Body `protobuf_oneof:"body"` + TransferList *TransferList `protobuf:"bytes,10,opt,name=transferList,proto3" json:"transferList,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionRecord) Reset() { *m = TransactionRecord{} } +func (m *TransactionRecord) String() string { return proto.CompactTextString(m) } +func (*TransactionRecord) ProtoMessage() {} +func (*TransactionRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_116f8900556a83d9, []int{0} +} + +func (m *TransactionRecord) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionRecord.Unmarshal(m, b) +} +func (m *TransactionRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionRecord.Marshal(b, m, deterministic) +} +func (m *TransactionRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionRecord.Merge(m, src) +} +func (m *TransactionRecord) XXX_Size() int { + return xxx_messageInfo_TransactionRecord.Size(m) +} +func (m *TransactionRecord) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionRecord proto.InternalMessageInfo + +func (m *TransactionRecord) GetReceipt() *TransactionReceipt { + if m != nil { + return m.Receipt + } + return nil +} + +func (m *TransactionRecord) GetTransactionHash() []byte { + if m != nil { + return m.TransactionHash + } + return nil +} + +func (m *TransactionRecord) GetConsensusTimestamp() *Timestamp { + if m != nil { + return m.ConsensusTimestamp + } + return nil +} + +func (m *TransactionRecord) GetTransactionID() *TransactionID { + if m != nil { + return m.TransactionID + } + return nil +} + +func (m *TransactionRecord) GetMemo() string { + if m != nil { + return m.Memo + } + return "" +} + +func (m *TransactionRecord) GetTransactionFee() uint64 { + if m != nil { + return m.TransactionFee + } + return 0 +} + +type isTransactionRecord_Body interface { + isTransactionRecord_Body() +} + +type TransactionRecord_ContractCallResult struct { + ContractCallResult *ContractFunctionResult `protobuf:"bytes,7,opt,name=contractCallResult,proto3,oneof"` +} + +type TransactionRecord_ContractCreateResult struct { + ContractCreateResult *ContractFunctionResult `protobuf:"bytes,8,opt,name=contractCreateResult,proto3,oneof"` +} + +func (*TransactionRecord_ContractCallResult) isTransactionRecord_Body() {} + +func (*TransactionRecord_ContractCreateResult) isTransactionRecord_Body() {} + +func (m *TransactionRecord) GetBody() isTransactionRecord_Body { + if m != nil { + return m.Body + } + return nil +} + +func (m *TransactionRecord) GetContractCallResult() *ContractFunctionResult { + if x, ok := m.GetBody().(*TransactionRecord_ContractCallResult); ok { + return x.ContractCallResult + } + return nil +} + +func (m *TransactionRecord) GetContractCreateResult() *ContractFunctionResult { + if x, ok := m.GetBody().(*TransactionRecord_ContractCreateResult); ok { + return x.ContractCreateResult + } + return nil +} + +func (m *TransactionRecord) GetTransferList() *TransferList { + if m != nil { + return m.TransferList + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TransactionRecord) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TransactionRecord_ContractCallResult)(nil), + (*TransactionRecord_ContractCreateResult)(nil), + } +} + +func init() { + proto.RegisterType((*TransactionRecord)(nil), "proto.TransactionRecord") +} + +func init() { proto.RegisterFile("TransactionRecord.proto", fileDescriptor_116f8900556a83d9) } + +var fileDescriptor_116f8900556a83d9 = []byte{ + // 356 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x51, 0x5d, 0x4f, 0xc2, 0x30, + 0x14, 0x75, 0x3a, 0x40, 0x2b, 0x0a, 0x56, 0x12, 0x2a, 0x89, 0xc9, 0xc2, 0x03, 0xd9, 0xd3, 0x1e, + 0xe4, 0xc1, 0xc4, 0x27, 0x03, 0x84, 0x40, 0x42, 0xa2, 0xa9, 0xfc, 0x81, 0xcb, 0xb8, 0xba, 0x99, + 0x6d, 0x5d, 0xda, 0x62, 0xc2, 0xef, 0xf0, 0x0f, 0x1b, 0xbb, 0x0e, 0xf9, 0x7a, 0xf0, 0x69, 0xeb, + 0x39, 0xe7, 0x9e, 0x73, 0x7b, 0x4a, 0xda, 0x73, 0x09, 0x99, 0x82, 0x50, 0xc7, 0x22, 0xe3, 0x18, + 0x0a, 0xb9, 0x0c, 0x72, 0x29, 0xb4, 0xa0, 0x15, 0xf3, 0xe9, 0x34, 0xe6, 0x71, 0x8a, 0x4a, 0x43, + 0x9a, 0x17, 0x78, 0xa7, 0x39, 0x00, 0x15, 0x87, 0xf3, 0x75, 0x8e, 0xca, 0x22, 0x6c, 0xd7, 0x02, + 0xe3, 0x5c, 0x5b, 0xa6, 0x35, 0x94, 0xeb, 0x5c, 0x0b, 0xc3, 0xbf, 0xa3, 0xb4, 0x68, 0x7b, 0x28, + 0x32, 0x2d, 0x21, 0xd4, 0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ba, 0xa1, 0x48, 0x83, 0x08, + 0x97, 0x28, 0x21, 0x02, 0x15, 0x7d, 0x48, 0xc8, 0xa3, 0x00, 0xf2, 0xd8, 0x7a, 0x7c, 0xc2, 0x17, + 0xbc, 0x3a, 0x8b, 0xaa, 0x39, 0xf5, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x0c, 0xcd, 0xee, 0xdf, + 0xd2, 0x02, 0x00, 0x00, +} diff --git a/proto/TransactionResponse.pb.go b/proto/TransactionResponse.pb.go new file mode 100644 index 000000000..4ad433046 --- /dev/null +++ b/proto/TransactionResponse.pb.go @@ -0,0 +1,81 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: TransactionResponse.proto + +package proto + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// When the client sends the node a transaction of any kind, the node replies with this, which simply says that the transaction passed the precheck (so the node will submit it to the network) or it failed (so it won't). To learn the consensus result, the client should later obtain a receipt (free), or can buy a more detailed record (not free). +type TransactionResponse struct { + NodeTransactionPrecheckCode ResponseCodeEnum `protobuf:"varint,1,opt,name=nodeTransactionPrecheckCode,proto3,enum=proto.ResponseCodeEnum" json:"nodeTransactionPrecheckCode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionResponse) Reset() { *m = TransactionResponse{} } +func (m *TransactionResponse) String() string { return proto.CompactTextString(m) } +func (*TransactionResponse) ProtoMessage() {} +func (*TransactionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_db1f54350bc90c8b, []int{0} +} + +func (m *TransactionResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionResponse.Unmarshal(m, b) +} +func (m *TransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionResponse.Marshal(b, m, deterministic) +} +func (m *TransactionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionResponse.Merge(m, src) +} +func (m *TransactionResponse) XXX_Size() int { + return xxx_messageInfo_TransactionResponse.Size(m) +} +func (m *TransactionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionResponse proto.InternalMessageInfo + +func (m *TransactionResponse) GetNodeTransactionPrecheckCode() ResponseCodeEnum { + if m != nil { + return m.NodeTransactionPrecheckCode + } + return ResponseCodeEnum_OK +} + +func init() { + proto.RegisterType((*TransactionResponse)(nil), "proto.TransactionResponse") +} + +func init() { proto.RegisterFile("TransactionResponse.proto", fileDescriptor_db1f54350bc90c8b) } + +var fileDescriptor_db1f54350bc90c8b = []byte{ + // 150 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x0c, 0x29, 0x4a, 0xcc, + 0x2b, 0x4e, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x0b, 0x4a, 0x2d, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, 0xd5, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x53, 0x52, 0x42, 0x30, 0x61, 0xe7, 0xfc, 0x14, + 0xa8, 0x94, 0x52, 0x01, 0x97, 0x30, 0x16, 0x7d, 0x42, 0x91, 0x5c, 0xd2, 0x79, 0xf9, 0x29, 0xa9, + 0x48, 0x52, 0x01, 0x45, 0xa9, 0xc9, 0x19, 0xa9, 0xc9, 0xd9, 0x20, 0xbd, 0x12, 0x8c, 0x0a, 0x8c, + 0x1a, 0x7c, 0x46, 0xe2, 0x10, 0x33, 0xf4, 0x90, 0x8d, 0x75, 0xcd, 0x2b, 0xcd, 0x0d, 0xc2, 0xa7, + 0xd7, 0x49, 0x8d, 0x4b, 0x29, 0x39, 0x3f, 0x57, 0x2f, 0x23, 0x35, 0x25, 0xb5, 0x28, 0x31, 0x23, + 0xb1, 0x38, 0x23, 0xbd, 0x28, 0xb1, 0x20, 0x43, 0x2f, 0xb1, 0x20, 0x13, 0x6a, 0x5c, 0x56, 0x62, + 0x59, 0x62, 0x00, 0x63, 0x12, 0x1b, 0x98, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x0b, 0xda, + 0x19, 0x84, 0xd8, 0x00, 0x00, 0x00, +}