222 lines
7.6 KiB
Go
222 lines
7.6 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: tx.proto
|
|
|
|
/*
|
|
Package bchain is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
tx.proto
|
|
|
|
It has these top-level messages:
|
|
ProtoTransaction
|
|
*/
|
|
package bchain
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type ProtoTransaction struct {
|
|
Txid []byte `protobuf:"bytes,1,opt,name=Txid,proto3" json:"Txid,omitempty"`
|
|
Hex []byte `protobuf:"bytes,2,opt,name=Hex,proto3" json:"Hex,omitempty"`
|
|
Blocktime uint64 `protobuf:"varint,3,opt,name=Blocktime" json:"Blocktime,omitempty"`
|
|
Locktime uint32 `protobuf:"varint,4,opt,name=Locktime" json:"Locktime,omitempty"`
|
|
Height uint32 `protobuf:"varint,5,opt,name=Height" json:"Height,omitempty"`
|
|
Vin []*ProtoTransaction_VinType `protobuf:"bytes,6,rep,name=Vin" json:"Vin,omitempty"`
|
|
Vout []*ProtoTransaction_VoutType `protobuf:"bytes,7,rep,name=Vout" json:"Vout,omitempty"`
|
|
}
|
|
|
|
func (m *ProtoTransaction) Reset() { *m = ProtoTransaction{} }
|
|
func (m *ProtoTransaction) String() string { return proto.CompactTextString(m) }
|
|
func (*ProtoTransaction) ProtoMessage() {}
|
|
func (*ProtoTransaction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
func (m *ProtoTransaction) GetTxid() []byte {
|
|
if m != nil {
|
|
return m.Txid
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ProtoTransaction) GetHex() []byte {
|
|
if m != nil {
|
|
return m.Hex
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ProtoTransaction) GetBlocktime() uint64 {
|
|
if m != nil {
|
|
return m.Blocktime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ProtoTransaction) GetLocktime() uint32 {
|
|
if m != nil {
|
|
return m.Locktime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ProtoTransaction) GetHeight() uint32 {
|
|
if m != nil {
|
|
return m.Height
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ProtoTransaction) GetVin() []*ProtoTransaction_VinType {
|
|
if m != nil {
|
|
return m.Vin
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ProtoTransaction) GetVout() []*ProtoTransaction_VoutType {
|
|
if m != nil {
|
|
return m.Vout
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ProtoTransaction_VinType struct {
|
|
Coinbase string `protobuf:"bytes,1,opt,name=Coinbase" json:"Coinbase,omitempty"`
|
|
Txid []byte `protobuf:"bytes,2,opt,name=Txid,proto3" json:"Txid,omitempty"`
|
|
Vout uint32 `protobuf:"varint,3,opt,name=Vout" json:"Vout,omitempty"`
|
|
ScriptSigHex []byte `protobuf:"bytes,4,opt,name=ScriptSigHex,proto3" json:"ScriptSigHex,omitempty"`
|
|
Sequence uint32 `protobuf:"varint,5,opt,name=Sequence" json:"Sequence,omitempty"`
|
|
Addresses []string `protobuf:"bytes,6,rep,name=Addresses" json:"Addresses,omitempty"`
|
|
}
|
|
|
|
func (m *ProtoTransaction_VinType) Reset() { *m = ProtoTransaction_VinType{} }
|
|
func (m *ProtoTransaction_VinType) String() string { return proto.CompactTextString(m) }
|
|
func (*ProtoTransaction_VinType) ProtoMessage() {}
|
|
func (*ProtoTransaction_VinType) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
|
|
|
|
func (m *ProtoTransaction_VinType) GetCoinbase() string {
|
|
if m != nil {
|
|
return m.Coinbase
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ProtoTransaction_VinType) GetTxid() []byte {
|
|
if m != nil {
|
|
return m.Txid
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ProtoTransaction_VinType) GetVout() uint32 {
|
|
if m != nil {
|
|
return m.Vout
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ProtoTransaction_VinType) GetScriptSigHex() []byte {
|
|
if m != nil {
|
|
return m.ScriptSigHex
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ProtoTransaction_VinType) GetSequence() uint32 {
|
|
if m != nil {
|
|
return m.Sequence
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ProtoTransaction_VinType) GetAddresses() []string {
|
|
if m != nil {
|
|
return m.Addresses
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ProtoTransaction_VoutType struct {
|
|
Value float64 `protobuf:"fixed64,1,opt,name=Value" json:"Value,omitempty"`
|
|
N uint32 `protobuf:"varint,2,opt,name=N" json:"N,omitempty"`
|
|
ScriptPubKeyHex []byte `protobuf:"bytes,3,opt,name=ScriptPubKeyHex,proto3" json:"ScriptPubKeyHex,omitempty"`
|
|
Addresses []string `protobuf:"bytes,4,rep,name=Addresses" json:"Addresses,omitempty"`
|
|
}
|
|
|
|
func (m *ProtoTransaction_VoutType) Reset() { *m = ProtoTransaction_VoutType{} }
|
|
func (m *ProtoTransaction_VoutType) String() string { return proto.CompactTextString(m) }
|
|
func (*ProtoTransaction_VoutType) ProtoMessage() {}
|
|
func (*ProtoTransaction_VoutType) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 1} }
|
|
|
|
func (m *ProtoTransaction_VoutType) GetValue() float64 {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ProtoTransaction_VoutType) GetN() uint32 {
|
|
if m != nil {
|
|
return m.N
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ProtoTransaction_VoutType) GetScriptPubKeyHex() []byte {
|
|
if m != nil {
|
|
return m.ScriptPubKeyHex
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ProtoTransaction_VoutType) GetAddresses() []string {
|
|
if m != nil {
|
|
return m.Addresses
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*ProtoTransaction)(nil), "bchain.ProtoTransaction")
|
|
proto.RegisterType((*ProtoTransaction_VinType)(nil), "bchain.ProtoTransaction.VinType")
|
|
proto.RegisterType((*ProtoTransaction_VoutType)(nil), "bchain.ProtoTransaction.VoutType")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("tx.proto", fileDescriptor0) }
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 330 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x4e, 0xc2, 0x40,
|
|
0x10, 0x86, 0xb3, 0xb4, 0x14, 0x18, 0x21, 0x92, 0x89, 0x31, 0x0d, 0xf1, 0x50, 0x39, 0xf5, 0xd4,
|
|
0x03, 0xc6, 0x07, 0x50, 0x2f, 0x24, 0x1a, 0x42, 0x16, 0xd2, 0x7b, 0x5b, 0x36, 0xb0, 0x11, 0x77,
|
|
0xb1, 0xdd, 0x1a, 0x78, 0x16, 0x1f, 0xc1, 0x97, 0x34, 0x3b, 0x2d, 0x45, 0x48, 0xbc, 0xed, 0xff,
|
|
0xef, 0x4c, 0xff, 0x6f, 0xff, 0x14, 0xba, 0x66, 0x1f, 0xed, 0x72, 0x6d, 0x34, 0x7a, 0x69, 0xb6,
|
|
0x49, 0xa4, 0x1a, 0x7f, 0xbb, 0x30, 0x9c, 0x5b, 0x67, 0x99, 0x27, 0xaa, 0x48, 0x32, 0x23, 0xb5,
|
|
0x42, 0x04, 0x77, 0xb9, 0x97, 0x2b, 0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