555 lines
19 KiB
Go
555 lines
19 KiB
Go
// nockchain/public/v1/nockchain.proto
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.9
|
|
// protoc v3.20.3
|
|
// source: nockchain.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 WalletGetBalanceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// pubkey cheetah point; specific address, or current wallet
|
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
// Pagination parameters. The server enforces limits and may return fewer
|
|
// entries than requested to respect message size and policy. For consistent
|
|
// paging across a stable snapshot, pass along the returned page_token from
|
|
// the previous response without modification.
|
|
Page *PageRequest `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WalletGetBalanceRequest) Reset() {
|
|
*x = WalletGetBalanceRequest{}
|
|
mi := &file_nockchain_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WalletGetBalanceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WalletGetBalanceRequest) ProtoMessage() {}
|
|
|
|
func (x *WalletGetBalanceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_nockchain_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 WalletGetBalanceRequest.ProtoReflect.Descriptor instead.
|
|
func (*WalletGetBalanceRequest) Descriptor() ([]byte, []int) {
|
|
return file_nockchain_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *WalletGetBalanceRequest) GetAddress() string {
|
|
if x != nil {
|
|
return x.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *WalletGetBalanceRequest) GetPage() *PageRequest {
|
|
if x != nil {
|
|
return x.Page
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type WalletGetBalanceResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Result:
|
|
//
|
|
// *WalletGetBalanceResponse_Balance
|
|
// *WalletGetBalanceResponse_Error
|
|
Result isWalletGetBalanceResponse_Result `protobuf_oneof:"result"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WalletGetBalanceResponse) Reset() {
|
|
*x = WalletGetBalanceResponse{}
|
|
mi := &file_nockchain_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WalletGetBalanceResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WalletGetBalanceResponse) ProtoMessage() {}
|
|
|
|
func (x *WalletGetBalanceResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_nockchain_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 WalletGetBalanceResponse.ProtoReflect.Descriptor instead.
|
|
func (*WalletGetBalanceResponse) Descriptor() ([]byte, []int) {
|
|
return file_nockchain_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *WalletGetBalanceResponse) GetResult() isWalletGetBalanceResponse_Result {
|
|
if x != nil {
|
|
return x.Result
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *WalletGetBalanceResponse) GetBalance() *WalletBalanceData {
|
|
if x != nil {
|
|
if x, ok := x.Result.(*WalletGetBalanceResponse_Balance); ok {
|
|
return x.Balance
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *WalletGetBalanceResponse) GetError() *ErrorStatus {
|
|
if x != nil {
|
|
if x, ok := x.Result.(*WalletGetBalanceResponse_Error); ok {
|
|
return x.Error
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isWalletGetBalanceResponse_Result interface {
|
|
isWalletGetBalanceResponse_Result()
|
|
}
|
|
|
|
type WalletGetBalanceResponse_Balance struct {
|
|
// Paginated wallet balance data with full entries and snapshot metadata.
|
|
// Continue paging using `balance.page.next_page_token` until empty. Clients
|
|
// should treat the page token as opaque; it may encode snapshot identity
|
|
// and the last returned key.
|
|
Balance *WalletBalanceData `protobuf:"bytes,1,opt,name=balance,proto3,oneof"`
|
|
}
|
|
|
|
type WalletGetBalanceResponse_Error struct {
|
|
Error *ErrorStatus `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
|
|
}
|
|
|
|
func (*WalletGetBalanceResponse_Balance) isWalletGetBalanceResponse_Result() {}
|
|
|
|
func (*WalletGetBalanceResponse_Error) isWalletGetBalanceResponse_Result() {}
|
|
|
|
type WalletSendTransactionRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TxId *Hash `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` // base58 encoded transaction ID for tracking
|
|
RawTx *RawTransaction `protobuf:"bytes,2,opt,name=raw_tx,json=rawTx,proto3" json:"raw_tx,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WalletSendTransactionRequest) Reset() {
|
|
*x = WalletSendTransactionRequest{}
|
|
mi := &file_nockchain_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WalletSendTransactionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WalletSendTransactionRequest) ProtoMessage() {}
|
|
|
|
func (x *WalletSendTransactionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_nockchain_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 WalletSendTransactionRequest.ProtoReflect.Descriptor instead.
|
|
func (*WalletSendTransactionRequest) Descriptor() ([]byte, []int) {
|
|
return file_nockchain_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *WalletSendTransactionRequest) GetTxId() *Hash {
|
|
if x != nil {
|
|
return x.TxId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *WalletSendTransactionRequest) GetRawTx() *RawTransaction {
|
|
if x != nil {
|
|
return x.RawTx
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type WalletSendTransactionResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Result:
|
|
//
|
|
// *WalletSendTransactionResponse_Ack
|
|
// *WalletSendTransactionResponse_Error
|
|
Result isWalletSendTransactionResponse_Result `protobuf_oneof:"result"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WalletSendTransactionResponse) Reset() {
|
|
*x = WalletSendTransactionResponse{}
|
|
mi := &file_nockchain_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WalletSendTransactionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WalletSendTransactionResponse) ProtoMessage() {}
|
|
|
|
func (x *WalletSendTransactionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_nockchain_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 WalletSendTransactionResponse.ProtoReflect.Descriptor instead.
|
|
func (*WalletSendTransactionResponse) Descriptor() ([]byte, []int) {
|
|
return file_nockchain_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *WalletSendTransactionResponse) GetResult() isWalletSendTransactionResponse_Result {
|
|
if x != nil {
|
|
return x.Result
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *WalletSendTransactionResponse) GetAck() *Acknowledged {
|
|
if x != nil {
|
|
if x, ok := x.Result.(*WalletSendTransactionResponse_Ack); ok {
|
|
return x.Ack
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *WalletSendTransactionResponse) GetError() *ErrorStatus {
|
|
if x != nil {
|
|
if x, ok := x.Result.(*WalletSendTransactionResponse_Error); ok {
|
|
return x.Error
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isWalletSendTransactionResponse_Result interface {
|
|
isWalletSendTransactionResponse_Result()
|
|
}
|
|
|
|
type WalletSendTransactionResponse_Ack struct {
|
|
// true is request was acknowledge by node,
|
|
// this does not mean that the transaction was
|
|
// confirmed and/or accepted.
|
|
Ack *Acknowledged `protobuf:"bytes,1,opt,name=ack,proto3,oneof"`
|
|
}
|
|
|
|
type WalletSendTransactionResponse_Error struct {
|
|
Error *ErrorStatus `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
|
|
}
|
|
|
|
func (*WalletSendTransactionResponse_Ack) isWalletSendTransactionResponse_Result() {}
|
|
|
|
func (*WalletSendTransactionResponse_Error) isWalletSendTransactionResponse_Result() {}
|
|
|
|
type TransactionAcceptedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TxId *Base58Hash `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` // base58 encoded transaction ID for tracking
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransactionAcceptedRequest) Reset() {
|
|
*x = TransactionAcceptedRequest{}
|
|
mi := &file_nockchain_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransactionAcceptedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransactionAcceptedRequest) ProtoMessage() {}
|
|
|
|
func (x *TransactionAcceptedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_nockchain_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 TransactionAcceptedRequest.ProtoReflect.Descriptor instead.
|
|
func (*TransactionAcceptedRequest) Descriptor() ([]byte, []int) {
|
|
return file_nockchain_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *TransactionAcceptedRequest) GetTxId() *Base58Hash {
|
|
if x != nil {
|
|
return x.TxId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TransactionAcceptedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// true if transaction was accepted by node. this not does mean that the
|
|
// transaction was confirmed. Just that it was validated by the node and
|
|
// added to its raw-tx set.
|
|
//
|
|
// Types that are valid to be assigned to Result:
|
|
//
|
|
// *TransactionAcceptedResponse_Accepted
|
|
// *TransactionAcceptedResponse_Error
|
|
Result isTransactionAcceptedResponse_Result `protobuf_oneof:"result"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransactionAcceptedResponse) Reset() {
|
|
*x = TransactionAcceptedResponse{}
|
|
mi := &file_nockchain_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransactionAcceptedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransactionAcceptedResponse) ProtoMessage() {}
|
|
|
|
func (x *TransactionAcceptedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_nockchain_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 TransactionAcceptedResponse.ProtoReflect.Descriptor instead.
|
|
func (*TransactionAcceptedResponse) Descriptor() ([]byte, []int) {
|
|
return file_nockchain_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *TransactionAcceptedResponse) GetResult() isTransactionAcceptedResponse_Result {
|
|
if x != nil {
|
|
return x.Result
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TransactionAcceptedResponse) GetAccepted() bool {
|
|
if x != nil {
|
|
if x, ok := x.Result.(*TransactionAcceptedResponse_Accepted); ok {
|
|
return x.Accepted
|
|
}
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *TransactionAcceptedResponse) GetError() *ErrorStatus {
|
|
if x != nil {
|
|
if x, ok := x.Result.(*TransactionAcceptedResponse_Error); ok {
|
|
return x.Error
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isTransactionAcceptedResponse_Result interface {
|
|
isTransactionAcceptedResponse_Result()
|
|
}
|
|
|
|
type TransactionAcceptedResponse_Accepted struct {
|
|
Accepted bool `protobuf:"varint,1,opt,name=accepted,proto3,oneof"`
|
|
}
|
|
|
|
type TransactionAcceptedResponse_Error struct {
|
|
Error *ErrorStatus `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
|
|
}
|
|
|
|
func (*TransactionAcceptedResponse_Accepted) isTransactionAcceptedResponse_Result() {}
|
|
|
|
func (*TransactionAcceptedResponse_Error) isTransactionAcceptedResponse_Result() {}
|
|
|
|
var File_nockchain_proto protoreflect.FileDescriptor
|
|
|
|
const file_nockchain_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0fnockchain.proto\x12\x13nockchain.public.v1\x1a\x10blockchain.proto\x1a\x10primitives.proto\x1a\x10pagination.proto\"i\n" +
|
|
"\x17WalletGetBalanceRequest\x12\x18\n" +
|
|
"\aaddress\x18\x01 \x01(\tR\aaddress\x124\n" +
|
|
"\x04page\x18\x02 \x01(\v2 .nockchain.public.v1.PageRequestR\x04page\"\xa2\x01\n" +
|
|
"\x18WalletGetBalanceResponse\x12B\n" +
|
|
"\abalance\x18\x01 \x01(\v2&.nockchain.public.v1.WalletBalanceDataH\x00R\abalance\x128\n" +
|
|
"\x05error\x18\x02 \x01(\v2 .nockchain.public.v1.ErrorStatusH\x00R\x05errorB\b\n" +
|
|
"\x06result\"\x8a\x01\n" +
|
|
"\x1cWalletSendTransactionRequest\x12.\n" +
|
|
"\x05tx_id\x18\x01 \x01(\v2\x19.nockchain.public.v1.HashR\x04txId\x12:\n" +
|
|
"\x06raw_tx\x18\x02 \x01(\v2#.nockchain.public.v1.RawTransactionR\x05rawTx\"\x9a\x01\n" +
|
|
"\x1dWalletSendTransactionResponse\x125\n" +
|
|
"\x03ack\x18\x01 \x01(\v2!.nockchain.public.v1.AcknowledgedH\x00R\x03ack\x128\n" +
|
|
"\x05error\x18\x02 \x01(\v2 .nockchain.public.v1.ErrorStatusH\x00R\x05errorB\b\n" +
|
|
"\x06result\"R\n" +
|
|
"\x1aTransactionAcceptedRequest\x124\n" +
|
|
"\x05tx_id\x18\x01 \x01(\v2\x1f.nockchain.public.v1.Base58HashR\x04txId\"\x7f\n" +
|
|
"\x1bTransactionAcceptedResponse\x12\x1c\n" +
|
|
"\baccepted\x18\x01 \x01(\bH\x00R\baccepted\x128\n" +
|
|
"\x05error\x18\x02 \x01(\v2 .nockchain.public.v1.ErrorStatusH\x00R\x05errorB\b\n" +
|
|
"\x06result2\xfd\x02\n" +
|
|
"\x10NockchainService\x12o\n" +
|
|
"\x10WalletGetBalance\x12,.nockchain.public.v1.WalletGetBalanceRequest\x1a-.nockchain.public.v1.WalletGetBalanceResponse\x12~\n" +
|
|
"\x15WalletSendTransaction\x121.nockchain.public.v1.WalletSendTransactionRequest\x1a2.nockchain.public.v1.WalletSendTransactionResponse\x12x\n" +
|
|
"\x13TransactionAccepted\x12/.nockchain.public.v1.TransactionAcceptedRequest\x1a0.nockchain.public.v1.TransactionAcceptedResponseB\x0eZ\f./;nockchainb\x06proto3"
|
|
|
|
var (
|
|
file_nockchain_proto_rawDescOnce sync.Once
|
|
file_nockchain_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_nockchain_proto_rawDescGZIP() []byte {
|
|
file_nockchain_proto_rawDescOnce.Do(func() {
|
|
file_nockchain_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_nockchain_proto_rawDesc), len(file_nockchain_proto_rawDesc)))
|
|
})
|
|
return file_nockchain_proto_rawDescData
|
|
}
|
|
|
|
var file_nockchain_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
var file_nockchain_proto_goTypes = []any{
|
|
(*WalletGetBalanceRequest)(nil), // 0: nockchain.public.v1.WalletGetBalanceRequest
|
|
(*WalletGetBalanceResponse)(nil), // 1: nockchain.public.v1.WalletGetBalanceResponse
|
|
(*WalletSendTransactionRequest)(nil), // 2: nockchain.public.v1.WalletSendTransactionRequest
|
|
(*WalletSendTransactionResponse)(nil), // 3: nockchain.public.v1.WalletSendTransactionResponse
|
|
(*TransactionAcceptedRequest)(nil), // 4: nockchain.public.v1.TransactionAcceptedRequest
|
|
(*TransactionAcceptedResponse)(nil), // 5: nockchain.public.v1.TransactionAcceptedResponse
|
|
(*PageRequest)(nil), // 6: nockchain.public.v1.PageRequest
|
|
(*WalletBalanceData)(nil), // 7: nockchain.public.v1.WalletBalanceData
|
|
(*ErrorStatus)(nil), // 8: nockchain.public.v1.ErrorStatus
|
|
(*Hash)(nil), // 9: nockchain.public.v1.Hash
|
|
(*RawTransaction)(nil), // 10: nockchain.public.v1.RawTransaction
|
|
(*Acknowledged)(nil), // 11: nockchain.public.v1.Acknowledged
|
|
(*Base58Hash)(nil), // 12: nockchain.public.v1.Base58Hash
|
|
}
|
|
var file_nockchain_proto_depIdxs = []int32{
|
|
6, // 0: nockchain.public.v1.WalletGetBalanceRequest.page:type_name -> nockchain.public.v1.PageRequest
|
|
7, // 1: nockchain.public.v1.WalletGetBalanceResponse.balance:type_name -> nockchain.public.v1.WalletBalanceData
|
|
8, // 2: nockchain.public.v1.WalletGetBalanceResponse.error:type_name -> nockchain.public.v1.ErrorStatus
|
|
9, // 3: nockchain.public.v1.WalletSendTransactionRequest.tx_id:type_name -> nockchain.public.v1.Hash
|
|
10, // 4: nockchain.public.v1.WalletSendTransactionRequest.raw_tx:type_name -> nockchain.public.v1.RawTransaction
|
|
11, // 5: nockchain.public.v1.WalletSendTransactionResponse.ack:type_name -> nockchain.public.v1.Acknowledged
|
|
8, // 6: nockchain.public.v1.WalletSendTransactionResponse.error:type_name -> nockchain.public.v1.ErrorStatus
|
|
12, // 7: nockchain.public.v1.TransactionAcceptedRequest.tx_id:type_name -> nockchain.public.v1.Base58Hash
|
|
8, // 8: nockchain.public.v1.TransactionAcceptedResponse.error:type_name -> nockchain.public.v1.ErrorStatus
|
|
0, // 9: nockchain.public.v1.NockchainService.WalletGetBalance:input_type -> nockchain.public.v1.WalletGetBalanceRequest
|
|
2, // 10: nockchain.public.v1.NockchainService.WalletSendTransaction:input_type -> nockchain.public.v1.WalletSendTransactionRequest
|
|
4, // 11: nockchain.public.v1.NockchainService.TransactionAccepted:input_type -> nockchain.public.v1.TransactionAcceptedRequest
|
|
1, // 12: nockchain.public.v1.NockchainService.WalletGetBalance:output_type -> nockchain.public.v1.WalletGetBalanceResponse
|
|
3, // 13: nockchain.public.v1.NockchainService.WalletSendTransaction:output_type -> nockchain.public.v1.WalletSendTransactionResponse
|
|
5, // 14: nockchain.public.v1.NockchainService.TransactionAccepted:output_type -> nockchain.public.v1.TransactionAcceptedResponse
|
|
12, // [12:15] is the sub-list for method output_type
|
|
9, // [9:12] is the sub-list for method input_type
|
|
9, // [9:9] is the sub-list for extension type_name
|
|
9, // [9:9] is the sub-list for extension extendee
|
|
0, // [0:9] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_nockchain_proto_init() }
|
|
func file_nockchain_proto_init() {
|
|
if File_nockchain_proto != nil {
|
|
return
|
|
}
|
|
file_blockchain_proto_init()
|
|
file_primitives_proto_init()
|
|
file_pagination_proto_init()
|
|
file_nockchain_proto_msgTypes[1].OneofWrappers = []any{
|
|
(*WalletGetBalanceResponse_Balance)(nil),
|
|
(*WalletGetBalanceResponse_Error)(nil),
|
|
}
|
|
file_nockchain_proto_msgTypes[3].OneofWrappers = []any{
|
|
(*WalletSendTransactionResponse_Ack)(nil),
|
|
(*WalletSendTransactionResponse_Error)(nil),
|
|
}
|
|
file_nockchain_proto_msgTypes[5].OneofWrappers = []any{
|
|
(*TransactionAcceptedResponse_Accepted)(nil),
|
|
(*TransactionAcceptedResponse_Error)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_nockchain_proto_rawDesc), len(file_nockchain_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 6,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_nockchain_proto_goTypes,
|
|
DependencyIndexes: file_nockchain_proto_depIdxs,
|
|
MessageInfos: file_nockchain_proto_msgTypes,
|
|
}.Build()
|
|
File_nockchain_proto = out.File
|
|
file_nockchain_proto_goTypes = nil
|
|
file_nockchain_proto_depIdxs = nil
|
|
}
|