1253 lines
35 KiB
Go
1253 lines
35 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.9
|
|
// protoc v3.20.3
|
|
// source: types.proto
|
|
|
|
package nockchain
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type ImportType int32
|
|
|
|
const (
|
|
ImportType_UNDEFINED ImportType = 0
|
|
ImportType_EXTENDED_KEY ImportType = 1
|
|
ImportType_SEEDPHRASE ImportType = 2
|
|
ImportType_MASTER_PRIVKEY ImportType = 3
|
|
ImportType_WATCH_ONLY ImportType = 4
|
|
)
|
|
|
|
// Enum value maps for ImportType.
|
|
var (
|
|
ImportType_name = map[int32]string{
|
|
0: "UNDEFINED",
|
|
1: "EXTENDED_KEY",
|
|
2: "SEEDPHRASE",
|
|
3: "MASTER_PRIVKEY",
|
|
4: "WATCH_ONLY",
|
|
}
|
|
ImportType_value = map[string]int32{
|
|
"UNDEFINED": 0,
|
|
"EXTENDED_KEY": 1,
|
|
"SEEDPHRASE": 2,
|
|
"MASTER_PRIVKEY": 3,
|
|
"WATCH_ONLY": 4,
|
|
}
|
|
)
|
|
|
|
func (x ImportType) Enum() *ImportType {
|
|
p := new(ImportType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x ImportType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (ImportType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_types_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (ImportType) Type() protoreflect.EnumType {
|
|
return &file_types_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x ImportType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use ImportType.Descriptor instead.
|
|
func (ImportType) EnumDescriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type Version int32
|
|
|
|
const (
|
|
Version_V0 Version = 0
|
|
Version_V1 Version = 1
|
|
Version_V2 Version = 2
|
|
)
|
|
|
|
// Enum value maps for Version.
|
|
var (
|
|
Version_name = map[int32]string{
|
|
0: "V0",
|
|
1: "V1",
|
|
2: "V2",
|
|
}
|
|
Version_value = map[string]int32{
|
|
"V0": 0,
|
|
"V1": 1,
|
|
"V2": 2,
|
|
}
|
|
)
|
|
|
|
func (x Version) Enum() *Version {
|
|
p := new(Version)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Version) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Version) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_types_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (Version) Type() protoreflect.EnumType {
|
|
return &file_types_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x Version) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Version.Descriptor instead.
|
|
func (Version) EnumDescriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type ScanData struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
|
|
Data *Balance `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ScanData) Reset() {
|
|
*x = ScanData{}
|
|
mi := &file_types_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ScanData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ScanData) ProtoMessage() {}
|
|
|
|
func (x *ScanData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ScanData.ProtoReflect.Descriptor instead.
|
|
func (*ScanData) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ScanData) GetPubkey() string {
|
|
if x != nil {
|
|
return x.Pubkey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ScanData) GetData() *Balance {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TimelockIntent struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Absolute *TimelockRange `protobuf:"bytes,1,opt,name=absolute,proto3,oneof" json:"absolute,omitempty"`
|
|
Relative *TimelockRange `protobuf:"bytes,2,opt,name=relative,proto3,oneof" json:"relative,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TimelockIntent) Reset() {
|
|
*x = TimelockIntent{}
|
|
mi := &file_types_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TimelockIntent) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TimelockIntent) ProtoMessage() {}
|
|
|
|
func (x *TimelockIntent) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TimelockIntent.ProtoReflect.Descriptor instead.
|
|
func (*TimelockIntent) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *TimelockIntent) GetAbsolute() *TimelockRange {
|
|
if x != nil {
|
|
return x.Absolute
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TimelockIntent) GetRelative() *TimelockRange {
|
|
if x != nil {
|
|
return x.Relative
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TimelockRange struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Min *Timelock `protobuf:"bytes,1,opt,name=min,proto3,oneof" json:"min,omitempty"`
|
|
Max *Timelock `protobuf:"bytes,2,opt,name=max,proto3,oneof" json:"max,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TimelockRange) Reset() {
|
|
*x = TimelockRange{}
|
|
mi := &file_types_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TimelockRange) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TimelockRange) ProtoMessage() {}
|
|
|
|
func (x *TimelockRange) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TimelockRange.ProtoReflect.Descriptor instead.
|
|
func (*TimelockRange) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *TimelockRange) GetMin() *Timelock {
|
|
if x != nil {
|
|
return x.Min
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TimelockRange) GetMax() *Timelock {
|
|
if x != nil {
|
|
return x.Max
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Timelock struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Timelock) Reset() {
|
|
*x = Timelock{}
|
|
mi := &file_types_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Timelock) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Timelock) ProtoMessage() {}
|
|
|
|
func (x *Timelock) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Timelock.ProtoReflect.Descriptor instead.
|
|
func (*Timelock) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *Timelock) GetValue() uint64 {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RawTx struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
|
|
Version Version `protobuf:"varint,2,opt,name=version,proto3,enum=nockchain.public.v2.Version" json:"version,omitempty"`
|
|
NamedSpends []*NockchainNamedSpend `protobuf:"bytes,3,rep,name=named_spends,json=namedSpends,proto3" json:"named_spends,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RawTx) Reset() {
|
|
*x = RawTx{}
|
|
mi := &file_types_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RawTx) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RawTx) ProtoMessage() {}
|
|
|
|
func (x *RawTx) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RawTx.ProtoReflect.Descriptor instead.
|
|
func (*RawTx) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *RawTx) GetTxId() string {
|
|
if x != nil {
|
|
return x.TxId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RawTx) GetVersion() Version {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return Version_V0
|
|
}
|
|
|
|
func (x *RawTx) GetNamedSpends() []*NockchainNamedSpend {
|
|
if x != nil {
|
|
return x.NamedSpends
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NockchainNamedSpend struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name *NockchainName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// Types that are valid to be assigned to SpendKind:
|
|
//
|
|
// *NockchainNamedSpend_Legacy
|
|
// *NockchainNamedSpend_Witness
|
|
SpendKind isNockchainNamedSpend_SpendKind `protobuf_oneof:"spend_kind"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NockchainNamedSpend) Reset() {
|
|
*x = NockchainNamedSpend{}
|
|
mi := &file_types_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NockchainNamedSpend) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NockchainNamedSpend) ProtoMessage() {}
|
|
|
|
func (x *NockchainNamedSpend) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NockchainNamedSpend.ProtoReflect.Descriptor instead.
|
|
func (*NockchainNamedSpend) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *NockchainNamedSpend) GetName() *NockchainName {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NockchainNamedSpend) GetSpendKind() isNockchainNamedSpend_SpendKind {
|
|
if x != nil {
|
|
return x.SpendKind
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NockchainNamedSpend) GetLegacy() *NockchainSpendV0 {
|
|
if x != nil {
|
|
if x, ok := x.SpendKind.(*NockchainNamedSpend_Legacy); ok {
|
|
return x.Legacy
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NockchainNamedSpend) GetWitness() *NockchainSpendV1 {
|
|
if x != nil {
|
|
if x, ok := x.SpendKind.(*NockchainNamedSpend_Witness); ok {
|
|
return x.Witness
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isNockchainNamedSpend_SpendKind interface {
|
|
isNockchainNamedSpend_SpendKind()
|
|
}
|
|
|
|
type NockchainNamedSpend_Legacy struct {
|
|
Legacy *NockchainSpendV0 `protobuf:"bytes,2,opt,name=legacy,proto3,oneof"`
|
|
}
|
|
|
|
type NockchainNamedSpend_Witness struct {
|
|
Witness *NockchainSpendV1 `protobuf:"bytes,3,opt,name=witness,proto3,oneof"`
|
|
}
|
|
|
|
func (*NockchainNamedSpend_Legacy) isNockchainNamedSpend_SpendKind() {}
|
|
|
|
func (*NockchainNamedSpend_Witness) isNockchainNamedSpend_SpendKind() {}
|
|
|
|
type NockchainSpendV0 struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Signatures []*NockchainSignature `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"`
|
|
Seeds []*NockchainSeedV0 `protobuf:"bytes,2,rep,name=seeds,proto3" json:"seeds,omitempty"`
|
|
Fee uint64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NockchainSpendV0) Reset() {
|
|
*x = NockchainSpendV0{}
|
|
mi := &file_types_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NockchainSpendV0) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NockchainSpendV0) ProtoMessage() {}
|
|
|
|
func (x *NockchainSpendV0) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NockchainSpendV0.ProtoReflect.Descriptor instead.
|
|
func (*NockchainSpendV0) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *NockchainSpendV0) GetSignatures() []*NockchainSignature {
|
|
if x != nil {
|
|
return x.Signatures
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NockchainSpendV0) GetSeeds() []*NockchainSeedV0 {
|
|
if x != nil {
|
|
return x.Seeds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NockchainSpendV0) GetFee() uint64 {
|
|
if x != nil {
|
|
return x.Fee
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type NockchainSpendV1 struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NockchainSpendV1) Reset() {
|
|
*x = NockchainSpendV1{}
|
|
mi := &file_types_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NockchainSpendV1) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NockchainSpendV1) ProtoMessage() {}
|
|
|
|
func (x *NockchainSpendV1) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NockchainSpendV1.ProtoReflect.Descriptor instead.
|
|
func (*NockchainSpendV1) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
type NockchainNote struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Note:
|
|
//
|
|
// *NockchainNote_V0
|
|
// *NockchainNote_V1
|
|
Note isNockchainNote_Note `protobuf_oneof:"note"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NockchainNote) Reset() {
|
|
*x = NockchainNote{}
|
|
mi := &file_types_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NockchainNote) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NockchainNote) ProtoMessage() {}
|
|
|
|
func (x *NockchainNote) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NockchainNote.ProtoReflect.Descriptor instead.
|
|
func (*NockchainNote) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *NockchainNote) GetNote() isNockchainNote_Note {
|
|
if x != nil {
|
|
return x.Note
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NockchainNote) GetV0() *NockchainNoteV0 {
|
|
if x != nil {
|
|
if x, ok := x.Note.(*NockchainNote_V0); ok {
|
|
return x.V0
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NockchainNote) GetV1() *NockchainNoteV1 {
|
|
if x != nil {
|
|
if x, ok := x.Note.(*NockchainNote_V1); ok {
|
|
return x.V1
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isNockchainNote_Note interface {
|
|
isNockchainNote_Note()
|
|
}
|
|
|
|
type NockchainNote_V0 struct {
|
|
V0 *NockchainNoteV0 `protobuf:"bytes,1,opt,name=v0,proto3,oneof"`
|
|
}
|
|
|
|
type NockchainNote_V1 struct {
|
|
V1 *NockchainNoteV1 `protobuf:"bytes,2,opt,name=v1,proto3,oneof"`
|
|
}
|
|
|
|
func (*NockchainNote_V0) isNockchainNote_Note() {}
|
|
|
|
func (*NockchainNote_V1) isNockchainNote_Note() {}
|
|
|
|
type NockchainNoteV0 struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Version Version `protobuf:"varint,1,opt,name=version,proto3,enum=nockchain.public.v2.Version" json:"version,omitempty"`
|
|
OriginPage uint64 `protobuf:"varint,2,opt,name=origin_page,json=originPage,proto3" json:"origin_page,omitempty"`
|
|
Name *NockchainName `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
Lock *NockchainLock `protobuf:"bytes,5,opt,name=lock,proto3" json:"lock,omitempty"`
|
|
Source *NockchainSource `protobuf:"bytes,6,opt,name=source,proto3" json:"source,omitempty"`
|
|
Asset uint64 `protobuf:"varint,7,opt,name=asset,proto3" json:"asset,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NockchainNoteV0) Reset() {
|
|
*x = NockchainNoteV0{}
|
|
mi := &file_types_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NockchainNoteV0) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NockchainNoteV0) ProtoMessage() {}
|
|
|
|
func (x *NockchainNoteV0) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NockchainNoteV0.ProtoReflect.Descriptor instead.
|
|
func (*NockchainNoteV0) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *NockchainNoteV0) GetVersion() Version {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return Version_V0
|
|
}
|
|
|
|
func (x *NockchainNoteV0) GetOriginPage() uint64 {
|
|
if x != nil {
|
|
return x.OriginPage
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NockchainNoteV0) GetName() *NockchainName {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NockchainNoteV0) GetLock() *NockchainLock {
|
|
if x != nil {
|
|
return x.Lock
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NockchainNoteV0) GetSource() *NockchainSource {
|
|
if x != nil {
|
|
return x.Source
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NockchainNoteV0) GetAsset() uint64 {
|
|
if x != nil {
|
|
return x.Asset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type NockchainNoteV1 struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NockchainNoteV1) Reset() {
|
|
*x = NockchainNoteV1{}
|
|
mi := &file_types_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NockchainNoteV1) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NockchainNoteV1) ProtoMessage() {}
|
|
|
|
func (x *NockchainNoteV1) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NockchainNoteV1.ProtoReflect.Descriptor instead.
|
|
func (*NockchainNoteV1) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
type NockchainName struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
First string `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"`
|
|
Last string `protobuf:"bytes,2,opt,name=last,proto3" json:"last,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NockchainName) Reset() {
|
|
*x = NockchainName{}
|
|
mi := &file_types_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NockchainName) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NockchainName) ProtoMessage() {}
|
|
|
|
func (x *NockchainName) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NockchainName.ProtoReflect.Descriptor instead.
|
|
func (*NockchainName) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *NockchainName) GetFirst() string {
|
|
if x != nil {
|
|
return x.First
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NockchainName) GetLast() string {
|
|
if x != nil {
|
|
return x.Last
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type NockchainSignature struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
|
|
Chal []uint64 `protobuf:"varint,2,rep,packed,name=chal,proto3" json:"chal,omitempty"`
|
|
Sig []uint64 `protobuf:"varint,3,rep,packed,name=sig,proto3" json:"sig,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NockchainSignature) Reset() {
|
|
*x = NockchainSignature{}
|
|
mi := &file_types_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NockchainSignature) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NockchainSignature) ProtoMessage() {}
|
|
|
|
func (x *NockchainSignature) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NockchainSignature.ProtoReflect.Descriptor instead.
|
|
func (*NockchainSignature) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *NockchainSignature) GetPubkey() string {
|
|
if x != nil {
|
|
return x.Pubkey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NockchainSignature) GetChal() []uint64 {
|
|
if x != nil {
|
|
return x.Chal
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NockchainSignature) GetSig() []uint64 {
|
|
if x != nil {
|
|
return x.Sig
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NockchainSeedV0 struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OutputSource *NockchainSource `protobuf:"bytes,1,opt,name=output_source,json=outputSource,proto3,oneof" json:"output_source,omitempty"`
|
|
LockRoot string `protobuf:"bytes,2,opt,name=lock_root,json=lockRoot,proto3" json:"lock_root,omitempty"`
|
|
NoteData *NockchainLock `protobuf:"bytes,3,opt,name=note_data,json=noteData,proto3" json:"note_data,omitempty"`
|
|
Gift uint64 `protobuf:"varint,4,opt,name=gift,proto3" json:"gift,omitempty"`
|
|
ParentHash string `protobuf:"bytes,5,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NockchainSeedV0) Reset() {
|
|
*x = NockchainSeedV0{}
|
|
mi := &file_types_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NockchainSeedV0) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NockchainSeedV0) ProtoMessage() {}
|
|
|
|
func (x *NockchainSeedV0) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NockchainSeedV0.ProtoReflect.Descriptor instead.
|
|
func (*NockchainSeedV0) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *NockchainSeedV0) GetOutputSource() *NockchainSource {
|
|
if x != nil {
|
|
return x.OutputSource
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NockchainSeedV0) GetLockRoot() string {
|
|
if x != nil {
|
|
return x.LockRoot
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NockchainSeedV0) GetNoteData() *NockchainLock {
|
|
if x != nil {
|
|
return x.NoteData
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NockchainSeedV0) GetGift() uint64 {
|
|
if x != nil {
|
|
return x.Gift
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NockchainSeedV0) GetParentHash() string {
|
|
if x != nil {
|
|
return x.ParentHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type NockchainLock struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
KeysRequired uint64 `protobuf:"varint,1,opt,name=keys_required,json=keysRequired,proto3" json:"keys_required,omitempty"`
|
|
Pubkeys []string `protobuf:"bytes,2,rep,name=pubkeys,proto3" json:"pubkeys,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NockchainLock) Reset() {
|
|
*x = NockchainLock{}
|
|
mi := &file_types_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NockchainLock) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NockchainLock) ProtoMessage() {}
|
|
|
|
func (x *NockchainLock) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NockchainLock.ProtoReflect.Descriptor instead.
|
|
func (*NockchainLock) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *NockchainLock) GetKeysRequired() uint64 {
|
|
if x != nil {
|
|
return x.KeysRequired
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NockchainLock) GetPubkeys() []string {
|
|
if x != nil {
|
|
return x.Pubkeys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NockchainSource struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
|
|
IsCoinbase bool `protobuf:"varint,2,opt,name=is_coinbase,json=isCoinbase,proto3" json:"is_coinbase,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NockchainSource) Reset() {
|
|
*x = NockchainSource{}
|
|
mi := &file_types_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NockchainSource) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NockchainSource) ProtoMessage() {}
|
|
|
|
func (x *NockchainSource) ProtoReflect() protoreflect.Message {
|
|
mi := &file_types_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NockchainSource.ProtoReflect.Descriptor instead.
|
|
func (*NockchainSource) Descriptor() ([]byte, []int) {
|
|
return file_types_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *NockchainSource) GetSource() string {
|
|
if x != nil {
|
|
return x.Source
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NockchainSource) GetIsCoinbase() bool {
|
|
if x != nil {
|
|
return x.IsCoinbase
|
|
}
|
|
return false
|
|
}
|
|
|
|
var File_types_proto protoreflect.FileDescriptor
|
|
|
|
const file_types_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\vtypes.proto\x12\x13nockchain.public.v2\x1a\x10blockchain.proto\"T\n" +
|
|
"\bScanData\x12\x16\n" +
|
|
"\x06pubkey\x18\x01 \x01(\tR\x06pubkey\x120\n" +
|
|
"\x04data\x18\x02 \x01(\v2\x1c.nockchain.public.v2.BalanceR\x04data\"\xb4\x01\n" +
|
|
"\x0eTimelockIntent\x12C\n" +
|
|
"\babsolute\x18\x01 \x01(\v2\".nockchain.public.v2.TimelockRangeH\x00R\babsolute\x88\x01\x01\x12C\n" +
|
|
"\brelative\x18\x02 \x01(\v2\".nockchain.public.v2.TimelockRangeH\x01R\brelative\x88\x01\x01B\v\n" +
|
|
"\t_absoluteB\v\n" +
|
|
"\t_relative\"\x8b\x01\n" +
|
|
"\rTimelockRange\x124\n" +
|
|
"\x03min\x18\x01 \x01(\v2\x1d.nockchain.public.v2.TimelockH\x00R\x03min\x88\x01\x01\x124\n" +
|
|
"\x03max\x18\x02 \x01(\v2\x1d.nockchain.public.v2.TimelockH\x01R\x03max\x88\x01\x01B\x06\n" +
|
|
"\x04_minB\x06\n" +
|
|
"\x04_max\" \n" +
|
|
"\bTimelock\x12\x14\n" +
|
|
"\x05value\x18\x01 \x01(\x04R\x05value\"\xa1\x01\n" +
|
|
"\x05RawTx\x12\x13\n" +
|
|
"\x05tx_id\x18\x01 \x01(\tR\x04txId\x126\n" +
|
|
"\aversion\x18\x02 \x01(\x0e2\x1c.nockchain.public.v2.VersionR\aversion\x12K\n" +
|
|
"\fnamed_spends\x18\x03 \x03(\v2(.nockchain.public.v2.NockchainNamedSpendR\vnamedSpends\"\xdf\x01\n" +
|
|
"\x13NockchainNamedSpend\x126\n" +
|
|
"\x04name\x18\x01 \x01(\v2\".nockchain.public.v2.NockchainNameR\x04name\x12?\n" +
|
|
"\x06legacy\x18\x02 \x01(\v2%.nockchain.public.v2.NockchainSpendV0H\x00R\x06legacy\x12A\n" +
|
|
"\awitness\x18\x03 \x01(\v2%.nockchain.public.v2.NockchainSpendV1H\x00R\awitnessB\f\n" +
|
|
"\n" +
|
|
"spend_kind\"\xa9\x01\n" +
|
|
"\x10NockchainSpendV0\x12G\n" +
|
|
"\n" +
|
|
"signatures\x18\x01 \x03(\v2'.nockchain.public.v2.NockchainSignatureR\n" +
|
|
"signatures\x12:\n" +
|
|
"\x05seeds\x18\x02 \x03(\v2$.nockchain.public.v2.NockchainSeedV0R\x05seeds\x12\x10\n" +
|
|
"\x03fee\x18\x03 \x01(\x04R\x03fee\"\x12\n" +
|
|
"\x10NockchainSpendV1\"\x87\x01\n" +
|
|
"\rNockchainNote\x126\n" +
|
|
"\x02v0\x18\x01 \x01(\v2$.nockchain.public.v2.NockchainNoteV0H\x00R\x02v0\x126\n" +
|
|
"\x02v1\x18\x02 \x01(\v2$.nockchain.public.v2.NockchainNoteV1H\x00R\x02v1B\x06\n" +
|
|
"\x04note\"\xae\x02\n" +
|
|
"\x0fNockchainNoteV0\x126\n" +
|
|
"\aversion\x18\x01 \x01(\x0e2\x1c.nockchain.public.v2.VersionR\aversion\x12\x1f\n" +
|
|
"\vorigin_page\x18\x02 \x01(\x04R\n" +
|
|
"originPage\x126\n" +
|
|
"\x04name\x18\x03 \x01(\v2\".nockchain.public.v2.NockchainNameR\x04name\x126\n" +
|
|
"\x04lock\x18\x05 \x01(\v2\".nockchain.public.v2.NockchainLockR\x04lock\x12<\n" +
|
|
"\x06source\x18\x06 \x01(\v2$.nockchain.public.v2.NockchainSourceR\x06source\x12\x14\n" +
|
|
"\x05asset\x18\a \x01(\x04R\x05asset\"\x11\n" +
|
|
"\x0fNockchainNoteV1\"9\n" +
|
|
"\rNockchainName\x12\x14\n" +
|
|
"\x05first\x18\x01 \x01(\tR\x05first\x12\x12\n" +
|
|
"\x04last\x18\x02 \x01(\tR\x04last\"R\n" +
|
|
"\x12NockchainSignature\x12\x16\n" +
|
|
"\x06pubkey\x18\x01 \x01(\tR\x06pubkey\x12\x12\n" +
|
|
"\x04chal\x18\x02 \x03(\x04R\x04chal\x12\x10\n" +
|
|
"\x03sig\x18\x03 \x03(\x04R\x03sig\"\x86\x02\n" +
|
|
"\x0fNockchainSeedV0\x12N\n" +
|
|
"\routput_source\x18\x01 \x01(\v2$.nockchain.public.v2.NockchainSourceH\x00R\foutputSource\x88\x01\x01\x12\x1b\n" +
|
|
"\tlock_root\x18\x02 \x01(\tR\blockRoot\x12?\n" +
|
|
"\tnote_data\x18\x03 \x01(\v2\".nockchain.public.v2.NockchainLockR\bnoteData\x12\x12\n" +
|
|
"\x04gift\x18\x04 \x01(\x04R\x04gift\x12\x1f\n" +
|
|
"\vparent_hash\x18\x05 \x01(\tR\n" +
|
|
"parentHashB\x10\n" +
|
|
"\x0e_output_source\"N\n" +
|
|
"\rNockchainLock\x12#\n" +
|
|
"\rkeys_required\x18\x01 \x01(\x04R\fkeysRequired\x12\x18\n" +
|
|
"\apubkeys\x18\x02 \x03(\tR\apubkeys\"J\n" +
|
|
"\x0fNockchainSource\x12\x16\n" +
|
|
"\x06source\x18\x01 \x01(\tR\x06source\x12\x1f\n" +
|
|
"\vis_coinbase\x18\x02 \x01(\bR\n" +
|
|
"isCoinbase*a\n" +
|
|
"\n" +
|
|
"ImportType\x12\r\n" +
|
|
"\tUNDEFINED\x10\x00\x12\x10\n" +
|
|
"\fEXTENDED_KEY\x10\x01\x12\x0e\n" +
|
|
"\n" +
|
|
"SEEDPHRASE\x10\x02\x12\x12\n" +
|
|
"\x0eMASTER_PRIVKEY\x10\x03\x12\x0e\n" +
|
|
"\n" +
|
|
"WATCH_ONLY\x10\x04*!\n" +
|
|
"\aVersion\x12\x06\n" +
|
|
"\x02V0\x10\x00\x12\x06\n" +
|
|
"\x02V1\x10\x01\x12\x06\n" +
|
|
"\x02V2\x10\x02B\x0eZ\f./;nockchainb\x06proto3"
|
|
|
|
var (
|
|
file_types_proto_rawDescOnce sync.Once
|
|
file_types_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_types_proto_rawDescGZIP() []byte {
|
|
file_types_proto_rawDescOnce.Do(func() {
|
|
file_types_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_types_proto_rawDesc), len(file_types_proto_rawDesc)))
|
|
})
|
|
return file_types_proto_rawDescData
|
|
}
|
|
|
|
var file_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
var file_types_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
|
var file_types_proto_goTypes = []any{
|
|
(ImportType)(0), // 0: nockchain.public.v2.ImportType
|
|
(Version)(0), // 1: nockchain.public.v2.Version
|
|
(*ScanData)(nil), // 2: nockchain.public.v2.ScanData
|
|
(*TimelockIntent)(nil), // 3: nockchain.public.v2.TimelockIntent
|
|
(*TimelockRange)(nil), // 4: nockchain.public.v2.TimelockRange
|
|
(*Timelock)(nil), // 5: nockchain.public.v2.Timelock
|
|
(*RawTx)(nil), // 6: nockchain.public.v2.RawTx
|
|
(*NockchainNamedSpend)(nil), // 7: nockchain.public.v2.NockchainNamedSpend
|
|
(*NockchainSpendV0)(nil), // 8: nockchain.public.v2.NockchainSpendV0
|
|
(*NockchainSpendV1)(nil), // 9: nockchain.public.v2.NockchainSpendV1
|
|
(*NockchainNote)(nil), // 10: nockchain.public.v2.NockchainNote
|
|
(*NockchainNoteV0)(nil), // 11: nockchain.public.v2.NockchainNoteV0
|
|
(*NockchainNoteV1)(nil), // 12: nockchain.public.v2.NockchainNoteV1
|
|
(*NockchainName)(nil), // 13: nockchain.public.v2.NockchainName
|
|
(*NockchainSignature)(nil), // 14: nockchain.public.v2.NockchainSignature
|
|
(*NockchainSeedV0)(nil), // 15: nockchain.public.v2.NockchainSeedV0
|
|
(*NockchainLock)(nil), // 16: nockchain.public.v2.NockchainLock
|
|
(*NockchainSource)(nil), // 17: nockchain.public.v2.NockchainSource
|
|
(*Balance)(nil), // 18: nockchain.public.v2.Balance
|
|
}
|
|
var file_types_proto_depIdxs = []int32{
|
|
18, // 0: nockchain.public.v2.ScanData.data:type_name -> nockchain.public.v2.Balance
|
|
4, // 1: nockchain.public.v2.TimelockIntent.absolute:type_name -> nockchain.public.v2.TimelockRange
|
|
4, // 2: nockchain.public.v2.TimelockIntent.relative:type_name -> nockchain.public.v2.TimelockRange
|
|
5, // 3: nockchain.public.v2.TimelockRange.min:type_name -> nockchain.public.v2.Timelock
|
|
5, // 4: nockchain.public.v2.TimelockRange.max:type_name -> nockchain.public.v2.Timelock
|
|
1, // 5: nockchain.public.v2.RawTx.version:type_name -> nockchain.public.v2.Version
|
|
7, // 6: nockchain.public.v2.RawTx.named_spends:type_name -> nockchain.public.v2.NockchainNamedSpend
|
|
13, // 7: nockchain.public.v2.NockchainNamedSpend.name:type_name -> nockchain.public.v2.NockchainName
|
|
8, // 8: nockchain.public.v2.NockchainNamedSpend.legacy:type_name -> nockchain.public.v2.NockchainSpendV0
|
|
9, // 9: nockchain.public.v2.NockchainNamedSpend.witness:type_name -> nockchain.public.v2.NockchainSpendV1
|
|
14, // 10: nockchain.public.v2.NockchainSpendV0.signatures:type_name -> nockchain.public.v2.NockchainSignature
|
|
15, // 11: nockchain.public.v2.NockchainSpendV0.seeds:type_name -> nockchain.public.v2.NockchainSeedV0
|
|
11, // 12: nockchain.public.v2.NockchainNote.v0:type_name -> nockchain.public.v2.NockchainNoteV0
|
|
12, // 13: nockchain.public.v2.NockchainNote.v1:type_name -> nockchain.public.v2.NockchainNoteV1
|
|
1, // 14: nockchain.public.v2.NockchainNoteV0.version:type_name -> nockchain.public.v2.Version
|
|
13, // 15: nockchain.public.v2.NockchainNoteV0.name:type_name -> nockchain.public.v2.NockchainName
|
|
16, // 16: nockchain.public.v2.NockchainNoteV0.lock:type_name -> nockchain.public.v2.NockchainLock
|
|
17, // 17: nockchain.public.v2.NockchainNoteV0.source:type_name -> nockchain.public.v2.NockchainSource
|
|
17, // 18: nockchain.public.v2.NockchainSeedV0.output_source:type_name -> nockchain.public.v2.NockchainSource
|
|
16, // 19: nockchain.public.v2.NockchainSeedV0.note_data:type_name -> nockchain.public.v2.NockchainLock
|
|
20, // [20:20] is the sub-list for method output_type
|
|
20, // [20:20] is the sub-list for method input_type
|
|
20, // [20:20] is the sub-list for extension type_name
|
|
20, // [20:20] is the sub-list for extension extendee
|
|
0, // [0:20] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_types_proto_init() }
|
|
func file_types_proto_init() {
|
|
if File_types_proto != nil {
|
|
return
|
|
}
|
|
file_blockchain_proto_init()
|
|
file_types_proto_msgTypes[1].OneofWrappers = []any{}
|
|
file_types_proto_msgTypes[2].OneofWrappers = []any{}
|
|
file_types_proto_msgTypes[5].OneofWrappers = []any{
|
|
(*NockchainNamedSpend_Legacy)(nil),
|
|
(*NockchainNamedSpend_Witness)(nil),
|
|
}
|
|
file_types_proto_msgTypes[8].OneofWrappers = []any{
|
|
(*NockchainNote_V0)(nil),
|
|
(*NockchainNote_V1)(nil),
|
|
}
|
|
file_types_proto_msgTypes[13].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_types_proto_rawDesc), len(file_types_proto_rawDesc)),
|
|
NumEnums: 2,
|
|
NumMessages: 16,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_types_proto_goTypes,
|
|
DependencyIndexes: file_types_proto_depIdxs,
|
|
EnumInfos: file_types_proto_enumTypes,
|
|
MessageInfos: file_types_proto_msgTypes,
|
|
}.Build()
|
|
File_types_proto = out.File
|
|
file_types_proto_goTypes = nil
|
|
file_types_proto_depIdxs = nil
|
|
}
|