diff --git a/go.mod b/go.mod index 9a7c48f7b..20521d9de 100644 --- a/go.mod +++ b/go.mod @@ -35,13 +35,13 @@ require ( github.com/jrick/bitset v1.0.0 github.com/jrick/logrotate v1.0.0 github.com/jrick/wsrpc/v2 v2.3.5 - go.etcd.io/bbolt v1.3.8 - golang.org/x/crypto v0.26.0 + go.etcd.io/bbolt v1.3.11 + golang.org/x/crypto v0.27.0 golang.org/x/sync v0.8.0 - golang.org/x/term v0.23.0 - google.golang.org/grpc v1.45.0 - google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0 - google.golang.org/protobuf v1.27.1 + golang.org/x/term v0.24.0 + google.golang.org/grpc v1.66.1 + google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 + google.golang.org/protobuf v1.34.2 ) require ( @@ -52,11 +52,11 @@ require ( github.com/decred/dcrd/container/lru v1.0.0 // indirect github.com/decred/dcrd/database/v3 v3.0.2 // indirect github.com/decred/dcrd/dcrec/edwards/v2 v2.0.3 // indirect - github.com/golang/protobuf v1.5.2 // indirect + github.com/golang/protobuf v1.5.4 // indirect github.com/klauspost/cpuid/v2 v2.2.8 // indirect - golang.org/x/net v0.28.0 // indirect - golang.org/x/sys v0.23.0 // indirect - golang.org/x/text v0.17.0 // indirect + golang.org/x/net v0.29.0 // indirect + golang.org/x/sys v0.25.0 // indirect + golang.org/x/text v0.18.0 // indirect google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect lukechampine.com/blake3 v1.3.0 // indirect ) diff --git a/go.sum b/go.sum index 71fcdf30c..756737c7b 100644 --- a/go.sum +++ b/go.sum @@ -1,23 +1,13 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= decred.org/cspp/v2 v2.2.0 h1:VSOUC1w0Wo+QOGS0r1XO6TLnO16X67KuvpDmRRYyr08= decred.org/cspp/v2 v2.2.0/go.mod h1:9nO3bfvCheOPIFZw5f6sRQ42CjBFB5RKSaJ9Iq6G4MA= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412 h1:w1UutsfOrms1J05zt7ISrnJIXKzwaspym5BTKGx93EI= github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412/go.mod h1:WPjqKcmVOxf0XSf3YxCJs6N6AOSrOx3obionmG7T0y0= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/companyzero/sntrup4591761 v0.0.0-20220309191932-9e0f3af2f07a h1:clYxJ3Os0EQUKDDVU8M0oipllX0EkuFNBfhVQuIfyF0= github.com/companyzero/sntrup4591761 v0.0.0-20220309191932-9e0f3af2f07a/go.mod h1:z/9Ck1EDixEbBbZ2KH2qNHekEmDLTOZ+FyoIPWWSVOI= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dchest/siphash v1.2.3 h1:QXwFc8cFOR2dSa/gE6o/HokBMWtLUaNDVd+22aKHeEA= @@ -82,42 +72,30 @@ github.com/decred/vspd/client/v4 v4.0.0 h1:8qFB3t5CyBFuUU0LarJFsq/+twfUMPALwzOsB github.com/decred/vspd/client/v4 v4.0.0/go.mod h1:jhqu4KGGOskQcPVZ3XZLVZ1Wgkc9GQo+oEipr3gGODg= github.com/decred/vspd/types/v3 v3.0.0 h1:jHlQIpp6aCjIcFs8WE3AaVCJe1kgepNTq+nkBKAyQxk= github.com/decred/vspd/types/v3 v3.0.0/go.mod h1:hwifRZu6tpkbhSg2jZCUwuPaO/oETgbSCWCYJd4XepY= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc= github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= github.com/jrick/bitset v1.0.0 h1:Ws0PXV3PwXqWK2n7Vz6idCdrV/9OrBXgHEJi27ZB9Dw= @@ -131,96 +109,69 @@ github.com/klauspost/cpuid/v2 v2.2.8/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZY github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= -go.etcd.io/bbolt v1.3.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA= -go.etcd.io/bbolt v1.3.8/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= +go.etcd.io/bbolt v1.3.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0= +go.etcd.io/bbolt v1.3.11/go.mod h1:dksAq7YMXoljX0xu6VF5DMZGbhYYoLUalEiSySYAS4I= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= -golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= +golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A= +golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= -golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= +golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= +golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.23.0 h1:YfKFowiIMvtgl1UERQoTPPToxltDeZfbj4H7dVUCwmM= -golang.org/x/sys v0.23.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= -golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= +golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= +golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.24.0 h1:Mh5cbb+Zk2hqqXNO7S1iTjEphVL+jb8ZWaqh/g+JWkM= +golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= +golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.45.0 h1:NEpgUqV3Z+ZjkqMsxMg11IaDrXY4RY6CQukSGK0uI1M= -google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0 h1:TLkBREm4nIsEcexnCjgQd5GQWaHcqMzwQV0TX9pq8S0= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0/go.mod h1:DNq5QpG7LJqD2AamLZ7zvKE0DEpVl2BSEVjFycAAjRY= +google.golang.org/grpc v1.66.1 h1:hO5qAXR19+/Z44hmvIM4dQFMSYX9XcWsByfoxutBpAM= +google.golang.org/grpc v1.66.1/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 h1:F29+wU6Ee6qgu9TddPgooOdaqsxTMunOoj8KA5yuS5A= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1/go.mod h1:5KF+wpkbTSbGcR9zteSqZV6fqFOWBl4Yde8En8MryZA= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ= -google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/rpc/walletrpc/api.pb.go b/rpc/walletrpc/api.pb.go index d2d03100a..ee434a622 100644 --- a/rpc/walletrpc/api.pb.go +++ b/rpc/walletrpc/api.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 +// protoc-gen-go v1.34.2 // protoc v5.28.0 // source: api.proto @@ -16160,7 +16160,7 @@ func file_api_proto_rawDescGZIP() []byte { var file_api_proto_enumTypes = make([]protoimpl.EnumInfo, 13) var file_api_proto_msgTypes = make([]protoimpl.MessageInfo, 226) -var file_api_proto_goTypes = []interface{}{ +var file_api_proto_goTypes = []any{ (SyncNotificationType)(0), // 0: walletrpc.SyncNotificationType (TransactionDetails_TransactionType)(0), // 1: walletrpc.TransactionDetails.TransactionType (AddressRequest_Kind)(0), // 2: walletrpc.AddressRequest.Kind @@ -16657,7 +16657,7 @@ func file_api_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*VersionRequest); i { case 0: return &v.state @@ -16669,7 +16669,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*VersionResponse); i { case 0: return &v.state @@ -16681,7 +16681,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*TransactionDetails); i { case 0: return &v.state @@ -16693,7 +16693,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*BlockDetails); i { case 0: return &v.state @@ -16705,7 +16705,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*DetachedBlockDetails); i { case 0: return &v.state @@ -16717,7 +16717,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*AccountBalance); i { case 0: return &v.state @@ -16729,7 +16729,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*PingRequest); i { case 0: return &v.state @@ -16741,7 +16741,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*PingResponse); i { case 0: return &v.state @@ -16753,7 +16753,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*NetworkRequest); i { case 0: return &v.state @@ -16765,7 +16765,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*NetworkResponse); i { case 0: return &v.state @@ -16777,7 +16777,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*CoinTypeRequest); i { case 0: return &v.state @@ -16789,7 +16789,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*CoinTypeResponse); i { case 0: return &v.state @@ -16801,7 +16801,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*AccountNumberRequest); i { case 0: return &v.state @@ -16813,7 +16813,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*AccountNumberResponse); i { case 0: return &v.state @@ -16825,7 +16825,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*AccountsRequest); i { case 0: return &v.state @@ -16837,7 +16837,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*AccountsResponse); i { case 0: return &v.state @@ -16849,7 +16849,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*AddressRequest); i { case 0: return &v.state @@ -16861,7 +16861,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*AddressResponse); i { case 0: return &v.state @@ -16873,7 +16873,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*RenameAccountRequest); i { case 0: return &v.state @@ -16885,7 +16885,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*RenameAccountResponse); i { case 0: return &v.state @@ -16897,7 +16897,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[20].Exporter = func(v any, i int) any { switch v := v.(*RescanRequest); i { case 0: return &v.state @@ -16909,7 +16909,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*RescanResponse); i { case 0: return &v.state @@ -16921,7 +16921,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[22].Exporter = func(v any, i int) any { switch v := v.(*NextAccountRequest); i { case 0: return &v.state @@ -16933,7 +16933,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[23].Exporter = func(v any, i int) any { switch v := v.(*NextAccountResponse); i { case 0: return &v.state @@ -16945,7 +16945,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*NextAddressRequest); i { case 0: return &v.state @@ -16957,7 +16957,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*NextAddressResponse); i { case 0: return &v.state @@ -16969,7 +16969,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[26].Exporter = func(v any, i int) any { switch v := v.(*ImportPrivateKeyRequest); i { case 0: return &v.state @@ -16981,7 +16981,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[27].Exporter = func(v any, i int) any { switch v := v.(*ImportPrivateKeyResponse); i { case 0: return &v.state @@ -16993,7 +16993,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[28].Exporter = func(v any, i int) any { switch v := v.(*ImportExtendedPublicKeyRequest); i { case 0: return &v.state @@ -17005,7 +17005,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[29].Exporter = func(v any, i int) any { switch v := v.(*ImportExtendedPublicKeyResponse); i { case 0: return &v.state @@ -17017,7 +17017,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[30].Exporter = func(v any, i int) any { switch v := v.(*DumpPrivateKeyRequest); i { case 0: return &v.state @@ -17029,7 +17029,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[31].Exporter = func(v any, i int) any { switch v := v.(*DumpPrivateKeyResponse); i { case 0: return &v.state @@ -17041,7 +17041,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[32].Exporter = func(v any, i int) any { switch v := v.(*BirthBlockRequest); i { case 0: return &v.state @@ -17053,7 +17053,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[33].Exporter = func(v any, i int) any { switch v := v.(*BirthBlockResponse); i { case 0: return &v.state @@ -17065,7 +17065,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[34].Exporter = func(v any, i int) any { switch v := v.(*ImportVotingAccountFromSeedRequest); i { case 0: return &v.state @@ -17077,7 +17077,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[35].Exporter = func(v any, i int) any { switch v := v.(*ImportVotingAccountFromSeedResponse); i { case 0: return &v.state @@ -17089,7 +17089,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[36].Exporter = func(v any, i int) any { switch v := v.(*ImportScriptRequest); i { case 0: return &v.state @@ -17101,7 +17101,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[37].Exporter = func(v any, i int) any { switch v := v.(*ImportScriptResponse); i { case 0: return &v.state @@ -17113,7 +17113,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[38].Exporter = func(v any, i int) any { switch v := v.(*BalanceRequest); i { case 0: return &v.state @@ -17125,7 +17125,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[39].Exporter = func(v any, i int) any { switch v := v.(*BalanceResponse); i { case 0: return &v.state @@ -17137,7 +17137,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[40].Exporter = func(v any, i int) any { switch v := v.(*GetTransactionRequest); i { case 0: return &v.state @@ -17149,7 +17149,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[41].Exporter = func(v any, i int) any { switch v := v.(*GetTransactionResponse); i { case 0: return &v.state @@ -17161,7 +17161,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[42].Exporter = func(v any, i int) any { switch v := v.(*GetTransactionsRequest); i { case 0: return &v.state @@ -17173,7 +17173,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[43].Exporter = func(v any, i int) any { switch v := v.(*GetTransactionsResponse); i { case 0: return &v.state @@ -17185,7 +17185,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[44].Exporter = func(v any, i int) any { switch v := v.(*GetTicketRequest); i { case 0: return &v.state @@ -17197,7 +17197,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[45].Exporter = func(v any, i int) any { switch v := v.(*GetTicketsRequest); i { case 0: return &v.state @@ -17209,7 +17209,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[46].Exporter = func(v any, i int) any { switch v := v.(*GetTicketsResponse); i { case 0: return &v.state @@ -17221,7 +17221,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[47].Exporter = func(v any, i int) any { switch v := v.(*TicketPriceRequest); i { case 0: return &v.state @@ -17233,7 +17233,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[48].Exporter = func(v any, i int) any { switch v := v.(*TicketPriceResponse); i { case 0: return &v.state @@ -17245,7 +17245,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[49].Exporter = func(v any, i int) any { switch v := v.(*StakeInfoRequest); i { case 0: return &v.state @@ -17257,7 +17257,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[50].Exporter = func(v any, i int) any { switch v := v.(*StakeInfoResponse); i { case 0: return &v.state @@ -17269,7 +17269,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[51].Exporter = func(v any, i int) any { switch v := v.(*BlockInfoRequest); i { case 0: return &v.state @@ -17281,7 +17281,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[52].Exporter = func(v any, i int) any { switch v := v.(*BlockInfoResponse); i { case 0: return &v.state @@ -17293,7 +17293,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[53].Exporter = func(v any, i int) any { switch v := v.(*ChangePassphraseRequest); i { case 0: return &v.state @@ -17305,7 +17305,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[54].Exporter = func(v any, i int) any { switch v := v.(*ChangePassphraseResponse); i { case 0: return &v.state @@ -17317,7 +17317,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[55].Exporter = func(v any, i int) any { switch v := v.(*FundTransactionRequest); i { case 0: return &v.state @@ -17329,7 +17329,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[56].Exporter = func(v any, i int) any { switch v := v.(*FundTransactionResponse); i { case 0: return &v.state @@ -17341,7 +17341,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[57].Exporter = func(v any, i int) any { switch v := v.(*UnspentOutputsRequest); i { case 0: return &v.state @@ -17353,7 +17353,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[58].Exporter = func(v any, i int) any { switch v := v.(*UnspentOutputResponse); i { case 0: return &v.state @@ -17365,7 +17365,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[59].Exporter = func(v any, i int) any { switch v := v.(*ConstructTransactionRequest); i { case 0: return &v.state @@ -17377,7 +17377,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[60].Exporter = func(v any, i int) any { switch v := v.(*ConstructTransactionResponse); i { case 0: return &v.state @@ -17389,7 +17389,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[61].Exporter = func(v any, i int) any { switch v := v.(*SignTransactionRequest); i { case 0: return &v.state @@ -17401,7 +17401,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[62].Exporter = func(v any, i int) any { switch v := v.(*SignTransactionResponse); i { case 0: return &v.state @@ -17413,7 +17413,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[63].Exporter = func(v any, i int) any { switch v := v.(*SignTransactionsRequest); i { case 0: return &v.state @@ -17425,7 +17425,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[64].Exporter = func(v any, i int) any { switch v := v.(*SignTransactionsResponse); i { case 0: return &v.state @@ -17437,7 +17437,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[65].Exporter = func(v any, i int) any { switch v := v.(*CreateSignatureRequest); i { case 0: return &v.state @@ -17449,7 +17449,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[66].Exporter = func(v any, i int) any { switch v := v.(*CreateSignatureResponse); i { case 0: return &v.state @@ -17461,7 +17461,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[67].Exporter = func(v any, i int) any { switch v := v.(*PublishTransactionRequest); i { case 0: return &v.state @@ -17473,7 +17473,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[68].Exporter = func(v any, i int) any { switch v := v.(*PublishTransactionResponse); i { case 0: return &v.state @@ -17485,7 +17485,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[69].Exporter = func(v any, i int) any { switch v := v.(*PublishUnminedTransactionsRequest); i { case 0: return &v.state @@ -17497,7 +17497,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[70].Exporter = func(v any, i int) any { switch v := v.(*PublishUnminedTransactionsResponse); i { case 0: return &v.state @@ -17509,7 +17509,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[71].Exporter = func(v any, i int) any { switch v := v.(*PurchaseTicketsRequest); i { case 0: return &v.state @@ -17521,7 +17521,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[72].Exporter = func(v any, i int) any { switch v := v.(*PurchaseTicketsResponse); i { case 0: return &v.state @@ -17533,7 +17533,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[73].Exporter = func(v any, i int) any { switch v := v.(*RevokeTicketRequest); i { case 0: return &v.state @@ -17545,7 +17545,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[74].Exporter = func(v any, i int) any { switch v := v.(*RevokeTicketResponse); i { case 0: return &v.state @@ -17557,7 +17557,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[75].Exporter = func(v any, i int) any { switch v := v.(*RevokeTicketsRequest); i { case 0: return &v.state @@ -17569,7 +17569,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[76].Exporter = func(v any, i int) any { switch v := v.(*RevokeTicketsResponse); i { case 0: return &v.state @@ -17581,7 +17581,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[77].Exporter = func(v any, i int) any { switch v := v.(*LoadActiveDataFiltersRequest); i { case 0: return &v.state @@ -17593,7 +17593,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[78].Exporter = func(v any, i int) any { switch v := v.(*LoadActiveDataFiltersResponse); i { case 0: return &v.state @@ -17605,7 +17605,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[79].Exporter = func(v any, i int) any { switch v := v.(*SignMessageRequest); i { case 0: return &v.state @@ -17617,7 +17617,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[80].Exporter = func(v any, i int) any { switch v := v.(*SignMessageResponse); i { case 0: return &v.state @@ -17629,7 +17629,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[81].Exporter = func(v any, i int) any { switch v := v.(*SignMessagesRequest); i { case 0: return &v.state @@ -17641,7 +17641,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[82].Exporter = func(v any, i int) any { switch v := v.(*SignMessagesResponse); i { case 0: return &v.state @@ -17653,7 +17653,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[83].Exporter = func(v any, i int) any { switch v := v.(*TransactionNotificationsRequest); i { case 0: return &v.state @@ -17665,7 +17665,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[84].Exporter = func(v any, i int) any { switch v := v.(*TransactionNotificationsResponse); i { case 0: return &v.state @@ -17677,7 +17677,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[85].Exporter = func(v any, i int) any { switch v := v.(*AccountNotificationsRequest); i { case 0: return &v.state @@ -17689,7 +17689,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[86].Exporter = func(v any, i int) any { switch v := v.(*AccountNotificationsResponse); i { case 0: return &v.state @@ -17701,7 +17701,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[87].Exporter = func(v any, i int) any { switch v := v.(*ConfirmationNotificationsRequest); i { case 0: return &v.state @@ -17713,7 +17713,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[88].Exporter = func(v any, i int) any { switch v := v.(*ConfirmationNotificationsResponse); i { case 0: return &v.state @@ -17725,7 +17725,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[89].Exporter = func(v any, i int) any { switch v := v.(*CreateWalletRequest); i { case 0: return &v.state @@ -17737,7 +17737,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[90].Exporter = func(v any, i int) any { switch v := v.(*CreateWalletResponse); i { case 0: return &v.state @@ -17749,7 +17749,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[91].Exporter = func(v any, i int) any { switch v := v.(*CreateWatchingOnlyWalletRequest); i { case 0: return &v.state @@ -17761,7 +17761,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[92].Exporter = func(v any, i int) any { switch v := v.(*CreateWatchingOnlyWalletResponse); i { case 0: return &v.state @@ -17773,7 +17773,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[93].Exporter = func(v any, i int) any { switch v := v.(*OpenWalletRequest); i { case 0: return &v.state @@ -17785,7 +17785,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[94].Exporter = func(v any, i int) any { switch v := v.(*OpenWalletResponse); i { case 0: return &v.state @@ -17797,7 +17797,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[95].Exporter = func(v any, i int) any { switch v := v.(*CloseWalletRequest); i { case 0: return &v.state @@ -17809,7 +17809,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[96].Exporter = func(v any, i int) any { switch v := v.(*CloseWalletResponse); i { case 0: return &v.state @@ -17821,7 +17821,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[97].Exporter = func(v any, i int) any { switch v := v.(*WalletExistsRequest); i { case 0: return &v.state @@ -17833,7 +17833,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[98].Exporter = func(v any, i int) any { switch v := v.(*WalletExistsResponse); i { case 0: return &v.state @@ -17845,7 +17845,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[99].Exporter = func(v any, i int) any { switch v := v.(*StartConsensusRpcRequest); i { case 0: return &v.state @@ -17857,7 +17857,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[100].Exporter = func(v any, i int) any { switch v := v.(*StartConsensusRpcResponse); i { case 0: return &v.state @@ -17869,7 +17869,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[101].Exporter = func(v any, i int) any { switch v := v.(*DiscoverAddressesRequest); i { case 0: return &v.state @@ -17881,7 +17881,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[102].Exporter = func(v any, i int) any { switch v := v.(*DiscoverAddressesResponse); i { case 0: return &v.state @@ -17893,7 +17893,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[103].Exporter = func(v any, i int) any { switch v := v.(*FetchMissingCFiltersRequest); i { case 0: return &v.state @@ -17905,7 +17905,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[104].Exporter = func(v any, i int) any { switch v := v.(*FetchMissingCFiltersResponse); i { case 0: return &v.state @@ -17917,7 +17917,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[105].Exporter = func(v any, i int) any { switch v := v.(*SubscribeToBlockNotificationsRequest); i { case 0: return &v.state @@ -17929,7 +17929,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[106].Exporter = func(v any, i int) any { switch v := v.(*SubscribeToBlockNotificationsResponse); i { case 0: return &v.state @@ -17941,7 +17941,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[107].Exporter = func(v any, i int) any { switch v := v.(*FetchHeadersRequest); i { case 0: return &v.state @@ -17953,7 +17953,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[108].Exporter = func(v any, i int) any { switch v := v.(*FetchHeadersResponse); i { case 0: return &v.state @@ -17965,7 +17965,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[109].Exporter = func(v any, i int) any { switch v := v.(*FetchHeadersNotification); i { case 0: return &v.state @@ -17977,7 +17977,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[110].Exporter = func(v any, i int) any { switch v := v.(*FetchMissingCFiltersNotification); i { case 0: return &v.state @@ -17989,7 +17989,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[111].Exporter = func(v any, i int) any { switch v := v.(*RescanProgressNotification); i { case 0: return &v.state @@ -18001,7 +18001,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[112].Exporter = func(v any, i int) any { switch v := v.(*PeerNotification); i { case 0: return &v.state @@ -18013,7 +18013,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[113].Exporter = func(v any, i int) any { switch v := v.(*RpcSyncRequest); i { case 0: return &v.state @@ -18025,7 +18025,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[114].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[114].Exporter = func(v any, i int) any { switch v := v.(*RpcSyncResponse); i { case 0: return &v.state @@ -18037,7 +18037,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[115].Exporter = func(v any, i int) any { switch v := v.(*SpvSyncRequest); i { case 0: return &v.state @@ -18049,7 +18049,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[116].Exporter = func(v any, i int) any { switch v := v.(*SpvSyncResponse); i { case 0: return &v.state @@ -18061,7 +18061,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[117].Exporter = func(v any, i int) any { switch v := v.(*RescanPointRequest); i { case 0: return &v.state @@ -18073,7 +18073,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[118].Exporter = func(v any, i int) any { switch v := v.(*RescanPointResponse); i { case 0: return &v.state @@ -18085,7 +18085,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[119].Exporter = func(v any, i int) any { switch v := v.(*GenerateRandomSeedRequest); i { case 0: return &v.state @@ -18097,7 +18097,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[120].Exporter = func(v any, i int) any { switch v := v.(*GenerateRandomSeedResponse); i { case 0: return &v.state @@ -18109,7 +18109,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[121].Exporter = func(v any, i int) any { switch v := v.(*DecodeSeedRequest); i { case 0: return &v.state @@ -18121,7 +18121,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[122].Exporter = func(v any, i int) any { switch v := v.(*DecodeSeedResponse); i { case 0: return &v.state @@ -18133,7 +18133,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[123].Exporter = func(v any, i int) any { switch v := v.(*RunTicketBuyerRequest); i { case 0: return &v.state @@ -18145,7 +18145,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[124].Exporter = func(v any, i int) any { switch v := v.(*RunTicketBuyerResponse); i { case 0: return &v.state @@ -18157,7 +18157,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[125].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[125].Exporter = func(v any, i int) any { switch v := v.(*RunAccountMixerRequest); i { case 0: return &v.state @@ -18169,7 +18169,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[126].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[126].Exporter = func(v any, i int) any { switch v := v.(*RunAccountMixerResponse); i { case 0: return &v.state @@ -18181,7 +18181,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[127].Exporter = func(v any, i int) any { switch v := v.(*AgendasRequest); i { case 0: return &v.state @@ -18193,7 +18193,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[128].Exporter = func(v any, i int) any { switch v := v.(*AgendasResponse); i { case 0: return &v.state @@ -18205,7 +18205,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[129].Exporter = func(v any, i int) any { switch v := v.(*VoteChoicesRequest); i { case 0: return &v.state @@ -18217,7 +18217,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[130].Exporter = func(v any, i int) any { switch v := v.(*VoteChoicesResponse); i { case 0: return &v.state @@ -18229,7 +18229,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[131].Exporter = func(v any, i int) any { switch v := v.(*SetVoteChoicesRequest); i { case 0: return &v.state @@ -18241,7 +18241,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[132].Exporter = func(v any, i int) any { switch v := v.(*SetVoteChoicesResponse); i { case 0: return &v.state @@ -18253,7 +18253,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[133].Exporter = func(v any, i int) any { switch v := v.(*TSpendPoliciesRequest); i { case 0: return &v.state @@ -18265,7 +18265,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[134].Exporter = func(v any, i int) any { switch v := v.(*TSpendPoliciesResponse); i { case 0: return &v.state @@ -18277,7 +18277,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[135].Exporter = func(v any, i int) any { switch v := v.(*SetTSpendPolicyRequest); i { case 0: return &v.state @@ -18289,7 +18289,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[136].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[136].Exporter = func(v any, i int) any { switch v := v.(*SetTSpendPolicyResponse); i { case 0: return &v.state @@ -18301,7 +18301,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[137].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[137].Exporter = func(v any, i int) any { switch v := v.(*TreasuryPoliciesRequest); i { case 0: return &v.state @@ -18313,7 +18313,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[138].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[138].Exporter = func(v any, i int) any { switch v := v.(*TreasuryPoliciesResponse); i { case 0: return &v.state @@ -18325,7 +18325,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[139].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[139].Exporter = func(v any, i int) any { switch v := v.(*SetTreasuryPolicyRequest); i { case 0: return &v.state @@ -18337,7 +18337,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[140].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[140].Exporter = func(v any, i int) any { switch v := v.(*SetTreasuryPolicyResponse); i { case 0: return &v.state @@ -18349,7 +18349,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[141].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[141].Exporter = func(v any, i int) any { switch v := v.(*VerifyMessageRequest); i { case 0: return &v.state @@ -18361,7 +18361,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[142].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[142].Exporter = func(v any, i int) any { switch v := v.(*VerifyMessageResponse); i { case 0: return &v.state @@ -18373,7 +18373,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[143].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[143].Exporter = func(v any, i int) any { switch v := v.(*DecodedTransaction); i { case 0: return &v.state @@ -18385,7 +18385,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[144].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[144].Exporter = func(v any, i int) any { switch v := v.(*DecodeRawTransactionRequest); i { case 0: return &v.state @@ -18397,7 +18397,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[145].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[145].Exporter = func(v any, i int) any { switch v := v.(*DecodeRawTransactionResponse); i { case 0: return &v.state @@ -18409,7 +18409,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[146].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[146].Exporter = func(v any, i int) any { switch v := v.(*ValidateAddressRequest); i { case 0: return &v.state @@ -18421,7 +18421,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[147].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[147].Exporter = func(v any, i int) any { switch v := v.(*ValidateAddressResponse); i { case 0: return &v.state @@ -18433,7 +18433,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[148].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[148].Exporter = func(v any, i int) any { switch v := v.(*CommittedTicketsRequest); i { case 0: return &v.state @@ -18445,7 +18445,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[149].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[149].Exporter = func(v any, i int) any { switch v := v.(*GetAccountExtendedPubKeyRequest); i { case 0: return &v.state @@ -18457,7 +18457,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[150].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[150].Exporter = func(v any, i int) any { switch v := v.(*GetAccountExtendedPubKeyResponse); i { case 0: return &v.state @@ -18469,7 +18469,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[151].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[151].Exporter = func(v any, i int) any { switch v := v.(*GetAccountExtendedPrivKeyRequest); i { case 0: return &v.state @@ -18481,7 +18481,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[152].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[152].Exporter = func(v any, i int) any { switch v := v.(*GetAccountExtendedPrivKeyResponse); i { case 0: return &v.state @@ -18493,7 +18493,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[153].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[153].Exporter = func(v any, i int) any { switch v := v.(*CommittedTicketsResponse); i { case 0: return &v.state @@ -18505,7 +18505,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[154].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[154].Exporter = func(v any, i int) any { switch v := v.(*BestBlockRequest); i { case 0: return &v.state @@ -18517,7 +18517,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[155].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[155].Exporter = func(v any, i int) any { switch v := v.(*BestBlockResponse); i { case 0: return &v.state @@ -18529,7 +18529,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[156].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[156].Exporter = func(v any, i int) any { switch v := v.(*SweepAccountRequest); i { case 0: return &v.state @@ -18541,7 +18541,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[157].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[157].Exporter = func(v any, i int) any { switch v := v.(*SweepAccountResponse); i { case 0: return &v.state @@ -18553,7 +18553,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[158].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[158].Exporter = func(v any, i int) any { switch v := v.(*AbandonTransactionRequest); i { case 0: return &v.state @@ -18565,7 +18565,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[159].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[159].Exporter = func(v any, i int) any { switch v := v.(*AbandonTransactionResponse); i { case 0: return &v.state @@ -18577,7 +18577,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[160].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[160].Exporter = func(v any, i int) any { switch v := v.(*SignHashesRequest); i { case 0: return &v.state @@ -18589,7 +18589,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[161].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[161].Exporter = func(v any, i int) any { switch v := v.(*SignHashesResponse); i { case 0: return &v.state @@ -18601,7 +18601,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[162].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[162].Exporter = func(v any, i int) any { switch v := v.(*SpenderRequest); i { case 0: return &v.state @@ -18613,7 +18613,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[163].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[163].Exporter = func(v any, i int) any { switch v := v.(*SpenderResponse); i { case 0: return &v.state @@ -18625,7 +18625,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[164].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[164].Exporter = func(v any, i int) any { switch v := v.(*GetCFiltersRequest); i { case 0: return &v.state @@ -18637,7 +18637,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[165].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[165].Exporter = func(v any, i int) any { switch v := v.(*GetCFiltersResponse); i { case 0: return &v.state @@ -18649,7 +18649,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[166].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[166].Exporter = func(v any, i int) any { switch v := v.(*GetRawBlockRequest); i { case 0: return &v.state @@ -18661,7 +18661,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[167].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[167].Exporter = func(v any, i int) any { switch v := v.(*GetRawBlockResponse); i { case 0: return &v.state @@ -18673,7 +18673,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[168].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[168].Exporter = func(v any, i int) any { switch v := v.(*GetCoinjoinOutputspByAcctRequest); i { case 0: return &v.state @@ -18685,7 +18685,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[169].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[169].Exporter = func(v any, i int) any { switch v := v.(*CoinjoinTxsSumByAcct); i { case 0: return &v.state @@ -18697,7 +18697,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[170].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[170].Exporter = func(v any, i int) any { switch v := v.(*GetCoinjoinOutputspByAcctResponse); i { case 0: return &v.state @@ -18709,7 +18709,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[171].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[171].Exporter = func(v any, i int) any { switch v := v.(*SetAccountPassphraseRequest); i { case 0: return &v.state @@ -18721,7 +18721,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[172].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[172].Exporter = func(v any, i int) any { switch v := v.(*UnlockAccountRequest); i { case 0: return &v.state @@ -18733,7 +18733,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[173].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[173].Exporter = func(v any, i int) any { switch v := v.(*LockAccountRequest); i { case 0: return &v.state @@ -18745,7 +18745,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[174].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[174].Exporter = func(v any, i int) any { switch v := v.(*SetAccountPassphraseResponse); i { case 0: return &v.state @@ -18757,7 +18757,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[175].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[175].Exporter = func(v any, i int) any { switch v := v.(*UnlockAccountResponse); i { case 0: return &v.state @@ -18769,7 +18769,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[176].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[176].Exporter = func(v any, i int) any { switch v := v.(*LockAccountResponse); i { case 0: return &v.state @@ -18781,7 +18781,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[177].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[177].Exporter = func(v any, i int) any { switch v := v.(*AccountUnlockedRequest); i { case 0: return &v.state @@ -18793,7 +18793,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[178].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[178].Exporter = func(v any, i int) any { switch v := v.(*AccountUnlockedResponse); i { case 0: return &v.state @@ -18805,7 +18805,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[179].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[179].Exporter = func(v any, i int) any { switch v := v.(*UnlockWalletRequest); i { case 0: return &v.state @@ -18817,7 +18817,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[180].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[180].Exporter = func(v any, i int) any { switch v := v.(*UnlockWalletResponse); i { case 0: return &v.state @@ -18829,7 +18829,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[181].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[181].Exporter = func(v any, i int) any { switch v := v.(*LockWalletRequest); i { case 0: return &v.state @@ -18841,7 +18841,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[182].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[182].Exporter = func(v any, i int) any { switch v := v.(*LockWalletResponse); i { case 0: return &v.state @@ -18853,7 +18853,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[183].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[183].Exporter = func(v any, i int) any { switch v := v.(*GetPeerInfoRequest); i { case 0: return &v.state @@ -18865,7 +18865,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[184].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[184].Exporter = func(v any, i int) any { switch v := v.(*GetPeerInfoResponse); i { case 0: return &v.state @@ -18877,7 +18877,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[185].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[185].Exporter = func(v any, i int) any { switch v := v.(*SyncVSPTicketsRequest); i { case 0: return &v.state @@ -18889,7 +18889,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[186].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[186].Exporter = func(v any, i int) any { switch v := v.(*SyncVSPTicketsResponse); i { case 0: return &v.state @@ -18901,7 +18901,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[187].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[187].Exporter = func(v any, i int) any { switch v := v.(*GetVSPTicketsByFeeStatusRequest); i { case 0: return &v.state @@ -18913,7 +18913,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[188].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[188].Exporter = func(v any, i int) any { switch v := v.(*GetVSPTicketsByFeeStatusResponse); i { case 0: return &v.state @@ -18925,7 +18925,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[189].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[189].Exporter = func(v any, i int) any { switch v := v.(*ProcessManagedTicketsRequest); i { case 0: return &v.state @@ -18937,7 +18937,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[190].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[190].Exporter = func(v any, i int) any { switch v := v.(*ProcessManagedTicketsResponse); i { case 0: return &v.state @@ -18949,7 +18949,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[191].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[191].Exporter = func(v any, i int) any { switch v := v.(*ProcessUnmanagedTicketsRequest); i { case 0: return &v.state @@ -18961,7 +18961,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[192].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[192].Exporter = func(v any, i int) any { switch v := v.(*ProcessUnmanagedTicketsResponse); i { case 0: return &v.state @@ -18973,7 +18973,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[193].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[193].Exporter = func(v any, i int) any { switch v := v.(*SetVspdVoteChoicesRequest); i { case 0: return &v.state @@ -18985,7 +18985,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[194].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[194].Exporter = func(v any, i int) any { switch v := v.(*SetVspdVoteChoicesResponse); i { case 0: return &v.state @@ -18997,7 +18997,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[195].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[195].Exporter = func(v any, i int) any { switch v := v.(*GetTrackedVSPTicketsRequest); i { case 0: return &v.state @@ -19009,7 +19009,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[196].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[196].Exporter = func(v any, i int) any { switch v := v.(*GetTrackedVSPTicketsResponse); i { case 0: return &v.state @@ -19021,7 +19021,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[197].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[197].Exporter = func(v any, i int) any { switch v := v.(*DiscoverUsageRequest); i { case 0: return &v.state @@ -19033,7 +19033,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[198].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[198].Exporter = func(v any, i int) any { switch v := v.(*DiscoverUsageResponse); i { case 0: return &v.state @@ -19045,7 +19045,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[199].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[199].Exporter = func(v any, i int) any { switch v := v.(*TransactionDetails_Input); i { case 0: return &v.state @@ -19057,7 +19057,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[200].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[200].Exporter = func(v any, i int) any { switch v := v.(*TransactionDetails_Output); i { case 0: return &v.state @@ -19069,7 +19069,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[201].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[201].Exporter = func(v any, i int) any { switch v := v.(*AccountsResponse_Account); i { case 0: return &v.state @@ -19081,7 +19081,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[202].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[202].Exporter = func(v any, i int) any { switch v := v.(*GetTicketsResponse_TicketDetails); i { case 0: return &v.state @@ -19093,7 +19093,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[203].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[203].Exporter = func(v any, i int) any { switch v := v.(*GetTicketsResponse_BlockDetails); i { case 0: return &v.state @@ -19105,7 +19105,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[204].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[204].Exporter = func(v any, i int) any { switch v := v.(*FundTransactionResponse_PreviousOutput); i { case 0: return &v.state @@ -19117,7 +19117,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[205].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[205].Exporter = func(v any, i int) any { switch v := v.(*ConstructTransactionRequest_OutputDestination); i { case 0: return &v.state @@ -19129,7 +19129,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[206].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[206].Exporter = func(v any, i int) any { switch v := v.(*ConstructTransactionRequest_Output); i { case 0: return &v.state @@ -19141,7 +19141,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[207].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[207].Exporter = func(v any, i int) any { switch v := v.(*SignTransactionRequest_AdditionalScript); i { case 0: return &v.state @@ -19153,7 +19153,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[208].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[208].Exporter = func(v any, i int) any { switch v := v.(*SignTransactionsRequest_AdditionalScript); i { case 0: return &v.state @@ -19165,7 +19165,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[209].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[209].Exporter = func(v any, i int) any { switch v := v.(*SignTransactionsRequest_UnsignedTransaction); i { case 0: return &v.state @@ -19177,7 +19177,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[210].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[210].Exporter = func(v any, i int) any { switch v := v.(*SignTransactionsResponse_SignedTransaction); i { case 0: return &v.state @@ -19189,7 +19189,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[211].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[211].Exporter = func(v any, i int) any { switch v := v.(*SignMessagesRequest_Message); i { case 0: return &v.state @@ -19201,7 +19201,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[212].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[212].Exporter = func(v any, i int) any { switch v := v.(*SignMessagesResponse_SignReply); i { case 0: return &v.state @@ -19213,7 +19213,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[213].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[213].Exporter = func(v any, i int) any { switch v := v.(*ConfirmationNotificationsResponse_TransactionConfirmations); i { case 0: return &v.state @@ -19225,7 +19225,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[214].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[214].Exporter = func(v any, i int) any { switch v := v.(*AgendasResponse_Agenda); i { case 0: return &v.state @@ -19237,7 +19237,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[215].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[215].Exporter = func(v any, i int) any { switch v := v.(*AgendasResponse_Choice); i { case 0: return &v.state @@ -19249,7 +19249,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[216].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[216].Exporter = func(v any, i int) any { switch v := v.(*VoteChoicesResponse_Choice); i { case 0: return &v.state @@ -19261,7 +19261,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[217].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[217].Exporter = func(v any, i int) any { switch v := v.(*SetVoteChoicesRequest_Choice); i { case 0: return &v.state @@ -19273,7 +19273,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[218].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[218].Exporter = func(v any, i int) any { switch v := v.(*TSpendPoliciesResponse_Policy); i { case 0: return &v.state @@ -19285,7 +19285,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[219].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[219].Exporter = func(v any, i int) any { switch v := v.(*TreasuryPoliciesResponse_Policy); i { case 0: return &v.state @@ -19297,7 +19297,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[220].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[220].Exporter = func(v any, i int) any { switch v := v.(*DecodedTransaction_Input); i { case 0: return &v.state @@ -19309,7 +19309,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[221].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[221].Exporter = func(v any, i int) any { switch v := v.(*DecodedTransaction_Output); i { case 0: return &v.state @@ -19321,7 +19321,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[222].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[222].Exporter = func(v any, i int) any { switch v := v.(*CommittedTicketsResponse_TicketAddress); i { case 0: return &v.state @@ -19333,7 +19333,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[223].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[223].Exporter = func(v any, i int) any { switch v := v.(*GetPeerInfoResponse_PeerInfo); i { case 0: return &v.state @@ -19345,7 +19345,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[224].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[224].Exporter = func(v any, i int) any { switch v := v.(*GetTrackedVSPTicketsResponse_Ticket); i { case 0: return &v.state @@ -19357,7 +19357,7 @@ func file_api_proto_init() { return nil } } - file_api_proto_msgTypes[225].Exporter = func(v interface{}, i int) interface{} { + file_api_proto_msgTypes[225].Exporter = func(v any, i int) any { switch v := v.(*GetTrackedVSPTicketsResponse_VSP); i { case 0: return &v.state diff --git a/rpc/walletrpc/api_grpc.pb.go b/rpc/walletrpc/api_grpc.pb.go index 98c2cefd7..e8b1e9eaa 100644 --- a/rpc/walletrpc/api_grpc.pb.go +++ b/rpc/walletrpc/api_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v5.28.0 // source: api.proto @@ -15,8 +15,12 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + VersionService_Version_FullMethodName = "/walletrpc.VersionService/Version" +) // VersionServiceClient is the client API for VersionService service. // @@ -34,8 +38,9 @@ func NewVersionServiceClient(cc grpc.ClientConnInterface) VersionServiceClient { } func (c *versionServiceClient) Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(VersionResponse) - err := c.cc.Invoke(ctx, "/walletrpc.VersionService/Version", in, out, opts...) + err := c.cc.Invoke(ctx, VersionService_Version_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -44,20 +49,24 @@ func (c *versionServiceClient) Version(ctx context.Context, in *VersionRequest, // VersionServiceServer is the server API for VersionService service. // All implementations must embed UnimplementedVersionServiceServer -// for forward compatibility +// for forward compatibility. type VersionServiceServer interface { Version(context.Context, *VersionRequest) (*VersionResponse, error) mustEmbedUnimplementedVersionServiceServer() } -// UnimplementedVersionServiceServer must be embedded to have forward compatible implementations. -type UnimplementedVersionServiceServer struct { -} +// UnimplementedVersionServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedVersionServiceServer struct{} func (UnimplementedVersionServiceServer) Version(context.Context, *VersionRequest) (*VersionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") } func (UnimplementedVersionServiceServer) mustEmbedUnimplementedVersionServiceServer() {} +func (UnimplementedVersionServiceServer) testEmbeddedByValue() {} // UnsafeVersionServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to VersionServiceServer will @@ -67,6 +76,13 @@ type UnsafeVersionServiceServer interface { } func RegisterVersionServiceServer(s grpc.ServiceRegistrar, srv VersionServiceServer) { + // If the following call pancis, it indicates UnimplementedVersionServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&VersionService_ServiceDesc, srv) } @@ -80,7 +96,7 @@ func _VersionService_Version_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.VersionService/Version", + FullMethod: VersionService_Version_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VersionServiceServer).Version(ctx, req.(*VersionRequest)) @@ -104,6 +120,76 @@ var VersionService_ServiceDesc = grpc.ServiceDesc{ Metadata: "api.proto", } +const ( + WalletService_Ping_FullMethodName = "/walletrpc.WalletService/Ping" + WalletService_Network_FullMethodName = "/walletrpc.WalletService/Network" + WalletService_CoinType_FullMethodName = "/walletrpc.WalletService/CoinType" + WalletService_AccountNumber_FullMethodName = "/walletrpc.WalletService/AccountNumber" + WalletService_Accounts_FullMethodName = "/walletrpc.WalletService/Accounts" + WalletService_Address_FullMethodName = "/walletrpc.WalletService/Address" + WalletService_Balance_FullMethodName = "/walletrpc.WalletService/Balance" + WalletService_GetAccountExtendedPubKey_FullMethodName = "/walletrpc.WalletService/GetAccountExtendedPubKey" + WalletService_GetAccountExtendedPrivKey_FullMethodName = "/walletrpc.WalletService/GetAccountExtendedPrivKey" + WalletService_GetTransaction_FullMethodName = "/walletrpc.WalletService/GetTransaction" + WalletService_GetTransactions_FullMethodName = "/walletrpc.WalletService/GetTransactions" + WalletService_GetTicket_FullMethodName = "/walletrpc.WalletService/GetTicket" + WalletService_GetTickets_FullMethodName = "/walletrpc.WalletService/GetTickets" + WalletService_TicketPrice_FullMethodName = "/walletrpc.WalletService/TicketPrice" + WalletService_StakeInfo_FullMethodName = "/walletrpc.WalletService/StakeInfo" + WalletService_BlockInfo_FullMethodName = "/walletrpc.WalletService/BlockInfo" + WalletService_BestBlock_FullMethodName = "/walletrpc.WalletService/BestBlock" + WalletService_Spender_FullMethodName = "/walletrpc.WalletService/Spender" + WalletService_GetCFilters_FullMethodName = "/walletrpc.WalletService/GetCFilters" + WalletService_GetPeerInfo_FullMethodName = "/walletrpc.WalletService/GetPeerInfo" + WalletService_DumpPrivateKey_FullMethodName = "/walletrpc.WalletService/DumpPrivateKey" + WalletService_BirthBlock_FullMethodName = "/walletrpc.WalletService/BirthBlock" + WalletService_TransactionNotifications_FullMethodName = "/walletrpc.WalletService/TransactionNotifications" + WalletService_AccountNotifications_FullMethodName = "/walletrpc.WalletService/AccountNotifications" + WalletService_ConfirmationNotifications_FullMethodName = "/walletrpc.WalletService/ConfirmationNotifications" + WalletService_ChangePassphrase_FullMethodName = "/walletrpc.WalletService/ChangePassphrase" + WalletService_RenameAccount_FullMethodName = "/walletrpc.WalletService/RenameAccount" + WalletService_Rescan_FullMethodName = "/walletrpc.WalletService/Rescan" + WalletService_NextAccount_FullMethodName = "/walletrpc.WalletService/NextAccount" + WalletService_NextAddress_FullMethodName = "/walletrpc.WalletService/NextAddress" + WalletService_ImportPrivateKey_FullMethodName = "/walletrpc.WalletService/ImportPrivateKey" + WalletService_ImportExtendedPublicKey_FullMethodName = "/walletrpc.WalletService/ImportExtendedPublicKey" + WalletService_ImportVotingAccountFromSeed_FullMethodName = "/walletrpc.WalletService/ImportVotingAccountFromSeed" + WalletService_ImportScript_FullMethodName = "/walletrpc.WalletService/ImportScript" + WalletService_FundTransaction_FullMethodName = "/walletrpc.WalletService/FundTransaction" + WalletService_UnspentOutputs_FullMethodName = "/walletrpc.WalletService/UnspentOutputs" + WalletService_ConstructTransaction_FullMethodName = "/walletrpc.WalletService/ConstructTransaction" + WalletService_SignTransaction_FullMethodName = "/walletrpc.WalletService/SignTransaction" + WalletService_SignTransactions_FullMethodName = "/walletrpc.WalletService/SignTransactions" + WalletService_CreateSignature_FullMethodName = "/walletrpc.WalletService/CreateSignature" + WalletService_PublishTransaction_FullMethodName = "/walletrpc.WalletService/PublishTransaction" + WalletService_PublishUnminedTransactions_FullMethodName = "/walletrpc.WalletService/PublishUnminedTransactions" + WalletService_PurchaseTickets_FullMethodName = "/walletrpc.WalletService/PurchaseTickets" + WalletService_RevokeTicket_FullMethodName = "/walletrpc.WalletService/RevokeTicket" + WalletService_RevokeTickets_FullMethodName = "/walletrpc.WalletService/RevokeTickets" + WalletService_LoadActiveDataFilters_FullMethodName = "/walletrpc.WalletService/LoadActiveDataFilters" + WalletService_SignMessage_FullMethodName = "/walletrpc.WalletService/SignMessage" + WalletService_SignMessages_FullMethodName = "/walletrpc.WalletService/SignMessages" + WalletService_ValidateAddress_FullMethodName = "/walletrpc.WalletService/ValidateAddress" + WalletService_CommittedTickets_FullMethodName = "/walletrpc.WalletService/CommittedTickets" + WalletService_SweepAccount_FullMethodName = "/walletrpc.WalletService/SweepAccount" + WalletService_AbandonTransaction_FullMethodName = "/walletrpc.WalletService/AbandonTransaction" + WalletService_SignHashes_FullMethodName = "/walletrpc.WalletService/SignHashes" + WalletService_GetCoinjoinOutputspByAcct_FullMethodName = "/walletrpc.WalletService/GetCoinjoinOutputspByAcct" + WalletService_SetAccountPassphrase_FullMethodName = "/walletrpc.WalletService/SetAccountPassphrase" + WalletService_UnlockAccount_FullMethodName = "/walletrpc.WalletService/UnlockAccount" + WalletService_LockAccount_FullMethodName = "/walletrpc.WalletService/LockAccount" + WalletService_UnlockWallet_FullMethodName = "/walletrpc.WalletService/UnlockWallet" + WalletService_LockWallet_FullMethodName = "/walletrpc.WalletService/LockWallet" + WalletService_AccountUnlocked_FullMethodName = "/walletrpc.WalletService/AccountUnlocked" + WalletService_SyncVSPFailedTickets_FullMethodName = "/walletrpc.WalletService/SyncVSPFailedTickets" + WalletService_GetVSPTicketsByFeeStatus_FullMethodName = "/walletrpc.WalletService/GetVSPTicketsByFeeStatus" + WalletService_ProcessManagedTickets_FullMethodName = "/walletrpc.WalletService/ProcessManagedTickets" + WalletService_ProcessUnmanagedTickets_FullMethodName = "/walletrpc.WalletService/ProcessUnmanagedTickets" + WalletService_SetVspdVoteChoices_FullMethodName = "/walletrpc.WalletService/SetVspdVoteChoices" + WalletService_GetTrackedVSPTickets_FullMethodName = "/walletrpc.WalletService/GetTrackedVSPTickets" + WalletService_DiscoverUsage_FullMethodName = "/walletrpc.WalletService/DiscoverUsage" +) + // WalletServiceClient is the client API for WalletService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -119,26 +205,26 @@ type WalletServiceClient interface { GetAccountExtendedPubKey(ctx context.Context, in *GetAccountExtendedPubKeyRequest, opts ...grpc.CallOption) (*GetAccountExtendedPubKeyResponse, error) GetAccountExtendedPrivKey(ctx context.Context, in *GetAccountExtendedPrivKeyRequest, opts ...grpc.CallOption) (*GetAccountExtendedPrivKeyResponse, error) GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*GetTransactionResponse, error) - GetTransactions(ctx context.Context, in *GetTransactionsRequest, opts ...grpc.CallOption) (WalletService_GetTransactionsClient, error) + GetTransactions(ctx context.Context, in *GetTransactionsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTransactionsResponse], error) GetTicket(ctx context.Context, in *GetTicketRequest, opts ...grpc.CallOption) (*GetTicketsResponse, error) - GetTickets(ctx context.Context, in *GetTicketsRequest, opts ...grpc.CallOption) (WalletService_GetTicketsClient, error) + GetTickets(ctx context.Context, in *GetTicketsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTicketsResponse], error) TicketPrice(ctx context.Context, in *TicketPriceRequest, opts ...grpc.CallOption) (*TicketPriceResponse, error) StakeInfo(ctx context.Context, in *StakeInfoRequest, opts ...grpc.CallOption) (*StakeInfoResponse, error) BlockInfo(ctx context.Context, in *BlockInfoRequest, opts ...grpc.CallOption) (*BlockInfoResponse, error) BestBlock(ctx context.Context, in *BestBlockRequest, opts ...grpc.CallOption) (*BestBlockResponse, error) Spender(ctx context.Context, in *SpenderRequest, opts ...grpc.CallOption) (*SpenderResponse, error) - GetCFilters(ctx context.Context, in *GetCFiltersRequest, opts ...grpc.CallOption) (WalletService_GetCFiltersClient, error) + GetCFilters(ctx context.Context, in *GetCFiltersRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetCFiltersResponse], error) GetPeerInfo(ctx context.Context, in *GetPeerInfoRequest, opts ...grpc.CallOption) (*GetPeerInfoResponse, error) DumpPrivateKey(ctx context.Context, in *DumpPrivateKeyRequest, opts ...grpc.CallOption) (*DumpPrivateKeyResponse, error) BirthBlock(ctx context.Context, in *BirthBlockRequest, opts ...grpc.CallOption) (*BirthBlockResponse, error) // Notifications - TransactionNotifications(ctx context.Context, in *TransactionNotificationsRequest, opts ...grpc.CallOption) (WalletService_TransactionNotificationsClient, error) - AccountNotifications(ctx context.Context, in *AccountNotificationsRequest, opts ...grpc.CallOption) (WalletService_AccountNotificationsClient, error) - ConfirmationNotifications(ctx context.Context, opts ...grpc.CallOption) (WalletService_ConfirmationNotificationsClient, error) + TransactionNotifications(ctx context.Context, in *TransactionNotificationsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TransactionNotificationsResponse], error) + AccountNotifications(ctx context.Context, in *AccountNotificationsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[AccountNotificationsResponse], error) + ConfirmationNotifications(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ConfirmationNotificationsRequest, ConfirmationNotificationsResponse], error) // Control ChangePassphrase(ctx context.Context, in *ChangePassphraseRequest, opts ...grpc.CallOption) (*ChangePassphraseResponse, error) RenameAccount(ctx context.Context, in *RenameAccountRequest, opts ...grpc.CallOption) (*RenameAccountResponse, error) - Rescan(ctx context.Context, in *RescanRequest, opts ...grpc.CallOption) (WalletService_RescanClient, error) + Rescan(ctx context.Context, in *RescanRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[RescanResponse], error) NextAccount(ctx context.Context, in *NextAccountRequest, opts ...grpc.CallOption) (*NextAccountResponse, error) NextAddress(ctx context.Context, in *NextAddressRequest, opts ...grpc.CallOption) (*NextAddressResponse, error) ImportPrivateKey(ctx context.Context, in *ImportPrivateKeyRequest, opts ...grpc.CallOption) (*ImportPrivateKeyResponse, error) @@ -146,7 +232,7 @@ type WalletServiceClient interface { ImportVotingAccountFromSeed(ctx context.Context, in *ImportVotingAccountFromSeedRequest, opts ...grpc.CallOption) (*ImportVotingAccountFromSeedResponse, error) ImportScript(ctx context.Context, in *ImportScriptRequest, opts ...grpc.CallOption) (*ImportScriptResponse, error) FundTransaction(ctx context.Context, in *FundTransactionRequest, opts ...grpc.CallOption) (*FundTransactionResponse, error) - UnspentOutputs(ctx context.Context, in *UnspentOutputsRequest, opts ...grpc.CallOption) (WalletService_UnspentOutputsClient, error) + UnspentOutputs(ctx context.Context, in *UnspentOutputsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[UnspentOutputResponse], error) ConstructTransaction(ctx context.Context, in *ConstructTransactionRequest, opts ...grpc.CallOption) (*ConstructTransactionResponse, error) SignTransaction(ctx context.Context, in *SignTransactionRequest, opts ...grpc.CallOption) (*SignTransactionResponse, error) SignTransactions(ctx context.Context, in *SignTransactionsRequest, opts ...grpc.CallOption) (*SignTransactionsResponse, error) @@ -189,8 +275,9 @@ func NewWalletServiceClient(cc grpc.ClientConnInterface) WalletServiceClient { } func (c *walletServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PingResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/Ping", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_Ping_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -198,8 +285,9 @@ func (c *walletServiceClient) Ping(ctx context.Context, in *PingRequest, opts .. } func (c *walletServiceClient) Network(ctx context.Context, in *NetworkRequest, opts ...grpc.CallOption) (*NetworkResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NetworkResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/Network", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_Network_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -207,8 +295,9 @@ func (c *walletServiceClient) Network(ctx context.Context, in *NetworkRequest, o } func (c *walletServiceClient) CoinType(ctx context.Context, in *CoinTypeRequest, opts ...grpc.CallOption) (*CoinTypeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CoinTypeResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/CoinType", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_CoinType_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -216,8 +305,9 @@ func (c *walletServiceClient) CoinType(ctx context.Context, in *CoinTypeRequest, } func (c *walletServiceClient) AccountNumber(ctx context.Context, in *AccountNumberRequest, opts ...grpc.CallOption) (*AccountNumberResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AccountNumberResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/AccountNumber", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_AccountNumber_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -225,8 +315,9 @@ func (c *walletServiceClient) AccountNumber(ctx context.Context, in *AccountNumb } func (c *walletServiceClient) Accounts(ctx context.Context, in *AccountsRequest, opts ...grpc.CallOption) (*AccountsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AccountsResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/Accounts", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_Accounts_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -234,8 +325,9 @@ func (c *walletServiceClient) Accounts(ctx context.Context, in *AccountsRequest, } func (c *walletServiceClient) Address(ctx context.Context, in *AddressRequest, opts ...grpc.CallOption) (*AddressResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AddressResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/Address", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_Address_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -243,8 +335,9 @@ func (c *walletServiceClient) Address(ctx context.Context, in *AddressRequest, o } func (c *walletServiceClient) Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BalanceResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/Balance", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_Balance_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -252,8 +345,9 @@ func (c *walletServiceClient) Balance(ctx context.Context, in *BalanceRequest, o } func (c *walletServiceClient) GetAccountExtendedPubKey(ctx context.Context, in *GetAccountExtendedPubKeyRequest, opts ...grpc.CallOption) (*GetAccountExtendedPubKeyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAccountExtendedPubKeyResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/GetAccountExtendedPubKey", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_GetAccountExtendedPubKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -261,8 +355,9 @@ func (c *walletServiceClient) GetAccountExtendedPubKey(ctx context.Context, in * } func (c *walletServiceClient) GetAccountExtendedPrivKey(ctx context.Context, in *GetAccountExtendedPrivKeyRequest, opts ...grpc.CallOption) (*GetAccountExtendedPrivKeyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAccountExtendedPrivKeyResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/GetAccountExtendedPrivKey", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_GetAccountExtendedPrivKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -270,20 +365,22 @@ func (c *walletServiceClient) GetAccountExtendedPrivKey(ctx context.Context, in } func (c *walletServiceClient) GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*GetTransactionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTransactionResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/GetTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_GetTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *walletServiceClient) GetTransactions(ctx context.Context, in *GetTransactionsRequest, opts ...grpc.CallOption) (WalletService_GetTransactionsClient, error) { - stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[0], "/walletrpc.WalletService/GetTransactions", opts...) +func (c *walletServiceClient) GetTransactions(ctx context.Context, in *GetTransactionsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTransactionsResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[0], WalletService_GetTransactions_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &walletServiceGetTransactionsClient{stream} + x := &grpc.GenericClientStream[GetTransactionsRequest, GetTransactionsResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -293,38 +390,26 @@ func (c *walletServiceClient) GetTransactions(ctx context.Context, in *GetTransa return x, nil } -type WalletService_GetTransactionsClient interface { - Recv() (*GetTransactionsResponse, error) - grpc.ClientStream -} - -type walletServiceGetTransactionsClient struct { - grpc.ClientStream -} - -func (x *walletServiceGetTransactionsClient) Recv() (*GetTransactionsResponse, error) { - m := new(GetTransactionsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_GetTransactionsClient = grpc.ServerStreamingClient[GetTransactionsResponse] func (c *walletServiceClient) GetTicket(ctx context.Context, in *GetTicketRequest, opts ...grpc.CallOption) (*GetTicketsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTicketsResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/GetTicket", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_GetTicket_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *walletServiceClient) GetTickets(ctx context.Context, in *GetTicketsRequest, opts ...grpc.CallOption) (WalletService_GetTicketsClient, error) { - stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[1], "/walletrpc.WalletService/GetTickets", opts...) +func (c *walletServiceClient) GetTickets(ctx context.Context, in *GetTicketsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTicketsResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[1], WalletService_GetTickets_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &walletServiceGetTicketsClient{stream} + x := &grpc.GenericClientStream[GetTicketsRequest, GetTicketsResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -334,26 +419,13 @@ func (c *walletServiceClient) GetTickets(ctx context.Context, in *GetTicketsRequ return x, nil } -type WalletService_GetTicketsClient interface { - Recv() (*GetTicketsResponse, error) - grpc.ClientStream -} - -type walletServiceGetTicketsClient struct { - grpc.ClientStream -} - -func (x *walletServiceGetTicketsClient) Recv() (*GetTicketsResponse, error) { - m := new(GetTicketsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_GetTicketsClient = grpc.ServerStreamingClient[GetTicketsResponse] func (c *walletServiceClient) TicketPrice(ctx context.Context, in *TicketPriceRequest, opts ...grpc.CallOption) (*TicketPriceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TicketPriceResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/TicketPrice", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_TicketPrice_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -361,8 +433,9 @@ func (c *walletServiceClient) TicketPrice(ctx context.Context, in *TicketPriceRe } func (c *walletServiceClient) StakeInfo(ctx context.Context, in *StakeInfoRequest, opts ...grpc.CallOption) (*StakeInfoResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StakeInfoResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/StakeInfo", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_StakeInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -370,8 +443,9 @@ func (c *walletServiceClient) StakeInfo(ctx context.Context, in *StakeInfoReques } func (c *walletServiceClient) BlockInfo(ctx context.Context, in *BlockInfoRequest, opts ...grpc.CallOption) (*BlockInfoResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BlockInfoResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/BlockInfo", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_BlockInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -379,8 +453,9 @@ func (c *walletServiceClient) BlockInfo(ctx context.Context, in *BlockInfoReques } func (c *walletServiceClient) BestBlock(ctx context.Context, in *BestBlockRequest, opts ...grpc.CallOption) (*BestBlockResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BestBlockResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/BestBlock", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_BestBlock_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -388,20 +463,22 @@ func (c *walletServiceClient) BestBlock(ctx context.Context, in *BestBlockReques } func (c *walletServiceClient) Spender(ctx context.Context, in *SpenderRequest, opts ...grpc.CallOption) (*SpenderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SpenderResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/Spender", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_Spender_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *walletServiceClient) GetCFilters(ctx context.Context, in *GetCFiltersRequest, opts ...grpc.CallOption) (WalletService_GetCFiltersClient, error) { - stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[2], "/walletrpc.WalletService/GetCFilters", opts...) +func (c *walletServiceClient) GetCFilters(ctx context.Context, in *GetCFiltersRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetCFiltersResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[2], WalletService_GetCFilters_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &walletServiceGetCFiltersClient{stream} + x := &grpc.GenericClientStream[GetCFiltersRequest, GetCFiltersResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -411,26 +488,13 @@ func (c *walletServiceClient) GetCFilters(ctx context.Context, in *GetCFiltersRe return x, nil } -type WalletService_GetCFiltersClient interface { - Recv() (*GetCFiltersResponse, error) - grpc.ClientStream -} - -type walletServiceGetCFiltersClient struct { - grpc.ClientStream -} - -func (x *walletServiceGetCFiltersClient) Recv() (*GetCFiltersResponse, error) { - m := new(GetCFiltersResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_GetCFiltersClient = grpc.ServerStreamingClient[GetCFiltersResponse] func (c *walletServiceClient) GetPeerInfo(ctx context.Context, in *GetPeerInfoRequest, opts ...grpc.CallOption) (*GetPeerInfoResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPeerInfoResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/GetPeerInfo", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_GetPeerInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -438,8 +502,9 @@ func (c *walletServiceClient) GetPeerInfo(ctx context.Context, in *GetPeerInfoRe } func (c *walletServiceClient) DumpPrivateKey(ctx context.Context, in *DumpPrivateKeyRequest, opts ...grpc.CallOption) (*DumpPrivateKeyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DumpPrivateKeyResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/DumpPrivateKey", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_DumpPrivateKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -447,20 +512,22 @@ func (c *walletServiceClient) DumpPrivateKey(ctx context.Context, in *DumpPrivat } func (c *walletServiceClient) BirthBlock(ctx context.Context, in *BirthBlockRequest, opts ...grpc.CallOption) (*BirthBlockResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BirthBlockResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/BirthBlock", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_BirthBlock_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *walletServiceClient) TransactionNotifications(ctx context.Context, in *TransactionNotificationsRequest, opts ...grpc.CallOption) (WalletService_TransactionNotificationsClient, error) { - stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[3], "/walletrpc.WalletService/TransactionNotifications", opts...) +func (c *walletServiceClient) TransactionNotifications(ctx context.Context, in *TransactionNotificationsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TransactionNotificationsResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[3], WalletService_TransactionNotifications_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &walletServiceTransactionNotificationsClient{stream} + x := &grpc.GenericClientStream[TransactionNotificationsRequest, TransactionNotificationsResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -470,29 +537,16 @@ func (c *walletServiceClient) TransactionNotifications(ctx context.Context, in * return x, nil } -type WalletService_TransactionNotificationsClient interface { - Recv() (*TransactionNotificationsResponse, error) - grpc.ClientStream -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_TransactionNotificationsClient = grpc.ServerStreamingClient[TransactionNotificationsResponse] -type walletServiceTransactionNotificationsClient struct { - grpc.ClientStream -} - -func (x *walletServiceTransactionNotificationsClient) Recv() (*TransactionNotificationsResponse, error) { - m := new(TransactionNotificationsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *walletServiceClient) AccountNotifications(ctx context.Context, in *AccountNotificationsRequest, opts ...grpc.CallOption) (WalletService_AccountNotificationsClient, error) { - stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[4], "/walletrpc.WalletService/AccountNotifications", opts...) +func (c *walletServiceClient) AccountNotifications(ctx context.Context, in *AccountNotificationsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[AccountNotificationsResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[4], WalletService_AccountNotifications_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &walletServiceAccountNotificationsClient{stream} + x := &grpc.GenericClientStream[AccountNotificationsRequest, AccountNotificationsResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -502,57 +556,26 @@ func (c *walletServiceClient) AccountNotifications(ctx context.Context, in *Acco return x, nil } -type WalletService_AccountNotificationsClient interface { - Recv() (*AccountNotificationsResponse, error) - grpc.ClientStream -} - -type walletServiceAccountNotificationsClient struct { - grpc.ClientStream -} - -func (x *walletServiceAccountNotificationsClient) Recv() (*AccountNotificationsResponse, error) { - m := new(AccountNotificationsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_AccountNotificationsClient = grpc.ServerStreamingClient[AccountNotificationsResponse] -func (c *walletServiceClient) ConfirmationNotifications(ctx context.Context, opts ...grpc.CallOption) (WalletService_ConfirmationNotificationsClient, error) { - stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[5], "/walletrpc.WalletService/ConfirmationNotifications", opts...) +func (c *walletServiceClient) ConfirmationNotifications(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ConfirmationNotificationsRequest, ConfirmationNotificationsResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[5], WalletService_ConfirmationNotifications_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &walletServiceConfirmationNotificationsClient{stream} + x := &grpc.GenericClientStream[ConfirmationNotificationsRequest, ConfirmationNotificationsResponse]{ClientStream: stream} return x, nil } -type WalletService_ConfirmationNotificationsClient interface { - Send(*ConfirmationNotificationsRequest) error - Recv() (*ConfirmationNotificationsResponse, error) - grpc.ClientStream -} - -type walletServiceConfirmationNotificationsClient struct { - grpc.ClientStream -} - -func (x *walletServiceConfirmationNotificationsClient) Send(m *ConfirmationNotificationsRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *walletServiceConfirmationNotificationsClient) Recv() (*ConfirmationNotificationsResponse, error) { - m := new(ConfirmationNotificationsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_ConfirmationNotificationsClient = grpc.BidiStreamingClient[ConfirmationNotificationsRequest, ConfirmationNotificationsResponse] func (c *walletServiceClient) ChangePassphrase(ctx context.Context, in *ChangePassphraseRequest, opts ...grpc.CallOption) (*ChangePassphraseResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ChangePassphraseResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/ChangePassphrase", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_ChangePassphrase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -560,20 +583,22 @@ func (c *walletServiceClient) ChangePassphrase(ctx context.Context, in *ChangePa } func (c *walletServiceClient) RenameAccount(ctx context.Context, in *RenameAccountRequest, opts ...grpc.CallOption) (*RenameAccountResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RenameAccountResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/RenameAccount", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_RenameAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *walletServiceClient) Rescan(ctx context.Context, in *RescanRequest, opts ...grpc.CallOption) (WalletService_RescanClient, error) { - stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[6], "/walletrpc.WalletService/Rescan", opts...) +func (c *walletServiceClient) Rescan(ctx context.Context, in *RescanRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[RescanResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[6], WalletService_Rescan_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &walletServiceRescanClient{stream} + x := &grpc.GenericClientStream[RescanRequest, RescanResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -583,26 +608,13 @@ func (c *walletServiceClient) Rescan(ctx context.Context, in *RescanRequest, opt return x, nil } -type WalletService_RescanClient interface { - Recv() (*RescanResponse, error) - grpc.ClientStream -} - -type walletServiceRescanClient struct { - grpc.ClientStream -} - -func (x *walletServiceRescanClient) Recv() (*RescanResponse, error) { - m := new(RescanResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_RescanClient = grpc.ServerStreamingClient[RescanResponse] func (c *walletServiceClient) NextAccount(ctx context.Context, in *NextAccountRequest, opts ...grpc.CallOption) (*NextAccountResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NextAccountResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/NextAccount", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_NextAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -610,8 +622,9 @@ func (c *walletServiceClient) NextAccount(ctx context.Context, in *NextAccountRe } func (c *walletServiceClient) NextAddress(ctx context.Context, in *NextAddressRequest, opts ...grpc.CallOption) (*NextAddressResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NextAddressResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/NextAddress", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_NextAddress_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -619,8 +632,9 @@ func (c *walletServiceClient) NextAddress(ctx context.Context, in *NextAddressRe } func (c *walletServiceClient) ImportPrivateKey(ctx context.Context, in *ImportPrivateKeyRequest, opts ...grpc.CallOption) (*ImportPrivateKeyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ImportPrivateKeyResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/ImportPrivateKey", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_ImportPrivateKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -628,8 +642,9 @@ func (c *walletServiceClient) ImportPrivateKey(ctx context.Context, in *ImportPr } func (c *walletServiceClient) ImportExtendedPublicKey(ctx context.Context, in *ImportExtendedPublicKeyRequest, opts ...grpc.CallOption) (*ImportExtendedPublicKeyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ImportExtendedPublicKeyResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/ImportExtendedPublicKey", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_ImportExtendedPublicKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -637,8 +652,9 @@ func (c *walletServiceClient) ImportExtendedPublicKey(ctx context.Context, in *I } func (c *walletServiceClient) ImportVotingAccountFromSeed(ctx context.Context, in *ImportVotingAccountFromSeedRequest, opts ...grpc.CallOption) (*ImportVotingAccountFromSeedResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ImportVotingAccountFromSeedResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/ImportVotingAccountFromSeed", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_ImportVotingAccountFromSeed_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -646,8 +662,9 @@ func (c *walletServiceClient) ImportVotingAccountFromSeed(ctx context.Context, i } func (c *walletServiceClient) ImportScript(ctx context.Context, in *ImportScriptRequest, opts ...grpc.CallOption) (*ImportScriptResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ImportScriptResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/ImportScript", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_ImportScript_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -655,20 +672,22 @@ func (c *walletServiceClient) ImportScript(ctx context.Context, in *ImportScript } func (c *walletServiceClient) FundTransaction(ctx context.Context, in *FundTransactionRequest, opts ...grpc.CallOption) (*FundTransactionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FundTransactionResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/FundTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_FundTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *walletServiceClient) UnspentOutputs(ctx context.Context, in *UnspentOutputsRequest, opts ...grpc.CallOption) (WalletService_UnspentOutputsClient, error) { - stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[7], "/walletrpc.WalletService/UnspentOutputs", opts...) +func (c *walletServiceClient) UnspentOutputs(ctx context.Context, in *UnspentOutputsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[UnspentOutputResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &WalletService_ServiceDesc.Streams[7], WalletService_UnspentOutputs_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &walletServiceUnspentOutputsClient{stream} + x := &grpc.GenericClientStream[UnspentOutputsRequest, UnspentOutputResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -678,26 +697,13 @@ func (c *walletServiceClient) UnspentOutputs(ctx context.Context, in *UnspentOut return x, nil } -type WalletService_UnspentOutputsClient interface { - Recv() (*UnspentOutputResponse, error) - grpc.ClientStream -} - -type walletServiceUnspentOutputsClient struct { - grpc.ClientStream -} - -func (x *walletServiceUnspentOutputsClient) Recv() (*UnspentOutputResponse, error) { - m := new(UnspentOutputResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_UnspentOutputsClient = grpc.ServerStreamingClient[UnspentOutputResponse] func (c *walletServiceClient) ConstructTransaction(ctx context.Context, in *ConstructTransactionRequest, opts ...grpc.CallOption) (*ConstructTransactionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ConstructTransactionResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/ConstructTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_ConstructTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -705,8 +711,9 @@ func (c *walletServiceClient) ConstructTransaction(ctx context.Context, in *Cons } func (c *walletServiceClient) SignTransaction(ctx context.Context, in *SignTransactionRequest, opts ...grpc.CallOption) (*SignTransactionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SignTransactionResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/SignTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_SignTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -714,8 +721,9 @@ func (c *walletServiceClient) SignTransaction(ctx context.Context, in *SignTrans } func (c *walletServiceClient) SignTransactions(ctx context.Context, in *SignTransactionsRequest, opts ...grpc.CallOption) (*SignTransactionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SignTransactionsResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/SignTransactions", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_SignTransactions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -723,8 +731,9 @@ func (c *walletServiceClient) SignTransactions(ctx context.Context, in *SignTran } func (c *walletServiceClient) CreateSignature(ctx context.Context, in *CreateSignatureRequest, opts ...grpc.CallOption) (*CreateSignatureResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateSignatureResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/CreateSignature", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_CreateSignature_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -732,8 +741,9 @@ func (c *walletServiceClient) CreateSignature(ctx context.Context, in *CreateSig } func (c *walletServiceClient) PublishTransaction(ctx context.Context, in *PublishTransactionRequest, opts ...grpc.CallOption) (*PublishTransactionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PublishTransactionResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/PublishTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_PublishTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -741,8 +751,9 @@ func (c *walletServiceClient) PublishTransaction(ctx context.Context, in *Publis } func (c *walletServiceClient) PublishUnminedTransactions(ctx context.Context, in *PublishUnminedTransactionsRequest, opts ...grpc.CallOption) (*PublishUnminedTransactionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PublishUnminedTransactionsResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/PublishUnminedTransactions", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_PublishUnminedTransactions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -750,8 +761,9 @@ func (c *walletServiceClient) PublishUnminedTransactions(ctx context.Context, in } func (c *walletServiceClient) PurchaseTickets(ctx context.Context, in *PurchaseTicketsRequest, opts ...grpc.CallOption) (*PurchaseTicketsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PurchaseTicketsResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/PurchaseTickets", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_PurchaseTickets_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -759,8 +771,9 @@ func (c *walletServiceClient) PurchaseTickets(ctx context.Context, in *PurchaseT } func (c *walletServiceClient) RevokeTicket(ctx context.Context, in *RevokeTicketRequest, opts ...grpc.CallOption) (*RevokeTicketResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RevokeTicketResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/RevokeTicket", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_RevokeTicket_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -768,8 +781,9 @@ func (c *walletServiceClient) RevokeTicket(ctx context.Context, in *RevokeTicket } func (c *walletServiceClient) RevokeTickets(ctx context.Context, in *RevokeTicketsRequest, opts ...grpc.CallOption) (*RevokeTicketsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RevokeTicketsResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/RevokeTickets", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_RevokeTickets_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -777,8 +791,9 @@ func (c *walletServiceClient) RevokeTickets(ctx context.Context, in *RevokeTicke } func (c *walletServiceClient) LoadActiveDataFilters(ctx context.Context, in *LoadActiveDataFiltersRequest, opts ...grpc.CallOption) (*LoadActiveDataFiltersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LoadActiveDataFiltersResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/LoadActiveDataFilters", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_LoadActiveDataFilters_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -786,8 +801,9 @@ func (c *walletServiceClient) LoadActiveDataFilters(ctx context.Context, in *Loa } func (c *walletServiceClient) SignMessage(ctx context.Context, in *SignMessageRequest, opts ...grpc.CallOption) (*SignMessageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SignMessageResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/SignMessage", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_SignMessage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -795,8 +811,9 @@ func (c *walletServiceClient) SignMessage(ctx context.Context, in *SignMessageRe } func (c *walletServiceClient) SignMessages(ctx context.Context, in *SignMessagesRequest, opts ...grpc.CallOption) (*SignMessagesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SignMessagesResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/SignMessages", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_SignMessages_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -804,8 +821,9 @@ func (c *walletServiceClient) SignMessages(ctx context.Context, in *SignMessages } func (c *walletServiceClient) ValidateAddress(ctx context.Context, in *ValidateAddressRequest, opts ...grpc.CallOption) (*ValidateAddressResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ValidateAddressResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/ValidateAddress", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_ValidateAddress_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -813,8 +831,9 @@ func (c *walletServiceClient) ValidateAddress(ctx context.Context, in *ValidateA } func (c *walletServiceClient) CommittedTickets(ctx context.Context, in *CommittedTicketsRequest, opts ...grpc.CallOption) (*CommittedTicketsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommittedTicketsResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/CommittedTickets", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_CommittedTickets_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -822,8 +841,9 @@ func (c *walletServiceClient) CommittedTickets(ctx context.Context, in *Committe } func (c *walletServiceClient) SweepAccount(ctx context.Context, in *SweepAccountRequest, opts ...grpc.CallOption) (*SweepAccountResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SweepAccountResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/SweepAccount", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_SweepAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -831,8 +851,9 @@ func (c *walletServiceClient) SweepAccount(ctx context.Context, in *SweepAccount } func (c *walletServiceClient) AbandonTransaction(ctx context.Context, in *AbandonTransactionRequest, opts ...grpc.CallOption) (*AbandonTransactionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AbandonTransactionResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/AbandonTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_AbandonTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -840,8 +861,9 @@ func (c *walletServiceClient) AbandonTransaction(ctx context.Context, in *Abando } func (c *walletServiceClient) SignHashes(ctx context.Context, in *SignHashesRequest, opts ...grpc.CallOption) (*SignHashesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SignHashesResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/SignHashes", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_SignHashes_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -849,8 +871,9 @@ func (c *walletServiceClient) SignHashes(ctx context.Context, in *SignHashesRequ } func (c *walletServiceClient) GetCoinjoinOutputspByAcct(ctx context.Context, in *GetCoinjoinOutputspByAcctRequest, opts ...grpc.CallOption) (*GetCoinjoinOutputspByAcctResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCoinjoinOutputspByAcctResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/GetCoinjoinOutputspByAcct", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_GetCoinjoinOutputspByAcct_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -858,8 +881,9 @@ func (c *walletServiceClient) GetCoinjoinOutputspByAcct(ctx context.Context, in } func (c *walletServiceClient) SetAccountPassphrase(ctx context.Context, in *SetAccountPassphraseRequest, opts ...grpc.CallOption) (*SetAccountPassphraseResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetAccountPassphraseResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/SetAccountPassphrase", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_SetAccountPassphrase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -867,8 +891,9 @@ func (c *walletServiceClient) SetAccountPassphrase(ctx context.Context, in *SetA } func (c *walletServiceClient) UnlockAccount(ctx context.Context, in *UnlockAccountRequest, opts ...grpc.CallOption) (*UnlockAccountResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UnlockAccountResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/UnlockAccount", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_UnlockAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -876,8 +901,9 @@ func (c *walletServiceClient) UnlockAccount(ctx context.Context, in *UnlockAccou } func (c *walletServiceClient) LockAccount(ctx context.Context, in *LockAccountRequest, opts ...grpc.CallOption) (*LockAccountResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LockAccountResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/LockAccount", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_LockAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -885,8 +911,9 @@ func (c *walletServiceClient) LockAccount(ctx context.Context, in *LockAccountRe } func (c *walletServiceClient) UnlockWallet(ctx context.Context, in *UnlockWalletRequest, opts ...grpc.CallOption) (*UnlockWalletResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UnlockWalletResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/UnlockWallet", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_UnlockWallet_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -894,8 +921,9 @@ func (c *walletServiceClient) UnlockWallet(ctx context.Context, in *UnlockWallet } func (c *walletServiceClient) LockWallet(ctx context.Context, in *LockWalletRequest, opts ...grpc.CallOption) (*LockWalletResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LockWalletResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/LockWallet", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_LockWallet_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -903,8 +931,9 @@ func (c *walletServiceClient) LockWallet(ctx context.Context, in *LockWalletRequ } func (c *walletServiceClient) AccountUnlocked(ctx context.Context, in *AccountUnlockedRequest, opts ...grpc.CallOption) (*AccountUnlockedResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AccountUnlockedResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/AccountUnlocked", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_AccountUnlocked_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -912,8 +941,9 @@ func (c *walletServiceClient) AccountUnlocked(ctx context.Context, in *AccountUn } func (c *walletServiceClient) SyncVSPFailedTickets(ctx context.Context, in *SyncVSPTicketsRequest, opts ...grpc.CallOption) (*SyncVSPTicketsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SyncVSPTicketsResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/SyncVSPFailedTickets", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_SyncVSPFailedTickets_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -921,8 +951,9 @@ func (c *walletServiceClient) SyncVSPFailedTickets(ctx context.Context, in *Sync } func (c *walletServiceClient) GetVSPTicketsByFeeStatus(ctx context.Context, in *GetVSPTicketsByFeeStatusRequest, opts ...grpc.CallOption) (*GetVSPTicketsByFeeStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetVSPTicketsByFeeStatusResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/GetVSPTicketsByFeeStatus", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_GetVSPTicketsByFeeStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -930,8 +961,9 @@ func (c *walletServiceClient) GetVSPTicketsByFeeStatus(ctx context.Context, in * } func (c *walletServiceClient) ProcessManagedTickets(ctx context.Context, in *ProcessManagedTicketsRequest, opts ...grpc.CallOption) (*ProcessManagedTicketsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ProcessManagedTicketsResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/ProcessManagedTickets", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_ProcessManagedTickets_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -939,8 +971,9 @@ func (c *walletServiceClient) ProcessManagedTickets(ctx context.Context, in *Pro } func (c *walletServiceClient) ProcessUnmanagedTickets(ctx context.Context, in *ProcessUnmanagedTicketsRequest, opts ...grpc.CallOption) (*ProcessUnmanagedTicketsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ProcessUnmanagedTicketsResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/ProcessUnmanagedTickets", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_ProcessUnmanagedTickets_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -948,8 +981,9 @@ func (c *walletServiceClient) ProcessUnmanagedTickets(ctx context.Context, in *P } func (c *walletServiceClient) SetVspdVoteChoices(ctx context.Context, in *SetVspdVoteChoicesRequest, opts ...grpc.CallOption) (*SetVspdVoteChoicesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetVspdVoteChoicesResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/SetVspdVoteChoices", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_SetVspdVoteChoices_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -957,8 +991,9 @@ func (c *walletServiceClient) SetVspdVoteChoices(ctx context.Context, in *SetVsp } func (c *walletServiceClient) GetTrackedVSPTickets(ctx context.Context, in *GetTrackedVSPTicketsRequest, opts ...grpc.CallOption) (*GetTrackedVSPTicketsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTrackedVSPTicketsResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/GetTrackedVSPTickets", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_GetTrackedVSPTickets_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -966,8 +1001,9 @@ func (c *walletServiceClient) GetTrackedVSPTickets(ctx context.Context, in *GetT } func (c *walletServiceClient) DiscoverUsage(ctx context.Context, in *DiscoverUsageRequest, opts ...grpc.CallOption) (*DiscoverUsageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DiscoverUsageResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletService/DiscoverUsage", in, out, opts...) + err := c.cc.Invoke(ctx, WalletService_DiscoverUsage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -976,7 +1012,7 @@ func (c *walletServiceClient) DiscoverUsage(ctx context.Context, in *DiscoverUsa // WalletServiceServer is the server API for WalletService service. // All implementations must embed UnimplementedWalletServiceServer -// for forward compatibility +// for forward compatibility. type WalletServiceServer interface { // Queries Ping(context.Context, *PingRequest) (*PingResponse, error) @@ -989,26 +1025,26 @@ type WalletServiceServer interface { GetAccountExtendedPubKey(context.Context, *GetAccountExtendedPubKeyRequest) (*GetAccountExtendedPubKeyResponse, error) GetAccountExtendedPrivKey(context.Context, *GetAccountExtendedPrivKeyRequest) (*GetAccountExtendedPrivKeyResponse, error) GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionResponse, error) - GetTransactions(*GetTransactionsRequest, WalletService_GetTransactionsServer) error + GetTransactions(*GetTransactionsRequest, grpc.ServerStreamingServer[GetTransactionsResponse]) error GetTicket(context.Context, *GetTicketRequest) (*GetTicketsResponse, error) - GetTickets(*GetTicketsRequest, WalletService_GetTicketsServer) error + GetTickets(*GetTicketsRequest, grpc.ServerStreamingServer[GetTicketsResponse]) error TicketPrice(context.Context, *TicketPriceRequest) (*TicketPriceResponse, error) StakeInfo(context.Context, *StakeInfoRequest) (*StakeInfoResponse, error) BlockInfo(context.Context, *BlockInfoRequest) (*BlockInfoResponse, error) BestBlock(context.Context, *BestBlockRequest) (*BestBlockResponse, error) Spender(context.Context, *SpenderRequest) (*SpenderResponse, error) - GetCFilters(*GetCFiltersRequest, WalletService_GetCFiltersServer) error + GetCFilters(*GetCFiltersRequest, grpc.ServerStreamingServer[GetCFiltersResponse]) error GetPeerInfo(context.Context, *GetPeerInfoRequest) (*GetPeerInfoResponse, error) DumpPrivateKey(context.Context, *DumpPrivateKeyRequest) (*DumpPrivateKeyResponse, error) BirthBlock(context.Context, *BirthBlockRequest) (*BirthBlockResponse, error) // Notifications - TransactionNotifications(*TransactionNotificationsRequest, WalletService_TransactionNotificationsServer) error - AccountNotifications(*AccountNotificationsRequest, WalletService_AccountNotificationsServer) error - ConfirmationNotifications(WalletService_ConfirmationNotificationsServer) error + TransactionNotifications(*TransactionNotificationsRequest, grpc.ServerStreamingServer[TransactionNotificationsResponse]) error + AccountNotifications(*AccountNotificationsRequest, grpc.ServerStreamingServer[AccountNotificationsResponse]) error + ConfirmationNotifications(grpc.BidiStreamingServer[ConfirmationNotificationsRequest, ConfirmationNotificationsResponse]) error // Control ChangePassphrase(context.Context, *ChangePassphraseRequest) (*ChangePassphraseResponse, error) RenameAccount(context.Context, *RenameAccountRequest) (*RenameAccountResponse, error) - Rescan(*RescanRequest, WalletService_RescanServer) error + Rescan(*RescanRequest, grpc.ServerStreamingServer[RescanResponse]) error NextAccount(context.Context, *NextAccountRequest) (*NextAccountResponse, error) NextAddress(context.Context, *NextAddressRequest) (*NextAddressResponse, error) ImportPrivateKey(context.Context, *ImportPrivateKeyRequest) (*ImportPrivateKeyResponse, error) @@ -1016,7 +1052,7 @@ type WalletServiceServer interface { ImportVotingAccountFromSeed(context.Context, *ImportVotingAccountFromSeedRequest) (*ImportVotingAccountFromSeedResponse, error) ImportScript(context.Context, *ImportScriptRequest) (*ImportScriptResponse, error) FundTransaction(context.Context, *FundTransactionRequest) (*FundTransactionResponse, error) - UnspentOutputs(*UnspentOutputsRequest, WalletService_UnspentOutputsServer) error + UnspentOutputs(*UnspentOutputsRequest, grpc.ServerStreamingServer[UnspentOutputResponse]) error ConstructTransaction(context.Context, *ConstructTransactionRequest) (*ConstructTransactionResponse, error) SignTransaction(context.Context, *SignTransactionRequest) (*SignTransactionResponse, error) SignTransactions(context.Context, *SignTransactionsRequest) (*SignTransactionsResponse, error) @@ -1051,9 +1087,12 @@ type WalletServiceServer interface { mustEmbedUnimplementedWalletServiceServer() } -// UnimplementedWalletServiceServer must be embedded to have forward compatible implementations. -type UnimplementedWalletServiceServer struct { -} +// UnimplementedWalletServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedWalletServiceServer struct{} func (UnimplementedWalletServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented") @@ -1085,13 +1124,13 @@ func (UnimplementedWalletServiceServer) GetAccountExtendedPrivKey(context.Contex func (UnimplementedWalletServiceServer) GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTransaction not implemented") } -func (UnimplementedWalletServiceServer) GetTransactions(*GetTransactionsRequest, WalletService_GetTransactionsServer) error { +func (UnimplementedWalletServiceServer) GetTransactions(*GetTransactionsRequest, grpc.ServerStreamingServer[GetTransactionsResponse]) error { return status.Errorf(codes.Unimplemented, "method GetTransactions not implemented") } func (UnimplementedWalletServiceServer) GetTicket(context.Context, *GetTicketRequest) (*GetTicketsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTicket not implemented") } -func (UnimplementedWalletServiceServer) GetTickets(*GetTicketsRequest, WalletService_GetTicketsServer) error { +func (UnimplementedWalletServiceServer) GetTickets(*GetTicketsRequest, grpc.ServerStreamingServer[GetTicketsResponse]) error { return status.Errorf(codes.Unimplemented, "method GetTickets not implemented") } func (UnimplementedWalletServiceServer) TicketPrice(context.Context, *TicketPriceRequest) (*TicketPriceResponse, error) { @@ -1109,7 +1148,7 @@ func (UnimplementedWalletServiceServer) BestBlock(context.Context, *BestBlockReq func (UnimplementedWalletServiceServer) Spender(context.Context, *SpenderRequest) (*SpenderResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Spender not implemented") } -func (UnimplementedWalletServiceServer) GetCFilters(*GetCFiltersRequest, WalletService_GetCFiltersServer) error { +func (UnimplementedWalletServiceServer) GetCFilters(*GetCFiltersRequest, grpc.ServerStreamingServer[GetCFiltersResponse]) error { return status.Errorf(codes.Unimplemented, "method GetCFilters not implemented") } func (UnimplementedWalletServiceServer) GetPeerInfo(context.Context, *GetPeerInfoRequest) (*GetPeerInfoResponse, error) { @@ -1121,13 +1160,13 @@ func (UnimplementedWalletServiceServer) DumpPrivateKey(context.Context, *DumpPri func (UnimplementedWalletServiceServer) BirthBlock(context.Context, *BirthBlockRequest) (*BirthBlockResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method BirthBlock not implemented") } -func (UnimplementedWalletServiceServer) TransactionNotifications(*TransactionNotificationsRequest, WalletService_TransactionNotificationsServer) error { +func (UnimplementedWalletServiceServer) TransactionNotifications(*TransactionNotificationsRequest, grpc.ServerStreamingServer[TransactionNotificationsResponse]) error { return status.Errorf(codes.Unimplemented, "method TransactionNotifications not implemented") } -func (UnimplementedWalletServiceServer) AccountNotifications(*AccountNotificationsRequest, WalletService_AccountNotificationsServer) error { +func (UnimplementedWalletServiceServer) AccountNotifications(*AccountNotificationsRequest, grpc.ServerStreamingServer[AccountNotificationsResponse]) error { return status.Errorf(codes.Unimplemented, "method AccountNotifications not implemented") } -func (UnimplementedWalletServiceServer) ConfirmationNotifications(WalletService_ConfirmationNotificationsServer) error { +func (UnimplementedWalletServiceServer) ConfirmationNotifications(grpc.BidiStreamingServer[ConfirmationNotificationsRequest, ConfirmationNotificationsResponse]) error { return status.Errorf(codes.Unimplemented, "method ConfirmationNotifications not implemented") } func (UnimplementedWalletServiceServer) ChangePassphrase(context.Context, *ChangePassphraseRequest) (*ChangePassphraseResponse, error) { @@ -1136,7 +1175,7 @@ func (UnimplementedWalletServiceServer) ChangePassphrase(context.Context, *Chang func (UnimplementedWalletServiceServer) RenameAccount(context.Context, *RenameAccountRequest) (*RenameAccountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RenameAccount not implemented") } -func (UnimplementedWalletServiceServer) Rescan(*RescanRequest, WalletService_RescanServer) error { +func (UnimplementedWalletServiceServer) Rescan(*RescanRequest, grpc.ServerStreamingServer[RescanResponse]) error { return status.Errorf(codes.Unimplemented, "method Rescan not implemented") } func (UnimplementedWalletServiceServer) NextAccount(context.Context, *NextAccountRequest) (*NextAccountResponse, error) { @@ -1160,7 +1199,7 @@ func (UnimplementedWalletServiceServer) ImportScript(context.Context, *ImportScr func (UnimplementedWalletServiceServer) FundTransaction(context.Context, *FundTransactionRequest) (*FundTransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FundTransaction not implemented") } -func (UnimplementedWalletServiceServer) UnspentOutputs(*UnspentOutputsRequest, WalletService_UnspentOutputsServer) error { +func (UnimplementedWalletServiceServer) UnspentOutputs(*UnspentOutputsRequest, grpc.ServerStreamingServer[UnspentOutputResponse]) error { return status.Errorf(codes.Unimplemented, "method UnspentOutputs not implemented") } func (UnimplementedWalletServiceServer) ConstructTransaction(context.Context, *ConstructTransactionRequest) (*ConstructTransactionResponse, error) { @@ -1257,6 +1296,7 @@ func (UnimplementedWalletServiceServer) DiscoverUsage(context.Context, *Discover return nil, status.Errorf(codes.Unimplemented, "method DiscoverUsage not implemented") } func (UnimplementedWalletServiceServer) mustEmbedUnimplementedWalletServiceServer() {} +func (UnimplementedWalletServiceServer) testEmbeddedByValue() {} // UnsafeWalletServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to WalletServiceServer will @@ -1266,6 +1306,13 @@ type UnsafeWalletServiceServer interface { } func RegisterWalletServiceServer(s grpc.ServiceRegistrar, srv WalletServiceServer) { + // If the following call pancis, it indicates UnimplementedWalletServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&WalletService_ServiceDesc, srv) } @@ -1279,7 +1326,7 @@ func _WalletService_Ping_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/Ping", + FullMethod: WalletService_Ping_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).Ping(ctx, req.(*PingRequest)) @@ -1297,7 +1344,7 @@ func _WalletService_Network_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/Network", + FullMethod: WalletService_Network_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).Network(ctx, req.(*NetworkRequest)) @@ -1315,7 +1362,7 @@ func _WalletService_CoinType_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/CoinType", + FullMethod: WalletService_CoinType_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).CoinType(ctx, req.(*CoinTypeRequest)) @@ -1333,7 +1380,7 @@ func _WalletService_AccountNumber_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/AccountNumber", + FullMethod: WalletService_AccountNumber_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).AccountNumber(ctx, req.(*AccountNumberRequest)) @@ -1351,7 +1398,7 @@ func _WalletService_Accounts_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/Accounts", + FullMethod: WalletService_Accounts_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).Accounts(ctx, req.(*AccountsRequest)) @@ -1369,7 +1416,7 @@ func _WalletService_Address_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/Address", + FullMethod: WalletService_Address_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).Address(ctx, req.(*AddressRequest)) @@ -1387,7 +1434,7 @@ func _WalletService_Balance_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/Balance", + FullMethod: WalletService_Balance_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).Balance(ctx, req.(*BalanceRequest)) @@ -1405,7 +1452,7 @@ func _WalletService_GetAccountExtendedPubKey_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/GetAccountExtendedPubKey", + FullMethod: WalletService_GetAccountExtendedPubKey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).GetAccountExtendedPubKey(ctx, req.(*GetAccountExtendedPubKeyRequest)) @@ -1423,7 +1470,7 @@ func _WalletService_GetAccountExtendedPrivKey_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/GetAccountExtendedPrivKey", + FullMethod: WalletService_GetAccountExtendedPrivKey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).GetAccountExtendedPrivKey(ctx, req.(*GetAccountExtendedPrivKeyRequest)) @@ -1441,7 +1488,7 @@ func _WalletService_GetTransaction_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/GetTransaction", + FullMethod: WalletService_GetTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).GetTransaction(ctx, req.(*GetTransactionRequest)) @@ -1454,21 +1501,11 @@ func _WalletService_GetTransactions_Handler(srv interface{}, stream grpc.ServerS if err := stream.RecvMsg(m); err != nil { return err } - return srv.(WalletServiceServer).GetTransactions(m, &walletServiceGetTransactionsServer{stream}) + return srv.(WalletServiceServer).GetTransactions(m, &grpc.GenericServerStream[GetTransactionsRequest, GetTransactionsResponse]{ServerStream: stream}) } -type WalletService_GetTransactionsServer interface { - Send(*GetTransactionsResponse) error - grpc.ServerStream -} - -type walletServiceGetTransactionsServer struct { - grpc.ServerStream -} - -func (x *walletServiceGetTransactionsServer) Send(m *GetTransactionsResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_GetTransactionsServer = grpc.ServerStreamingServer[GetTransactionsResponse] func _WalletService_GetTicket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetTicketRequest) @@ -1480,7 +1517,7 @@ func _WalletService_GetTicket_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/GetTicket", + FullMethod: WalletService_GetTicket_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).GetTicket(ctx, req.(*GetTicketRequest)) @@ -1493,21 +1530,11 @@ func _WalletService_GetTickets_Handler(srv interface{}, stream grpc.ServerStream if err := stream.RecvMsg(m); err != nil { return err } - return srv.(WalletServiceServer).GetTickets(m, &walletServiceGetTicketsServer{stream}) -} - -type WalletService_GetTicketsServer interface { - Send(*GetTicketsResponse) error - grpc.ServerStream + return srv.(WalletServiceServer).GetTickets(m, &grpc.GenericServerStream[GetTicketsRequest, GetTicketsResponse]{ServerStream: stream}) } -type walletServiceGetTicketsServer struct { - grpc.ServerStream -} - -func (x *walletServiceGetTicketsServer) Send(m *GetTicketsResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_GetTicketsServer = grpc.ServerStreamingServer[GetTicketsResponse] func _WalletService_TicketPrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TicketPriceRequest) @@ -1519,7 +1546,7 @@ func _WalletService_TicketPrice_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/TicketPrice", + FullMethod: WalletService_TicketPrice_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).TicketPrice(ctx, req.(*TicketPriceRequest)) @@ -1537,7 +1564,7 @@ func _WalletService_StakeInfo_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/StakeInfo", + FullMethod: WalletService_StakeInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).StakeInfo(ctx, req.(*StakeInfoRequest)) @@ -1555,7 +1582,7 @@ func _WalletService_BlockInfo_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/BlockInfo", + FullMethod: WalletService_BlockInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).BlockInfo(ctx, req.(*BlockInfoRequest)) @@ -1573,7 +1600,7 @@ func _WalletService_BestBlock_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/BestBlock", + FullMethod: WalletService_BestBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).BestBlock(ctx, req.(*BestBlockRequest)) @@ -1591,7 +1618,7 @@ func _WalletService_Spender_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/Spender", + FullMethod: WalletService_Spender_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).Spender(ctx, req.(*SpenderRequest)) @@ -1604,21 +1631,11 @@ func _WalletService_GetCFilters_Handler(srv interface{}, stream grpc.ServerStrea if err := stream.RecvMsg(m); err != nil { return err } - return srv.(WalletServiceServer).GetCFilters(m, &walletServiceGetCFiltersServer{stream}) + return srv.(WalletServiceServer).GetCFilters(m, &grpc.GenericServerStream[GetCFiltersRequest, GetCFiltersResponse]{ServerStream: stream}) } -type WalletService_GetCFiltersServer interface { - Send(*GetCFiltersResponse) error - grpc.ServerStream -} - -type walletServiceGetCFiltersServer struct { - grpc.ServerStream -} - -func (x *walletServiceGetCFiltersServer) Send(m *GetCFiltersResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_GetCFiltersServer = grpc.ServerStreamingServer[GetCFiltersResponse] func _WalletService_GetPeerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetPeerInfoRequest) @@ -1630,7 +1647,7 @@ func _WalletService_GetPeerInfo_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/GetPeerInfo", + FullMethod: WalletService_GetPeerInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).GetPeerInfo(ctx, req.(*GetPeerInfoRequest)) @@ -1648,7 +1665,7 @@ func _WalletService_DumpPrivateKey_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/DumpPrivateKey", + FullMethod: WalletService_DumpPrivateKey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).DumpPrivateKey(ctx, req.(*DumpPrivateKeyRequest)) @@ -1666,7 +1683,7 @@ func _WalletService_BirthBlock_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/BirthBlock", + FullMethod: WalletService_BirthBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).BirthBlock(ctx, req.(*BirthBlockRequest)) @@ -1679,68 +1696,29 @@ func _WalletService_TransactionNotifications_Handler(srv interface{}, stream grp if err := stream.RecvMsg(m); err != nil { return err } - return srv.(WalletServiceServer).TransactionNotifications(m, &walletServiceTransactionNotificationsServer{stream}) + return srv.(WalletServiceServer).TransactionNotifications(m, &grpc.GenericServerStream[TransactionNotificationsRequest, TransactionNotificationsResponse]{ServerStream: stream}) } -type WalletService_TransactionNotificationsServer interface { - Send(*TransactionNotificationsResponse) error - grpc.ServerStream -} - -type walletServiceTransactionNotificationsServer struct { - grpc.ServerStream -} - -func (x *walletServiceTransactionNotificationsServer) Send(m *TransactionNotificationsResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_TransactionNotificationsServer = grpc.ServerStreamingServer[TransactionNotificationsResponse] func _WalletService_AccountNotifications_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(AccountNotificationsRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(WalletServiceServer).AccountNotifications(m, &walletServiceAccountNotificationsServer{stream}) + return srv.(WalletServiceServer).AccountNotifications(m, &grpc.GenericServerStream[AccountNotificationsRequest, AccountNotificationsResponse]{ServerStream: stream}) } -type WalletService_AccountNotificationsServer interface { - Send(*AccountNotificationsResponse) error - grpc.ServerStream -} - -type walletServiceAccountNotificationsServer struct { - grpc.ServerStream -} - -func (x *walletServiceAccountNotificationsServer) Send(m *AccountNotificationsResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_AccountNotificationsServer = grpc.ServerStreamingServer[AccountNotificationsResponse] func _WalletService_ConfirmationNotifications_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(WalletServiceServer).ConfirmationNotifications(&walletServiceConfirmationNotificationsServer{stream}) -} - -type WalletService_ConfirmationNotificationsServer interface { - Send(*ConfirmationNotificationsResponse) error - Recv() (*ConfirmationNotificationsRequest, error) - grpc.ServerStream -} - -type walletServiceConfirmationNotificationsServer struct { - grpc.ServerStream + return srv.(WalletServiceServer).ConfirmationNotifications(&grpc.GenericServerStream[ConfirmationNotificationsRequest, ConfirmationNotificationsResponse]{ServerStream: stream}) } -func (x *walletServiceConfirmationNotificationsServer) Send(m *ConfirmationNotificationsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *walletServiceConfirmationNotificationsServer) Recv() (*ConfirmationNotificationsRequest, error) { - m := new(ConfirmationNotificationsRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_ConfirmationNotificationsServer = grpc.BidiStreamingServer[ConfirmationNotificationsRequest, ConfirmationNotificationsResponse] func _WalletService_ChangePassphrase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangePassphraseRequest) @@ -1752,7 +1730,7 @@ func _WalletService_ChangePassphrase_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/ChangePassphrase", + FullMethod: WalletService_ChangePassphrase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).ChangePassphrase(ctx, req.(*ChangePassphraseRequest)) @@ -1770,7 +1748,7 @@ func _WalletService_RenameAccount_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/RenameAccount", + FullMethod: WalletService_RenameAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).RenameAccount(ctx, req.(*RenameAccountRequest)) @@ -1783,21 +1761,11 @@ func _WalletService_Rescan_Handler(srv interface{}, stream grpc.ServerStream) er if err := stream.RecvMsg(m); err != nil { return err } - return srv.(WalletServiceServer).Rescan(m, &walletServiceRescanServer{stream}) + return srv.(WalletServiceServer).Rescan(m, &grpc.GenericServerStream[RescanRequest, RescanResponse]{ServerStream: stream}) } -type WalletService_RescanServer interface { - Send(*RescanResponse) error - grpc.ServerStream -} - -type walletServiceRescanServer struct { - grpc.ServerStream -} - -func (x *walletServiceRescanServer) Send(m *RescanResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_RescanServer = grpc.ServerStreamingServer[RescanResponse] func _WalletService_NextAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(NextAccountRequest) @@ -1809,7 +1777,7 @@ func _WalletService_NextAccount_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/NextAccount", + FullMethod: WalletService_NextAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).NextAccount(ctx, req.(*NextAccountRequest)) @@ -1827,7 +1795,7 @@ func _WalletService_NextAddress_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/NextAddress", + FullMethod: WalletService_NextAddress_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).NextAddress(ctx, req.(*NextAddressRequest)) @@ -1845,7 +1813,7 @@ func _WalletService_ImportPrivateKey_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/ImportPrivateKey", + FullMethod: WalletService_ImportPrivateKey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).ImportPrivateKey(ctx, req.(*ImportPrivateKeyRequest)) @@ -1863,7 +1831,7 @@ func _WalletService_ImportExtendedPublicKey_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/ImportExtendedPublicKey", + FullMethod: WalletService_ImportExtendedPublicKey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).ImportExtendedPublicKey(ctx, req.(*ImportExtendedPublicKeyRequest)) @@ -1881,7 +1849,7 @@ func _WalletService_ImportVotingAccountFromSeed_Handler(srv interface{}, ctx con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/ImportVotingAccountFromSeed", + FullMethod: WalletService_ImportVotingAccountFromSeed_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).ImportVotingAccountFromSeed(ctx, req.(*ImportVotingAccountFromSeedRequest)) @@ -1899,7 +1867,7 @@ func _WalletService_ImportScript_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/ImportScript", + FullMethod: WalletService_ImportScript_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).ImportScript(ctx, req.(*ImportScriptRequest)) @@ -1917,7 +1885,7 @@ func _WalletService_FundTransaction_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/FundTransaction", + FullMethod: WalletService_FundTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).FundTransaction(ctx, req.(*FundTransactionRequest)) @@ -1930,21 +1898,11 @@ func _WalletService_UnspentOutputs_Handler(srv interface{}, stream grpc.ServerSt if err := stream.RecvMsg(m); err != nil { return err } - return srv.(WalletServiceServer).UnspentOutputs(m, &walletServiceUnspentOutputsServer{stream}) + return srv.(WalletServiceServer).UnspentOutputs(m, &grpc.GenericServerStream[UnspentOutputsRequest, UnspentOutputResponse]{ServerStream: stream}) } -type WalletService_UnspentOutputsServer interface { - Send(*UnspentOutputResponse) error - grpc.ServerStream -} - -type walletServiceUnspentOutputsServer struct { - grpc.ServerStream -} - -func (x *walletServiceUnspentOutputsServer) Send(m *UnspentOutputResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletService_UnspentOutputsServer = grpc.ServerStreamingServer[UnspentOutputResponse] func _WalletService_ConstructTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ConstructTransactionRequest) @@ -1956,7 +1914,7 @@ func _WalletService_ConstructTransaction_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/ConstructTransaction", + FullMethod: WalletService_ConstructTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).ConstructTransaction(ctx, req.(*ConstructTransactionRequest)) @@ -1974,7 +1932,7 @@ func _WalletService_SignTransaction_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/SignTransaction", + FullMethod: WalletService_SignTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).SignTransaction(ctx, req.(*SignTransactionRequest)) @@ -1992,7 +1950,7 @@ func _WalletService_SignTransactions_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/SignTransactions", + FullMethod: WalletService_SignTransactions_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).SignTransactions(ctx, req.(*SignTransactionsRequest)) @@ -2010,7 +1968,7 @@ func _WalletService_CreateSignature_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/CreateSignature", + FullMethod: WalletService_CreateSignature_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).CreateSignature(ctx, req.(*CreateSignatureRequest)) @@ -2028,7 +1986,7 @@ func _WalletService_PublishTransaction_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/PublishTransaction", + FullMethod: WalletService_PublishTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).PublishTransaction(ctx, req.(*PublishTransactionRequest)) @@ -2046,7 +2004,7 @@ func _WalletService_PublishUnminedTransactions_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/PublishUnminedTransactions", + FullMethod: WalletService_PublishUnminedTransactions_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).PublishUnminedTransactions(ctx, req.(*PublishUnminedTransactionsRequest)) @@ -2064,7 +2022,7 @@ func _WalletService_PurchaseTickets_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/PurchaseTickets", + FullMethod: WalletService_PurchaseTickets_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).PurchaseTickets(ctx, req.(*PurchaseTicketsRequest)) @@ -2082,7 +2040,7 @@ func _WalletService_RevokeTicket_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/RevokeTicket", + FullMethod: WalletService_RevokeTicket_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).RevokeTicket(ctx, req.(*RevokeTicketRequest)) @@ -2100,7 +2058,7 @@ func _WalletService_RevokeTickets_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/RevokeTickets", + FullMethod: WalletService_RevokeTickets_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).RevokeTickets(ctx, req.(*RevokeTicketsRequest)) @@ -2118,7 +2076,7 @@ func _WalletService_LoadActiveDataFilters_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/LoadActiveDataFilters", + FullMethod: WalletService_LoadActiveDataFilters_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).LoadActiveDataFilters(ctx, req.(*LoadActiveDataFiltersRequest)) @@ -2136,7 +2094,7 @@ func _WalletService_SignMessage_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/SignMessage", + FullMethod: WalletService_SignMessage_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).SignMessage(ctx, req.(*SignMessageRequest)) @@ -2154,7 +2112,7 @@ func _WalletService_SignMessages_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/SignMessages", + FullMethod: WalletService_SignMessages_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).SignMessages(ctx, req.(*SignMessagesRequest)) @@ -2172,7 +2130,7 @@ func _WalletService_ValidateAddress_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/ValidateAddress", + FullMethod: WalletService_ValidateAddress_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).ValidateAddress(ctx, req.(*ValidateAddressRequest)) @@ -2190,7 +2148,7 @@ func _WalletService_CommittedTickets_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/CommittedTickets", + FullMethod: WalletService_CommittedTickets_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).CommittedTickets(ctx, req.(*CommittedTicketsRequest)) @@ -2208,7 +2166,7 @@ func _WalletService_SweepAccount_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/SweepAccount", + FullMethod: WalletService_SweepAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).SweepAccount(ctx, req.(*SweepAccountRequest)) @@ -2226,7 +2184,7 @@ func _WalletService_AbandonTransaction_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/AbandonTransaction", + FullMethod: WalletService_AbandonTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).AbandonTransaction(ctx, req.(*AbandonTransactionRequest)) @@ -2244,7 +2202,7 @@ func _WalletService_SignHashes_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/SignHashes", + FullMethod: WalletService_SignHashes_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).SignHashes(ctx, req.(*SignHashesRequest)) @@ -2262,7 +2220,7 @@ func _WalletService_GetCoinjoinOutputspByAcct_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/GetCoinjoinOutputspByAcct", + FullMethod: WalletService_GetCoinjoinOutputspByAcct_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).GetCoinjoinOutputspByAcct(ctx, req.(*GetCoinjoinOutputspByAcctRequest)) @@ -2280,7 +2238,7 @@ func _WalletService_SetAccountPassphrase_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/SetAccountPassphrase", + FullMethod: WalletService_SetAccountPassphrase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).SetAccountPassphrase(ctx, req.(*SetAccountPassphraseRequest)) @@ -2298,7 +2256,7 @@ func _WalletService_UnlockAccount_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/UnlockAccount", + FullMethod: WalletService_UnlockAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).UnlockAccount(ctx, req.(*UnlockAccountRequest)) @@ -2316,7 +2274,7 @@ func _WalletService_LockAccount_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/LockAccount", + FullMethod: WalletService_LockAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).LockAccount(ctx, req.(*LockAccountRequest)) @@ -2334,7 +2292,7 @@ func _WalletService_UnlockWallet_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/UnlockWallet", + FullMethod: WalletService_UnlockWallet_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).UnlockWallet(ctx, req.(*UnlockWalletRequest)) @@ -2352,7 +2310,7 @@ func _WalletService_LockWallet_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/LockWallet", + FullMethod: WalletService_LockWallet_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).LockWallet(ctx, req.(*LockWalletRequest)) @@ -2370,7 +2328,7 @@ func _WalletService_AccountUnlocked_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/AccountUnlocked", + FullMethod: WalletService_AccountUnlocked_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).AccountUnlocked(ctx, req.(*AccountUnlockedRequest)) @@ -2388,7 +2346,7 @@ func _WalletService_SyncVSPFailedTickets_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/SyncVSPFailedTickets", + FullMethod: WalletService_SyncVSPFailedTickets_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).SyncVSPFailedTickets(ctx, req.(*SyncVSPTicketsRequest)) @@ -2406,7 +2364,7 @@ func _WalletService_GetVSPTicketsByFeeStatus_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/GetVSPTicketsByFeeStatus", + FullMethod: WalletService_GetVSPTicketsByFeeStatus_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).GetVSPTicketsByFeeStatus(ctx, req.(*GetVSPTicketsByFeeStatusRequest)) @@ -2424,7 +2382,7 @@ func _WalletService_ProcessManagedTickets_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/ProcessManagedTickets", + FullMethod: WalletService_ProcessManagedTickets_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).ProcessManagedTickets(ctx, req.(*ProcessManagedTicketsRequest)) @@ -2442,7 +2400,7 @@ func _WalletService_ProcessUnmanagedTickets_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/ProcessUnmanagedTickets", + FullMethod: WalletService_ProcessUnmanagedTickets_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).ProcessUnmanagedTickets(ctx, req.(*ProcessUnmanagedTicketsRequest)) @@ -2460,7 +2418,7 @@ func _WalletService_SetVspdVoteChoices_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/SetVspdVoteChoices", + FullMethod: WalletService_SetVspdVoteChoices_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).SetVspdVoteChoices(ctx, req.(*SetVspdVoteChoicesRequest)) @@ -2478,7 +2436,7 @@ func _WalletService_GetTrackedVSPTickets_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/GetTrackedVSPTickets", + FullMethod: WalletService_GetTrackedVSPTickets_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).GetTrackedVSPTickets(ctx, req.(*GetTrackedVSPTicketsRequest)) @@ -2496,7 +2454,7 @@ func _WalletService_DiscoverUsage_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletService/DiscoverUsage", + FullMethod: WalletService_DiscoverUsage_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).DiscoverUsage(ctx, req.(*DiscoverUsageRequest)) @@ -2794,6 +2752,17 @@ var WalletService_ServiceDesc = grpc.ServiceDesc{ Metadata: "api.proto", } +const ( + WalletLoaderService_WalletExists_FullMethodName = "/walletrpc.WalletLoaderService/WalletExists" + WalletLoaderService_CreateWallet_FullMethodName = "/walletrpc.WalletLoaderService/CreateWallet" + WalletLoaderService_CreateWatchingOnlyWallet_FullMethodName = "/walletrpc.WalletLoaderService/CreateWatchingOnlyWallet" + WalletLoaderService_OpenWallet_FullMethodName = "/walletrpc.WalletLoaderService/OpenWallet" + WalletLoaderService_CloseWallet_FullMethodName = "/walletrpc.WalletLoaderService/CloseWallet" + WalletLoaderService_SpvSync_FullMethodName = "/walletrpc.WalletLoaderService/SpvSync" + WalletLoaderService_RpcSync_FullMethodName = "/walletrpc.WalletLoaderService/RpcSync" + WalletLoaderService_RescanPoint_FullMethodName = "/walletrpc.WalletLoaderService/RescanPoint" +) + // WalletLoaderServiceClient is the client API for WalletLoaderService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -2803,8 +2772,8 @@ type WalletLoaderServiceClient interface { CreateWatchingOnlyWallet(ctx context.Context, in *CreateWatchingOnlyWalletRequest, opts ...grpc.CallOption) (*CreateWatchingOnlyWalletResponse, error) OpenWallet(ctx context.Context, in *OpenWalletRequest, opts ...grpc.CallOption) (*OpenWalletResponse, error) CloseWallet(ctx context.Context, in *CloseWalletRequest, opts ...grpc.CallOption) (*CloseWalletResponse, error) - SpvSync(ctx context.Context, in *SpvSyncRequest, opts ...grpc.CallOption) (WalletLoaderService_SpvSyncClient, error) - RpcSync(ctx context.Context, in *RpcSyncRequest, opts ...grpc.CallOption) (WalletLoaderService_RpcSyncClient, error) + SpvSync(ctx context.Context, in *SpvSyncRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SpvSyncResponse], error) + RpcSync(ctx context.Context, in *RpcSyncRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[RpcSyncResponse], error) RescanPoint(ctx context.Context, in *RescanPointRequest, opts ...grpc.CallOption) (*RescanPointResponse, error) } @@ -2817,8 +2786,9 @@ func NewWalletLoaderServiceClient(cc grpc.ClientConnInterface) WalletLoaderServi } func (c *walletLoaderServiceClient) WalletExists(ctx context.Context, in *WalletExistsRequest, opts ...grpc.CallOption) (*WalletExistsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(WalletExistsResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletLoaderService/WalletExists", in, out, opts...) + err := c.cc.Invoke(ctx, WalletLoaderService_WalletExists_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -2826,8 +2796,9 @@ func (c *walletLoaderServiceClient) WalletExists(ctx context.Context, in *Wallet } func (c *walletLoaderServiceClient) CreateWallet(ctx context.Context, in *CreateWalletRequest, opts ...grpc.CallOption) (*CreateWalletResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateWalletResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletLoaderService/CreateWallet", in, out, opts...) + err := c.cc.Invoke(ctx, WalletLoaderService_CreateWallet_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -2835,8 +2806,9 @@ func (c *walletLoaderServiceClient) CreateWallet(ctx context.Context, in *Create } func (c *walletLoaderServiceClient) CreateWatchingOnlyWallet(ctx context.Context, in *CreateWatchingOnlyWalletRequest, opts ...grpc.CallOption) (*CreateWatchingOnlyWalletResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateWatchingOnlyWalletResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletLoaderService/CreateWatchingOnlyWallet", in, out, opts...) + err := c.cc.Invoke(ctx, WalletLoaderService_CreateWatchingOnlyWallet_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -2844,8 +2816,9 @@ func (c *walletLoaderServiceClient) CreateWatchingOnlyWallet(ctx context.Context } func (c *walletLoaderServiceClient) OpenWallet(ctx context.Context, in *OpenWalletRequest, opts ...grpc.CallOption) (*OpenWalletResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OpenWalletResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletLoaderService/OpenWallet", in, out, opts...) + err := c.cc.Invoke(ctx, WalletLoaderService_OpenWallet_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -2853,20 +2826,22 @@ func (c *walletLoaderServiceClient) OpenWallet(ctx context.Context, in *OpenWall } func (c *walletLoaderServiceClient) CloseWallet(ctx context.Context, in *CloseWalletRequest, opts ...grpc.CallOption) (*CloseWalletResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CloseWalletResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletLoaderService/CloseWallet", in, out, opts...) + err := c.cc.Invoke(ctx, WalletLoaderService_CloseWallet_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *walletLoaderServiceClient) SpvSync(ctx context.Context, in *SpvSyncRequest, opts ...grpc.CallOption) (WalletLoaderService_SpvSyncClient, error) { - stream, err := c.cc.NewStream(ctx, &WalletLoaderService_ServiceDesc.Streams[0], "/walletrpc.WalletLoaderService/SpvSync", opts...) +func (c *walletLoaderServiceClient) SpvSync(ctx context.Context, in *SpvSyncRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SpvSyncResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &WalletLoaderService_ServiceDesc.Streams[0], WalletLoaderService_SpvSync_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &walletLoaderServiceSpvSyncClient{stream} + x := &grpc.GenericClientStream[SpvSyncRequest, SpvSyncResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -2876,29 +2851,16 @@ func (c *walletLoaderServiceClient) SpvSync(ctx context.Context, in *SpvSyncRequ return x, nil } -type WalletLoaderService_SpvSyncClient interface { - Recv() (*SpvSyncResponse, error) - grpc.ClientStream -} - -type walletLoaderServiceSpvSyncClient struct { - grpc.ClientStream -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletLoaderService_SpvSyncClient = grpc.ServerStreamingClient[SpvSyncResponse] -func (x *walletLoaderServiceSpvSyncClient) Recv() (*SpvSyncResponse, error) { - m := new(SpvSyncResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *walletLoaderServiceClient) RpcSync(ctx context.Context, in *RpcSyncRequest, opts ...grpc.CallOption) (WalletLoaderService_RpcSyncClient, error) { - stream, err := c.cc.NewStream(ctx, &WalletLoaderService_ServiceDesc.Streams[1], "/walletrpc.WalletLoaderService/RpcSync", opts...) +func (c *walletLoaderServiceClient) RpcSync(ctx context.Context, in *RpcSyncRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[RpcSyncResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &WalletLoaderService_ServiceDesc.Streams[1], WalletLoaderService_RpcSync_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &walletLoaderServiceRpcSyncClient{stream} + x := &grpc.GenericClientStream[RpcSyncRequest, RpcSyncResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -2908,26 +2870,13 @@ func (c *walletLoaderServiceClient) RpcSync(ctx context.Context, in *RpcSyncRequ return x, nil } -type WalletLoaderService_RpcSyncClient interface { - Recv() (*RpcSyncResponse, error) - grpc.ClientStream -} - -type walletLoaderServiceRpcSyncClient struct { - grpc.ClientStream -} - -func (x *walletLoaderServiceRpcSyncClient) Recv() (*RpcSyncResponse, error) { - m := new(RpcSyncResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletLoaderService_RpcSyncClient = grpc.ServerStreamingClient[RpcSyncResponse] func (c *walletLoaderServiceClient) RescanPoint(ctx context.Context, in *RescanPointRequest, opts ...grpc.CallOption) (*RescanPointResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RescanPointResponse) - err := c.cc.Invoke(ctx, "/walletrpc.WalletLoaderService/RescanPoint", in, out, opts...) + err := c.cc.Invoke(ctx, WalletLoaderService_RescanPoint_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -2936,22 +2885,25 @@ func (c *walletLoaderServiceClient) RescanPoint(ctx context.Context, in *RescanP // WalletLoaderServiceServer is the server API for WalletLoaderService service. // All implementations must embed UnimplementedWalletLoaderServiceServer -// for forward compatibility +// for forward compatibility. type WalletLoaderServiceServer interface { WalletExists(context.Context, *WalletExistsRequest) (*WalletExistsResponse, error) CreateWallet(context.Context, *CreateWalletRequest) (*CreateWalletResponse, error) CreateWatchingOnlyWallet(context.Context, *CreateWatchingOnlyWalletRequest) (*CreateWatchingOnlyWalletResponse, error) OpenWallet(context.Context, *OpenWalletRequest) (*OpenWalletResponse, error) CloseWallet(context.Context, *CloseWalletRequest) (*CloseWalletResponse, error) - SpvSync(*SpvSyncRequest, WalletLoaderService_SpvSyncServer) error - RpcSync(*RpcSyncRequest, WalletLoaderService_RpcSyncServer) error + SpvSync(*SpvSyncRequest, grpc.ServerStreamingServer[SpvSyncResponse]) error + RpcSync(*RpcSyncRequest, grpc.ServerStreamingServer[RpcSyncResponse]) error RescanPoint(context.Context, *RescanPointRequest) (*RescanPointResponse, error) mustEmbedUnimplementedWalletLoaderServiceServer() } -// UnimplementedWalletLoaderServiceServer must be embedded to have forward compatible implementations. -type UnimplementedWalletLoaderServiceServer struct { -} +// UnimplementedWalletLoaderServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedWalletLoaderServiceServer struct{} func (UnimplementedWalletLoaderServiceServer) WalletExists(context.Context, *WalletExistsRequest) (*WalletExistsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method WalletExists not implemented") @@ -2968,16 +2920,17 @@ func (UnimplementedWalletLoaderServiceServer) OpenWallet(context.Context, *OpenW func (UnimplementedWalletLoaderServiceServer) CloseWallet(context.Context, *CloseWalletRequest) (*CloseWalletResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CloseWallet not implemented") } -func (UnimplementedWalletLoaderServiceServer) SpvSync(*SpvSyncRequest, WalletLoaderService_SpvSyncServer) error { +func (UnimplementedWalletLoaderServiceServer) SpvSync(*SpvSyncRequest, grpc.ServerStreamingServer[SpvSyncResponse]) error { return status.Errorf(codes.Unimplemented, "method SpvSync not implemented") } -func (UnimplementedWalletLoaderServiceServer) RpcSync(*RpcSyncRequest, WalletLoaderService_RpcSyncServer) error { +func (UnimplementedWalletLoaderServiceServer) RpcSync(*RpcSyncRequest, grpc.ServerStreamingServer[RpcSyncResponse]) error { return status.Errorf(codes.Unimplemented, "method RpcSync not implemented") } func (UnimplementedWalletLoaderServiceServer) RescanPoint(context.Context, *RescanPointRequest) (*RescanPointResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RescanPoint not implemented") } func (UnimplementedWalletLoaderServiceServer) mustEmbedUnimplementedWalletLoaderServiceServer() {} +func (UnimplementedWalletLoaderServiceServer) testEmbeddedByValue() {} // UnsafeWalletLoaderServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to WalletLoaderServiceServer will @@ -2987,6 +2940,13 @@ type UnsafeWalletLoaderServiceServer interface { } func RegisterWalletLoaderServiceServer(s grpc.ServiceRegistrar, srv WalletLoaderServiceServer) { + // If the following call pancis, it indicates UnimplementedWalletLoaderServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&WalletLoaderService_ServiceDesc, srv) } @@ -3000,7 +2960,7 @@ func _WalletLoaderService_WalletExists_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletLoaderService/WalletExists", + FullMethod: WalletLoaderService_WalletExists_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletLoaderServiceServer).WalletExists(ctx, req.(*WalletExistsRequest)) @@ -3018,7 +2978,7 @@ func _WalletLoaderService_CreateWallet_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletLoaderService/CreateWallet", + FullMethod: WalletLoaderService_CreateWallet_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletLoaderServiceServer).CreateWallet(ctx, req.(*CreateWalletRequest)) @@ -3036,7 +2996,7 @@ func _WalletLoaderService_CreateWatchingOnlyWallet_Handler(srv interface{}, ctx } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletLoaderService/CreateWatchingOnlyWallet", + FullMethod: WalletLoaderService_CreateWatchingOnlyWallet_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletLoaderServiceServer).CreateWatchingOnlyWallet(ctx, req.(*CreateWatchingOnlyWalletRequest)) @@ -3054,7 +3014,7 @@ func _WalletLoaderService_OpenWallet_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletLoaderService/OpenWallet", + FullMethod: WalletLoaderService_OpenWallet_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletLoaderServiceServer).OpenWallet(ctx, req.(*OpenWalletRequest)) @@ -3072,7 +3032,7 @@ func _WalletLoaderService_CloseWallet_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletLoaderService/CloseWallet", + FullMethod: WalletLoaderService_CloseWallet_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletLoaderServiceServer).CloseWallet(ctx, req.(*CloseWalletRequest)) @@ -3085,42 +3045,22 @@ func _WalletLoaderService_SpvSync_Handler(srv interface{}, stream grpc.ServerStr if err := stream.RecvMsg(m); err != nil { return err } - return srv.(WalletLoaderServiceServer).SpvSync(m, &walletLoaderServiceSpvSyncServer{stream}) -} - -type WalletLoaderService_SpvSyncServer interface { - Send(*SpvSyncResponse) error - grpc.ServerStream + return srv.(WalletLoaderServiceServer).SpvSync(m, &grpc.GenericServerStream[SpvSyncRequest, SpvSyncResponse]{ServerStream: stream}) } -type walletLoaderServiceSpvSyncServer struct { - grpc.ServerStream -} - -func (x *walletLoaderServiceSpvSyncServer) Send(m *SpvSyncResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletLoaderService_SpvSyncServer = grpc.ServerStreamingServer[SpvSyncResponse] func _WalletLoaderService_RpcSync_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(RpcSyncRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(WalletLoaderServiceServer).RpcSync(m, &walletLoaderServiceRpcSyncServer{stream}) + return srv.(WalletLoaderServiceServer).RpcSync(m, &grpc.GenericServerStream[RpcSyncRequest, RpcSyncResponse]{ServerStream: stream}) } -type WalletLoaderService_RpcSyncServer interface { - Send(*RpcSyncResponse) error - grpc.ServerStream -} - -type walletLoaderServiceRpcSyncServer struct { - grpc.ServerStream -} - -func (x *walletLoaderServiceRpcSyncServer) Send(m *RpcSyncResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WalletLoaderService_RpcSyncServer = grpc.ServerStreamingServer[RpcSyncResponse] func _WalletLoaderService_RescanPoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RescanPointRequest) @@ -3132,7 +3072,7 @@ func _WalletLoaderService_RescanPoint_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.WalletLoaderService/RescanPoint", + FullMethod: WalletLoaderService_RescanPoint_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletLoaderServiceServer).RescanPoint(ctx, req.(*RescanPointRequest)) @@ -3187,11 +3127,15 @@ var WalletLoaderService_ServiceDesc = grpc.ServiceDesc{ Metadata: "api.proto", } +const ( + AccountMixerService_RunAccountMixer_FullMethodName = "/walletrpc.AccountMixerService/RunAccountMixer" +) + // AccountMixerServiceClient is the client API for AccountMixerService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type AccountMixerServiceClient interface { - RunAccountMixer(ctx context.Context, in *RunAccountMixerRequest, opts ...grpc.CallOption) (AccountMixerService_RunAccountMixerClient, error) + RunAccountMixer(ctx context.Context, in *RunAccountMixerRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[RunAccountMixerResponse], error) } type accountMixerServiceClient struct { @@ -3202,12 +3146,13 @@ func NewAccountMixerServiceClient(cc grpc.ClientConnInterface) AccountMixerServi return &accountMixerServiceClient{cc} } -func (c *accountMixerServiceClient) RunAccountMixer(ctx context.Context, in *RunAccountMixerRequest, opts ...grpc.CallOption) (AccountMixerService_RunAccountMixerClient, error) { - stream, err := c.cc.NewStream(ctx, &AccountMixerService_ServiceDesc.Streams[0], "/walletrpc.AccountMixerService/RunAccountMixer", opts...) +func (c *accountMixerServiceClient) RunAccountMixer(ctx context.Context, in *RunAccountMixerRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[RunAccountMixerResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &AccountMixerService_ServiceDesc.Streams[0], AccountMixerService_RunAccountMixer_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &accountMixerServiceRunAccountMixerClient{stream} + x := &grpc.GenericClientStream[RunAccountMixerRequest, RunAccountMixerResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -3217,39 +3162,29 @@ func (c *accountMixerServiceClient) RunAccountMixer(ctx context.Context, in *Run return x, nil } -type AccountMixerService_RunAccountMixerClient interface { - Recv() (*RunAccountMixerResponse, error) - grpc.ClientStream -} - -type accountMixerServiceRunAccountMixerClient struct { - grpc.ClientStream -} - -func (x *accountMixerServiceRunAccountMixerClient) Recv() (*RunAccountMixerResponse, error) { - m := new(RunAccountMixerResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type AccountMixerService_RunAccountMixerClient = grpc.ServerStreamingClient[RunAccountMixerResponse] // AccountMixerServiceServer is the server API for AccountMixerService service. // All implementations must embed UnimplementedAccountMixerServiceServer -// for forward compatibility +// for forward compatibility. type AccountMixerServiceServer interface { - RunAccountMixer(*RunAccountMixerRequest, AccountMixerService_RunAccountMixerServer) error + RunAccountMixer(*RunAccountMixerRequest, grpc.ServerStreamingServer[RunAccountMixerResponse]) error mustEmbedUnimplementedAccountMixerServiceServer() } -// UnimplementedAccountMixerServiceServer must be embedded to have forward compatible implementations. -type UnimplementedAccountMixerServiceServer struct { -} +// UnimplementedAccountMixerServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAccountMixerServiceServer struct{} -func (UnimplementedAccountMixerServiceServer) RunAccountMixer(*RunAccountMixerRequest, AccountMixerService_RunAccountMixerServer) error { +func (UnimplementedAccountMixerServiceServer) RunAccountMixer(*RunAccountMixerRequest, grpc.ServerStreamingServer[RunAccountMixerResponse]) error { return status.Errorf(codes.Unimplemented, "method RunAccountMixer not implemented") } func (UnimplementedAccountMixerServiceServer) mustEmbedUnimplementedAccountMixerServiceServer() {} +func (UnimplementedAccountMixerServiceServer) testEmbeddedByValue() {} // UnsafeAccountMixerServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AccountMixerServiceServer will @@ -3259,6 +3194,13 @@ type UnsafeAccountMixerServiceServer interface { } func RegisterAccountMixerServiceServer(s grpc.ServiceRegistrar, srv AccountMixerServiceServer) { + // If the following call pancis, it indicates UnimplementedAccountMixerServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&AccountMixerService_ServiceDesc, srv) } @@ -3267,21 +3209,11 @@ func _AccountMixerService_RunAccountMixer_Handler(srv interface{}, stream grpc.S if err := stream.RecvMsg(m); err != nil { return err } - return srv.(AccountMixerServiceServer).RunAccountMixer(m, &accountMixerServiceRunAccountMixerServer{stream}) -} - -type AccountMixerService_RunAccountMixerServer interface { - Send(*RunAccountMixerResponse) error - grpc.ServerStream -} - -type accountMixerServiceRunAccountMixerServer struct { - grpc.ServerStream + return srv.(AccountMixerServiceServer).RunAccountMixer(m, &grpc.GenericServerStream[RunAccountMixerRequest, RunAccountMixerResponse]{ServerStream: stream}) } -func (x *accountMixerServiceRunAccountMixerServer) Send(m *RunAccountMixerResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type AccountMixerService_RunAccountMixerServer = grpc.ServerStreamingServer[RunAccountMixerResponse] // AccountMixerService_ServiceDesc is the grpc.ServiceDesc for AccountMixerService service. // It's only intended for direct use with grpc.RegisterService, @@ -3300,11 +3232,15 @@ var AccountMixerService_ServiceDesc = grpc.ServiceDesc{ Metadata: "api.proto", } +const ( + TicketBuyerService_RunTicketBuyer_FullMethodName = "/walletrpc.TicketBuyerService/RunTicketBuyer" +) + // TicketBuyerServiceClient is the client API for TicketBuyerService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type TicketBuyerServiceClient interface { - RunTicketBuyer(ctx context.Context, in *RunTicketBuyerRequest, opts ...grpc.CallOption) (TicketBuyerService_RunTicketBuyerClient, error) + RunTicketBuyer(ctx context.Context, in *RunTicketBuyerRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[RunTicketBuyerResponse], error) } type ticketBuyerServiceClient struct { @@ -3315,12 +3251,13 @@ func NewTicketBuyerServiceClient(cc grpc.ClientConnInterface) TicketBuyerService return &ticketBuyerServiceClient{cc} } -func (c *ticketBuyerServiceClient) RunTicketBuyer(ctx context.Context, in *RunTicketBuyerRequest, opts ...grpc.CallOption) (TicketBuyerService_RunTicketBuyerClient, error) { - stream, err := c.cc.NewStream(ctx, &TicketBuyerService_ServiceDesc.Streams[0], "/walletrpc.TicketBuyerService/RunTicketBuyer", opts...) +func (c *ticketBuyerServiceClient) RunTicketBuyer(ctx context.Context, in *RunTicketBuyerRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[RunTicketBuyerResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TicketBuyerService_ServiceDesc.Streams[0], TicketBuyerService_RunTicketBuyer_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &ticketBuyerServiceRunTicketBuyerClient{stream} + x := &grpc.GenericClientStream[RunTicketBuyerRequest, RunTicketBuyerResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -3330,39 +3267,29 @@ func (c *ticketBuyerServiceClient) RunTicketBuyer(ctx context.Context, in *RunTi return x, nil } -type TicketBuyerService_RunTicketBuyerClient interface { - Recv() (*RunTicketBuyerResponse, error) - grpc.ClientStream -} - -type ticketBuyerServiceRunTicketBuyerClient struct { - grpc.ClientStream -} - -func (x *ticketBuyerServiceRunTicketBuyerClient) Recv() (*RunTicketBuyerResponse, error) { - m := new(RunTicketBuyerResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TicketBuyerService_RunTicketBuyerClient = grpc.ServerStreamingClient[RunTicketBuyerResponse] // TicketBuyerServiceServer is the server API for TicketBuyerService service. // All implementations must embed UnimplementedTicketBuyerServiceServer -// for forward compatibility +// for forward compatibility. type TicketBuyerServiceServer interface { - RunTicketBuyer(*RunTicketBuyerRequest, TicketBuyerService_RunTicketBuyerServer) error + RunTicketBuyer(*RunTicketBuyerRequest, grpc.ServerStreamingServer[RunTicketBuyerResponse]) error mustEmbedUnimplementedTicketBuyerServiceServer() } -// UnimplementedTicketBuyerServiceServer must be embedded to have forward compatible implementations. -type UnimplementedTicketBuyerServiceServer struct { -} +// UnimplementedTicketBuyerServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTicketBuyerServiceServer struct{} -func (UnimplementedTicketBuyerServiceServer) RunTicketBuyer(*RunTicketBuyerRequest, TicketBuyerService_RunTicketBuyerServer) error { +func (UnimplementedTicketBuyerServiceServer) RunTicketBuyer(*RunTicketBuyerRequest, grpc.ServerStreamingServer[RunTicketBuyerResponse]) error { return status.Errorf(codes.Unimplemented, "method RunTicketBuyer not implemented") } func (UnimplementedTicketBuyerServiceServer) mustEmbedUnimplementedTicketBuyerServiceServer() {} +func (UnimplementedTicketBuyerServiceServer) testEmbeddedByValue() {} // UnsafeTicketBuyerServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TicketBuyerServiceServer will @@ -3372,6 +3299,13 @@ type UnsafeTicketBuyerServiceServer interface { } func RegisterTicketBuyerServiceServer(s grpc.ServiceRegistrar, srv TicketBuyerServiceServer) { + // If the following call pancis, it indicates UnimplementedTicketBuyerServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TicketBuyerService_ServiceDesc, srv) } @@ -3380,21 +3314,11 @@ func _TicketBuyerService_RunTicketBuyer_Handler(srv interface{}, stream grpc.Ser if err := stream.RecvMsg(m); err != nil { return err } - return srv.(TicketBuyerServiceServer).RunTicketBuyer(m, &ticketBuyerServiceRunTicketBuyerServer{stream}) + return srv.(TicketBuyerServiceServer).RunTicketBuyer(m, &grpc.GenericServerStream[RunTicketBuyerRequest, RunTicketBuyerResponse]{ServerStream: stream}) } -type TicketBuyerService_RunTicketBuyerServer interface { - Send(*RunTicketBuyerResponse) error - grpc.ServerStream -} - -type ticketBuyerServiceRunTicketBuyerServer struct { - grpc.ServerStream -} - -func (x *ticketBuyerServiceRunTicketBuyerServer) Send(m *RunTicketBuyerResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TicketBuyerService_RunTicketBuyerServer = grpc.ServerStreamingServer[RunTicketBuyerResponse] // TicketBuyerService_ServiceDesc is the grpc.ServiceDesc for TicketBuyerService service. // It's only intended for direct use with grpc.RegisterService, @@ -3413,6 +3337,11 @@ var TicketBuyerService_ServiceDesc = grpc.ServiceDesc{ Metadata: "api.proto", } +const ( + SeedService_GenerateRandomSeed_FullMethodName = "/walletrpc.SeedService/GenerateRandomSeed" + SeedService_DecodeSeed_FullMethodName = "/walletrpc.SeedService/DecodeSeed" +) + // SeedServiceClient is the client API for SeedService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -3430,8 +3359,9 @@ func NewSeedServiceClient(cc grpc.ClientConnInterface) SeedServiceClient { } func (c *seedServiceClient) GenerateRandomSeed(ctx context.Context, in *GenerateRandomSeedRequest, opts ...grpc.CallOption) (*GenerateRandomSeedResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GenerateRandomSeedResponse) - err := c.cc.Invoke(ctx, "/walletrpc.SeedService/GenerateRandomSeed", in, out, opts...) + err := c.cc.Invoke(ctx, SeedService_GenerateRandomSeed_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -3439,8 +3369,9 @@ func (c *seedServiceClient) GenerateRandomSeed(ctx context.Context, in *Generate } func (c *seedServiceClient) DecodeSeed(ctx context.Context, in *DecodeSeedRequest, opts ...grpc.CallOption) (*DecodeSeedResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecodeSeedResponse) - err := c.cc.Invoke(ctx, "/walletrpc.SeedService/DecodeSeed", in, out, opts...) + err := c.cc.Invoke(ctx, SeedService_DecodeSeed_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -3449,16 +3380,19 @@ func (c *seedServiceClient) DecodeSeed(ctx context.Context, in *DecodeSeedReques // SeedServiceServer is the server API for SeedService service. // All implementations must embed UnimplementedSeedServiceServer -// for forward compatibility +// for forward compatibility. type SeedServiceServer interface { GenerateRandomSeed(context.Context, *GenerateRandomSeedRequest) (*GenerateRandomSeedResponse, error) DecodeSeed(context.Context, *DecodeSeedRequest) (*DecodeSeedResponse, error) mustEmbedUnimplementedSeedServiceServer() } -// UnimplementedSeedServiceServer must be embedded to have forward compatible implementations. -type UnimplementedSeedServiceServer struct { -} +// UnimplementedSeedServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSeedServiceServer struct{} func (UnimplementedSeedServiceServer) GenerateRandomSeed(context.Context, *GenerateRandomSeedRequest) (*GenerateRandomSeedResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GenerateRandomSeed not implemented") @@ -3467,6 +3401,7 @@ func (UnimplementedSeedServiceServer) DecodeSeed(context.Context, *DecodeSeedReq return nil, status.Errorf(codes.Unimplemented, "method DecodeSeed not implemented") } func (UnimplementedSeedServiceServer) mustEmbedUnimplementedSeedServiceServer() {} +func (UnimplementedSeedServiceServer) testEmbeddedByValue() {} // UnsafeSeedServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to SeedServiceServer will @@ -3476,6 +3411,13 @@ type UnsafeSeedServiceServer interface { } func RegisterSeedServiceServer(s grpc.ServiceRegistrar, srv SeedServiceServer) { + // If the following call pancis, it indicates UnimplementedSeedServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&SeedService_ServiceDesc, srv) } @@ -3489,7 +3431,7 @@ func _SeedService_GenerateRandomSeed_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.SeedService/GenerateRandomSeed", + FullMethod: SeedService_GenerateRandomSeed_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SeedServiceServer).GenerateRandomSeed(ctx, req.(*GenerateRandomSeedRequest)) @@ -3507,7 +3449,7 @@ func _SeedService_DecodeSeed_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.SeedService/DecodeSeed", + FullMethod: SeedService_DecodeSeed_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SeedServiceServer).DecodeSeed(ctx, req.(*DecodeSeedRequest)) @@ -3535,6 +3477,10 @@ var SeedService_ServiceDesc = grpc.ServiceDesc{ Metadata: "api.proto", } +const ( + AgendaService_Agendas_FullMethodName = "/walletrpc.AgendaService/Agendas" +) + // AgendaServiceClient is the client API for AgendaService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -3551,8 +3497,9 @@ func NewAgendaServiceClient(cc grpc.ClientConnInterface) AgendaServiceClient { } func (c *agendaServiceClient) Agendas(ctx context.Context, in *AgendasRequest, opts ...grpc.CallOption) (*AgendasResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AgendasResponse) - err := c.cc.Invoke(ctx, "/walletrpc.AgendaService/Agendas", in, out, opts...) + err := c.cc.Invoke(ctx, AgendaService_Agendas_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -3561,20 +3508,24 @@ func (c *agendaServiceClient) Agendas(ctx context.Context, in *AgendasRequest, o // AgendaServiceServer is the server API for AgendaService service. // All implementations must embed UnimplementedAgendaServiceServer -// for forward compatibility +// for forward compatibility. type AgendaServiceServer interface { Agendas(context.Context, *AgendasRequest) (*AgendasResponse, error) mustEmbedUnimplementedAgendaServiceServer() } -// UnimplementedAgendaServiceServer must be embedded to have forward compatible implementations. -type UnimplementedAgendaServiceServer struct { -} +// UnimplementedAgendaServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAgendaServiceServer struct{} func (UnimplementedAgendaServiceServer) Agendas(context.Context, *AgendasRequest) (*AgendasResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Agendas not implemented") } func (UnimplementedAgendaServiceServer) mustEmbedUnimplementedAgendaServiceServer() {} +func (UnimplementedAgendaServiceServer) testEmbeddedByValue() {} // UnsafeAgendaServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AgendaServiceServer will @@ -3584,6 +3535,13 @@ type UnsafeAgendaServiceServer interface { } func RegisterAgendaServiceServer(s grpc.ServiceRegistrar, srv AgendaServiceServer) { + // If the following call pancis, it indicates UnimplementedAgendaServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&AgendaService_ServiceDesc, srv) } @@ -3597,7 +3555,7 @@ func _AgendaService_Agendas_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.AgendaService/Agendas", + FullMethod: AgendaService_Agendas_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgendaServiceServer).Agendas(ctx, req.(*AgendasRequest)) @@ -3621,6 +3579,15 @@ var AgendaService_ServiceDesc = grpc.ServiceDesc{ Metadata: "api.proto", } +const ( + VotingService_VoteChoices_FullMethodName = "/walletrpc.VotingService/VoteChoices" + VotingService_SetVoteChoices_FullMethodName = "/walletrpc.VotingService/SetVoteChoices" + VotingService_TSpendPolicies_FullMethodName = "/walletrpc.VotingService/TSpendPolicies" + VotingService_SetTSpendPolicy_FullMethodName = "/walletrpc.VotingService/SetTSpendPolicy" + VotingService_TreasuryPolicies_FullMethodName = "/walletrpc.VotingService/TreasuryPolicies" + VotingService_SetTreasuryPolicy_FullMethodName = "/walletrpc.VotingService/SetTreasuryPolicy" +) + // VotingServiceClient is the client API for VotingService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -3642,8 +3609,9 @@ func NewVotingServiceClient(cc grpc.ClientConnInterface) VotingServiceClient { } func (c *votingServiceClient) VoteChoices(ctx context.Context, in *VoteChoicesRequest, opts ...grpc.CallOption) (*VoteChoicesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(VoteChoicesResponse) - err := c.cc.Invoke(ctx, "/walletrpc.VotingService/VoteChoices", in, out, opts...) + err := c.cc.Invoke(ctx, VotingService_VoteChoices_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -3651,8 +3619,9 @@ func (c *votingServiceClient) VoteChoices(ctx context.Context, in *VoteChoicesRe } func (c *votingServiceClient) SetVoteChoices(ctx context.Context, in *SetVoteChoicesRequest, opts ...grpc.CallOption) (*SetVoteChoicesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetVoteChoicesResponse) - err := c.cc.Invoke(ctx, "/walletrpc.VotingService/SetVoteChoices", in, out, opts...) + err := c.cc.Invoke(ctx, VotingService_SetVoteChoices_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -3660,8 +3629,9 @@ func (c *votingServiceClient) SetVoteChoices(ctx context.Context, in *SetVoteCho } func (c *votingServiceClient) TSpendPolicies(ctx context.Context, in *TSpendPoliciesRequest, opts ...grpc.CallOption) (*TSpendPoliciesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TSpendPoliciesResponse) - err := c.cc.Invoke(ctx, "/walletrpc.VotingService/TSpendPolicies", in, out, opts...) + err := c.cc.Invoke(ctx, VotingService_TSpendPolicies_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -3669,8 +3639,9 @@ func (c *votingServiceClient) TSpendPolicies(ctx context.Context, in *TSpendPoli } func (c *votingServiceClient) SetTSpendPolicy(ctx context.Context, in *SetTSpendPolicyRequest, opts ...grpc.CallOption) (*SetTSpendPolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetTSpendPolicyResponse) - err := c.cc.Invoke(ctx, "/walletrpc.VotingService/SetTSpendPolicy", in, out, opts...) + err := c.cc.Invoke(ctx, VotingService_SetTSpendPolicy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -3678,8 +3649,9 @@ func (c *votingServiceClient) SetTSpendPolicy(ctx context.Context, in *SetTSpend } func (c *votingServiceClient) TreasuryPolicies(ctx context.Context, in *TreasuryPoliciesRequest, opts ...grpc.CallOption) (*TreasuryPoliciesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TreasuryPoliciesResponse) - err := c.cc.Invoke(ctx, "/walletrpc.VotingService/TreasuryPolicies", in, out, opts...) + err := c.cc.Invoke(ctx, VotingService_TreasuryPolicies_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -3687,8 +3659,9 @@ func (c *votingServiceClient) TreasuryPolicies(ctx context.Context, in *Treasury } func (c *votingServiceClient) SetTreasuryPolicy(ctx context.Context, in *SetTreasuryPolicyRequest, opts ...grpc.CallOption) (*SetTreasuryPolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetTreasuryPolicyResponse) - err := c.cc.Invoke(ctx, "/walletrpc.VotingService/SetTreasuryPolicy", in, out, opts...) + err := c.cc.Invoke(ctx, VotingService_SetTreasuryPolicy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -3697,7 +3670,7 @@ func (c *votingServiceClient) SetTreasuryPolicy(ctx context.Context, in *SetTrea // VotingServiceServer is the server API for VotingService service. // All implementations must embed UnimplementedVotingServiceServer -// for forward compatibility +// for forward compatibility. type VotingServiceServer interface { VoteChoices(context.Context, *VoteChoicesRequest) (*VoteChoicesResponse, error) SetVoteChoices(context.Context, *SetVoteChoicesRequest) (*SetVoteChoicesResponse, error) @@ -3708,9 +3681,12 @@ type VotingServiceServer interface { mustEmbedUnimplementedVotingServiceServer() } -// UnimplementedVotingServiceServer must be embedded to have forward compatible implementations. -type UnimplementedVotingServiceServer struct { -} +// UnimplementedVotingServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedVotingServiceServer struct{} func (UnimplementedVotingServiceServer) VoteChoices(context.Context, *VoteChoicesRequest) (*VoteChoicesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VoteChoices not implemented") @@ -3731,6 +3707,7 @@ func (UnimplementedVotingServiceServer) SetTreasuryPolicy(context.Context, *SetT return nil, status.Errorf(codes.Unimplemented, "method SetTreasuryPolicy not implemented") } func (UnimplementedVotingServiceServer) mustEmbedUnimplementedVotingServiceServer() {} +func (UnimplementedVotingServiceServer) testEmbeddedByValue() {} // UnsafeVotingServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to VotingServiceServer will @@ -3740,6 +3717,13 @@ type UnsafeVotingServiceServer interface { } func RegisterVotingServiceServer(s grpc.ServiceRegistrar, srv VotingServiceServer) { + // If the following call pancis, it indicates UnimplementedVotingServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&VotingService_ServiceDesc, srv) } @@ -3753,7 +3737,7 @@ func _VotingService_VoteChoices_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.VotingService/VoteChoices", + FullMethod: VotingService_VoteChoices_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VotingServiceServer).VoteChoices(ctx, req.(*VoteChoicesRequest)) @@ -3771,7 +3755,7 @@ func _VotingService_SetVoteChoices_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.VotingService/SetVoteChoices", + FullMethod: VotingService_SetVoteChoices_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VotingServiceServer).SetVoteChoices(ctx, req.(*SetVoteChoicesRequest)) @@ -3789,7 +3773,7 @@ func _VotingService_TSpendPolicies_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.VotingService/TSpendPolicies", + FullMethod: VotingService_TSpendPolicies_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VotingServiceServer).TSpendPolicies(ctx, req.(*TSpendPoliciesRequest)) @@ -3807,7 +3791,7 @@ func _VotingService_SetTSpendPolicy_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.VotingService/SetTSpendPolicy", + FullMethod: VotingService_SetTSpendPolicy_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VotingServiceServer).SetTSpendPolicy(ctx, req.(*SetTSpendPolicyRequest)) @@ -3825,7 +3809,7 @@ func _VotingService_TreasuryPolicies_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.VotingService/TreasuryPolicies", + FullMethod: VotingService_TreasuryPolicies_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VotingServiceServer).TreasuryPolicies(ctx, req.(*TreasuryPoliciesRequest)) @@ -3843,7 +3827,7 @@ func _VotingService_SetTreasuryPolicy_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.VotingService/SetTreasuryPolicy", + FullMethod: VotingService_SetTreasuryPolicy_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VotingServiceServer).SetTreasuryPolicy(ctx, req.(*SetTreasuryPolicyRequest)) @@ -3887,6 +3871,10 @@ var VotingService_ServiceDesc = grpc.ServiceDesc{ Metadata: "api.proto", } +const ( + MessageVerificationService_VerifyMessage_FullMethodName = "/walletrpc.MessageVerificationService/VerifyMessage" +) + // MessageVerificationServiceClient is the client API for MessageVerificationService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -3903,8 +3891,9 @@ func NewMessageVerificationServiceClient(cc grpc.ClientConnInterface) MessageVer } func (c *messageVerificationServiceClient) VerifyMessage(ctx context.Context, in *VerifyMessageRequest, opts ...grpc.CallOption) (*VerifyMessageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(VerifyMessageResponse) - err := c.cc.Invoke(ctx, "/walletrpc.MessageVerificationService/VerifyMessage", in, out, opts...) + err := c.cc.Invoke(ctx, MessageVerificationService_VerifyMessage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -3913,21 +3902,25 @@ func (c *messageVerificationServiceClient) VerifyMessage(ctx context.Context, in // MessageVerificationServiceServer is the server API for MessageVerificationService service. // All implementations must embed UnimplementedMessageVerificationServiceServer -// for forward compatibility +// for forward compatibility. type MessageVerificationServiceServer interface { VerifyMessage(context.Context, *VerifyMessageRequest) (*VerifyMessageResponse, error) mustEmbedUnimplementedMessageVerificationServiceServer() } -// UnimplementedMessageVerificationServiceServer must be embedded to have forward compatible implementations. -type UnimplementedMessageVerificationServiceServer struct { -} +// UnimplementedMessageVerificationServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMessageVerificationServiceServer struct{} func (UnimplementedMessageVerificationServiceServer) VerifyMessage(context.Context, *VerifyMessageRequest) (*VerifyMessageResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VerifyMessage not implemented") } func (UnimplementedMessageVerificationServiceServer) mustEmbedUnimplementedMessageVerificationServiceServer() { } +func (UnimplementedMessageVerificationServiceServer) testEmbeddedByValue() {} // UnsafeMessageVerificationServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MessageVerificationServiceServer will @@ -3937,6 +3930,13 @@ type UnsafeMessageVerificationServiceServer interface { } func RegisterMessageVerificationServiceServer(s grpc.ServiceRegistrar, srv MessageVerificationServiceServer) { + // If the following call pancis, it indicates UnimplementedMessageVerificationServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MessageVerificationService_ServiceDesc, srv) } @@ -3950,7 +3950,7 @@ func _MessageVerificationService_VerifyMessage_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.MessageVerificationService/VerifyMessage", + FullMethod: MessageVerificationService_VerifyMessage_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MessageVerificationServiceServer).VerifyMessage(ctx, req.(*VerifyMessageRequest)) @@ -3974,6 +3974,10 @@ var MessageVerificationService_ServiceDesc = grpc.ServiceDesc{ Metadata: "api.proto", } +const ( + NetworkService_GetRawBlock_FullMethodName = "/walletrpc.NetworkService/GetRawBlock" +) + // NetworkServiceClient is the client API for NetworkService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -3990,8 +3994,9 @@ func NewNetworkServiceClient(cc grpc.ClientConnInterface) NetworkServiceClient { } func (c *networkServiceClient) GetRawBlock(ctx context.Context, in *GetRawBlockRequest, opts ...grpc.CallOption) (*GetRawBlockResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetRawBlockResponse) - err := c.cc.Invoke(ctx, "/walletrpc.NetworkService/GetRawBlock", in, out, opts...) + err := c.cc.Invoke(ctx, NetworkService_GetRawBlock_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -4000,20 +4005,24 @@ func (c *networkServiceClient) GetRawBlock(ctx context.Context, in *GetRawBlockR // NetworkServiceServer is the server API for NetworkService service. // All implementations must embed UnimplementedNetworkServiceServer -// for forward compatibility +// for forward compatibility. type NetworkServiceServer interface { GetRawBlock(context.Context, *GetRawBlockRequest) (*GetRawBlockResponse, error) mustEmbedUnimplementedNetworkServiceServer() } -// UnimplementedNetworkServiceServer must be embedded to have forward compatible implementations. -type UnimplementedNetworkServiceServer struct { -} +// UnimplementedNetworkServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedNetworkServiceServer struct{} func (UnimplementedNetworkServiceServer) GetRawBlock(context.Context, *GetRawBlockRequest) (*GetRawBlockResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRawBlock not implemented") } func (UnimplementedNetworkServiceServer) mustEmbedUnimplementedNetworkServiceServer() {} +func (UnimplementedNetworkServiceServer) testEmbeddedByValue() {} // UnsafeNetworkServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to NetworkServiceServer will @@ -4023,6 +4032,13 @@ type UnsafeNetworkServiceServer interface { } func RegisterNetworkServiceServer(s grpc.ServiceRegistrar, srv NetworkServiceServer) { + // If the following call pancis, it indicates UnimplementedNetworkServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&NetworkService_ServiceDesc, srv) } @@ -4036,7 +4052,7 @@ func _NetworkService_GetRawBlock_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.NetworkService/GetRawBlock", + FullMethod: NetworkService_GetRawBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NetworkServiceServer).GetRawBlock(ctx, req.(*GetRawBlockRequest)) @@ -4060,6 +4076,10 @@ var NetworkService_ServiceDesc = grpc.ServiceDesc{ Metadata: "api.proto", } +const ( + DecodeMessageService_DecodeRawTransaction_FullMethodName = "/walletrpc.DecodeMessageService/DecodeRawTransaction" +) + // DecodeMessageServiceClient is the client API for DecodeMessageService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -4076,8 +4096,9 @@ func NewDecodeMessageServiceClient(cc grpc.ClientConnInterface) DecodeMessageSer } func (c *decodeMessageServiceClient) DecodeRawTransaction(ctx context.Context, in *DecodeRawTransactionRequest, opts ...grpc.CallOption) (*DecodeRawTransactionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecodeRawTransactionResponse) - err := c.cc.Invoke(ctx, "/walletrpc.DecodeMessageService/DecodeRawTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, DecodeMessageService_DecodeRawTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -4086,20 +4107,24 @@ func (c *decodeMessageServiceClient) DecodeRawTransaction(ctx context.Context, i // DecodeMessageServiceServer is the server API for DecodeMessageService service. // All implementations must embed UnimplementedDecodeMessageServiceServer -// for forward compatibility +// for forward compatibility. type DecodeMessageServiceServer interface { DecodeRawTransaction(context.Context, *DecodeRawTransactionRequest) (*DecodeRawTransactionResponse, error) mustEmbedUnimplementedDecodeMessageServiceServer() } -// UnimplementedDecodeMessageServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDecodeMessageServiceServer struct { -} +// UnimplementedDecodeMessageServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDecodeMessageServiceServer struct{} func (UnimplementedDecodeMessageServiceServer) DecodeRawTransaction(context.Context, *DecodeRawTransactionRequest) (*DecodeRawTransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DecodeRawTransaction not implemented") } func (UnimplementedDecodeMessageServiceServer) mustEmbedUnimplementedDecodeMessageServiceServer() {} +func (UnimplementedDecodeMessageServiceServer) testEmbeddedByValue() {} // UnsafeDecodeMessageServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DecodeMessageServiceServer will @@ -4109,6 +4134,13 @@ type UnsafeDecodeMessageServiceServer interface { } func RegisterDecodeMessageServiceServer(s grpc.ServiceRegistrar, srv DecodeMessageServiceServer) { + // If the following call pancis, it indicates UnimplementedDecodeMessageServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DecodeMessageService_ServiceDesc, srv) } @@ -4122,7 +4154,7 @@ func _DecodeMessageService_DecodeRawTransaction_Handler(srv interface{}, ctx con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/walletrpc.DecodeMessageService/DecodeRawTransaction", + FullMethod: DecodeMessageService_DecodeRawTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DecodeMessageServiceServer).DecodeRawTransaction(ctx, req.(*DecodeRawTransactionRequest))