Ai
1 Star 0 Fork 0

rekey/grpc-gateway

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
api.pb.go 118.01 KB
一键复制 编辑 原始数据 按行查看 历史
taihaofu 提交于 2018-06-27 16:04 +08:00 . update version for golang protobuf
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/api.proto
package api // import "github.com/tronprotocol/grpc-gateway/api"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import core "github.com/tronprotocol/grpc-gateway/core"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// 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 ReturnResponseCode int32
const (
Return_SUCCESS ReturnResponseCode = 0
Return_SIGERROR ReturnResponseCode = 1
Return_CONTRACT_VALIDATE_ERROR ReturnResponseCode = 2
Return_CONTRACT_EXE_ERROR ReturnResponseCode = 3
Return_BANDWITH_ERROR ReturnResponseCode = 4
Return_DUP_TRANSACTION_ERROR ReturnResponseCode = 5
Return_TAPOS_ERROR ReturnResponseCode = 6
Return_TOO_BIG_TRANSACTION_ERROR ReturnResponseCode = 7
Return_TRANSACTION_EXPIRATION_ERROR ReturnResponseCode = 8
Return_SERVER_BUSY ReturnResponseCode = 9
Return_OTHER_ERROR ReturnResponseCode = 20
)
var ReturnResponseCode_name = map[int32]string{
0: "SUCCESS",
1: "SIGERROR",
2: "CONTRACT_VALIDATE_ERROR",
3: "CONTRACT_EXE_ERROR",
4: "BANDWITH_ERROR",
5: "DUP_TRANSACTION_ERROR",
6: "TAPOS_ERROR",
7: "TOO_BIG_TRANSACTION_ERROR",
8: "TRANSACTION_EXPIRATION_ERROR",
9: "SERVER_BUSY",
20: "OTHER_ERROR",
}
var ReturnResponseCode_value = map[string]int32{
"SUCCESS": 0,
"SIGERROR": 1,
"CONTRACT_VALIDATE_ERROR": 2,
"CONTRACT_EXE_ERROR": 3,
"BANDWITH_ERROR": 4,
"DUP_TRANSACTION_ERROR": 5,
"TAPOS_ERROR": 6,
"TOO_BIG_TRANSACTION_ERROR": 7,
"TRANSACTION_EXPIRATION_ERROR": 8,
"SERVER_BUSY": 9,
"OTHER_ERROR": 20,
}
func (x ReturnResponseCode) String() string {
return proto.EnumName(ReturnResponseCode_name, int32(x))
}
func (ReturnResponseCode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{0, 0}
}
type Return struct {
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
Code ReturnResponseCode `protobuf:"varint,2,opt,name=code,proto3,enum=protocol.ReturnResponseCode" json:"code,omitempty"`
Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Return) Reset() { *m = Return{} }
func (m *Return) String() string { return proto.CompactTextString(m) }
func (*Return) ProtoMessage() {}
func (*Return) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{0}
}
func (m *Return) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Return.Unmarshal(m, b)
}
func (m *Return) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Return.Marshal(b, m, deterministic)
}
func (dst *Return) XXX_Merge(src proto.Message) {
xxx_messageInfo_Return.Merge(dst, src)
}
func (m *Return) XXX_Size() int {
return xxx_messageInfo_Return.Size(m)
}
func (m *Return) XXX_DiscardUnknown() {
xxx_messageInfo_Return.DiscardUnknown(m)
}
var xxx_messageInfo_Return proto.InternalMessageInfo
func (m *Return) GetResult() bool {
if m != nil {
return m.Result
}
return false
}
func (m *Return) GetCode() ReturnResponseCode {
if m != nil {
return m.Code
}
return Return_SUCCESS
}
func (m *Return) GetMessage() []byte {
if m != nil {
return m.Message
}
return nil
}
type BlockReference struct {
BlockNum int64 `protobuf:"varint,1,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"`
BlockHash []byte `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlockReference) Reset() { *m = BlockReference{} }
func (m *BlockReference) String() string { return proto.CompactTextString(m) }
func (*BlockReference) ProtoMessage() {}
func (*BlockReference) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{1}
}
func (m *BlockReference) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockReference.Unmarshal(m, b)
}
func (m *BlockReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockReference.Marshal(b, m, deterministic)
}
func (dst *BlockReference) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockReference.Merge(dst, src)
}
func (m *BlockReference) XXX_Size() int {
return xxx_messageInfo_BlockReference.Size(m)
}
func (m *BlockReference) XXX_DiscardUnknown() {
xxx_messageInfo_BlockReference.DiscardUnknown(m)
}
var xxx_messageInfo_BlockReference proto.InternalMessageInfo
func (m *BlockReference) GetBlockNum() int64 {
if m != nil {
return m.BlockNum
}
return 0
}
func (m *BlockReference) GetBlockHash() []byte {
if m != nil {
return m.BlockHash
}
return nil
}
type WitnessList struct {
Witnesses []*core.Witness `protobuf:"bytes,1,rep,name=witnesses,proto3" json:"witnesses,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WitnessList) Reset() { *m = WitnessList{} }
func (m *WitnessList) String() string { return proto.CompactTextString(m) }
func (*WitnessList) ProtoMessage() {}
func (*WitnessList) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{2}
}
func (m *WitnessList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WitnessList.Unmarshal(m, b)
}
func (m *WitnessList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WitnessList.Marshal(b, m, deterministic)
}
func (dst *WitnessList) XXX_Merge(src proto.Message) {
xxx_messageInfo_WitnessList.Merge(dst, src)
}
func (m *WitnessList) XXX_Size() int {
return xxx_messageInfo_WitnessList.Size(m)
}
func (m *WitnessList) XXX_DiscardUnknown() {
xxx_messageInfo_WitnessList.DiscardUnknown(m)
}
var xxx_messageInfo_WitnessList proto.InternalMessageInfo
func (m *WitnessList) GetWitnesses() []*core.Witness {
if m != nil {
return m.Witnesses
}
return nil
}
type AssetIssueList struct {
AssetIssue []*core.AssetIssueContract `protobuf:"bytes,1,rep,name=assetIssue,proto3" json:"assetIssue,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AssetIssueList) Reset() { *m = AssetIssueList{} }
func (m *AssetIssueList) String() string { return proto.CompactTextString(m) }
func (*AssetIssueList) ProtoMessage() {}
func (*AssetIssueList) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{3}
}
func (m *AssetIssueList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AssetIssueList.Unmarshal(m, b)
}
func (m *AssetIssueList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AssetIssueList.Marshal(b, m, deterministic)
}
func (dst *AssetIssueList) XXX_Merge(src proto.Message) {
xxx_messageInfo_AssetIssueList.Merge(dst, src)
}
func (m *AssetIssueList) XXX_Size() int {
return xxx_messageInfo_AssetIssueList.Size(m)
}
func (m *AssetIssueList) XXX_DiscardUnknown() {
xxx_messageInfo_AssetIssueList.DiscardUnknown(m)
}
var xxx_messageInfo_AssetIssueList proto.InternalMessageInfo
func (m *AssetIssueList) GetAssetIssue() []*core.AssetIssueContract {
if m != nil {
return m.AssetIssue
}
return nil
}
type BlockList struct {
Block []*core.Block `protobuf:"bytes,1,rep,name=block,proto3" json:"block,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlockList) Reset() { *m = BlockList{} }
func (m *BlockList) String() string { return proto.CompactTextString(m) }
func (*BlockList) ProtoMessage() {}
func (*BlockList) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{4}
}
func (m *BlockList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockList.Unmarshal(m, b)
}
func (m *BlockList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockList.Marshal(b, m, deterministic)
}
func (dst *BlockList) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockList.Merge(dst, src)
}
func (m *BlockList) XXX_Size() int {
return xxx_messageInfo_BlockList.Size(m)
}
func (m *BlockList) XXX_DiscardUnknown() {
xxx_messageInfo_BlockList.DiscardUnknown(m)
}
var xxx_messageInfo_BlockList proto.InternalMessageInfo
func (m *BlockList) GetBlock() []*core.Block {
if m != nil {
return m.Block
}
return nil
}
type TransactionList struct {
Transaction []*core.Transaction `protobuf:"bytes,1,rep,name=transaction,proto3" json:"transaction,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TransactionList) Reset() { *m = TransactionList{} }
func (m *TransactionList) String() string { return proto.CompactTextString(m) }
func (*TransactionList) ProtoMessage() {}
func (*TransactionList) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{5}
}
func (m *TransactionList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TransactionList.Unmarshal(m, b)
}
func (m *TransactionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TransactionList.Marshal(b, m, deterministic)
}
func (dst *TransactionList) XXX_Merge(src proto.Message) {
xxx_messageInfo_TransactionList.Merge(dst, src)
}
func (m *TransactionList) XXX_Size() int {
return xxx_messageInfo_TransactionList.Size(m)
}
func (m *TransactionList) XXX_DiscardUnknown() {
xxx_messageInfo_TransactionList.DiscardUnknown(m)
}
var xxx_messageInfo_TransactionList proto.InternalMessageInfo
func (m *TransactionList) GetTransaction() []*core.Transaction {
if m != nil {
return m.Transaction
}
return nil
}
// Gossip node list
type NodeList struct {
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NodeList) Reset() { *m = NodeList{} }
func (m *NodeList) String() string { return proto.CompactTextString(m) }
func (*NodeList) ProtoMessage() {}
func (*NodeList) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{6}
}
func (m *NodeList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NodeList.Unmarshal(m, b)
}
func (m *NodeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NodeList.Marshal(b, m, deterministic)
}
func (dst *NodeList) XXX_Merge(src proto.Message) {
xxx_messageInfo_NodeList.Merge(dst, src)
}
func (m *NodeList) XXX_Size() int {
return xxx_messageInfo_NodeList.Size(m)
}
func (m *NodeList) XXX_DiscardUnknown() {
xxx_messageInfo_NodeList.DiscardUnknown(m)
}
var xxx_messageInfo_NodeList proto.InternalMessageInfo
func (m *NodeList) GetNodes() []*Node {
if m != nil {
return m.Nodes
}
return nil
}
// Gossip node
type Node struct {
Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Node) Reset() { *m = Node{} }
func (m *Node) String() string { return proto.CompactTextString(m) }
func (*Node) ProtoMessage() {}
func (*Node) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{7}
}
func (m *Node) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Node.Unmarshal(m, b)
}
func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Node.Marshal(b, m, deterministic)
}
func (dst *Node) XXX_Merge(src proto.Message) {
xxx_messageInfo_Node.Merge(dst, src)
}
func (m *Node) XXX_Size() int {
return xxx_messageInfo_Node.Size(m)
}
func (m *Node) XXX_DiscardUnknown() {
xxx_messageInfo_Node.DiscardUnknown(m)
}
var xxx_messageInfo_Node proto.InternalMessageInfo
func (m *Node) GetAddress() *Address {
if m != nil {
return m.Address
}
return nil
}
// Gossip node address
type Address struct {
Host []byte `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Address) Reset() { *m = Address{} }
func (m *Address) String() string { return proto.CompactTextString(m) }
func (*Address) ProtoMessage() {}
func (*Address) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{8}
}
func (m *Address) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Address.Unmarshal(m, b)
}
func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Address.Marshal(b, m, deterministic)
}
func (dst *Address) XXX_Merge(src proto.Message) {
xxx_messageInfo_Address.Merge(dst, src)
}
func (m *Address) XXX_Size() int {
return xxx_messageInfo_Address.Size(m)
}
func (m *Address) XXX_DiscardUnknown() {
xxx_messageInfo_Address.DiscardUnknown(m)
}
var xxx_messageInfo_Address proto.InternalMessageInfo
func (m *Address) GetHost() []byte {
if m != nil {
return m.Host
}
return nil
}
func (m *Address) GetPort() int32 {
if m != nil {
return m.Port
}
return 0
}
type EmptyMessage struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EmptyMessage) Reset() { *m = EmptyMessage{} }
func (m *EmptyMessage) String() string { return proto.CompactTextString(m) }
func (*EmptyMessage) ProtoMessage() {}
func (*EmptyMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{9}
}
func (m *EmptyMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EmptyMessage.Unmarshal(m, b)
}
func (m *EmptyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EmptyMessage.Marshal(b, m, deterministic)
}
func (dst *EmptyMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_EmptyMessage.Merge(dst, src)
}
func (m *EmptyMessage) XXX_Size() int {
return xxx_messageInfo_EmptyMessage.Size(m)
}
func (m *EmptyMessage) XXX_DiscardUnknown() {
xxx_messageInfo_EmptyMessage.DiscardUnknown(m)
}
var xxx_messageInfo_EmptyMessage proto.InternalMessageInfo
type NumberMessage struct {
Num int64 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NumberMessage) Reset() { *m = NumberMessage{} }
func (m *NumberMessage) String() string { return proto.CompactTextString(m) }
func (*NumberMessage) ProtoMessage() {}
func (*NumberMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{10}
}
func (m *NumberMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NumberMessage.Unmarshal(m, b)
}
func (m *NumberMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NumberMessage.Marshal(b, m, deterministic)
}
func (dst *NumberMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_NumberMessage.Merge(dst, src)
}
func (m *NumberMessage) XXX_Size() int {
return xxx_messageInfo_NumberMessage.Size(m)
}
func (m *NumberMessage) XXX_DiscardUnknown() {
xxx_messageInfo_NumberMessage.DiscardUnknown(m)
}
var xxx_messageInfo_NumberMessage proto.InternalMessageInfo
func (m *NumberMessage) GetNum() int64 {
if m != nil {
return m.Num
}
return 0
}
type BytesMessage struct {
Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BytesMessage) Reset() { *m = BytesMessage{} }
func (m *BytesMessage) String() string { return proto.CompactTextString(m) }
func (*BytesMessage) ProtoMessage() {}
func (*BytesMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{11}
}
func (m *BytesMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BytesMessage.Unmarshal(m, b)
}
func (m *BytesMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BytesMessage.Marshal(b, m, deterministic)
}
func (dst *BytesMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_BytesMessage.Merge(dst, src)
}
func (m *BytesMessage) XXX_Size() int {
return xxx_messageInfo_BytesMessage.Size(m)
}
func (m *BytesMessage) XXX_DiscardUnknown() {
xxx_messageInfo_BytesMessage.DiscardUnknown(m)
}
var xxx_messageInfo_BytesMessage proto.InternalMessageInfo
func (m *BytesMessage) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
type TimeMessage struct {
BeginInMilliseconds int64 `protobuf:"varint,1,opt,name=beginInMilliseconds,proto3" json:"beginInMilliseconds,omitempty"`
EndInMilliseconds int64 `protobuf:"varint,2,opt,name=endInMilliseconds,proto3" json:"endInMilliseconds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TimeMessage) Reset() { *m = TimeMessage{} }
func (m *TimeMessage) String() string { return proto.CompactTextString(m) }
func (*TimeMessage) ProtoMessage() {}
func (*TimeMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{12}
}
func (m *TimeMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TimeMessage.Unmarshal(m, b)
}
func (m *TimeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TimeMessage.Marshal(b, m, deterministic)
}
func (dst *TimeMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_TimeMessage.Merge(dst, src)
}
func (m *TimeMessage) XXX_Size() int {
return xxx_messageInfo_TimeMessage.Size(m)
}
func (m *TimeMessage) XXX_DiscardUnknown() {
xxx_messageInfo_TimeMessage.DiscardUnknown(m)
}
var xxx_messageInfo_TimeMessage proto.InternalMessageInfo
func (m *TimeMessage) GetBeginInMilliseconds() int64 {
if m != nil {
return m.BeginInMilliseconds
}
return 0
}
func (m *TimeMessage) GetEndInMilliseconds() int64 {
if m != nil {
return m.EndInMilliseconds
}
return 0
}
type BlockLimit struct {
StartNum int64 `protobuf:"varint,1,opt,name=startNum,proto3" json:"startNum,omitempty"`
EndNum int64 `protobuf:"varint,2,opt,name=endNum,proto3" json:"endNum,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlockLimit) Reset() { *m = BlockLimit{} }
func (m *BlockLimit) String() string { return proto.CompactTextString(m) }
func (*BlockLimit) ProtoMessage() {}
func (*BlockLimit) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{13}
}
func (m *BlockLimit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockLimit.Unmarshal(m, b)
}
func (m *BlockLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockLimit.Marshal(b, m, deterministic)
}
func (dst *BlockLimit) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockLimit.Merge(dst, src)
}
func (m *BlockLimit) XXX_Size() int {
return xxx_messageInfo_BlockLimit.Size(m)
}
func (m *BlockLimit) XXX_DiscardUnknown() {
xxx_messageInfo_BlockLimit.DiscardUnknown(m)
}
var xxx_messageInfo_BlockLimit proto.InternalMessageInfo
func (m *BlockLimit) GetStartNum() int64 {
if m != nil {
return m.StartNum
}
return 0
}
func (m *BlockLimit) GetEndNum() int64 {
if m != nil {
return m.EndNum
}
return 0
}
type TransactionLimit struct {
TransactionId []byte `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"`
LimitNum int64 `protobuf:"varint,2,opt,name=limitNum,proto3" json:"limitNum,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TransactionLimit) Reset() { *m = TransactionLimit{} }
func (m *TransactionLimit) String() string { return proto.CompactTextString(m) }
func (*TransactionLimit) ProtoMessage() {}
func (*TransactionLimit) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{14}
}
func (m *TransactionLimit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TransactionLimit.Unmarshal(m, b)
}
func (m *TransactionLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TransactionLimit.Marshal(b, m, deterministic)
}
func (dst *TransactionLimit) XXX_Merge(src proto.Message) {
xxx_messageInfo_TransactionLimit.Merge(dst, src)
}
func (m *TransactionLimit) XXX_Size() int {
return xxx_messageInfo_TransactionLimit.Size(m)
}
func (m *TransactionLimit) XXX_DiscardUnknown() {
xxx_messageInfo_TransactionLimit.DiscardUnknown(m)
}
var xxx_messageInfo_TransactionLimit proto.InternalMessageInfo
func (m *TransactionLimit) GetTransactionId() []byte {
if m != nil {
return m.TransactionId
}
return nil
}
func (m *TransactionLimit) GetLimitNum() int64 {
if m != nil {
return m.LimitNum
}
return 0
}
type AccountPaginated struct {
Account *core.Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AccountPaginated) Reset() { *m = AccountPaginated{} }
func (m *AccountPaginated) String() string { return proto.CompactTextString(m) }
func (*AccountPaginated) ProtoMessage() {}
func (*AccountPaginated) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{15}
}
func (m *AccountPaginated) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AccountPaginated.Unmarshal(m, b)
}
func (m *AccountPaginated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AccountPaginated.Marshal(b, m, deterministic)
}
func (dst *AccountPaginated) XXX_Merge(src proto.Message) {
xxx_messageInfo_AccountPaginated.Merge(dst, src)
}
func (m *AccountPaginated) XXX_Size() int {
return xxx_messageInfo_AccountPaginated.Size(m)
}
func (m *AccountPaginated) XXX_DiscardUnknown() {
xxx_messageInfo_AccountPaginated.DiscardUnknown(m)
}
var xxx_messageInfo_AccountPaginated proto.InternalMessageInfo
func (m *AccountPaginated) GetAccount() *core.Account {
if m != nil {
return m.Account
}
return nil
}
func (m *AccountPaginated) GetOffset() int64 {
if m != nil {
return m.Offset
}
return 0
}
func (m *AccountPaginated) GetLimit() int64 {
if m != nil {
return m.Limit
}
return 0
}
type TimePaginatedMessage struct {
TimeMessage *TimeMessage `protobuf:"bytes,1,opt,name=timeMessage,proto3" json:"timeMessage,omitempty"`
Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TimePaginatedMessage) Reset() { *m = TimePaginatedMessage{} }
func (m *TimePaginatedMessage) String() string { return proto.CompactTextString(m) }
func (*TimePaginatedMessage) ProtoMessage() {}
func (*TimePaginatedMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{16}
}
func (m *TimePaginatedMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TimePaginatedMessage.Unmarshal(m, b)
}
func (m *TimePaginatedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TimePaginatedMessage.Marshal(b, m, deterministic)
}
func (dst *TimePaginatedMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_TimePaginatedMessage.Merge(dst, src)
}
func (m *TimePaginatedMessage) XXX_Size() int {
return xxx_messageInfo_TimePaginatedMessage.Size(m)
}
func (m *TimePaginatedMessage) XXX_DiscardUnknown() {
xxx_messageInfo_TimePaginatedMessage.DiscardUnknown(m)
}
var xxx_messageInfo_TimePaginatedMessage proto.InternalMessageInfo
func (m *TimePaginatedMessage) GetTimeMessage() *TimeMessage {
if m != nil {
return m.TimeMessage
}
return nil
}
func (m *TimePaginatedMessage) GetOffset() int64 {
if m != nil {
return m.Offset
}
return 0
}
func (m *TimePaginatedMessage) GetLimit() int64 {
if m != nil {
return m.Limit
}
return 0
}
type AccountNetMessage struct {
FreeNetUsed int64 `protobuf:"varint,1,opt,name=freeNetUsed,proto3" json:"freeNetUsed,omitempty"`
FreeNetLimit int64 `protobuf:"varint,2,opt,name=freeNetLimit,proto3" json:"freeNetLimit,omitempty"`
NetUsed int64 `protobuf:"varint,3,opt,name=NetUsed,proto3" json:"NetUsed,omitempty"`
NetLimit int64 `protobuf:"varint,4,opt,name=NetLimit,proto3" json:"NetLimit,omitempty"`
AssetNetUsed map[string]int64 `protobuf:"bytes,5,rep,name=assetNetUsed,proto3" json:"assetNetUsed,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
AssetNetLimit map[string]int64 `protobuf:"bytes,6,rep,name=assetNetLimit,proto3" json:"assetNetLimit,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
TotalNetLimit int64 `protobuf:"varint,7,opt,name=TotalNetLimit,proto3" json:"TotalNetLimit,omitempty"`
TotalNetWeight int64 `protobuf:"varint,8,opt,name=TotalNetWeight,proto3" json:"TotalNetWeight,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AccountNetMessage) Reset() { *m = AccountNetMessage{} }
func (m *AccountNetMessage) String() string { return proto.CompactTextString(m) }
func (*AccountNetMessage) ProtoMessage() {}
func (*AccountNetMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{17}
}
func (m *AccountNetMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AccountNetMessage.Unmarshal(m, b)
}
func (m *AccountNetMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AccountNetMessage.Marshal(b, m, deterministic)
}
func (dst *AccountNetMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_AccountNetMessage.Merge(dst, src)
}
func (m *AccountNetMessage) XXX_Size() int {
return xxx_messageInfo_AccountNetMessage.Size(m)
}
func (m *AccountNetMessage) XXX_DiscardUnknown() {
xxx_messageInfo_AccountNetMessage.DiscardUnknown(m)
}
var xxx_messageInfo_AccountNetMessage proto.InternalMessageInfo
func (m *AccountNetMessage) GetFreeNetUsed() int64 {
if m != nil {
return m.FreeNetUsed
}
return 0
}
func (m *AccountNetMessage) GetFreeNetLimit() int64 {
if m != nil {
return m.FreeNetLimit
}
return 0
}
func (m *AccountNetMessage) GetNetUsed() int64 {
if m != nil {
return m.NetUsed
}
return 0
}
func (m *AccountNetMessage) GetNetLimit() int64 {
if m != nil {
return m.NetLimit
}
return 0
}
func (m *AccountNetMessage) GetAssetNetUsed() map[string]int64 {
if m != nil {
return m.AssetNetUsed
}
return nil
}
func (m *AccountNetMessage) GetAssetNetLimit() map[string]int64 {
if m != nil {
return m.AssetNetLimit
}
return nil
}
func (m *AccountNetMessage) GetTotalNetLimit() int64 {
if m != nil {
return m.TotalNetLimit
}
return 0
}
func (m *AccountNetMessage) GetTotalNetWeight() int64 {
if m != nil {
return m.TotalNetWeight
}
return 0
}
type PaginatedMessage struct {
Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PaginatedMessage) Reset() { *m = PaginatedMessage{} }
func (m *PaginatedMessage) String() string { return proto.CompactTextString(m) }
func (*PaginatedMessage) ProtoMessage() {}
func (*PaginatedMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{18}
}
func (m *PaginatedMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PaginatedMessage.Unmarshal(m, b)
}
func (m *PaginatedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PaginatedMessage.Marshal(b, m, deterministic)
}
func (dst *PaginatedMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_PaginatedMessage.Merge(dst, src)
}
func (m *PaginatedMessage) XXX_Size() int {
return xxx_messageInfo_PaginatedMessage.Size(m)
}
func (m *PaginatedMessage) XXX_DiscardUnknown() {
xxx_messageInfo_PaginatedMessage.DiscardUnknown(m)
}
var xxx_messageInfo_PaginatedMessage proto.InternalMessageInfo
func (m *PaginatedMessage) GetOffset() int64 {
if m != nil {
return m.Offset
}
return 0
}
func (m *PaginatedMessage) GetLimit() int64 {
if m != nil {
return m.Limit
}
return 0
}
type EasyTransferMessage struct {
PassPhrase []byte `protobuf:"bytes,1,opt,name=passPhrase,proto3" json:"passPhrase,omitempty"`
ToAddress []byte `protobuf:"bytes,2,opt,name=toAddress,proto3" json:"toAddress,omitempty"`
Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EasyTransferMessage) Reset() { *m = EasyTransferMessage{} }
func (m *EasyTransferMessage) String() string { return proto.CompactTextString(m) }
func (*EasyTransferMessage) ProtoMessage() {}
func (*EasyTransferMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{19}
}
func (m *EasyTransferMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EasyTransferMessage.Unmarshal(m, b)
}
func (m *EasyTransferMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EasyTransferMessage.Marshal(b, m, deterministic)
}
func (dst *EasyTransferMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_EasyTransferMessage.Merge(dst, src)
}
func (m *EasyTransferMessage) XXX_Size() int {
return xxx_messageInfo_EasyTransferMessage.Size(m)
}
func (m *EasyTransferMessage) XXX_DiscardUnknown() {
xxx_messageInfo_EasyTransferMessage.DiscardUnknown(m)
}
var xxx_messageInfo_EasyTransferMessage proto.InternalMessageInfo
func (m *EasyTransferMessage) GetPassPhrase() []byte {
if m != nil {
return m.PassPhrase
}
return nil
}
func (m *EasyTransferMessage) GetToAddress() []byte {
if m != nil {
return m.ToAddress
}
return nil
}
func (m *EasyTransferMessage) GetAmount() int64 {
if m != nil {
return m.Amount
}
return 0
}
type EasyTransferResponse struct {
Transaction *core.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
Result *Return `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EasyTransferResponse) Reset() { *m = EasyTransferResponse{} }
func (m *EasyTransferResponse) String() string { return proto.CompactTextString(m) }
func (*EasyTransferResponse) ProtoMessage() {}
func (*EasyTransferResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{20}
}
func (m *EasyTransferResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EasyTransferResponse.Unmarshal(m, b)
}
func (m *EasyTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EasyTransferResponse.Marshal(b, m, deterministic)
}
func (dst *EasyTransferResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_EasyTransferResponse.Merge(dst, src)
}
func (m *EasyTransferResponse) XXX_Size() int {
return xxx_messageInfo_EasyTransferResponse.Size(m)
}
func (m *EasyTransferResponse) XXX_DiscardUnknown() {
xxx_messageInfo_EasyTransferResponse.DiscardUnknown(m)
}
var xxx_messageInfo_EasyTransferResponse proto.InternalMessageInfo
func (m *EasyTransferResponse) GetTransaction() *core.Transaction {
if m != nil {
return m.Transaction
}
return nil
}
func (m *EasyTransferResponse) GetResult() *Return {
if m != nil {
return m.Result
}
return nil
}
type AddressPrKeyPairMessage struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
PrivateKey string `protobuf:"bytes,2,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AddressPrKeyPairMessage) Reset() { *m = AddressPrKeyPairMessage{} }
func (m *AddressPrKeyPairMessage) String() string { return proto.CompactTextString(m) }
func (*AddressPrKeyPairMessage) ProtoMessage() {}
func (*AddressPrKeyPairMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_api_2b4f1aef810550ab, []int{21}
}
func (m *AddressPrKeyPairMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddressPrKeyPairMessage.Unmarshal(m, b)
}
func (m *AddressPrKeyPairMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddressPrKeyPairMessage.Marshal(b, m, deterministic)
}
func (dst *AddressPrKeyPairMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddressPrKeyPairMessage.Merge(dst, src)
}
func (m *AddressPrKeyPairMessage) XXX_Size() int {
return xxx_messageInfo_AddressPrKeyPairMessage.Size(m)
}
func (m *AddressPrKeyPairMessage) XXX_DiscardUnknown() {
xxx_messageInfo_AddressPrKeyPairMessage.DiscardUnknown(m)
}
var xxx_messageInfo_AddressPrKeyPairMessage proto.InternalMessageInfo
func (m *AddressPrKeyPairMessage) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
func (m *AddressPrKeyPairMessage) GetPrivateKey() string {
if m != nil {
return m.PrivateKey
}
return ""
}
func init() {
proto.RegisterType((*Return)(nil), "protocol.Return")
proto.RegisterType((*BlockReference)(nil), "protocol.BlockReference")
proto.RegisterType((*WitnessList)(nil), "protocol.WitnessList")
proto.RegisterType((*AssetIssueList)(nil), "protocol.AssetIssueList")
proto.RegisterType((*BlockList)(nil), "protocol.BlockList")
proto.RegisterType((*TransactionList)(nil), "protocol.TransactionList")
proto.RegisterType((*NodeList)(nil), "protocol.NodeList")
proto.RegisterType((*Node)(nil), "protocol.Node")
proto.RegisterType((*Address)(nil), "protocol.Address")
proto.RegisterType((*EmptyMessage)(nil), "protocol.EmptyMessage")
proto.RegisterType((*NumberMessage)(nil), "protocol.NumberMessage")
proto.RegisterType((*BytesMessage)(nil), "protocol.BytesMessage")
proto.RegisterType((*TimeMessage)(nil), "protocol.TimeMessage")
proto.RegisterType((*BlockLimit)(nil), "protocol.BlockLimit")
proto.RegisterType((*TransactionLimit)(nil), "protocol.TransactionLimit")
proto.RegisterType((*AccountPaginated)(nil), "protocol.AccountPaginated")
proto.RegisterType((*TimePaginatedMessage)(nil), "protocol.TimePaginatedMessage")
proto.RegisterType((*AccountNetMessage)(nil), "protocol.AccountNetMessage")
proto.RegisterMapType((map[string]int64)(nil), "protocol.AccountNetMessage.AssetNetLimitEntry")
proto.RegisterMapType((map[string]int64)(nil), "protocol.AccountNetMessage.AssetNetUsedEntry")
proto.RegisterType((*PaginatedMessage)(nil), "protocol.PaginatedMessage")
proto.RegisterType((*EasyTransferMessage)(nil), "protocol.EasyTransferMessage")
proto.RegisterType((*EasyTransferResponse)(nil), "protocol.EasyTransferResponse")
proto.RegisterType((*AddressPrKeyPairMessage)(nil), "protocol.AddressPrKeyPairMessage")
proto.RegisterEnum("protocol.ReturnResponseCode", ReturnResponseCode_name, ReturnResponseCode_value)
}
// 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
// WalletClient is the client API for Wallet service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type WalletClient interface {
GetAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*core.Account, error)
CreateTransaction(ctx context.Context, in *core.TransferContract, opts ...grpc.CallOption) (*core.Transaction, error)
BroadcastTransaction(ctx context.Context, in *core.Transaction, opts ...grpc.CallOption) (*Return, error)
UpdateAccount(ctx context.Context, in *core.AccountUpdateContract, opts ...grpc.CallOption) (*core.Transaction, error)
VoteWitnessAccount(ctx context.Context, in *core.VoteWitnessContract, opts ...grpc.CallOption) (*core.Transaction, error)
CreateAssetIssue(ctx context.Context, in *core.AssetIssueContract, opts ...grpc.CallOption) (*core.Transaction, error)
UpdateWitness(ctx context.Context, in *core.WitnessUpdateContract, opts ...grpc.CallOption) (*core.Transaction, error)
CreateAccount(ctx context.Context, in *core.AccountCreateContract, opts ...grpc.CallOption) (*core.Transaction, error)
CreateWitness(ctx context.Context, in *core.WitnessCreateContract, opts ...grpc.CallOption) (*core.Transaction, error)
TransferAsset(ctx context.Context, in *core.TransferAssetContract, opts ...grpc.CallOption) (*core.Transaction, error)
ParticipateAssetIssue(ctx context.Context, in *core.ParticipateAssetIssueContract, opts ...grpc.CallOption) (*core.Transaction, error)
FreezeBalance(ctx context.Context, in *core.FreezeBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error)
UnfreezeBalance(ctx context.Context, in *core.UnfreezeBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error)
UnfreezeAsset(ctx context.Context, in *core.UnfreezeAssetContract, opts ...grpc.CallOption) (*core.Transaction, error)
WithdrawBalance(ctx context.Context, in *core.WithdrawBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error)
UpdateAsset(ctx context.Context, in *core.UpdateAssetContract, opts ...grpc.CallOption) (*core.Transaction, error)
ListNodes(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NodeList, error)
GetAssetIssueByAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*AssetIssueList, error)
GetAccountNet(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*AccountNetMessage, error)
GetAssetIssueByName(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.AssetIssueContract, error)
GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error)
GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error)
GetBlockById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Block, error)
GetBlockByLimitNext(ctx context.Context, in *BlockLimit, opts ...grpc.CallOption) (*BlockList, error)
GetBlockByLatestNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*BlockList, error)
GetTransactionById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Transaction, error)
ListWitnesses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WitnessList, error)
GetAssetIssueList(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AssetIssueList, error)
GetPaginatedAssetIssueList(ctx context.Context, in *PaginatedMessage, opts ...grpc.CallOption) (*AssetIssueList, error)
TotalTransaction(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NumberMessage, error)
GetNextMaintenanceTime(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NumberMessage, error)
// Warning: do not invoke this interface provided by others.
GetTransactionSign(ctx context.Context, in *core.TransactionSign, opts ...grpc.CallOption) (*core.Transaction, error)
// Warning: do not invoke this interface provided by others.
CreateAdresss(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*BytesMessage, error)
// Warning: do not invoke this interface provided by others.
EasyTransfer(ctx context.Context, in *EasyTransferMessage, opts ...grpc.CallOption) (*EasyTransferResponse, error)
// Warning: do not invoke this interface provided by others.
GenerateAddress(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AddressPrKeyPairMessage, error)
}
type walletClient struct {
cc *grpc.ClientConn
}
func NewWalletClient(cc *grpc.ClientConn) WalletClient {
return &walletClient{cc}
}
func (c *walletClient) GetAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*core.Account, error) {
out := new(core.Account)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) CreateTransaction(ctx context.Context, in *core.TransferContract, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateTransaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) BroadcastTransaction(ctx context.Context, in *core.Transaction, opts ...grpc.CallOption) (*Return, error) {
out := new(Return)
err := c.cc.Invoke(ctx, "/protocol.Wallet/BroadcastTransaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) UpdateAccount(ctx context.Context, in *core.AccountUpdateContract, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/UpdateAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) VoteWitnessAccount(ctx context.Context, in *core.VoteWitnessContract, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/VoteWitnessAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) CreateAssetIssue(ctx context.Context, in *core.AssetIssueContract, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateAssetIssue", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) UpdateWitness(ctx context.Context, in *core.WitnessUpdateContract, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/UpdateWitness", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) CreateAccount(ctx context.Context, in *core.AccountCreateContract, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) CreateWitness(ctx context.Context, in *core.WitnessCreateContract, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateWitness", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) TransferAsset(ctx context.Context, in *core.TransferAssetContract, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/TransferAsset", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) ParticipateAssetIssue(ctx context.Context, in *core.ParticipateAssetIssueContract, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/ParticipateAssetIssue", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) FreezeBalance(ctx context.Context, in *core.FreezeBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/FreezeBalance", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) UnfreezeBalance(ctx context.Context, in *core.UnfreezeBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/UnfreezeBalance", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) UnfreezeAsset(ctx context.Context, in *core.UnfreezeAssetContract, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/UnfreezeAsset", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) WithdrawBalance(ctx context.Context, in *core.WithdrawBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/WithdrawBalance", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) UpdateAsset(ctx context.Context, in *core.UpdateAssetContract, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/UpdateAsset", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) ListNodes(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NodeList, error) {
out := new(NodeList)
err := c.cc.Invoke(ctx, "/protocol.Wallet/ListNodes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) GetAssetIssueByAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*AssetIssueList, error) {
out := new(AssetIssueList)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAssetIssueByAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) GetAccountNet(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*AccountNetMessage, error) {
out := new(AccountNetMessage)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAccountNet", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) GetAssetIssueByName(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.AssetIssueContract, error) {
out := new(core.AssetIssueContract)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAssetIssueByName", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error) {
out := new(core.Block)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GetNowBlock", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error) {
out := new(core.Block)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBlockByNum", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) GetBlockById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Block, error) {
out := new(core.Block)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBlockById", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) GetBlockByLimitNext(ctx context.Context, in *BlockLimit, opts ...grpc.CallOption) (*BlockList, error) {
out := new(BlockList)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBlockByLimitNext", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) GetBlockByLatestNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*BlockList, error) {
out := new(BlockList)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GetBlockByLatestNum", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) GetTransactionById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GetTransactionById", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) ListWitnesses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WitnessList, error) {
out := new(WitnessList)
err := c.cc.Invoke(ctx, "/protocol.Wallet/ListWitnesses", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) GetAssetIssueList(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AssetIssueList, error) {
out := new(AssetIssueList)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GetAssetIssueList", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) GetPaginatedAssetIssueList(ctx context.Context, in *PaginatedMessage, opts ...grpc.CallOption) (*AssetIssueList, error) {
out := new(AssetIssueList)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GetPaginatedAssetIssueList", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) TotalTransaction(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NumberMessage, error) {
out := new(NumberMessage)
err := c.cc.Invoke(ctx, "/protocol.Wallet/TotalTransaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) GetNextMaintenanceTime(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NumberMessage, error) {
out := new(NumberMessage)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GetNextMaintenanceTime", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) GetTransactionSign(ctx context.Context, in *core.TransactionSign, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GetTransactionSign", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) CreateAdresss(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*BytesMessage, error) {
out := new(BytesMessage)
err := c.cc.Invoke(ctx, "/protocol.Wallet/CreateAdresss", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) EasyTransfer(ctx context.Context, in *EasyTransferMessage, opts ...grpc.CallOption) (*EasyTransferResponse, error) {
out := new(EasyTransferResponse)
err := c.cc.Invoke(ctx, "/protocol.Wallet/EasyTransfer", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletClient) GenerateAddress(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AddressPrKeyPairMessage, error) {
out := new(AddressPrKeyPairMessage)
err := c.cc.Invoke(ctx, "/protocol.Wallet/GenerateAddress", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// WalletServer is the server API for Wallet service.
type WalletServer interface {
GetAccount(context.Context, *core.Account) (*core.Account, error)
CreateTransaction(context.Context, *core.TransferContract) (*core.Transaction, error)
BroadcastTransaction(context.Context, *core.Transaction) (*Return, error)
UpdateAccount(context.Context, *core.AccountUpdateContract) (*core.Transaction, error)
VoteWitnessAccount(context.Context, *core.VoteWitnessContract) (*core.Transaction, error)
CreateAssetIssue(context.Context, *core.AssetIssueContract) (*core.Transaction, error)
UpdateWitness(context.Context, *core.WitnessUpdateContract) (*core.Transaction, error)
CreateAccount(context.Context, *core.AccountCreateContract) (*core.Transaction, error)
CreateWitness(context.Context, *core.WitnessCreateContract) (*core.Transaction, error)
TransferAsset(context.Context, *core.TransferAssetContract) (*core.Transaction, error)
ParticipateAssetIssue(context.Context, *core.ParticipateAssetIssueContract) (*core.Transaction, error)
FreezeBalance(context.Context, *core.FreezeBalanceContract) (*core.Transaction, error)
UnfreezeBalance(context.Context, *core.UnfreezeBalanceContract) (*core.Transaction, error)
UnfreezeAsset(context.Context, *core.UnfreezeAssetContract) (*core.Transaction, error)
WithdrawBalance(context.Context, *core.WithdrawBalanceContract) (*core.Transaction, error)
UpdateAsset(context.Context, *core.UpdateAssetContract) (*core.Transaction, error)
ListNodes(context.Context, *EmptyMessage) (*NodeList, error)
GetAssetIssueByAccount(context.Context, *core.Account) (*AssetIssueList, error)
GetAccountNet(context.Context, *core.Account) (*AccountNetMessage, error)
GetAssetIssueByName(context.Context, *BytesMessage) (*core.AssetIssueContract, error)
GetNowBlock(context.Context, *EmptyMessage) (*core.Block, error)
GetBlockByNum(context.Context, *NumberMessage) (*core.Block, error)
GetBlockById(context.Context, *BytesMessage) (*core.Block, error)
GetBlockByLimitNext(context.Context, *BlockLimit) (*BlockList, error)
GetBlockByLatestNum(context.Context, *NumberMessage) (*BlockList, error)
GetTransactionById(context.Context, *BytesMessage) (*core.Transaction, error)
ListWitnesses(context.Context, *EmptyMessage) (*WitnessList, error)
GetAssetIssueList(context.Context, *EmptyMessage) (*AssetIssueList, error)
GetPaginatedAssetIssueList(context.Context, *PaginatedMessage) (*AssetIssueList, error)
TotalTransaction(context.Context, *EmptyMessage) (*NumberMessage, error)
GetNextMaintenanceTime(context.Context, *EmptyMessage) (*NumberMessage, error)
// Warning: do not invoke this interface provided by others.
GetTransactionSign(context.Context, *core.TransactionSign) (*core.Transaction, error)
// Warning: do not invoke this interface provided by others.
CreateAdresss(context.Context, *BytesMessage) (*BytesMessage, error)
// Warning: do not invoke this interface provided by others.
EasyTransfer(context.Context, *EasyTransferMessage) (*EasyTransferResponse, error)
// Warning: do not invoke this interface provided by others.
GenerateAddress(context.Context, *EmptyMessage) (*AddressPrKeyPairMessage, error)
}
func RegisterWalletServer(s *grpc.Server, srv WalletServer) {
s.RegisterService(&_Wallet_serviceDesc, srv)
}
func _Wallet_GetAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.Account)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GetAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GetAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GetAccount(ctx, req.(*core.Account))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_CreateTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.TransferContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).CreateTransaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/CreateTransaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).CreateTransaction(ctx, req.(*core.TransferContract))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_BroadcastTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.Transaction)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).BroadcastTransaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/BroadcastTransaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).BroadcastTransaction(ctx, req.(*core.Transaction))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_UpdateAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.AccountUpdateContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).UpdateAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/UpdateAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).UpdateAccount(ctx, req.(*core.AccountUpdateContract))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_VoteWitnessAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.VoteWitnessContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).VoteWitnessAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/VoteWitnessAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).VoteWitnessAccount(ctx, req.(*core.VoteWitnessContract))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_CreateAssetIssue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.AssetIssueContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).CreateAssetIssue(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/CreateAssetIssue",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).CreateAssetIssue(ctx, req.(*core.AssetIssueContract))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_UpdateWitness_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.WitnessUpdateContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).UpdateWitness(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/UpdateWitness",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).UpdateWitness(ctx, req.(*core.WitnessUpdateContract))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_CreateAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.AccountCreateContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).CreateAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/CreateAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).CreateAccount(ctx, req.(*core.AccountCreateContract))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_CreateWitness_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.WitnessCreateContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).CreateWitness(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/CreateWitness",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).CreateWitness(ctx, req.(*core.WitnessCreateContract))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_TransferAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.TransferAssetContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).TransferAsset(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/TransferAsset",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).TransferAsset(ctx, req.(*core.TransferAssetContract))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_ParticipateAssetIssue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.ParticipateAssetIssueContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).ParticipateAssetIssue(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/ParticipateAssetIssue",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).ParticipateAssetIssue(ctx, req.(*core.ParticipateAssetIssueContract))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_FreezeBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.FreezeBalanceContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).FreezeBalance(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/FreezeBalance",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).FreezeBalance(ctx, req.(*core.FreezeBalanceContract))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_UnfreezeBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.UnfreezeBalanceContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).UnfreezeBalance(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/UnfreezeBalance",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).UnfreezeBalance(ctx, req.(*core.UnfreezeBalanceContract))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_UnfreezeAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.UnfreezeAssetContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).UnfreezeAsset(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/UnfreezeAsset",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).UnfreezeAsset(ctx, req.(*core.UnfreezeAssetContract))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_WithdrawBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.WithdrawBalanceContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).WithdrawBalance(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/WithdrawBalance",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).WithdrawBalance(ctx, req.(*core.WithdrawBalanceContract))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_UpdateAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.UpdateAssetContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).UpdateAsset(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/UpdateAsset",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).UpdateAsset(ctx, req.(*core.UpdateAssetContract))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_ListNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).ListNodes(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/ListNodes",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).ListNodes(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_GetAssetIssueByAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.Account)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GetAssetIssueByAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GetAssetIssueByAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GetAssetIssueByAccount(ctx, req.(*core.Account))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_GetAccountNet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.Account)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GetAccountNet(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GetAccountNet",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GetAccountNet(ctx, req.(*core.Account))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_GetAssetIssueByName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BytesMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GetAssetIssueByName(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GetAssetIssueByName",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GetAssetIssueByName(ctx, req.(*BytesMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_GetNowBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GetNowBlock(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GetNowBlock",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GetNowBlock(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_GetBlockByNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(NumberMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GetBlockByNum(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GetBlockByNum",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GetBlockByNum(ctx, req.(*NumberMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_GetBlockById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BytesMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GetBlockById(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GetBlockById",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GetBlockById(ctx, req.(*BytesMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_GetBlockByLimitNext_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BlockLimit)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GetBlockByLimitNext(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GetBlockByLimitNext",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GetBlockByLimitNext(ctx, req.(*BlockLimit))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_GetBlockByLatestNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(NumberMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GetBlockByLatestNum(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GetBlockByLatestNum",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GetBlockByLatestNum(ctx, req.(*NumberMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_GetTransactionById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BytesMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GetTransactionById(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GetTransactionById",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GetTransactionById(ctx, req.(*BytesMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_ListWitnesses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).ListWitnesses(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/ListWitnesses",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).ListWitnesses(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_GetAssetIssueList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GetAssetIssueList(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GetAssetIssueList",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GetAssetIssueList(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_GetPaginatedAssetIssueList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PaginatedMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GetPaginatedAssetIssueList(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GetPaginatedAssetIssueList",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GetPaginatedAssetIssueList(ctx, req.(*PaginatedMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_TotalTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).TotalTransaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/TotalTransaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).TotalTransaction(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_GetNextMaintenanceTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GetNextMaintenanceTime(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GetNextMaintenanceTime",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GetNextMaintenanceTime(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_GetTransactionSign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.TransactionSign)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GetTransactionSign(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GetTransactionSign",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GetTransactionSign(ctx, req.(*core.TransactionSign))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_CreateAdresss_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BytesMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).CreateAdresss(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/CreateAdresss",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).CreateAdresss(ctx, req.(*BytesMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_EasyTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EasyTransferMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).EasyTransfer(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/EasyTransfer",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).EasyTransfer(ctx, req.(*EasyTransferMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Wallet_GenerateAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletServer).GenerateAddress(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Wallet/GenerateAddress",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletServer).GenerateAddress(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
var _Wallet_serviceDesc = grpc.ServiceDesc{
ServiceName: "protocol.Wallet",
HandlerType: (*WalletServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetAccount",
Handler: _Wallet_GetAccount_Handler,
},
{
MethodName: "CreateTransaction",
Handler: _Wallet_CreateTransaction_Handler,
},
{
MethodName: "BroadcastTransaction",
Handler: _Wallet_BroadcastTransaction_Handler,
},
{
MethodName: "UpdateAccount",
Handler: _Wallet_UpdateAccount_Handler,
},
{
MethodName: "VoteWitnessAccount",
Handler: _Wallet_VoteWitnessAccount_Handler,
},
{
MethodName: "CreateAssetIssue",
Handler: _Wallet_CreateAssetIssue_Handler,
},
{
MethodName: "UpdateWitness",
Handler: _Wallet_UpdateWitness_Handler,
},
{
MethodName: "CreateAccount",
Handler: _Wallet_CreateAccount_Handler,
},
{
MethodName: "CreateWitness",
Handler: _Wallet_CreateWitness_Handler,
},
{
MethodName: "TransferAsset",
Handler: _Wallet_TransferAsset_Handler,
},
{
MethodName: "ParticipateAssetIssue",
Handler: _Wallet_ParticipateAssetIssue_Handler,
},
{
MethodName: "FreezeBalance",
Handler: _Wallet_FreezeBalance_Handler,
},
{
MethodName: "UnfreezeBalance",
Handler: _Wallet_UnfreezeBalance_Handler,
},
{
MethodName: "UnfreezeAsset",
Handler: _Wallet_UnfreezeAsset_Handler,
},
{
MethodName: "WithdrawBalance",
Handler: _Wallet_WithdrawBalance_Handler,
},
{
MethodName: "UpdateAsset",
Handler: _Wallet_UpdateAsset_Handler,
},
{
MethodName: "ListNodes",
Handler: _Wallet_ListNodes_Handler,
},
{
MethodName: "GetAssetIssueByAccount",
Handler: _Wallet_GetAssetIssueByAccount_Handler,
},
{
MethodName: "GetAccountNet",
Handler: _Wallet_GetAccountNet_Handler,
},
{
MethodName: "GetAssetIssueByName",
Handler: _Wallet_GetAssetIssueByName_Handler,
},
{
MethodName: "GetNowBlock",
Handler: _Wallet_GetNowBlock_Handler,
},
{
MethodName: "GetBlockByNum",
Handler: _Wallet_GetBlockByNum_Handler,
},
{
MethodName: "GetBlockById",
Handler: _Wallet_GetBlockById_Handler,
},
{
MethodName: "GetBlockByLimitNext",
Handler: _Wallet_GetBlockByLimitNext_Handler,
},
{
MethodName: "GetBlockByLatestNum",
Handler: _Wallet_GetBlockByLatestNum_Handler,
},
{
MethodName: "GetTransactionById",
Handler: _Wallet_GetTransactionById_Handler,
},
{
MethodName: "ListWitnesses",
Handler: _Wallet_ListWitnesses_Handler,
},
{
MethodName: "GetAssetIssueList",
Handler: _Wallet_GetAssetIssueList_Handler,
},
{
MethodName: "GetPaginatedAssetIssueList",
Handler: _Wallet_GetPaginatedAssetIssueList_Handler,
},
{
MethodName: "TotalTransaction",
Handler: _Wallet_TotalTransaction_Handler,
},
{
MethodName: "GetNextMaintenanceTime",
Handler: _Wallet_GetNextMaintenanceTime_Handler,
},
{
MethodName: "GetTransactionSign",
Handler: _Wallet_GetTransactionSign_Handler,
},
{
MethodName: "CreateAdresss",
Handler: _Wallet_CreateAdresss_Handler,
},
{
MethodName: "EasyTransfer",
Handler: _Wallet_EasyTransfer_Handler,
},
{
MethodName: "GenerateAddress",
Handler: _Wallet_GenerateAddress_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "api/api.proto",
}
// WalletSolidityClient is the client API for WalletSolidity service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type WalletSolidityClient interface {
GetAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*core.Account, error)
ListWitnesses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WitnessList, error)
GetAssetIssueList(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AssetIssueList, error)
GetPaginatedAssetIssueList(ctx context.Context, in *PaginatedMessage, opts ...grpc.CallOption) (*AssetIssueList, error)
GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error)
GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error)
GetTransactionById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Transaction, error)
GetTransactionInfoById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.TransactionInfo, error)
// Warning: do not invoke this interface provided by others.
GenerateAddress(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AddressPrKeyPairMessage, error)
}
type walletSolidityClient struct {
cc *grpc.ClientConn
}
func NewWalletSolidityClient(cc *grpc.ClientConn) WalletSolidityClient {
return &walletSolidityClient{cc}
}
func (c *walletSolidityClient) GetAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*core.Account, error) {
out := new(core.Account)
err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletSolidityClient) ListWitnesses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WitnessList, error) {
out := new(WitnessList)
err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/ListWitnesses", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletSolidityClient) GetAssetIssueList(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AssetIssueList, error) {
out := new(AssetIssueList)
err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetAssetIssueList", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletSolidityClient) GetPaginatedAssetIssueList(ctx context.Context, in *PaginatedMessage, opts ...grpc.CallOption) (*AssetIssueList, error) {
out := new(AssetIssueList)
err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetPaginatedAssetIssueList", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletSolidityClient) GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error) {
out := new(core.Block)
err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetNowBlock", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletSolidityClient) GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error) {
out := new(core.Block)
err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetBlockByNum", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletSolidityClient) GetTransactionById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Transaction, error) {
out := new(core.Transaction)
err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetTransactionById", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletSolidityClient) GetTransactionInfoById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.TransactionInfo, error) {
out := new(core.TransactionInfo)
err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GetTransactionInfoById", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletSolidityClient) GenerateAddress(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AddressPrKeyPairMessage, error) {
out := new(AddressPrKeyPairMessage)
err := c.cc.Invoke(ctx, "/protocol.WalletSolidity/GenerateAddress", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// WalletSolidityServer is the server API for WalletSolidity service.
type WalletSolidityServer interface {
GetAccount(context.Context, *core.Account) (*core.Account, error)
ListWitnesses(context.Context, *EmptyMessage) (*WitnessList, error)
GetAssetIssueList(context.Context, *EmptyMessage) (*AssetIssueList, error)
GetPaginatedAssetIssueList(context.Context, *PaginatedMessage) (*AssetIssueList, error)
GetNowBlock(context.Context, *EmptyMessage) (*core.Block, error)
GetBlockByNum(context.Context, *NumberMessage) (*core.Block, error)
GetTransactionById(context.Context, *BytesMessage) (*core.Transaction, error)
GetTransactionInfoById(context.Context, *BytesMessage) (*core.TransactionInfo, error)
// Warning: do not invoke this interface provided by others.
GenerateAddress(context.Context, *EmptyMessage) (*AddressPrKeyPairMessage, error)
}
func RegisterWalletSolidityServer(s *grpc.Server, srv WalletSolidityServer) {
s.RegisterService(&_WalletSolidity_serviceDesc, srv)
}
func _WalletSolidity_GetAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(core.Account)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletSolidityServer).GetAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.WalletSolidity/GetAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletSolidityServer).GetAccount(ctx, req.(*core.Account))
}
return interceptor(ctx, in, info, handler)
}
func _WalletSolidity_ListWitnesses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletSolidityServer).ListWitnesses(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.WalletSolidity/ListWitnesses",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletSolidityServer).ListWitnesses(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _WalletSolidity_GetAssetIssueList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletSolidityServer).GetAssetIssueList(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.WalletSolidity/GetAssetIssueList",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletSolidityServer).GetAssetIssueList(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _WalletSolidity_GetPaginatedAssetIssueList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PaginatedMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletSolidityServer).GetPaginatedAssetIssueList(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.WalletSolidity/GetPaginatedAssetIssueList",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletSolidityServer).GetPaginatedAssetIssueList(ctx, req.(*PaginatedMessage))
}
return interceptor(ctx, in, info, handler)
}
func _WalletSolidity_GetNowBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletSolidityServer).GetNowBlock(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.WalletSolidity/GetNowBlock",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletSolidityServer).GetNowBlock(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _WalletSolidity_GetBlockByNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(NumberMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletSolidityServer).GetBlockByNum(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.WalletSolidity/GetBlockByNum",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletSolidityServer).GetBlockByNum(ctx, req.(*NumberMessage))
}
return interceptor(ctx, in, info, handler)
}
func _WalletSolidity_GetTransactionById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BytesMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletSolidityServer).GetTransactionById(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.WalletSolidity/GetTransactionById",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletSolidityServer).GetTransactionById(ctx, req.(*BytesMessage))
}
return interceptor(ctx, in, info, handler)
}
func _WalletSolidity_GetTransactionInfoById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BytesMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletSolidityServer).GetTransactionInfoById(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.WalletSolidity/GetTransactionInfoById",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletSolidityServer).GetTransactionInfoById(ctx, req.(*BytesMessage))
}
return interceptor(ctx, in, info, handler)
}
func _WalletSolidity_GenerateAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletSolidityServer).GenerateAddress(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.WalletSolidity/GenerateAddress",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletSolidityServer).GenerateAddress(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
var _WalletSolidity_serviceDesc = grpc.ServiceDesc{
ServiceName: "protocol.WalletSolidity",
HandlerType: (*WalletSolidityServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetAccount",
Handler: _WalletSolidity_GetAccount_Handler,
},
{
MethodName: "ListWitnesses",
Handler: _WalletSolidity_ListWitnesses_Handler,
},
{
MethodName: "GetAssetIssueList",
Handler: _WalletSolidity_GetAssetIssueList_Handler,
},
{
MethodName: "GetPaginatedAssetIssueList",
Handler: _WalletSolidity_GetPaginatedAssetIssueList_Handler,
},
{
MethodName: "GetNowBlock",
Handler: _WalletSolidity_GetNowBlock_Handler,
},
{
MethodName: "GetBlockByNum",
Handler: _WalletSolidity_GetBlockByNum_Handler,
},
{
MethodName: "GetTransactionById",
Handler: _WalletSolidity_GetTransactionById_Handler,
},
{
MethodName: "GetTransactionInfoById",
Handler: _WalletSolidity_GetTransactionInfoById_Handler,
},
{
MethodName: "GenerateAddress",
Handler: _WalletSolidity_GenerateAddress_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "api/api.proto",
}
// WalletExtensionClient is the client API for WalletExtension service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type WalletExtensionClient interface {
GetTransactionsFromThis(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionList, error)
GetTransactionsToThis(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionList, error)
}
type walletExtensionClient struct {
cc *grpc.ClientConn
}
func NewWalletExtensionClient(cc *grpc.ClientConn) WalletExtensionClient {
return &walletExtensionClient{cc}
}
func (c *walletExtensionClient) GetTransactionsFromThis(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionList, error) {
out := new(TransactionList)
err := c.cc.Invoke(ctx, "/protocol.WalletExtension/GetTransactionsFromThis", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *walletExtensionClient) GetTransactionsToThis(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionList, error) {
out := new(TransactionList)
err := c.cc.Invoke(ctx, "/protocol.WalletExtension/GetTransactionsToThis", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// WalletExtensionServer is the server API for WalletExtension service.
type WalletExtensionServer interface {
GetTransactionsFromThis(context.Context, *AccountPaginated) (*TransactionList, error)
GetTransactionsToThis(context.Context, *AccountPaginated) (*TransactionList, error)
}
func RegisterWalletExtensionServer(s *grpc.Server, srv WalletExtensionServer) {
s.RegisterService(&_WalletExtension_serviceDesc, srv)
}
func _WalletExtension_GetTransactionsFromThis_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AccountPaginated)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletExtensionServer).GetTransactionsFromThis(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.WalletExtension/GetTransactionsFromThis",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletExtensionServer).GetTransactionsFromThis(ctx, req.(*AccountPaginated))
}
return interceptor(ctx, in, info, handler)
}
func _WalletExtension_GetTransactionsToThis_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AccountPaginated)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WalletExtensionServer).GetTransactionsToThis(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.WalletExtension/GetTransactionsToThis",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WalletExtensionServer).GetTransactionsToThis(ctx, req.(*AccountPaginated))
}
return interceptor(ctx, in, info, handler)
}
var _WalletExtension_serviceDesc = grpc.ServiceDesc{
ServiceName: "protocol.WalletExtension",
HandlerType: (*WalletExtensionServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetTransactionsFromThis",
Handler: _WalletExtension_GetTransactionsFromThis_Handler,
},
{
MethodName: "GetTransactionsToThis",
Handler: _WalletExtension_GetTransactionsToThis_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "api/api.proto",
}
// DatabaseClient is the client API for Database service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type DatabaseClient interface {
// for tapos
GetBlockReference(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*BlockReference, error)
GetDynamicProperties(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.DynamicProperties, error)
GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error)
GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error)
}
type databaseClient struct {
cc *grpc.ClientConn
}
func NewDatabaseClient(cc *grpc.ClientConn) DatabaseClient {
return &databaseClient{cc}
}
func (c *databaseClient) GetBlockReference(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*BlockReference, error) {
out := new(BlockReference)
err := c.cc.Invoke(ctx, "/protocol.Database/getBlockReference", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *databaseClient) GetDynamicProperties(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.DynamicProperties, error) {
out := new(core.DynamicProperties)
err := c.cc.Invoke(ctx, "/protocol.Database/GetDynamicProperties", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *databaseClient) GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error) {
out := new(core.Block)
err := c.cc.Invoke(ctx, "/protocol.Database/GetNowBlock", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *databaseClient) GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error) {
out := new(core.Block)
err := c.cc.Invoke(ctx, "/protocol.Database/GetBlockByNum", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// DatabaseServer is the server API for Database service.
type DatabaseServer interface {
// for tapos
GetBlockReference(context.Context, *EmptyMessage) (*BlockReference, error)
GetDynamicProperties(context.Context, *EmptyMessage) (*core.DynamicProperties, error)
GetNowBlock(context.Context, *EmptyMessage) (*core.Block, error)
GetBlockByNum(context.Context, *NumberMessage) (*core.Block, error)
}
func RegisterDatabaseServer(s *grpc.Server, srv DatabaseServer) {
s.RegisterService(&_Database_serviceDesc, srv)
}
func _Database_GetBlockReference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DatabaseServer).GetBlockReference(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Database/GetBlockReference",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DatabaseServer).GetBlockReference(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Database_GetDynamicProperties_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DatabaseServer).GetDynamicProperties(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Database/GetDynamicProperties",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DatabaseServer).GetDynamicProperties(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Database_GetNowBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DatabaseServer).GetNowBlock(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Database/GetNowBlock",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DatabaseServer).GetNowBlock(ctx, req.(*EmptyMessage))
}
return interceptor(ctx, in, info, handler)
}
func _Database_GetBlockByNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(NumberMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DatabaseServer).GetBlockByNum(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.Database/GetBlockByNum",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DatabaseServer).GetBlockByNum(ctx, req.(*NumberMessage))
}
return interceptor(ctx, in, info, handler)
}
var _Database_serviceDesc = grpc.ServiceDesc{
ServiceName: "protocol.Database",
HandlerType: (*DatabaseServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "getBlockReference",
Handler: _Database_GetBlockReference_Handler,
},
{
MethodName: "GetDynamicProperties",
Handler: _Database_GetDynamicProperties_Handler,
},
{
MethodName: "GetNowBlock",
Handler: _Database_GetNowBlock_Handler,
},
{
MethodName: "GetBlockByNum",
Handler: _Database_GetBlockByNum_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "api/api.proto",
}
// NetworkClient is the client API for Network service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type NetworkClient interface {
}
type networkClient struct {
cc *grpc.ClientConn
}
func NewNetworkClient(cc *grpc.ClientConn) NetworkClient {
return &networkClient{cc}
}
// NetworkServer is the server API for Network service.
type NetworkServer interface {
}
func RegisterNetworkServer(s *grpc.Server, srv NetworkServer) {
s.RegisterService(&_Network_serviceDesc, srv)
}
var _Network_serviceDesc = grpc.ServiceDesc{
ServiceName: "protocol.Network",
HandlerType: (*NetworkServer)(nil),
Methods: []grpc.MethodDesc{},
Streams: []grpc.StreamDesc{},
Metadata: "api/api.proto",
}
func init() { proto.RegisterFile("api/api.proto", fileDescriptor_api_2b4f1aef810550ab) }
var fileDescriptor_api_2b4f1aef810550ab = []byte{
// 2530 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x5a, 0x4b, 0x6f, 0x1b, 0xc9,
0x11, 0xf6, 0xe8, 0xad, 0xd2, 0xbb, 0x24, 0x59, 0x32, 0x2d, 0xdb, 0x72, 0xc7, 0xd9, 0x08, 0xde,
0xb5, 0xb4, 0x96, 0x11, 0x78, 0x1f, 0xd9, 0xd8, 0xa4, 0xcc, 0xa5, 0x19, 0x5b, 0x94, 0x76, 0x48,
0x59, 0xbb, 0x1b, 0x04, 0xc2, 0x88, 0x6c, 0x52, 0x13, 0x93, 0x33, 0xc4, 0x74, 0xcb, 0x32, 0x0d,
0xec, 0xc5, 0x08, 0x92, 0x38, 0x39, 0x04, 0x48, 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 0x0b, 0x5e, 0xbb, 0x9a, 0xdd,
0x2d, 0x7e, 0xbd, 0xd6, 0xb0, 0xf9, 0xd1, 0xf1, 0xe1, 0x7a, 0xd5, 0x6d, 0x6d, 0x08, 0x6e, 0xa0,
0x64, 0xa3, 0xe1, 0xb5, 0xab, 0x77, 0x1a, 0x16, 0xa7, 0x27, 0x56, 0x67, 0xc3, 0x6a, 0xdb, 0x87,
0x23, 0x92, 0x75, 0xef, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb2, 0x95, 0x5d, 0xb4, 0x65, 0x24,
0x00, 0x00,
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/rekey/grpc-gateway.git
git@gitee.com:rekey/grpc-gateway.git
rekey
grpc-gateway
grpc-gateway
v1.3.2

搜索帮助