From 02882e2963799b20008c5276eae0a77e73b388e1 Mon Sep 17 00:00:00 2001 From: nkitlabs Date: Tue, 21 Jan 2025 13:30:34 +0700 Subject: [PATCH 01/14] add .pb files and remove bandprotocol/chain dependency --- go.mod | 27 +- go.sum | 470 +- internal/bandchain/bandtss/bandtss.go | 4 + internal/bandchain/bandtss/bandtss.pb.go | 1975 +++++ internal/bandchain/bandtss/params.pb.go | 888 ++ internal/bandchain/bandtss/query.pb.go | 3930 ++++++++ internal/bandchain/feeds/encoder.pb.go | 76 + internal/bandchain/feeds/feeds.pb.go | 3598 ++++++++ internal/bandchain/tss/error.go | 51 + internal/bandchain/tss/helpers.go | 20 + .../tss/schnorr/complaint_signature.go | 105 + internal/bandchain/tss/schnorr/error.go | 82 + internal/bandchain/tss/schnorr/signature.go | 110 + internal/bandchain/tss/tss.go | 748 ++ internal/bandchain/tss/tss.pb.go | 7897 +++++++++++++++++ internal/bandchain/tunnel/ibc_route.go | 42 + internal/bandchain/tunnel/packet_receipt.go | 8 + internal/bandchain/tunnel/params.pb.go | 637 ++ internal/bandchain/tunnel/query.pb.go | 3725 ++++++++ internal/bandchain/tunnel/route.go | 10 + internal/bandchain/tunnel/route.pb.go | 1344 +++ internal/bandchain/tunnel/tss_route.go | 33 + internal/bandchain/tunnel/tunnel.pb.go | 2628 ++++++ .../relayertest/mocks/band_chain_query.go | 124 + .../relayertest/mocks/bandtss_query_client.go | 203 - .../relayertest/mocks/tunnel_query_client.go | 203 - relayer/band/client.go | 36 +- relayer/band/client_test.go | 43 +- relayer/band/encoding.go | 22 +- relayer/band/query.go | 99 + relayer/band/types/signing.go | 2 +- relayer/tunnel_relayer.go | 3 +- scripts/mockgen.sh | 3 +- 33 files changed, 28192 insertions(+), 954 deletions(-) create mode 100644 internal/bandchain/bandtss/bandtss.go create mode 100644 internal/bandchain/bandtss/bandtss.pb.go create mode 100644 internal/bandchain/bandtss/params.pb.go create mode 100644 internal/bandchain/bandtss/query.pb.go create mode 100644 internal/bandchain/feeds/encoder.pb.go create mode 100644 internal/bandchain/feeds/feeds.pb.go create mode 100644 internal/bandchain/tss/error.go create mode 100644 internal/bandchain/tss/helpers.go create mode 100644 internal/bandchain/tss/schnorr/complaint_signature.go create mode 100644 internal/bandchain/tss/schnorr/error.go create mode 100644 internal/bandchain/tss/schnorr/signature.go create mode 100644 internal/bandchain/tss/tss.go create mode 100644 internal/bandchain/tss/tss.pb.go create mode 100644 internal/bandchain/tunnel/ibc_route.go create mode 100644 internal/bandchain/tunnel/packet_receipt.go create mode 100644 internal/bandchain/tunnel/params.pb.go create mode 100644 internal/bandchain/tunnel/query.pb.go create mode 100644 internal/bandchain/tunnel/route.go create mode 100644 internal/bandchain/tunnel/route.pb.go create mode 100644 internal/bandchain/tunnel/tss_route.go create mode 100644 internal/bandchain/tunnel/tunnel.pb.go create mode 100644 internal/relayertest/mocks/band_chain_query.go delete mode 100644 internal/relayertest/mocks/bandtss_query_client.go delete mode 100644 internal/relayertest/mocks/tunnel_query_client.go create mode 100644 relayer/band/query.go diff --git a/go.mod b/go.mod index 5007386..b0ed7bf 100644 --- a/go.mod +++ b/go.mod @@ -5,11 +5,11 @@ go 1.22.3 require ( cosmossdk.io/math v1.4.0 cosmossdk.io/x/tx v0.13.7 - github.com/bandprotocol/chain/v3 v3.0.0-rc1 github.com/charmbracelet/huh v0.6.0 github.com/cometbft/cometbft v0.38.12 github.com/cosmos/cosmos-sdk v0.50.11 github.com/cosmos/gogoproto v1.7.0 + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 github.com/ethereum/go-ethereum v1.14.12 github.com/joho/godotenv v1.5.1 github.com/jsternberg/zap-logfmt v1.3.0 @@ -33,18 +33,14 @@ require ( cosmossdk.io/errors v1.0.1 // indirect cosmossdk.io/log v1.4.1 // indirect cosmossdk.io/store v1.1.1 // indirect - cosmossdk.io/x/upgrade v0.1.4 // indirect filippo.io/edwards25519 v1.1.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect - github.com/DataDog/datadog-go v3.2.0+incompatible // indirect github.com/DataDog/zstd v1.5.5 // indirect - github.com/Masterminds/semver/v3 v3.3.1 // indirect github.com/Microsoft/go-winio v0.6.2 // indirect github.com/StackExchange/wmi v1.2.1 // indirect github.com/atotto/clipboard v0.1.4 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect - github.com/bandprotocol/go-owasm v0.3.1 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect github.com/bits-and-blooms/bitset v1.13.0 // indirect @@ -53,7 +49,6 @@ require ( github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce // indirect github.com/catppuccin/go v0.2.0 // indirect - github.com/cenkalti/backoff/v4 v4.1.3 // indirect github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/charmbracelet/bubbles v0.20.0 // indirect @@ -75,10 +70,7 @@ require ( github.com/cosmos/cosmos-db v1.1.1 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect - github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/iavl v1.2.2 // indirect - github.com/cosmos/ibc-go/modules/capability v1.0.1 // indirect - github.com/cosmos/ibc-go/v8 v8.5.2 // indirect github.com/cosmos/ics23/go v0.11.0 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c // indirect @@ -86,8 +78,6 @@ require ( github.com/danieljoos/wincred v1.1.2 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/deckarep/golang-set/v2 v2.6.0 // indirect - github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect - github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect github.com/dgraph-io/badger/v2 v2.2007.4 // indirect github.com/dgraph-io/ristretto v0.1.1 // indirect github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect @@ -97,8 +87,6 @@ require ( github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect github.com/ethereum/c-kzg-4844 v1.0.0 // indirect github.com/ethereum/go-verkle v0.1.1-0.20240829091221-dffa7562dbe9 // indirect - github.com/fatih/color v1.16.0 // indirect - github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/getsentry/sentry-go v0.27.0 // indirect github.com/go-kit/kit v0.12.0 // indirect @@ -106,7 +94,6 @@ require ( github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/go-ole/go-ole v1.3.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect - github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/glog v1.2.2 // indirect github.com/golang/protobuf v1.5.4 // indirect @@ -117,21 +104,16 @@ require ( github.com/gorilla/handlers v1.5.2 // indirect github.com/gorilla/mux v1.8.1 // indirect github.com/gorilla/websocket v1.5.3 // indirect - github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect - github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-metrics v0.5.3 // indirect - github.com/hashicorp/go-plugin v1.5.2 // indirect + github.com/hashicorp/go-uuid v1.0.2 // indirect github.com/hashicorp/golang-lru v1.0.2 // indirect github.com/hashicorp/hcl v1.0.0 // indirect - github.com/hashicorp/yamux v0.1.1 // indirect github.com/hdevalence/ed25519consensus v0.1.0 // indirect github.com/holiman/uint256 v1.3.1 // indirect - github.com/huandu/skiplist v1.2.0 // indirect github.com/iancoleman/strcase v0.3.0 // indirect - github.com/improbable-eng/grpc-web v0.15.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect github.com/klauspost/compress v1.17.9 // indirect @@ -144,7 +126,6 @@ require ( github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-localereader v0.0.1 // indirect github.com/mattn/go-runewidth v0.0.16 // indirect - github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect github.com/mmcloughlin/addchain v0.4.0 // indirect github.com/mtibben/percent v0.2.1 // indirect @@ -153,7 +134,7 @@ require ( github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect - github.com/oklog/run v1.1.0 // indirect + github.com/onsi/ginkgo v1.16.4 // indirect github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect @@ -164,7 +145,6 @@ require ( github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect - github.com/rs/cors v1.11.1 // indirect github.com/rs/zerolog v1.33.0 // indirect github.com/sagikazarmark/locafero v0.4.0 // indirect github.com/sagikazarmark/slog-shim v0.1.0 // indirect @@ -200,7 +180,6 @@ require ( gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect gotest.tools/v3 v3.5.1 // indirect - nhooyr.io/websocket v1.8.6 // indirect pgregory.net/rapid v1.1.0 // indirect rsc.io/tmplfunc v0.0.3 // indirect sigs.k8s.io/yaml v1.4.0 // indirect diff --git a/go.sum b/go.sum index c1ba0b5..8cb23b6 100644 --- a/go.sum +++ b/go.sum @@ -1,22 +1,7 @@ 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= -cloud.google.com/go v0.115.0 h1:CnFSK6Xo3lDYRoBKEcAtia6VSC837/ZkJuRduSFnr14= -cloud.google.com/go v0.115.0/go.mod h1:8jIM5vVgoAEoiVxQ/O4BFTfHqulPZgs/ufEzMcFMdWU= -cloud.google.com/go/auth v0.6.0 h1:5x+d6b5zdezZ7gmLWD1m/xNjnaQ2YDhmIz/HH3doy1g= -cloud.google.com/go/auth v0.6.0/go.mod h1:b4acV+jLQDyjwm4OXHYjNvRi4jvGBzHWJRtJcy+2P4g= -cloud.google.com/go/auth/oauth2adapt v0.2.2 h1:+TTV8aXpjeChS9M+aTtN/TjdQnzJvmzKFt//oWu7HX4= -cloud.google.com/go/auth/oauth2adapt v0.2.2/go.mod h1:wcYjgpZI9+Yu7LyYBg4pqSiaRkfEK3GQcpb7C/uyF1Q= -cloud.google.com/go/compute v1.27.1 h1:0WbBLIPNANheCRZ4h8QhgzjN53KMutbiVBOLtPiVzBU= -cloud.google.com/go/compute/metadata v0.5.0 h1:Zr0eK8JbFv6+Wi4ilXAR8FJ3wyNdpxHKJNPos6LTZOY= -cloud.google.com/go/compute/metadata v0.5.0/go.mod h1:aHnloV2TPI38yx4s9+wAZhHykWvVCfu7hQbF+9CWoiY= -cloud.google.com/go/iam v1.1.9 h1:oSkYLVtVme29uGYrOcKcvJRht7cHJpYD09GM9JaR0TE= -cloud.google.com/go/iam v1.1.9/go.mod h1:Nt1eDWNYH9nGQg3d/mY7U1hvfGmsaG9o/kLGoLoLXjQ= -cloud.google.com/go/storage v1.41.0 h1:RusiwatSu6lHeEXe3kglxakAmAbfV+rhtPqA6i8RBx0= -cloud.google.com/go/storage v1.41.0/go.mod h1:J1WCa/Z2FcgdEDuPUY8DxT5I+d9mFKsCepp5vR6Sq80= cosmossdk.io/api v0.7.6 h1:PC20PcXy1xYKH2KU4RMurVoFjjKkCgYRbVAD4PdqUuY= cosmossdk.io/api v0.7.6/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= -cosmossdk.io/client/v2 v2.0.0-beta.7 h1:O0PfZL5kC3Sp54wZASLNihQ612Gd6duMp11aM9wawNg= -cosmossdk.io/client/v2 v2.0.0-beta.7/go.mod h1:TzwwrzeK+AfSVSESVEIOYO/9xuCh1fPv0HgeocmfVnM= cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s= cosmossdk.io/collections v0.4.0/go.mod h1:oa5lUING2dP+gdDquow+QjlF45eL1t4TJDypgGd+tv0= cosmossdk.io/core v0.11.2 h1:20PXbQxhWRKA83pSYW76OXrc1MI2E93flbMAGSVFlyc= @@ -31,38 +16,23 @@ cosmossdk.io/math v1.4.0 h1:XbgExXFnXmF/CccPPEto40gOO7FpWu9yWNAZPN3nkNQ= cosmossdk.io/math v1.4.0/go.mod h1:O5PkD4apz2jZs4zqFdTr16e1dcaQCc5z6lkEnrrppuk= cosmossdk.io/store v1.1.1 h1:NA3PioJtWDVU7cHHeyvdva5J/ggyLDkyH0hGHl2804Y= cosmossdk.io/store v1.1.1/go.mod h1:8DwVTz83/2PSI366FERGbWSH7hL6sB7HbYp8bqksNwM= -cosmossdk.io/x/circuit v0.1.1 h1:KPJCnLChWrxD4jLwUiuQaf5mFD/1m7Omyo7oooefBVQ= -cosmossdk.io/x/circuit v0.1.1/go.mod h1:B6f/urRuQH8gjt4eLIXfZJucrbreuYrKh5CSjaOxr+Q= -cosmossdk.io/x/evidence v0.1.1 h1:Ks+BLTa3uftFpElLTDp9L76t2b58htjVbSZ86aoK/E4= -cosmossdk.io/x/evidence v0.1.1/go.mod h1:OoDsWlbtuyqS70LY51aX8FBTvguQqvFrt78qL7UzeNc= -cosmossdk.io/x/feegrant v0.1.1 h1:EKFWOeo/pup0yF0svDisWWKAA9Zags6Zd0P3nRvVvw8= -cosmossdk.io/x/feegrant v0.1.1/go.mod h1:2GjVVxX6G2fta8LWj7pC/ytHjryA6MHAJroBWHFNiEQ= cosmossdk.io/x/tx v0.13.7 h1:8WSk6B/OHJLYjiZeMKhq7DK7lHDMyK0UfDbBMxVmeOI= cosmossdk.io/x/tx v0.13.7/go.mod h1:V6DImnwJMTq5qFjeGWpXNiT/fjgE4HtmclRmTqRVM3w= -cosmossdk.io/x/upgrade v0.1.4 h1:/BWJim24QHoXde8Bc64/2BSEB6W4eTydq0X/2f8+g38= -cosmossdk.io/x/upgrade v0.1.4/go.mod h1:9v0Aj+fs97O+Ztw+tG3/tp5JSlrmT7IcFhAebQHmOPo= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/zstd v1.5.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ= github.com/DataDog/zstd v1.5.5/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= -github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ= github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE= -github.com/Masterminds/semver/v3 v3.3.1 h1:QtNSWtVZ3nBfk8mAOu/B6v7FMJ+NHTIgUPi7rj+4nv4= -github.com/Masterminds/semver/v3 v3.3.1/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= -github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= github.com/StackExchange/wmi v1.2.1 h1:VIkavFPXSjcnS+O8yTq7NI32k0R5Aj+v39y29VYDOSA= github.com/StackExchange/wmi v1.2.1/go.mod h1:rcmrprowKIVzvc+NUiLncP2uuArMWLCbu9SBzvHz7e8= github.com/VictoriaMetrics/fastcache v1.12.2 h1:N0y9ASrJ0F6h0QaC3o6uJb3NIZ9VKLjCM7NQbSmF7WI= @@ -70,41 +40,20 @@ github.com/VictoriaMetrics/fastcache v1.12.2/go.mod h1:AmC+Nzz1+3G2eCPapF6UcsnkT github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= -github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4= github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= -github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= -github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.44.224 h1:09CiaaF35nRmxrzWZ2uRq5v6Ghg/d2RiPjZnSgtt+RQ= -github.com/aws/aws-sdk-go v1.44.224/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= -github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= -github.com/bandprotocol/chain/v3 v3.0.0-rc1 h1:u89uLRXmk0IeAl8nw7rxZ6UZPC3kgWpo+7jShGahmQw= -github.com/bandprotocol/chain/v3 v3.0.0-rc1/go.mod h1:cbts+zMcKauRGnJ6d5hgDencnhPksgXMyFVxnNvXgko= -github.com/bandprotocol/go-owasm v0.3.1 h1:L38qAEmb0KyTICHBHJaBoo6yy5+BlbOzQeQ+ioUV5Uw= -github.com/bandprotocol/go-owasm v0.3.1/go.mod h1:SAzGihlBl8eZDXA1dO2aeAZLm8J2QkNd+KvnA2Dw9Kg= -github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas= -github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bits-and-blooms/bitset v1.13.0 h1:bAQ9OPNFYbGHV6Nez0tmNI0RiEu7/hxlYJRUA0wFAVE= @@ -127,15 +76,9 @@ github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVa github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= -github.com/bufbuild/protocompile v0.6.0 h1:Uu7WiSQ6Yj9DbkdnOe7U4mNKp58y9WDMKDn28/ZlunY= -github.com/bufbuild/protocompile v0.6.0/go.mod h1:YNP35qEYoYGme7QMtz5SBCoN4kL4g12jTtjuzRNdjpE= -github.com/bytecodealliance/wasmtime-go/v20 v20.0.0 h1:xO8EMdztxRALMRoru7WCIlr10co225tFFUoJ/Ygzdv4= -github.com/bytecodealliance/wasmtime-go/v20 v20.0.0/go.mod h1:Va362hmt7aqwyb2Vu73yHbmx6NkSvGmvHOzJa2xMECQ= -github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= github.com/catppuccin/go v0.2.0 h1:ktBeIrIP42b/8FGiScP9sgrWOss3lw0Z5SktRoithGA= github.com/catppuccin/go v0.2.0/go.mod h1:8IHJuMGaUUjQM82qBrGNBv7LFq6JI3NnQCF6MOlZjpc= -github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= -github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= +github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -160,22 +103,10 @@ github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0 h1:qko github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0/go.mod h1:pBhA0ybfXv6hDjQUZ7hk1lVxBiUbupdw5R31yPUViVQ= github.com/charmbracelet/x/term v0.2.1 h1:AQeHeLZ1OqSXhrAWpYUtZyX1T3zVxfpZuEQMIQaGIAQ= github.com/charmbracelet/x/term v0.2.1/go.mod h1:oQ4enTYFV7QN4m0i9mzHrViD7TQKvNEEkHUMCmsxdUg= -github.com/chzyer/readline v1.5.1 h1:upd/6fQk4src78LMRzh5vItIt361/o4uq553V8B5sGI= -github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= -github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= 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-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= -github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= -github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f h1:otljaYPt5hWxV3MUfO5dFPFiOXg9CyG5/kCfayTqsJ4= github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= github.com/cockroachdb/errors v1.11.3 h1:5bA+k2Y6r+oz/6Z/RFlNeVCesGARKuC6YymtcDrbC/I= @@ -190,7 +121,6 @@ github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwP github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= -github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= github.com/cometbft/cometbft v0.38.12 h1:OWsLZN2KcSSFe8bet9xCn07VwhBnavPea3VyPnNq1bg= github.com/cometbft/cometbft v0.38.12/go.mod h1:GPHp3/pehPqgX1930HmK1BpBLZPxB75v/dZg8Viwy+o= github.com/cometbft/cometbft-db v0.11.0 h1:M3Lscmpogx5NTbb1EGyGDaFRdsoLWrUWimFEyf7jej8= @@ -202,9 +132,7 @@ github.com/consensys/gnark-crypto v0.12.1/go.mod h1:v2Gy7L/4ZRosZ7Ivs+9SfUDr0f5U github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= github.com/cosmos/cosmos-db v1.1.1 h1:FezFSU37AlBC8S98NlSagL76oqBRWq/prTPvFcEJNCM= @@ -217,15 +145,10 @@ github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ4GUkT+tbFI= -github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= github.com/cosmos/gogoproto v1.7.0 h1:79USr0oyXAbxg3rspGh/m4SWNyoz/GLaAh0QlCe2fro= github.com/cosmos/gogoproto v1.7.0/go.mod h1:yWChEv5IUEYURQasfyBW5ffkMHR/90hiHgbNgrtp4j0= github.com/cosmos/iavl v1.2.2 h1:qHhKW3I70w+04g5KdsdVSHRbFLgt3yY3qTMd4Xa4rC8= github.com/cosmos/iavl v1.2.2/go.mod h1:GiM43q0pB+uG53mLxLDzimxM9l/5N9UuSY3/D0huuVw= -github.com/cosmos/ibc-go/modules/capability v1.0.1 h1:ibwhrpJ3SftEEZRxCRkH0fQZ9svjthrX2+oXdZvzgGI= -github.com/cosmos/ibc-go/modules/capability v1.0.1/go.mod h1:rquyOV262nGJplkumH+/LeYs04P3eV8oB7ZM4Ygqk4E= -github.com/cosmos/ibc-go/v8 v8.5.2 h1:27s9oeD2AxLQF3e9BQsYt9doONyZ7FwZi/qkBv6Sdks= -github.com/cosmos/ibc-go/v8 v8.5.2/go.mod h1:P5hkAvq0Qbg0h18uLxDVA9q1kOJ0l36htMsskiNwXbo= github.com/cosmos/ics23/go v0.11.0 h1:jk5skjT0TqX5e5QJbEnwXIS2yI2vnmLOgpQPeM5RtnU= github.com/cosmos/ics23/go v0.11.0/go.mod h1:A8OjxPE67hHST4Icw94hOxxFEJMBG031xIGF/JHNIY0= github.com/cosmos/keyring v1.2.0 h1:8C1lBP9xhImmIabyXW4c3vFjjLiBdGCmfLUfeZlV1Yo= @@ -234,14 +157,12 @@ github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5n github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= github.com/cpuguy83/go-md2man v1.0.10 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= -github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c h1:uQYC5Z1mdLRPrZhHjHxufI8+2UG/i25QG92j0Er9p6I= github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c/go.mod h1:geZJZH3SzKCqnz5VT0q/DyIG/tvu/dZk+VIfXicupJs= github.com/crate-crypto/go-kzg-4844 v1.0.0 h1:TsSgHwrkTKecKJ4kadtHi4b3xHW5dCFUDFnUp1TsawI= github.com/crate-crypto/go-kzg-4844 v1.0.0/go.mod h1:1kMhvPgI0Ky3yIa+9lFySEBUBXkYxeOi8ZF1sYioxhc= -github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= @@ -263,29 +184,19 @@ github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/dvsekhvalnov/jose2go v1.6.0 h1:Y9gnSnP4qEI0+/uQkHvFXeD2PLPJeXEL+ySMEA2EjTY= github.com/dvsekhvalnov/jose2go v1.6.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= -github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= -github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= github.com/emicklei/dot v1.6.2 h1:08GN+DD79cy/tzN6uLCT84+2Wk9u+wvqP+Hkx/dIR8A= github.com/emicklei/dot v1.6.2/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= -github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= 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/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4= github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM= @@ -295,16 +206,12 @@ github.com/ethereum/go-ethereum v1.14.12 h1:8hl57x77HSUo+cXExrURjU/w1VhL+ShCTJrT github.com/ethereum/go-ethereum v1.14.12/go.mod h1:RAC2gVMWJ6FkxSPESfbshrcKpIokgQKsVKmAuqdekDY= github.com/ethereum/go-verkle v0.1.1-0.20240829091221-dffa7562dbe9 h1:8NfxH2iXvJ60YRB8ChToFTUzl8awsc3cJ8CbLjGIl/A= github.com/ethereum/go-verkle v0.1.1-0.20240829091221-dffa7562dbe9/go.mod h1:M3b90YRnzqKyyzBEWJGqj8Qff4IDeXnzFw0P9bFw3uk= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= -github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= -github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= @@ -314,67 +221,31 @@ github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyT github.com/getsentry/sentry-go v0.27.0 h1:Pv98CIbtB3LkMWmXi4Joa5OOcwbmnX88sF5qbK3r3Ps= github.com/getsentry/sentry-go v0.27.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= -github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= -github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8= -github.com/gin-gonic/gin v1.8.1/go.mod h1:ji8BvRH1azfM+SYow9zQ6SZMvR8qOMZHmsCuWR9tTTk= github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= github.com/go-kit/kit v0.12.0 h1:e4o3o3IsBfAKQh5Qbbiqyfu97Ku7jrO/JbohvztANh4= github.com/go-kit/kit v0.12.0/go.mod h1:lHd+EkCZPIwYItmGDDRdhinkzX2A1sj+M9biaEaizzs= -github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= -github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= -github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= -github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= -github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-ole/go-ole v1.2.5/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE= github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78= -github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= -github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= -github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb8WugfUU= -github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= -github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= -github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho= -github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= -github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= -github.com/go-playground/validator/v10 v10.11.1 h1:prmOlTVv+YjZjmRmNSF3VmspqJIxJWXmqUsHwfTRRkQ= -github.com/go-playground/validator/v10 v10.11.1/go.mod h1:i+3WkQ1FvaUjjxh1kSvIA4dMGDBiPU55YFDl0WbKdWU= -github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= -github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= -github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= -github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= -github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= -github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= -github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= -github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw= github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= -github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= -github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0= github.com/gogo/googleapis v1.4.1/go.mod h1:2lpHqI5OcWCtVElxXnPt+s8oJvMpySlOyM6xDCrzib4= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo= @@ -382,10 +253,6 @@ github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= -github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= @@ -394,35 +261,24 @@ github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a github.com/golang/protobuf v1.3.1/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.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= 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/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.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb h1:PBC98N2aIaM3XXiurYmW7fx4GZkL8feAMVq7nEjURHk= github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= 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/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= @@ -432,51 +288,25 @@ github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/orderedcode v0.0.1 h1:UzfcAexk9Vhv8+9pNOgRu41f16lHq725vPwnSeiG/Us= github.com/google/orderedcode v0.0.1/go.mod h1:iVyU4/qPKHY5h/wSd6rZZCDcLJNxiWO6dvsYES2Sb20= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= -github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk= -github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs= -github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= -github.com/googleapis/gax-go/v2 v2.12.5 h1:8gw9KZK8TiVKB6q3zHY3SBzLnrGp6HQjyfYBYGmXdxA= -github.com/googleapis/gax-go/v2 v2.12.5/go.mod h1:BUDKcWo+RaKq5SC9vVYL0wLADa3VcfswbOMMRmB9H3E= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE= github.com/gorilla/handlers v1.5.2/go.mod h1:dX+xVpaxdSw+q0Qek8SSsl3dfMk3jNddUkMzo0GtH0w= -github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= -github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= -github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= -github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-bexpr v0.1.10 h1:9kuI5PFotCboP3dkDYFr/wi0gg0QVbSNz5oFRpxn4uE= github.com/hashicorp/go-bexpr v0.1.10/go.mod h1:oxlubA2vC/gFVfX1A6JGp7ls7uCDlfJn732ehYYg+g0= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= -github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-getter v1.7.5 h1:dT58k9hQ/vbxNMwoI5+xFYAJuv6152UNvdHokfI5wE4= -github.com/hashicorp/go-getter v1.7.5/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= @@ -484,36 +314,19 @@ github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJ github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-metrics v0.5.3 h1:M5uADWMOGCTUNU1YuC4hfknOeHNaX54LDm4oYSucoNE= github.com/hashicorp/go-metrics v0.5.3/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= -github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-plugin v1.5.2 h1:aWv8eimFqWlsEiMrYZdPYl+FdHaBJSN4AWwGWfT1G2Y= github.com/hashicorp/go-plugin v1.5.2/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= -github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= -github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo= -github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoDHxNAB65b+Rj1I= -github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= -github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= -github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/hdevalence/ed25519consensus v0.1.0 h1:jtBwzzcHuTmFrQN6xQZn6CQEO/V9f7HsjsjeEZ6auqU= @@ -525,11 +338,8 @@ github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iU github.com/holiman/uint256 v1.3.1 h1:JfTzmih28bittyHM8z360dCjIA9dbPIBlcTI6lmctQs= github.com/holiman/uint256 v1.3.1/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= -github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= github.com/huandu/skiplist v1.2.0 h1:gox56QD77HzSC0w+Ws3MH3iie755GBJU1OER3h5VsYw= github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w= -github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc= github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8= github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= @@ -539,46 +349,26 @@ github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPt github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus= github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jhump/protoreflect v1.15.3 h1:6SFRuqU45u9hIZPJAoZ8c28T3nK64BNdp9w6jFonzls= -github.com/jhump/protoreflect v1.15.3/go.mod h1:4ORHmSBmlCW8fh3xHmJMGyul1zNqZK4Elxc8qKP+p1k= -github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= -github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jsternberg/zap-logfmt v1.3.0 h1:z1n1AOHVVydOOVuyphbOKyR4NICDQFiJMn1IK5hVQ5Y= github.com/jsternberg/zap-logfmt v1.3.0/go.mod h1:N3DENp9WNmCZxvkBD/eReWwz1149BK6jEN9cQ4fNwZE= -github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= -github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -591,59 +381,35 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c= github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8= -github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= -github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= -github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= -github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= github.com/linxGnu/grocksdb v1.8.14 h1:HTgyYalNwBSG/1qCQUIott44wU5b2Y9Kr3z7SK5OfGQ= github.com/linxGnu/grocksdb v1.8.14/go.mod h1:QYiYypR2d4v63Wj1adOOfzglnoII0gLj3PNh4fZkcFA= github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= -github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= -github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4= github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88= -github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc= github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miguelmota/go-ethereum-hdwallet v0.1.2 h1:mz9LO6V7QCRkLYb0AH17t5R8KeqCe3E+hx9YXpmZeXA= github.com/miguelmota/go-ethereum-hdwallet v0.1.2/go.mod h1:fdNwFSoBFVBPnU0xpOd6l2ueqsPSH/Gch5kIvSvTGk8= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= -github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= -github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4= github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE= -github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= -github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= @@ -653,12 +419,9 @@ github.com/mmcloughlin/addchain v0.4.0 h1:SobOdjm2xLj1KkXN5/n0xTIWyZA2+s99UCY1iP github.com/mmcloughlin/addchain v0.4.0/go.mod h1:A86O+tHqZLMNO4w6ZZ4FlVQEadcoqkyU72HC5wJ4RlU= github.com/mmcloughlin/profile v0.1.1/go.mod h1:IhHD7q1ooxgwTgjxQYkACGA77oFTDdFVejUS1/tS/qU= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI= @@ -670,29 +433,14 @@ github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a/go.mod h1:hxSnBB github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo= -github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= -github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= -github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= -github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= -github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= -github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= -github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/oasisprotocol/oasis-core/go v0.2202.7 h1:BAaqQMc474ctQeith+vkckPXi7Lpgag+9QI0QpUK60g= -github.com/oasisprotocol/oasis-core/go v0.2202.7/go.mod h1:hKUgtuPPq371HokUQL5ashT5MZLZxK/VkWNKRLb9m+w= -github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= -github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -706,31 +454,14 @@ github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7J github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.26.0 h1:03cDLK28U6hWvCAns6NeydX3zIm4SF3ci69ulidS32Q= github.com/onsi/gomega v1.26.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdMPGhM= -github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= -github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= -github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= -github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= -github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= -github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= -github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= -github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= -github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 h1:jik8PHtAIsPlCRJjJzl4udgEf7hawInF9texMeO2jrU= github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= -github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= -github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= @@ -738,56 +469,38 @@ github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= -github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= github.com/prometheus/client_golang v1.20.5 h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y= github.com/prometheus/client_golang v1.20.5/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= -github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= -github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc= github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= -github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= -github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= -github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.11.1 h1:eU3gRzXLRK57F5rKMGMZURNdIG4EoAmX8k94r9wXWHA= github.com/rs/cors v1.11.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= @@ -795,31 +508,20 @@ github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8= github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= -github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible h1:Bn1aCHHRnjv4Bl16T8rcaFjYSrGrIZvpiGO6P3Q4GpU= github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k= github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= -github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= @@ -831,21 +533,16 @@ github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNo github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.7.1 h1:cuNEagBQEHWN1FnbGEjCXL2szYEXqfJPbP2HNUaca9Y= github.com/spf13/cast v1.7.1/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= -github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI= github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg= -github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= -github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= -github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= @@ -859,7 +556,6 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= @@ -879,24 +575,12 @@ github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFA github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY= -github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/tyler-smith/go-bip39 v1.1.0 h1:5eUemwrMargf3BSLRRCalXT93Ns6pQJIjYQN2nyfOP8= github.com/tyler-smith/go-bip39 v1.1.0/go.mod h1:gUYDtqQw1JS3ZJ8UWVcGTGqqr6YIN3CWg+kkNaLt55U= -github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= -github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= -github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= -github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= -github.com/ulikunitz/xz v0.5.11 h1:kpFauv27b6ynzBNT/Xy+1k+fK4WswhN/6PN5WhFAGw8= -github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= -github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= -github.com/urfave/cli v1.22.1 h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY= -github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs= github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= @@ -906,53 +590,20 @@ github.com/zondax/hid v0.9.2 h1:WCJFnEDMiqGF64nlZz28E9qLVZ0KSJ7xpc5DLEyma2U= github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= github.com/zondax/ledger-go v0.14.3 h1:wEpJt2CEcBJ428md/5MgSLsXLBos98sBOyxNmCjfUCw= github.com/zondax/ledger-go v0.14.3/go.mod h1:IKKaoxupuB43g4NxeQmbLXv7T9AlQyie1UpHb342ycI= -go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.10 h1:+BqfJTcCzTItrop8mq/lbzL8wSGtj94UO/3U31shqG0= go.etcd.io/bbolt v1.3.10/go.mod h1:bK3UQLPJZly7IlNmV7uVHJDxfe5aK9Ll93e/74Y9oEQ= -go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= -go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= -go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= -go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= -go.opentelemetry.io/otel v1.24.0 h1:0LAOdjNmQeSTzGBzduGe/rU4tZhMwL5rWgtp9Ku5Jfo= -go.opentelemetry.io/otel v1.24.0/go.mod h1:W7b9Ozg4nkF5tWI5zsXkaKKDjdVjpD4oAt9Qi/MArHo= -go.opentelemetry.io/otel/metric v1.24.0 h1:6EhoGWWK28x1fbpA4tYTOWBkPefTDQnb8WSGXlc88kI= -go.opentelemetry.io/otel/metric v1.24.0/go.mod h1:VYhLe1rFfxuTXLgj4CBiyz+9WYBA8pNGJgDcSFRKBco= -go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI= -go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/mock v0.5.0 h1:KAMbZvZPyBPWgD14IrIQ38QCyjwpvVVV6K/bHl1IwQU= go.uber.org/mock v0.5.0/go.mod h1:ge71pBPLYDk7QIi1LupWxdAykm7KIEFchiOqd6z7qMM= -go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= -go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= -go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= -go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= -go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= -go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= @@ -960,56 +611,32 @@ golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPh 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/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY= golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 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-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 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-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181220203305-927f97764cc3/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-20190125091013-d26f9f9a57f3/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-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= 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-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.22.0 h1:BzDx2FehcG7jJwgWLELCdmLuxk2i+x9UDpSiss2u0ZA= -golang.org/x/oauth2 v0.22.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= 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= @@ -1019,55 +646,27 @@ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.9.0 h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ= golang.org/x/sync v0.9.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/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-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220315194320-039c03cc5b86/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1077,85 +676,45 @@ golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= 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.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= -golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= -golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= -google.golang.org/api v0.186.0 h1:n2OPp+PPXX0Axh4GuSsL5QL8xQCTb2oDwyzPnQvqUug= -google.golang.org/api v0.186.0/go.mod h1:hvRbBmgoje49RV3xqVXrmP6w93n6ehGgIVPYrGtBFFc= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 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-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20220314164441-57ef72a4c106/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= google.golang.org/genproto v0.0.0-20240701130421-f6361c86f094 h1:6whtk83KtD3FkGrVb2hFXuQ+ZMbCNdakARIn/aHMmG8= google.golang.org/genproto v0.0.0-20240701130421-f6361c86f094/go.mod h1:Zs4wYw8z1zr6RNF4cwYb31mvN/EGaKAdQjNCF3DW6K4= google.golang.org/genproto/googleapis/api v0.0.0-20241021214115-324edc3d5d38 h1:2oV8dfuIkM1Ti7DwXc0BJfnwr9csz4TDXI9EmiI+Rbw= google.golang.org/genproto/googleapis/api v0.0.0-20241021214115-324edc3d5d38/go.mod h1:vuAjtvlwkDKF6L1GQ0SokiRLCGFfeBUXWr/aFFkHACc= google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 h1:X58yt85/IXCx0Y3ZwN6sEIKZzQtDEYaBWrDvErdXrRE= google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= -google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= -google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 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/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= -google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= @@ -1163,63 +722,42 @@ google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ 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.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -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/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.36.1 h1:yBPeRvTftaleIgM3PZ/WBIZ7XM/eEYAaEyCwvyjq/gk= google.golang.org/protobuf v1.36.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc= gopkg.in/natefinch/lumberjack.v2 v2.2.1/go.mod h1:YD8tP3GAjkrDg1eZH7EGmyESg/lsYskCTPBJVb9jqSc= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= -gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 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.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU= gotest.tools/v3 v3.5.1/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU= -honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= pgregory.net/rapid v0.5.5 h1:jkgx1TjbQPD/feRoK+S/mXw9e1uj6WilpHrXJowi6oA= pgregory.net/rapid v0.5.5/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= rsc.io/tmplfunc v0.0.3 h1:53XFQh69AfOa8Tw0Jm7t+GV7KZhOi6jzsCzTtKbMvzU= rsc.io/tmplfunc v0.0.3/go.mod h1:AG3sTPzElb1Io3Yg4voV9AGZJuleGAwaVRxL9M49PhA= -sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= -sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/internal/bandchain/bandtss/bandtss.go b/internal/bandchain/bandtss/bandtss.go new file mode 100644 index 0000000..6a6abd0 --- /dev/null +++ b/internal/bandchain/bandtss/bandtss.go @@ -0,0 +1,4 @@ +package types + +// SigningID is the type-safe unique identifier type for bandtss signing info. +type SigningID uint64 diff --git a/internal/bandchain/bandtss/bandtss.pb.go b/internal/bandchain/bandtss/bandtss.pb.go new file mode 100644 index 0000000..aa036dd --- /dev/null +++ b/internal/bandchain/bandtss/bandtss.pb.go @@ -0,0 +1,1975 @@ +package types + +import ( + "bytes" + "fmt" + "io" + "math" + math_bits "math/bits" + "time" + + github_com_cometbft_cometbft_libs_bytes "github.com/cometbft/cometbft/libs/bytes" + "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + + github_com_bandprotocol_chain_v3_pkg_tss "github.com/bandprotocol/falcon/internal/bandchain/tss" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// TransitionStatus is an enumeration of the possible statuses of a group transition process. +type TransitionStatus int32 + +const ( + // TRANSITION_STATUS_UNSPECIFIED is the status of a group transition that has not been specified. + TRANSITION_STATUS_UNSPECIFIED TransitionStatus = 0 + // TRANSITION_STATUS_CREATING_GROUP is the status of a group transition that a new group + // is being created. + TRANSITION_STATUS_CREATING_GROUP TransitionStatus = 1 + // TRANSITION_STATUS_WAITING_SIGN is the status of a group transition that waits members in + // a current group to sign the transition message. + TRANSITION_STATUS_WAITING_SIGN TransitionStatus = 2 + // TRANSITION_STATUS_WAITING_EXECUTION is the status of a group transition that + // a transition process is completed, either from a forceTransition or having a current-group + // signature on a transition message, but waits for the execution time. + TRANSITION_STATUS_WAITING_EXECUTION TransitionStatus = 3 +) + +var TransitionStatus_name = map[int32]string{ + 0: "TRANSITION_STATUS_UNSPECIFIED", + 1: "TRANSITION_STATUS_CREATING_GROUP", + 2: "TRANSITION_STATUS_WAITING_SIGN", + 3: "TRANSITION_STATUS_WAITING_EXECUTION", +} + +var TransitionStatus_value = map[string]int32{ + "TRANSITION_STATUS_UNSPECIFIED": 0, + "TRANSITION_STATUS_CREATING_GROUP": 1, + "TRANSITION_STATUS_WAITING_SIGN": 2, + "TRANSITION_STATUS_WAITING_EXECUTION": 3, +} + +func (x TransitionStatus) String() string { + return proto.EnumName(TransitionStatus_name, int32(x)) +} + +func (TransitionStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_2bc325518cc10c44, []int{0} +} + +// Member maintains member information for monitoring their liveness activity. +type Member struct { + // address is the address of the member. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // group_id is the group ID that the member belongs to. + GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"group_id,omitempty"` + // is_active is a flag to indicate whether a member is active or not. + IsActive bool `protobuf:"varint,3,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` + // since is a block timestamp when a member status is changed (from active to inactive or vice versa). + Since time.Time `protobuf:"bytes,4,opt,name=since,proto3,stdtime" json:"since"` +} + +func (m *Member) Reset() { *m = Member{} } +func (m *Member) String() string { return proto.CompactTextString(m) } +func (*Member) ProtoMessage() {} +func (*Member) Descriptor() ([]byte, []int) { + return fileDescriptor_2bc325518cc10c44, []int{0} +} +func (m *Member) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Member.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Member) XXX_Merge(src proto.Message) { + xxx_messageInfo_Member.Merge(m, src) +} +func (m *Member) XXX_Size() int { + return m.Size() +} +func (m *Member) XXX_DiscardUnknown() { + xxx_messageInfo_Member.DiscardUnknown(m) +} + +var xxx_messageInfo_Member proto.InternalMessageInfo + +func (m *Member) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *Member) GetGroupID() github_com_bandprotocol_chain_v3_pkg_tss.GroupID { + if m != nil { + return m.GroupID + } + return 0 +} + +func (m *Member) GetIsActive() bool { + if m != nil { + return m.IsActive + } + return false +} + +func (m *Member) GetSince() time.Time { + if m != nil { + return m.Since + } + return time.Time{} +} + +// CuurentGroup is a bandtss current group information. +type CurrentGroup struct { + // group_id is the ID of the current group. + GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"group_id,omitempty"` + // active_time is the timestamp at which the group becomes the current group of the module. + ActiveTime time.Time `protobuf:"bytes,2,opt,name=active_time,json=activeTime,proto3,stdtime" json:"active_time"` +} + +func (m *CurrentGroup) Reset() { *m = CurrentGroup{} } +func (m *CurrentGroup) String() string { return proto.CompactTextString(m) } +func (*CurrentGroup) ProtoMessage() {} +func (*CurrentGroup) Descriptor() ([]byte, []int) { + return fileDescriptor_2bc325518cc10c44, []int{1} +} +func (m *CurrentGroup) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CurrentGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CurrentGroup.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CurrentGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_CurrentGroup.Merge(m, src) +} +func (m *CurrentGroup) XXX_Size() int { + return m.Size() +} +func (m *CurrentGroup) XXX_DiscardUnknown() { + xxx_messageInfo_CurrentGroup.DiscardUnknown(m) +} + +var xxx_messageInfo_CurrentGroup proto.InternalMessageInfo + +func (m *CurrentGroup) GetGroupID() github_com_bandprotocol_chain_v3_pkg_tss.GroupID { + if m != nil { + return m.GroupID + } + return 0 +} + +func (m *CurrentGroup) GetActiveTime() time.Time { + if m != nil { + return m.ActiveTime + } + return time.Time{} +} + +// Signing is a bandtss signing information. +type Signing struct { + // id is the unique identifier of the bandtss signing. + ID SigningID `protobuf:"varint,1,opt,name=id,proto3,casttype=SigningID" json:"id,omitempty"` + // fee_per_signer is the tokens that will be paid per signer for this bandtss signing. + FeePerSigner github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=fee_per_signer,json=feePerSigner,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fee_per_signer"` + // requester is the address who pays the Bandtss signing. + Requester string `protobuf:"bytes,3,opt,name=requester,proto3" json:"requester,omitempty"` + // current_group_signing_id is a tss signing ID of a current group. + CurrentGroupSigningID github_com_bandprotocol_chain_v3_pkg_tss.SigningID `protobuf:"varint,4,opt,name=current_group_signing_id,json=currentGroupSigningId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"current_group_signing_id,omitempty"` + // incoming_group_signing_id is a tss signing ID of an incoming group, if any. + IncomingGroupSigningID github_com_bandprotocol_chain_v3_pkg_tss.SigningID `protobuf:"varint,5,opt,name=incoming_group_signing_id,json=incomingGroupSigningId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"incoming_group_signing_id,omitempty"` +} + +func (m *Signing) Reset() { *m = Signing{} } +func (m *Signing) String() string { return proto.CompactTextString(m) } +func (*Signing) ProtoMessage() {} +func (*Signing) Descriptor() ([]byte, []int) { + return fileDescriptor_2bc325518cc10c44, []int{2} +} +func (m *Signing) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Signing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Signing.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Signing) XXX_Merge(src proto.Message) { + xxx_messageInfo_Signing.Merge(m, src) +} +func (m *Signing) XXX_Size() int { + return m.Size() +} +func (m *Signing) XXX_DiscardUnknown() { + xxx_messageInfo_Signing.DiscardUnknown(m) +} + +var xxx_messageInfo_Signing proto.InternalMessageInfo + +func (m *Signing) GetID() SigningID { + if m != nil { + return m.ID + } + return 0 +} + +func (m *Signing) GetFeePerSigner() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.FeePerSigner + } + return nil +} + +func (m *Signing) GetRequester() string { + if m != nil { + return m.Requester + } + return "" +} + +func (m *Signing) GetCurrentGroupSigningID() github_com_bandprotocol_chain_v3_pkg_tss.SigningID { + if m != nil { + return m.CurrentGroupSigningID + } + return 0 +} + +func (m *Signing) GetIncomingGroupSigningID() github_com_bandprotocol_chain_v3_pkg_tss.SigningID { + if m != nil { + return m.IncomingGroupSigningID + } + return 0 +} + +// GroupTransition defines the group transition information of the current group and incoming group. +type GroupTransition struct { + // signing_id is a tss signing ID of group transition signing request. + SigningID github_com_bandprotocol_chain_v3_pkg_tss.SigningID `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"signing_id,omitempty"` + // current_group_id is the ID of the group that will be replaced. + CurrentGroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `protobuf:"varint,2,opt,name=current_group_id,json=currentGroupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"current_group_id,omitempty"` + // current_group_pub_key is the public key pair that used for sign & verify transition group msg. + CurrentGroupPubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `protobuf:"bytes,3,opt,name=current_group_pub_key,json=currentGroupPubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"current_group_pub_key,omitempty"` + // new_group_id is the ID of the new group that be a new key candidate. + IncomingGroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `protobuf:"varint,4,opt,name=incoming_group_id,json=incomingGroupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"incoming_group_id,omitempty"` + // incoming_group_pub_key is the public key of the group that will be the next key of this group + IncomingGroupPubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `protobuf:"bytes,5,opt,name=incoming_group_pub_key,json=incomingGroupPubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"incoming_group_pub_key,omitempty"` + // status is an enumeration of the possible statuses of a group transition process. + Status TransitionStatus `protobuf:"varint,6,opt,name=status,proto3,enum=band.bandtss.v1beta1.TransitionStatus" json:"status,omitempty"` + // exec_time is the time when the transition will be executed. + ExecTime time.Time `protobuf:"bytes,7,opt,name=exec_time,json=execTime,proto3,stdtime" json:"exec_time"` + // is_force_transition is a flag to indicate whether the current group signs the transition message + // before the transition is executed or not. + IsForceTransition bool `protobuf:"varint,8,opt,name=is_force_transition,json=isForceTransition,proto3" json:"is_force_transition,omitempty"` +} + +func (m *GroupTransition) Reset() { *m = GroupTransition{} } +func (m *GroupTransition) String() string { return proto.CompactTextString(m) } +func (*GroupTransition) ProtoMessage() {} +func (*GroupTransition) Descriptor() ([]byte, []int) { + return fileDescriptor_2bc325518cc10c44, []int{3} +} +func (m *GroupTransition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GroupTransition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GroupTransition.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GroupTransition) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupTransition.Merge(m, src) +} +func (m *GroupTransition) XXX_Size() int { + return m.Size() +} +func (m *GroupTransition) XXX_DiscardUnknown() { + xxx_messageInfo_GroupTransition.DiscardUnknown(m) +} + +var xxx_messageInfo_GroupTransition proto.InternalMessageInfo + +func (m *GroupTransition) GetSigningID() github_com_bandprotocol_chain_v3_pkg_tss.SigningID { + if m != nil { + return m.SigningID + } + return 0 +} + +func (m *GroupTransition) GetCurrentGroupID() github_com_bandprotocol_chain_v3_pkg_tss.GroupID { + if m != nil { + return m.CurrentGroupID + } + return 0 +} + +func (m *GroupTransition) GetCurrentGroupPubKey() github_com_bandprotocol_chain_v3_pkg_tss.Point { + if m != nil { + return m.CurrentGroupPubKey + } + return nil +} + +func (m *GroupTransition) GetIncomingGroupID() github_com_bandprotocol_chain_v3_pkg_tss.GroupID { + if m != nil { + return m.IncomingGroupID + } + return 0 +} + +func (m *GroupTransition) GetIncomingGroupPubKey() github_com_bandprotocol_chain_v3_pkg_tss.Point { + if m != nil { + return m.IncomingGroupPubKey + } + return nil +} + +func (m *GroupTransition) GetStatus() TransitionStatus { + if m != nil { + return m.Status + } + return TRANSITION_STATUS_UNSPECIFIED +} + +func (m *GroupTransition) GetExecTime() time.Time { + if m != nil { + return m.ExecTime + } + return time.Time{} +} + +func (m *GroupTransition) GetIsForceTransition() bool { + if m != nil { + return m.IsForceTransition + } + return false +} + +// GroupTransitionSignatureOrder defines a general signature order for group transition. +type GroupTransitionSignatureOrder struct { + // pub_key is the public key of new group that the current group needs to be signed. + PubKey github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"pub_key,omitempty"` + // transition_time is the timestamp at which the transition is executed and the public key is active. + TransitionTime time.Time `protobuf:"bytes,2,opt,name=transition_time,json=transitionTime,proto3,stdtime" json:"transition_time"` +} + +func (m *GroupTransitionSignatureOrder) Reset() { *m = GroupTransitionSignatureOrder{} } +func (m *GroupTransitionSignatureOrder) String() string { return proto.CompactTextString(m) } +func (*GroupTransitionSignatureOrder) ProtoMessage() {} +func (*GroupTransitionSignatureOrder) Descriptor() ([]byte, []int) { + return fileDescriptor_2bc325518cc10c44, []int{4} +} +func (m *GroupTransitionSignatureOrder) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GroupTransitionSignatureOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GroupTransitionSignatureOrder.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GroupTransitionSignatureOrder) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupTransitionSignatureOrder.Merge(m, src) +} +func (m *GroupTransitionSignatureOrder) XXX_Size() int { + return m.Size() +} +func (m *GroupTransitionSignatureOrder) XXX_DiscardUnknown() { + xxx_messageInfo_GroupTransitionSignatureOrder.DiscardUnknown(m) +} + +var xxx_messageInfo_GroupTransitionSignatureOrder proto.InternalMessageInfo + +func (m *GroupTransitionSignatureOrder) GetPubKey() github_com_cometbft_cometbft_libs_bytes.HexBytes { + if m != nil { + return m.PubKey + } + return nil +} + +func (m *GroupTransitionSignatureOrder) GetTransitionTime() time.Time { + if m != nil { + return m.TransitionTime + } + return time.Time{} +} + +func init() { + proto.RegisterEnum("band.bandtss.v1beta1.TransitionStatus", TransitionStatus_name, TransitionStatus_value) + proto.RegisterType((*Member)(nil), "band.bandtss.v1beta1.Member") + proto.RegisterType((*CurrentGroup)(nil), "band.bandtss.v1beta1.CurrentGroup") + proto.RegisterType((*Signing)(nil), "band.bandtss.v1beta1.Signing") + proto.RegisterType((*GroupTransition)(nil), "band.bandtss.v1beta1.GroupTransition") + proto.RegisterType((*GroupTransitionSignatureOrder)(nil), "band.bandtss.v1beta1.GroupTransitionSignatureOrder") +} + +func init() { + proto.RegisterFile("band/bandtss/v1beta1/bandtss.proto", fileDescriptor_2bc325518cc10c44) +} + +var fileDescriptor_2bc325518cc10c44 = []byte{ + // 957 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4d, 0x6f, 0xdb, 0x46, + 0x13, 0xd6, 0xca, 0x1f, 0x92, 0xd6, 0x86, 0xac, 0xac, 0x63, 0x43, 0xf6, 0xfb, 0x86, 0x54, 0x95, + 0xa2, 0x15, 0x0a, 0x84, 0x4c, 0x94, 0x9e, 0x7c, 0x68, 0x21, 0xc9, 0xb2, 0x4a, 0x14, 0x96, 0x05, + 0x4a, 0x46, 0x8b, 0x5c, 0x08, 0x7e, 0xac, 0x98, 0x85, 0x2d, 0xae, 0xc2, 0x5d, 0x19, 0xf6, 0x3f, + 0x08, 0xd0, 0x4b, 0x7e, 0x42, 0x81, 0x5e, 0x8a, 0x1e, 0x0a, 0x14, 0xe8, 0x8f, 0x08, 0x72, 0xca, + 0xb1, 0x97, 0xd2, 0x05, 0x7d, 0xe9, 0x6f, 0xf0, 0xa9, 0xe0, 0x92, 0xfa, 0xb4, 0x8b, 0x3a, 0x46, + 0x2e, 0xd2, 0xce, 0xce, 0xcc, 0xce, 0x3c, 0xcf, 0x33, 0x5c, 0x12, 0x96, 0x2d, 0xd3, 0x73, 0xd4, + 0xe8, 0x87, 0x33, 0xa6, 0x9e, 0x3d, 0xb3, 0x30, 0x37, 0x9f, 0x8d, 0x6d, 0x65, 0xe8, 0x53, 0x4e, + 0xd1, 0xc3, 0xc8, 0x54, 0xc6, 0x7b, 0x49, 0xcc, 0xee, 0x43, 0x97, 0xba, 0x54, 0x04, 0xa8, 0xd1, + 0x2a, 0x8e, 0xdd, 0x95, 0x5d, 0x4a, 0xdd, 0x53, 0xac, 0x0a, 0xcb, 0x1a, 0xf5, 0x55, 0x4e, 0x06, + 0x98, 0x71, 0x73, 0x30, 0x4c, 0x02, 0x24, 0x9b, 0xb2, 0x01, 0x65, 0xaa, 0x65, 0x32, 0x3c, 0xa9, + 0x67, 0x53, 0xe2, 0x25, 0xfe, 0x9d, 0xd8, 0x6f, 0xc4, 0x27, 0xc7, 0x46, 0xec, 0x2a, 0xff, 0x09, + 0xe0, 0xea, 0x21, 0x1e, 0x58, 0xd8, 0x47, 0x45, 0x98, 0x31, 0x1d, 0xc7, 0xc7, 0x8c, 0x15, 0x41, + 0x09, 0x54, 0x72, 0xfa, 0xd8, 0x44, 0x2f, 0x60, 0xd6, 0xf5, 0xe9, 0x68, 0x68, 0x10, 0xa7, 0x98, + 0x2e, 0x81, 0xca, 0x72, 0xfd, 0xeb, 0x30, 0x90, 0x33, 0xad, 0x68, 0x4f, 0xdb, 0xbf, 0x0e, 0xe4, + 0xa7, 0x2e, 0xe1, 0x2f, 0x47, 0x96, 0x62, 0xd3, 0x81, 0xc0, 0x29, 0xce, 0xb6, 0xe9, 0xa9, 0x6a, + 0xbf, 0x34, 0x89, 0xa7, 0x9e, 0x3d, 0x57, 0x87, 0x27, 0xae, 0x1a, 0x21, 0x4d, 0x72, 0xf4, 0x8c, + 0x38, 0x50, 0x73, 0xd0, 0xff, 0x60, 0x8e, 0x30, 0xc3, 0xb4, 0x39, 0x39, 0xc3, 0xc5, 0xa5, 0x12, + 0xa8, 0x64, 0xf5, 0x2c, 0x61, 0x35, 0x61, 0xa3, 0x3d, 0xb8, 0xc2, 0x88, 0x67, 0xe3, 0xe2, 0x72, + 0x09, 0x54, 0xd6, 0xaa, 0xbb, 0x4a, 0xcc, 0x84, 0x32, 0x66, 0x42, 0xe9, 0x8d, 0x99, 0xa8, 0x67, + 0xdf, 0x06, 0x72, 0xea, 0xcd, 0xa5, 0x0c, 0xf4, 0x38, 0x65, 0x6f, 0xf9, 0xef, 0x1f, 0x65, 0x50, + 0xfe, 0x0d, 0xc0, 0xf5, 0xc6, 0xc8, 0xf7, 0xb1, 0xc7, 0x45, 0xe9, 0x39, 0x2c, 0xe0, 0x23, 0x63, + 0x69, 0xc2, 0xb5, 0x18, 0x88, 0x11, 0x29, 0x24, 0xa8, 0xba, 0x6b, 0xd3, 0x30, 0x4e, 0x8c, 0x5c, + 0xe5, 0x60, 0x09, 0x66, 0xba, 0xc4, 0xf5, 0x88, 0xe7, 0xa2, 0xc7, 0x30, 0x3d, 0x69, 0x74, 0x33, + 0x0c, 0xe4, 0xb4, 0xe8, 0x31, 0x97, 0xb8, 0xb5, 0x7d, 0x3d, 0x4d, 0x1c, 0xf4, 0x0a, 0xe6, 0xfb, + 0x18, 0x1b, 0x43, 0xec, 0x1b, 0x8c, 0xb8, 0x1e, 0xf6, 0x8b, 0xe9, 0xd2, 0x52, 0x65, 0xad, 0xba, + 0xa3, 0x24, 0x5a, 0x47, 0x83, 0x31, 0x1e, 0x32, 0xa5, 0x41, 0x89, 0x57, 0x7f, 0x1a, 0x55, 0xfe, + 0xe5, 0x52, 0xae, 0xcc, 0xa0, 0x4d, 0xa6, 0x28, 0xfe, 0x7b, 0xc2, 0x9c, 0x13, 0x95, 0x5f, 0x0c, + 0x31, 0x13, 0x09, 0x4c, 0x5f, 0xef, 0x63, 0xdc, 0xc1, 0x7e, 0x57, 0x14, 0x40, 0xff, 0x87, 0x39, + 0x1f, 0xbf, 0x1a, 0x61, 0xc6, 0xb1, 0x2f, 0x64, 0xcb, 0xe9, 0xd3, 0x0d, 0xf4, 0x1a, 0xc0, 0xa2, + 0x1d, 0xb3, 0x6e, 0xc4, 0x6c, 0xb3, 0xb8, 0xe1, 0x88, 0xf5, 0x65, 0x01, 0xe6, 0x28, 0x0c, 0xe4, + 0xad, 0x59, 0x65, 0x26, 0x90, 0xae, 0x03, 0xb9, 0x7a, 0x67, 0x0d, 0xa6, 0x44, 0x6c, 0xd9, 0xb7, + 0x1c, 0xe6, 0xa0, 0x1f, 0x00, 0xdc, 0x21, 0x9e, 0x4d, 0x07, 0x51, 0xf5, 0x1b, 0xbd, 0xac, 0x88, + 0x5e, 0x3a, 0x61, 0x20, 0x6f, 0x6b, 0x49, 0xd0, 0x47, 0x69, 0x66, 0x9b, 0xdc, 0x76, 0x9a, 0x93, + 0x0c, 0xe5, 0xe5, 0x0a, 0xdc, 0x10, 0x8e, 0x9e, 0x6f, 0x7a, 0x8c, 0x70, 0x42, 0x3d, 0x64, 0x41, + 0x38, 0xd3, 0x57, 0x2c, 0x78, 0x23, 0x9c, 0x95, 0xfa, 0x9e, 0xad, 0xe4, 0xd8, 0x84, 0x8b, 0x21, + 0x2c, 0xcc, 0xab, 0x32, 0x79, 0x9e, 0x0f, 0xc2, 0x40, 0xce, 0xcf, 0xaa, 0x71, 0xcf, 0x47, 0x21, + 0x3f, 0x2b, 0x82, 0xe6, 0x20, 0x0c, 0xb7, 0xe6, 0x2b, 0x0e, 0x47, 0x96, 0x71, 0x82, 0x2f, 0xc4, + 0xc8, 0xac, 0xd7, 0xab, 0xd7, 0x81, 0xac, 0xdc, 0xb9, 0x48, 0x87, 0x12, 0x8f, 0xeb, 0x68, 0xb6, + 0x44, 0x67, 0x64, 0x7d, 0x8b, 0x2f, 0x10, 0x83, 0x0f, 0x16, 0x34, 0x9e, 0xcc, 0x59, 0x2b, 0x0c, + 0xe4, 0x8d, 0x39, 0x6d, 0xef, 0x09, 0x6d, 0x63, 0x4e, 0x52, 0xcd, 0x41, 0x2e, 0xdc, 0x5e, 0x28, + 0x3a, 0x06, 0xb7, 0x72, 0x6f, 0x70, 0x9b, 0x73, 0x45, 0x12, 0x74, 0x5f, 0xc1, 0x55, 0xc6, 0x4d, + 0x3e, 0x62, 0xc5, 0xd5, 0x12, 0xa8, 0xe4, 0xab, 0x9f, 0x29, 0xb7, 0xbd, 0x3c, 0x94, 0xe9, 0x30, + 0x75, 0x45, 0xb4, 0x9e, 0x64, 0xa1, 0x1a, 0xcc, 0xe1, 0x73, 0x6c, 0xc7, 0x97, 0x52, 0xe6, 0x03, + 0x2e, 0xa5, 0x6c, 0x94, 0x16, 0x39, 0x90, 0x02, 0x37, 0x09, 0x33, 0xfa, 0xd4, 0xb7, 0xb1, 0xc1, + 0x27, 0x75, 0x8a, 0x59, 0x71, 0x5f, 0x3f, 0x20, 0xec, 0x20, 0xf2, 0x4c, 0x1b, 0x28, 0xbf, 0x03, + 0xf0, 0xd1, 0xc2, 0x84, 0x47, 0x13, 0x69, 0xf2, 0x91, 0x8f, 0x8f, 0x7c, 0x07, 0xfb, 0xe8, 0x10, + 0x66, 0xc6, 0x74, 0x01, 0x41, 0xd7, 0x97, 0x0b, 0xaa, 0xd8, 0x74, 0x80, 0xb9, 0xd5, 0xe7, 0xd3, + 0xc5, 0x29, 0xb1, 0x98, 0x6a, 0x5d, 0x70, 0xcc, 0x94, 0x6f, 0xf0, 0x79, 0x3d, 0x5a, 0xe8, 0xab, + 0xc3, 0x98, 0xa3, 0x43, 0xb8, 0x31, 0xed, 0xeb, 0xc3, 0xaf, 0xdf, 0xfc, 0x34, 0x39, 0x72, 0xef, + 0xad, 0xbd, 0xfb, 0xfd, 0x49, 0xa6, 0x41, 0x3d, 0x8e, 0x3d, 0xfe, 0xc5, 0xaf, 0x00, 0x16, 0x16, + 0xc9, 0x45, 0x9f, 0xc0, 0x47, 0x3d, 0xbd, 0xd6, 0xee, 0x6a, 0x3d, 0xed, 0xa8, 0x6d, 0x74, 0x7b, + 0xb5, 0xde, 0x71, 0xd7, 0x38, 0x6e, 0x77, 0x3b, 0xcd, 0x86, 0x76, 0xa0, 0x35, 0xf7, 0x0b, 0x29, + 0xf4, 0x29, 0x2c, 0xdd, 0x0c, 0x69, 0xe8, 0xcd, 0x5a, 0x4f, 0x6b, 0xb7, 0x8c, 0x96, 0x7e, 0x74, + 0xdc, 0x29, 0x00, 0x54, 0x86, 0xd2, 0xcd, 0xa8, 0xef, 0x6a, 0x9a, 0x08, 0xea, 0x6a, 0xad, 0x76, + 0x21, 0x8d, 0x3e, 0x87, 0x8f, 0xff, 0x3d, 0xa6, 0xf9, 0x7d, 0xb3, 0x71, 0x1c, 0x39, 0x0a, 0x4b, + 0xbb, 0xcb, 0xaf, 0x7f, 0x92, 0x52, 0xf5, 0xf6, 0xcf, 0xa1, 0x04, 0xde, 0x86, 0x12, 0x78, 0x1f, + 0x4a, 0xe0, 0xaf, 0x50, 0x02, 0x6f, 0xae, 0xa4, 0xd4, 0xfb, 0x2b, 0x29, 0xf5, 0xc7, 0x95, 0x94, + 0x7a, 0xf1, 0xdf, 0xa3, 0x7f, 0x3e, 0xf9, 0x78, 0x11, 0x2f, 0x00, 0x6b, 0x55, 0x84, 0x3c, 0xff, + 0x27, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x1b, 0x02, 0x05, 0xd9, 0x08, 0x00, 0x00, +} + +func (this *Member) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Member) + if !ok { + that2, ok := that.(Member) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Address != that1.Address { + return false + } + if this.GroupID != that1.GroupID { + return false + } + if this.IsActive != that1.IsActive { + return false + } + if !this.Since.Equal(that1.Since) { + return false + } + return true +} +func (this *CurrentGroup) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*CurrentGroup) + if !ok { + that2, ok := that.(CurrentGroup) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.GroupID != that1.GroupID { + return false + } + if !this.ActiveTime.Equal(that1.ActiveTime) { + return false + } + return true +} +func (this *Signing) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Signing) + if !ok { + that2, ok := that.(Signing) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.ID != that1.ID { + return false + } + if len(this.FeePerSigner) != len(that1.FeePerSigner) { + return false + } + for i := range this.FeePerSigner { + if !this.FeePerSigner[i].Equal(&that1.FeePerSigner[i]) { + return false + } + } + if this.Requester != that1.Requester { + return false + } + if this.CurrentGroupSigningID != that1.CurrentGroupSigningID { + return false + } + if this.IncomingGroupSigningID != that1.IncomingGroupSigningID { + return false + } + return true +} +func (this *GroupTransition) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*GroupTransition) + if !ok { + that2, ok := that.(GroupTransition) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.SigningID != that1.SigningID { + return false + } + if this.CurrentGroupID != that1.CurrentGroupID { + return false + } + if !bytes.Equal(this.CurrentGroupPubKey, that1.CurrentGroupPubKey) { + return false + } + if this.IncomingGroupID != that1.IncomingGroupID { + return false + } + if !bytes.Equal(this.IncomingGroupPubKey, that1.IncomingGroupPubKey) { + return false + } + if this.Status != that1.Status { + return false + } + if !this.ExecTime.Equal(that1.ExecTime) { + return false + } + if this.IsForceTransition != that1.IsForceTransition { + return false + } + return true +} +func (this *GroupTransitionSignatureOrder) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*GroupTransitionSignatureOrder) + if !ok { + that2, ok := that.(GroupTransitionSignatureOrder) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !bytes.Equal(this.PubKey, that1.PubKey) { + return false + } + if !this.TransitionTime.Equal(that1.TransitionTime) { + return false + } + return true +} +func (m *Member) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Member) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo( + m.Since, + dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Since):], + ) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintBandtss(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x22 + if m.IsActive { + i-- + if m.IsActive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.GroupID != 0 { + i = encodeVarintBandtss(dAtA, i, uint64(m.GroupID)) + i-- + dAtA[i] = 0x10 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintBandtss(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CurrentGroup) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CurrentGroup) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CurrentGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo( + m.ActiveTime, + dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ActiveTime):], + ) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintBandtss(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x12 + if m.GroupID != 0 { + i = encodeVarintBandtss(dAtA, i, uint64(m.GroupID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Signing) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Signing) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Signing) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IncomingGroupSigningID != 0 { + i = encodeVarintBandtss(dAtA, i, uint64(m.IncomingGroupSigningID)) + i-- + dAtA[i] = 0x28 + } + if m.CurrentGroupSigningID != 0 { + i = encodeVarintBandtss(dAtA, i, uint64(m.CurrentGroupSigningID)) + i-- + dAtA[i] = 0x20 + } + if len(m.Requester) > 0 { + i -= len(m.Requester) + copy(dAtA[i:], m.Requester) + i = encodeVarintBandtss(dAtA, i, uint64(len(m.Requester))) + i-- + dAtA[i] = 0x1a + } + if len(m.FeePerSigner) > 0 { + for iNdEx := len(m.FeePerSigner) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FeePerSigner[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBandtss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.ID != 0 { + i = encodeVarintBandtss(dAtA, i, uint64(m.ID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GroupTransition) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GroupTransition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GroupTransition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsForceTransition { + i-- + if m.IsForceTransition { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo( + m.ExecTime, + dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExecTime):], + ) + if err3 != nil { + return 0, err3 + } + i -= n3 + i = encodeVarintBandtss(dAtA, i, uint64(n3)) + i-- + dAtA[i] = 0x3a + if m.Status != 0 { + i = encodeVarintBandtss(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x30 + } + if len(m.IncomingGroupPubKey) > 0 { + i -= len(m.IncomingGroupPubKey) + copy(dAtA[i:], m.IncomingGroupPubKey) + i = encodeVarintBandtss(dAtA, i, uint64(len(m.IncomingGroupPubKey))) + i-- + dAtA[i] = 0x2a + } + if m.IncomingGroupID != 0 { + i = encodeVarintBandtss(dAtA, i, uint64(m.IncomingGroupID)) + i-- + dAtA[i] = 0x20 + } + if len(m.CurrentGroupPubKey) > 0 { + i -= len(m.CurrentGroupPubKey) + copy(dAtA[i:], m.CurrentGroupPubKey) + i = encodeVarintBandtss(dAtA, i, uint64(len(m.CurrentGroupPubKey))) + i-- + dAtA[i] = 0x1a + } + if m.CurrentGroupID != 0 { + i = encodeVarintBandtss(dAtA, i, uint64(m.CurrentGroupID)) + i-- + dAtA[i] = 0x10 + } + if m.SigningID != 0 { + i = encodeVarintBandtss(dAtA, i, uint64(m.SigningID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GroupTransitionSignatureOrder) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GroupTransitionSignatureOrder) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GroupTransitionSignatureOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo( + m.TransitionTime, + dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.TransitionTime):], + ) + if err4 != nil { + return 0, err4 + } + i -= n4 + i = encodeVarintBandtss(dAtA, i, uint64(n4)) + i-- + dAtA[i] = 0x12 + if len(m.PubKey) > 0 { + i -= len(m.PubKey) + copy(dAtA[i:], m.PubKey) + i = encodeVarintBandtss(dAtA, i, uint64(len(m.PubKey))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintBandtss(dAtA []byte, offset int, v uint64) int { + offset -= sovBandtss(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Member) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovBandtss(uint64(l)) + } + if m.GroupID != 0 { + n += 1 + sovBandtss(uint64(m.GroupID)) + } + if m.IsActive { + n += 2 + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Since) + n += 1 + l + sovBandtss(uint64(l)) + return n +} + +func (m *CurrentGroup) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.GroupID != 0 { + n += 1 + sovBandtss(uint64(m.GroupID)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ActiveTime) + n += 1 + l + sovBandtss(uint64(l)) + return n +} + +func (m *Signing) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ID != 0 { + n += 1 + sovBandtss(uint64(m.ID)) + } + if len(m.FeePerSigner) > 0 { + for _, e := range m.FeePerSigner { + l = e.Size() + n += 1 + l + sovBandtss(uint64(l)) + } + } + l = len(m.Requester) + if l > 0 { + n += 1 + l + sovBandtss(uint64(l)) + } + if m.CurrentGroupSigningID != 0 { + n += 1 + sovBandtss(uint64(m.CurrentGroupSigningID)) + } + if m.IncomingGroupSigningID != 0 { + n += 1 + sovBandtss(uint64(m.IncomingGroupSigningID)) + } + return n +} + +func (m *GroupTransition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SigningID != 0 { + n += 1 + sovBandtss(uint64(m.SigningID)) + } + if m.CurrentGroupID != 0 { + n += 1 + sovBandtss(uint64(m.CurrentGroupID)) + } + l = len(m.CurrentGroupPubKey) + if l > 0 { + n += 1 + l + sovBandtss(uint64(l)) + } + if m.IncomingGroupID != 0 { + n += 1 + sovBandtss(uint64(m.IncomingGroupID)) + } + l = len(m.IncomingGroupPubKey) + if l > 0 { + n += 1 + l + sovBandtss(uint64(l)) + } + if m.Status != 0 { + n += 1 + sovBandtss(uint64(m.Status)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExecTime) + n += 1 + l + sovBandtss(uint64(l)) + if m.IsForceTransition { + n += 2 + } + return n +} + +func (m *GroupTransitionSignatureOrder) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PubKey) + if l > 0 { + n += 1 + l + sovBandtss(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.TransitionTime) + n += 1 + l + sovBandtss(uint64(l)) + return n +} + +func sovBandtss(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozBandtss(x uint64) (n int) { + return sovBandtss(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Member) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Member: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBandtss + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBandtss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType) + } + m.GroupID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupID |= github_com_bandprotocol_chain_v3_pkg_tss.GroupID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsActive = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Since", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBandtss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBandtss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Since, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBandtss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthBandtss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CurrentGroup) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CurrentGroup: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CurrentGroup: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType) + } + m.GroupID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupID |= github_com_bandprotocol_chain_v3_pkg_tss.GroupID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBandtss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBandtss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ActiveTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBandtss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthBandtss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Signing) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Signing: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Signing: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ID |= SigningID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeePerSigner", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBandtss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBandtss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeePerSigner = append(m.FeePerSigner, types.Coin{}) + if err := m.FeePerSigner[len(m.FeePerSigner)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requester", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBandtss + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBandtss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requester = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentGroupSigningID", wireType) + } + m.CurrentGroupSigningID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CurrentGroupSigningID |= github_com_bandprotocol_chain_v3_pkg_tss.SigningID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncomingGroupSigningID", wireType) + } + m.IncomingGroupSigningID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.IncomingGroupSigningID |= github_com_bandprotocol_chain_v3_pkg_tss.SigningID(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipBandtss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthBandtss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GroupTransition) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GroupTransition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GroupTransition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SigningID", wireType) + } + m.SigningID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SigningID |= github_com_bandprotocol_chain_v3_pkg_tss.SigningID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentGroupID", wireType) + } + m.CurrentGroupID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CurrentGroupID |= github_com_bandprotocol_chain_v3_pkg_tss.GroupID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentGroupPubKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthBandtss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBandtss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CurrentGroupPubKey = append(m.CurrentGroupPubKey[:0], dAtA[iNdEx:postIndex]...) + if m.CurrentGroupPubKey == nil { + m.CurrentGroupPubKey = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncomingGroupID", wireType) + } + m.IncomingGroupID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.IncomingGroupID |= github_com_bandprotocol_chain_v3_pkg_tss.GroupID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncomingGroupPubKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthBandtss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBandtss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IncomingGroupPubKey = append(m.IncomingGroupPubKey[:0], dAtA[iNdEx:postIndex]...) + if m.IncomingGroupPubKey == nil { + m.IncomingGroupPubKey = []byte{} + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= TransitionStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBandtss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBandtss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExecTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsForceTransition", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsForceTransition = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipBandtss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthBandtss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GroupTransitionSignatureOrder) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GroupTransitionSignatureOrder: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GroupTransitionSignatureOrder: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthBandtss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBandtss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...) + if m.PubKey == nil { + m.PubKey = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransitionTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBandtss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBandtss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBandtss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.TransitionTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBandtss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthBandtss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipBandtss(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBandtss + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBandtss + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBandtss + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthBandtss + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBandtss + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthBandtss + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthBandtss = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBandtss = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBandtss = fmt.Errorf("proto: unexpected end of group") +) diff --git a/internal/bandchain/bandtss/params.pb.go b/internal/bandchain/bandtss/params.pb.go new file mode 100644 index 0000000..9e77dc5 --- /dev/null +++ b/internal/bandchain/bandtss/params.pb.go @@ -0,0 +1,888 @@ +package types + +import ( + "fmt" + "io" + "math" + math_bits "math/bits" + "time" + + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// GenesisState defines the bandtss module's genesis state. +type GenesisState struct { + // params defines all the parameters of the module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + // members is an array containing members information. + Members []Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members"` + // current_group is the current group information. + CurrentGroup CurrentGroup `protobuf:"bytes,3,opt,name=current_group,json=currentGroup,proto3" json:"current_group"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_3fe6a4345855d3c9, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetMembers() []Member { + if m != nil { + return m.Members + } + return nil +} + +func (m *GenesisState) GetCurrentGroup() CurrentGroup { + if m != nil { + return m.CurrentGroup + } + return CurrentGroup{} +} + +// Params defines the set of module parameters. +type Params struct { + // reward_percentage is the percentage of block rewards allocated to active TSS members. + // The reward proportion is calculated after being allocated to oracle rewards. + RewardPercentage uint64 `protobuf:"varint,1,opt,name=reward_percentage,json=rewardPercentage,proto3" json:"reward_percentage,omitempty"` + // inactive_penalty_duration is the duration where a member cannot activate back after being set to inactive. + InactivePenaltyDuration time.Duration `protobuf:"bytes,2,opt,name=inactive_penalty_duration,json=inactivePenaltyDuration,proto3,stdduration" json:"inactive_penalty_duration"` + // min_transition_duration is the minimum duration that the transition process waits before execution. + MinTransitionDuration time.Duration `protobuf:"bytes,3,opt,name=min_transition_duration,json=minTransitionDuration,proto3,stdduration" json:"min_transition_duration"` + // max_transition_duration is the maximum duration that the transition process waits before execution. + MaxTransitionDuration time.Duration `protobuf:"bytes,4,opt,name=max_transition_duration,json=maxTransitionDuration,proto3,stdduration" json:"max_transition_duration"` + // fee_per_signer is the tokens that will be paid per signer. + FeePerSigner github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=fee_per_signer,json=feePerSigner,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fee_per_signer"` +} + +func (m *Params) Reset() { *m = Params{} } +func (m *Params) String() string { return proto.CompactTextString(m) } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_3fe6a4345855d3c9, []int{1} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func (m *Params) GetRewardPercentage() uint64 { + if m != nil { + return m.RewardPercentage + } + return 0 +} + +func (m *Params) GetInactivePenaltyDuration() time.Duration { + if m != nil { + return m.InactivePenaltyDuration + } + return 0 +} + +func (m *Params) GetMinTransitionDuration() time.Duration { + if m != nil { + return m.MinTransitionDuration + } + return 0 +} + +func (m *Params) GetMaxTransitionDuration() time.Duration { + if m != nil { + return m.MaxTransitionDuration + } + return 0 +} + +func (m *Params) GetFeePerSigner() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.FeePerSigner + } + return nil +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "band.bandtss.v1beta1.GenesisState") + proto.RegisterType((*Params)(nil), "band.bandtss.v1beta1.Params") +} + +func init() { + proto.RegisterFile("band/bandtss/v1beta1/genesis.proto", fileDescriptor_3fe6a4345855d3c9) +} + +var fileDescriptor_3fe6a4345855d3c9 = []byte{ + // 505 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xcf, 0x6e, 0xd3, 0x40, + 0x10, 0xc6, 0xe3, 0x26, 0x04, 0xb4, 0x04, 0x54, 0xac, 0xa0, 0x26, 0x15, 0xb2, 0xab, 0x9c, 0x7a, + 0x61, 0xb7, 0xa5, 0xb7, 0x8a, 0x0b, 0x06, 0xa9, 0x12, 0x52, 0xa5, 0xc8, 0xe5, 0x04, 0x07, 0x6b, + 0xed, 0x4c, 0xdc, 0x15, 0xf1, 0xae, 0xd9, 0x5d, 0x87, 0xf4, 0x2d, 0x38, 0x72, 0xe4, 0xcc, 0x93, + 0xf4, 0xd8, 0x1b, 0x9c, 0x1a, 0x94, 0x5c, 0x78, 0x0c, 0xb4, 0x6b, 0x3b, 0x2d, 0xc8, 0x48, 0x70, + 0xf1, 0x9f, 0x99, 0x6f, 0x7e, 0xf3, 0xad, 0x67, 0x8c, 0x46, 0x31, 0xe5, 0x13, 0x62, 0x2e, 0x5a, + 0x29, 0x32, 0x3f, 0x8c, 0x41, 0xd3, 0x43, 0x92, 0x02, 0x07, 0xc5, 0x14, 0xce, 0xa5, 0xd0, 0xc2, + 0xed, 0x9b, 0x34, 0xae, 0x34, 0xb8, 0xd2, 0xec, 0xf6, 0x53, 0x91, 0x0a, 0x2b, 0x20, 0xe6, 0xa9, + 0xd4, 0xee, 0x7a, 0xa9, 0x10, 0xe9, 0x0c, 0x88, 0x7d, 0x8b, 0x8b, 0x29, 0x99, 0x14, 0x92, 0x6a, + 0x26, 0x78, 0x9d, 0x4f, 0x84, 0xca, 0x84, 0x22, 0x31, 0x55, 0xb0, 0x69, 0x97, 0x08, 0x56, 0xe7, + 0x9b, 0xfd, 0xd4, 0xbd, 0xad, 0x66, 0xf4, 0xcd, 0x41, 0xbd, 0x93, 0xd2, 0xe1, 0x99, 0xa6, 0x1a, + 0xdc, 0x63, 0xd4, 0xcd, 0xa9, 0xa4, 0x99, 0x1a, 0x38, 0x7b, 0xce, 0xfe, 0xfd, 0x67, 0x4f, 0x70, + 0x93, 0x63, 0x3c, 0xb6, 0x9a, 0xa0, 0x73, 0x79, 0xed, 0xb7, 0xc2, 0xaa, 0xc2, 0x7d, 0x8e, 0xee, + 0x66, 0x90, 0xc5, 0x20, 0xd5, 0x60, 0x6b, 0xaf, 0xfd, 0xf7, 0xe2, 0x53, 0x2b, 0xaa, 0x8a, 0xeb, + 0x12, 0xf7, 0x14, 0x3d, 0x48, 0x0a, 0x29, 0x81, 0xeb, 0x28, 0x95, 0xa2, 0xc8, 0x07, 0x6d, 0x6b, + 0x60, 0xd4, 0xcc, 0x78, 0x59, 0x4a, 0x4f, 0x8c, 0xb2, 0x22, 0xf5, 0x92, 0x5b, 0xb1, 0xd1, 0xb2, + 0x8d, 0xba, 0xa5, 0x4b, 0xf7, 0x05, 0x7a, 0x24, 0xe1, 0x23, 0x95, 0x93, 0x28, 0x07, 0x99, 0x00, + 0xd7, 0x34, 0x05, 0x7b, 0xbc, 0x4e, 0xd0, 0x5f, 0x5d, 0xfb, 0xdb, 0xa1, 0x4d, 0x8e, 0x37, 0xb9, + 0x70, 0x5b, 0xfe, 0x11, 0x71, 0x23, 0x34, 0x64, 0x9c, 0x26, 0x9a, 0xcd, 0x21, 0xca, 0x81, 0xd3, + 0x99, 0xbe, 0x88, 0xea, 0x71, 0x0c, 0xb6, 0xac, 0xd1, 0x21, 0x2e, 0xe7, 0x85, 0xeb, 0x79, 0xe1, + 0x57, 0x95, 0x20, 0xb8, 0x67, 0xfc, 0x7d, 0x5e, 0xfa, 0x4e, 0xb8, 0x53, 0x53, 0xc6, 0x25, 0xa4, + 0x96, 0xb8, 0xef, 0xd0, 0x4e, 0xc6, 0x78, 0xa4, 0x25, 0xe5, 0x8a, 0x99, 0xc8, 0x0d, 0xbe, 0xfd, + 0xef, 0xf8, 0xc7, 0x19, 0xe3, 0x6f, 0x36, 0x88, 0xdf, 0xe0, 0x74, 0xd1, 0x08, 0xef, 0xfc, 0x0f, + 0x9c, 0x2e, 0x1a, 0xe0, 0x1f, 0xd0, 0xc3, 0x29, 0x98, 0xaf, 0x22, 0x23, 0xc5, 0x52, 0x0e, 0x72, + 0x70, 0xc7, 0x0e, 0x7f, 0x88, 0xcb, 0xfd, 0xc4, 0x66, 0x3f, 0x6f, 0xe6, 0x26, 0x18, 0x0f, 0x0e, + 0x0c, 0xf3, 0xeb, 0xd2, 0xdf, 0x4f, 0x99, 0x3e, 0x2f, 0x62, 0x9c, 0x88, 0x8c, 0x54, 0xcb, 0x5c, + 0xde, 0x9e, 0xaa, 0xc9, 0x7b, 0xa2, 0x2f, 0x72, 0x50, 0xb6, 0x40, 0x85, 0xbd, 0x29, 0xc0, 0x18, + 0xe4, 0x99, 0x6d, 0x70, 0xdc, 0xf9, 0xf9, 0xc5, 0x77, 0x82, 0xd7, 0x97, 0x2b, 0xcf, 0xb9, 0x5a, + 0x79, 0xce, 0x8f, 0x95, 0xe7, 0x7c, 0x5a, 0x7b, 0xad, 0xab, 0xb5, 0xd7, 0xfa, 0xbe, 0xf6, 0x5a, + 0x6f, 0x0f, 0x6e, 0x71, 0xcd, 0xe2, 0xd8, 0x53, 0x25, 0x62, 0x46, 0x92, 0x73, 0xca, 0x38, 0x99, + 0x1f, 0x91, 0xc5, 0xe6, 0xbf, 0xb0, 0x5d, 0xe2, 0xae, 0x95, 0x1c, 0xfd, 0x0a, 0x00, 0x00, 0xff, + 0xff, 0xe9, 0x4e, 0xb2, 0x50, 0xc4, 0x03, 0x00, 0x00, +} + +func (this *Params) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Params) + if !ok { + that2, ok := that.(Params) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.RewardPercentage != that1.RewardPercentage { + return false + } + if this.InactivePenaltyDuration != that1.InactivePenaltyDuration { + return false + } + if this.MinTransitionDuration != that1.MinTransitionDuration { + return false + } + if this.MaxTransitionDuration != that1.MaxTransitionDuration { + return false + } + if len(this.FeePerSigner) != len(that1.FeePerSigner) { + return false + } + for i := range this.FeePerSigner { + if !this.FeePerSigner[i].Equal(&that1.FeePerSigner[i]) { + return false + } + } + return true +} +func (m *GenesisState) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.CurrentGroup.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.Members) > 0 { + for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Params) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeePerSigner) > 0 { + for iNdEx := len(m.FeePerSigner) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FeePerSigner[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + n3, err3 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo( + m.MaxTransitionDuration, + dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.MaxTransitionDuration):], + ) + if err3 != nil { + return 0, err3 + } + i -= n3 + i = encodeVarintGenesis(dAtA, i, uint64(n3)) + i-- + dAtA[i] = 0x22 + n4, err4 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo( + m.MinTransitionDuration, + dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.MinTransitionDuration):], + ) + if err4 != nil { + return 0, err4 + } + i -= n4 + i = encodeVarintGenesis(dAtA, i, uint64(n4)) + i-- + dAtA[i] = 0x1a + n5, err5 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo( + m.InactivePenaltyDuration, + dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.InactivePenaltyDuration):], + ) + if err5 != nil { + return 0, err5 + } + i -= n5 + i = encodeVarintGenesis(dAtA, i, uint64(n5)) + i-- + dAtA[i] = 0x12 + if m.RewardPercentage != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.RewardPercentage)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + if len(m.Members) > 0 { + for _, e := range m.Members { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + l = m.CurrentGroup.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RewardPercentage != 0 { + n += 1 + sovGenesis(uint64(m.RewardPercentage)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.InactivePenaltyDuration) + n += 1 + l + sovGenesis(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.MinTransitionDuration) + n += 1 + l + sovGenesis(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.MaxTransitionDuration) + n += 1 + l + sovGenesis(uint64(l)) + if len(m.FeePerSigner) > 0 { + for _, e := range m.FeePerSigner { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Members = append(m.Members, Member{}) + if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentGroup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CurrentGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Params) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RewardPercentage", wireType) + } + m.RewardPercentage = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RewardPercentage |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InactivePenaltyDuration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.InactivePenaltyDuration, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinTransitionDuration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.MinTransitionDuration, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxTransitionDuration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.MaxTransitionDuration, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeePerSigner", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeePerSigner = append(m.FeePerSigner, types.Coin{}) + if err := m.FeePerSigner[len(m.FeePerSigner)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/internal/bandchain/bandtss/query.pb.go b/internal/bandchain/bandtss/query.pb.go new file mode 100644 index 0000000..4ad6966 --- /dev/null +++ b/internal/bandchain/bandtss/query.pb.go @@ -0,0 +1,3930 @@ +package types + +import ( + "context" + "fmt" + "io" + "math" + math_bits "math/bits" + "time" + + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types1 "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + grpc1 "github.com/cosmos/gogoproto/grpc" + "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + github_com_bandprotocol_chain_v3_pkg_tss "github.com/bandprotocol/falcon/internal/bandchain/tss" + types "github.com/bandprotocol/falcon/internal/bandchain/tss" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// MemberStatusFilter defines the query options for filtering members by their active status. +type MemberStatusFilter int32 + +const ( + // MEMBER_STATUS_FILTER_UNSPECIFIED defines a filter for unspecified active status. + MEMBER_STATUS_FILTER_UNSPECIFIED MemberStatusFilter = 0 + // MEMBER_STATUS_FILTER_ACTIVE defines a filter for active status. + MEMBER_STATUS_FILTER_ACTIVE MemberStatusFilter = 1 + // MEMBER_STATUS_FILTER_INACTIVE defines a filter for inactive status. + MEMBER_STATUS_FILTER_INACTIVE MemberStatusFilter = 2 +) + +var MemberStatusFilter_name = map[int32]string{ + 0: "MEMBER_STATUS_FILTER_UNSPECIFIED", + 1: "MEMBER_STATUS_FILTER_ACTIVE", + 2: "MEMBER_STATUS_FILTER_INACTIVE", +} + +var MemberStatusFilter_value = map[string]int32{ + "MEMBER_STATUS_FILTER_UNSPECIFIED": 0, + "MEMBER_STATUS_FILTER_ACTIVE": 1, + "MEMBER_STATUS_FILTER_INACTIVE": 2, +} + +func (x MemberStatusFilter) String() string { + return proto.EnumName(MemberStatusFilter_name, int32(x)) +} + +func (MemberStatusFilter) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{0} +} + +// QueryCountsRequest is request type for the Query/Count RPC method. +type QueryCountsRequest struct { +} + +func (m *QueryCountsRequest) Reset() { *m = QueryCountsRequest{} } +func (m *QueryCountsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryCountsRequest) ProtoMessage() {} +func (*QueryCountsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{0} +} +func (m *QueryCountsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCountsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryCountsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCountsRequest.Merge(m, src) +} +func (m *QueryCountsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryCountsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCountsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCountsRequest proto.InternalMessageInfo + +// QueryCountsResponse is response type for the Query/Count RPC method. +type QueryCountsResponse struct { + // signing_count is total number of signing request submitted to bandtss module + SigningCount uint64 `protobuf:"varint,1,opt,name=signing_count,json=signingCount,proto3" json:"signing_count,omitempty"` +} + +func (m *QueryCountsResponse) Reset() { *m = QueryCountsResponse{} } +func (m *QueryCountsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryCountsResponse) ProtoMessage() {} +func (*QueryCountsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{1} +} +func (m *QueryCountsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCountsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryCountsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCountsResponse.Merge(m, src) +} +func (m *QueryCountsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryCountsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCountsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCountsResponse proto.InternalMessageInfo + +func (m *QueryCountsResponse) GetSigningCount() uint64 { + if m != nil { + return m.SigningCount + } + return 0 +} + +// QueryMembersRequest is the request type for the Query/Members RPC method. +type QueryMembersRequest struct { + // status define type of filter on member's status. + Status MemberStatusFilter `protobuf:"varint,1,opt,name=status,proto3,enum=band.bandtss.v1beta1.MemberStatusFilter" json:"status,omitempty"` + // is_incoming_group is a flag to indicate whether user query members in the incoming group + // or the current group. + IsIncomingGroup bool `protobuf:"varint,2,opt,name=is_incoming_group,json=isIncomingGroup,proto3" json:"is_incoming_group,omitempty"` + // pagination defines pagination settings for the request. + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryMembersRequest) Reset() { *m = QueryMembersRequest{} } +func (m *QueryMembersRequest) String() string { return proto.CompactTextString(m) } +func (*QueryMembersRequest) ProtoMessage() {} +func (*QueryMembersRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{2} +} +func (m *QueryMembersRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryMembersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryMembersRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryMembersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryMembersRequest.Merge(m, src) +} +func (m *QueryMembersRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryMembersRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryMembersRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryMembersRequest proto.InternalMessageInfo + +func (m *QueryMembersRequest) GetStatus() MemberStatusFilter { + if m != nil { + return m.Status + } + return MEMBER_STATUS_FILTER_UNSPECIFIED +} + +func (m *QueryMembersRequest) GetIsIncomingGroup() bool { + if m != nil { + return m.IsIncomingGroup + } + return false +} + +func (m *QueryMembersRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryMembersResponse is the response type for the Query/Members RPC method. +type QueryMembersResponse struct { + // members are those individuals who correspond to the provided is_active status. + Members []*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryMembersResponse) Reset() { *m = QueryMembersResponse{} } +func (m *QueryMembersResponse) String() string { return proto.CompactTextString(m) } +func (*QueryMembersResponse) ProtoMessage() {} +func (*QueryMembersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{3} +} +func (m *QueryMembersResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryMembersResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryMembersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryMembersResponse.Merge(m, src) +} +func (m *QueryMembersResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryMembersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryMembersResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryMembersResponse proto.InternalMessageInfo + +func (m *QueryMembersResponse) GetMembers() []*Member { + if m != nil { + return m.Members + } + return nil +} + +func (m *QueryMembersResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryMemberRequest is the request type for the Query/Member RPC method. +type QueryMemberRequest struct { + // address is the member address. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *QueryMemberRequest) Reset() { *m = QueryMemberRequest{} } +func (m *QueryMemberRequest) String() string { return proto.CompactTextString(m) } +func (*QueryMemberRequest) ProtoMessage() {} +func (*QueryMemberRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{4} +} +func (m *QueryMemberRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryMemberRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryMemberRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryMemberRequest.Merge(m, src) +} +func (m *QueryMemberRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryMemberRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryMemberRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryMemberRequest proto.InternalMessageInfo + +func (m *QueryMemberRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +// QueryMemberResponse is the response type for the Query/Member RPC method. +type QueryMemberResponse struct { + // current_group_member is the member detail. + CurrentGroupMember Member `protobuf:"bytes,1,opt,name=current_group_member,json=currentGroupMember,proto3" json:"current_group_member"` + // incoming_group_member is the member detail. + IncomingGroupMember Member `protobuf:"bytes,2,opt,name=incoming_group_member,json=incomingGroupMember,proto3" json:"incoming_group_member"` +} + +func (m *QueryMemberResponse) Reset() { *m = QueryMemberResponse{} } +func (m *QueryMemberResponse) String() string { return proto.CompactTextString(m) } +func (*QueryMemberResponse) ProtoMessage() {} +func (*QueryMemberResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{5} +} +func (m *QueryMemberResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryMemberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryMemberResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryMemberResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryMemberResponse.Merge(m, src) +} +func (m *QueryMemberResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryMemberResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryMemberResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryMemberResponse proto.InternalMessageInfo + +func (m *QueryMemberResponse) GetCurrentGroupMember() Member { + if m != nil { + return m.CurrentGroupMember + } + return Member{} +} + +func (m *QueryMemberResponse) GetIncomingGroupMember() Member { + if m != nil { + return m.IncomingGroupMember + } + return Member{} +} + +// QueryCurrentGroupRequest is the request type for the Query/CurrentGroup RPC method. +type QueryCurrentGroupRequest struct { +} + +func (m *QueryCurrentGroupRequest) Reset() { *m = QueryCurrentGroupRequest{} } +func (m *QueryCurrentGroupRequest) String() string { return proto.CompactTextString(m) } +func (*QueryCurrentGroupRequest) ProtoMessage() {} +func (*QueryCurrentGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{6} +} +func (m *QueryCurrentGroupRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCurrentGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCurrentGroupRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryCurrentGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCurrentGroupRequest.Merge(m, src) +} +func (m *QueryCurrentGroupRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryCurrentGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCurrentGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCurrentGroupRequest proto.InternalMessageInfo + +// QueryCurrentGroupResponse is the response type for the Query/CurrentGroup RPC method. +type QueryCurrentGroupResponse struct { + // group_id is the ID of the current group. + GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"group_id,omitempty"` + // size is the number of members in the group. + Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + // threshold is the minimum number of members needed to generate a valid signature. + Threshold uint64 `protobuf:"varint,3,opt,name=threshold,proto3" json:"threshold,omitempty"` + // pub_key is the public key generated by the group. + PubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `protobuf:"bytes,4,opt,name=pub_key,json=pubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_key,omitempty"` + // status is the status of the current group. + Status types.GroupStatus `protobuf:"varint,5,opt,name=status,proto3,enum=band.tss.v1beta1.GroupStatus" json:"status,omitempty"` + // active_time is the timestamp at which the group becomes the current group of the module. + ActiveTime time.Time `protobuf:"bytes,6,opt,name=active_time,json=activeTime,proto3,stdtime" json:"active_time"` +} + +func (m *QueryCurrentGroupResponse) Reset() { *m = QueryCurrentGroupResponse{} } +func (m *QueryCurrentGroupResponse) String() string { return proto.CompactTextString(m) } +func (*QueryCurrentGroupResponse) ProtoMessage() {} +func (*QueryCurrentGroupResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{7} +} +func (m *QueryCurrentGroupResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCurrentGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCurrentGroupResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryCurrentGroupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCurrentGroupResponse.Merge(m, src) +} +func (m *QueryCurrentGroupResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryCurrentGroupResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCurrentGroupResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCurrentGroupResponse proto.InternalMessageInfo + +func (m *QueryCurrentGroupResponse) GetGroupID() github_com_bandprotocol_chain_v3_pkg_tss.GroupID { + if m != nil { + return m.GroupID + } + return 0 +} + +func (m *QueryCurrentGroupResponse) GetSize_() uint64 { + if m != nil { + return m.Size_ + } + return 0 +} + +func (m *QueryCurrentGroupResponse) GetThreshold() uint64 { + if m != nil { + return m.Threshold + } + return 0 +} + +func (m *QueryCurrentGroupResponse) GetPubKey() github_com_bandprotocol_chain_v3_pkg_tss.Point { + if m != nil { + return m.PubKey + } + return nil +} + +func (m *QueryCurrentGroupResponse) GetStatus() types.GroupStatus { + if m != nil { + return m.Status + } + return types.GROUP_STATUS_UNSPECIFIED +} + +func (m *QueryCurrentGroupResponse) GetActiveTime() time.Time { + if m != nil { + return m.ActiveTime + } + return time.Time{} +} + +// QueryIncomingGroupRequest is the request type for the Query/IncomingGroup RPC method. +type QueryIncomingGroupRequest struct { +} + +func (m *QueryIncomingGroupRequest) Reset() { *m = QueryIncomingGroupRequest{} } +func (m *QueryIncomingGroupRequest) String() string { return proto.CompactTextString(m) } +func (*QueryIncomingGroupRequest) ProtoMessage() {} +func (*QueryIncomingGroupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{8} +} +func (m *QueryIncomingGroupRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryIncomingGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryIncomingGroupRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryIncomingGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIncomingGroupRequest.Merge(m, src) +} +func (m *QueryIncomingGroupRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryIncomingGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIncomingGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryIncomingGroupRequest proto.InternalMessageInfo + +// QueryIncomingGroupResponse is the response type for the Query/IncomingGroup RPC method. +type QueryIncomingGroupResponse struct { + // group_id is the ID of the incoming group. + GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"group_id,omitempty"` + // size is the number of members in the group. + Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + // threshold is the minimum number of members needed to generate a valid signature. + Threshold uint64 `protobuf:"varint,3,opt,name=threshold,proto3" json:"threshold,omitempty"` + // pub_key is the public key generated by the group. + PubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `protobuf:"bytes,4,opt,name=pub_key,json=pubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_key,omitempty"` + // status is the status of the incoming group. + Status types.GroupStatus `protobuf:"varint,5,opt,name=status,proto3,enum=band.tss.v1beta1.GroupStatus" json:"status,omitempty"` +} + +func (m *QueryIncomingGroupResponse) Reset() { *m = QueryIncomingGroupResponse{} } +func (m *QueryIncomingGroupResponse) String() string { return proto.CompactTextString(m) } +func (*QueryIncomingGroupResponse) ProtoMessage() {} +func (*QueryIncomingGroupResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{9} +} +func (m *QueryIncomingGroupResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryIncomingGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryIncomingGroupResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryIncomingGroupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIncomingGroupResponse.Merge(m, src) +} +func (m *QueryIncomingGroupResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryIncomingGroupResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIncomingGroupResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryIncomingGroupResponse proto.InternalMessageInfo + +func (m *QueryIncomingGroupResponse) GetGroupID() github_com_bandprotocol_chain_v3_pkg_tss.GroupID { + if m != nil { + return m.GroupID + } + return 0 +} + +func (m *QueryIncomingGroupResponse) GetSize_() uint64 { + if m != nil { + return m.Size_ + } + return 0 +} + +func (m *QueryIncomingGroupResponse) GetThreshold() uint64 { + if m != nil { + return m.Threshold + } + return 0 +} + +func (m *QueryIncomingGroupResponse) GetPubKey() github_com_bandprotocol_chain_v3_pkg_tss.Point { + if m != nil { + return m.PubKey + } + return nil +} + +func (m *QueryIncomingGroupResponse) GetStatus() types.GroupStatus { + if m != nil { + return m.Status + } + return types.GROUP_STATUS_UNSPECIFIED +} + +// QuerySingingRequest is the request type for the Query/Signing RPC method. +type QuerySigningRequest struct { + // signing_id is the ID of the signing request. + SigningId uint64 `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3" json:"signing_id,omitempty"` +} + +func (m *QuerySigningRequest) Reset() { *m = QuerySigningRequest{} } +func (m *QuerySigningRequest) String() string { return proto.CompactTextString(m) } +func (*QuerySigningRequest) ProtoMessage() {} +func (*QuerySigningRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{10} +} +func (m *QuerySigningRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QuerySigningRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QuerySigningRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QuerySigningRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuerySigningRequest.Merge(m, src) +} +func (m *QuerySigningRequest) XXX_Size() int { + return m.Size() +} +func (m *QuerySigningRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QuerySigningRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QuerySigningRequest proto.InternalMessageInfo + +func (m *QuerySigningRequest) GetSigningId() uint64 { + if m != nil { + return m.SigningId + } + return 0 +} + +// QuerySigningResponse is the response type for the Query/Signing RPC method. +type QuerySigningResponse struct { + // fee_per_signer is the tokens that will be paid per signer for this bandtss signing. + FeePerSigner github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=fee_per_signer,json=feePerSigner,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fee_per_signer"` + // requester is the address of requester who paid for bandtss signing. + Requester string `protobuf:"bytes,2,opt,name=requester,proto3" json:"requester,omitempty"` + // current_group_signing_result is the signing result from the current group. + CurrentGroupSigningResult *types.SigningResult `protobuf:"bytes,3,opt,name=current_group_signing_result,json=currentGroupSigningResult,proto3" json:"current_group_signing_result,omitempty"` + // incoming_group_signing_result is the signing result from the incoming group. + IncomingGroupSigningResult *types.SigningResult `protobuf:"bytes,4,opt,name=incoming_group_signing_result,json=incomingGroupSigningResult,proto3" json:"incoming_group_signing_result,omitempty"` +} + +func (m *QuerySigningResponse) Reset() { *m = QuerySigningResponse{} } +func (m *QuerySigningResponse) String() string { return proto.CompactTextString(m) } +func (*QuerySigningResponse) ProtoMessage() {} +func (*QuerySigningResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{11} +} +func (m *QuerySigningResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QuerySigningResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QuerySigningResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QuerySigningResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuerySigningResponse.Merge(m, src) +} +func (m *QuerySigningResponse) XXX_Size() int { + return m.Size() +} +func (m *QuerySigningResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QuerySigningResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QuerySigningResponse proto.InternalMessageInfo + +func (m *QuerySigningResponse) GetFeePerSigner() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.FeePerSigner + } + return nil +} + +func (m *QuerySigningResponse) GetRequester() string { + if m != nil { + return m.Requester + } + return "" +} + +func (m *QuerySigningResponse) GetCurrentGroupSigningResult() *types.SigningResult { + if m != nil { + return m.CurrentGroupSigningResult + } + return nil +} + +func (m *QuerySigningResponse) GetIncomingGroupSigningResult() *types.SigningResult { + if m != nil { + return m.IncomingGroupSigningResult + } + return nil +} + +// QueryGroupTransitionRequest is the request type for the Query/GroupTransition RPC method. +type QueryGroupTransitionRequest struct { +} + +func (m *QueryGroupTransitionRequest) Reset() { *m = QueryGroupTransitionRequest{} } +func (m *QueryGroupTransitionRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGroupTransitionRequest) ProtoMessage() {} +func (*QueryGroupTransitionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{12} +} +func (m *QueryGroupTransitionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGroupTransitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGroupTransitionRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGroupTransitionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGroupTransitionRequest.Merge(m, src) +} +func (m *QueryGroupTransitionRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGroupTransitionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGroupTransitionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGroupTransitionRequest proto.InternalMessageInfo + +// QueryGroupTransitionResponse is the response type for the Query/GroupTransition RPC method. +type QueryGroupTransitionResponse struct { + // group_transition is the group transition information. + GroupTransition *GroupTransition `protobuf:"bytes,1,opt,name=group_transition,json=groupTransition,proto3" json:"group_transition,omitempty"` +} + +func (m *QueryGroupTransitionResponse) Reset() { *m = QueryGroupTransitionResponse{} } +func (m *QueryGroupTransitionResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGroupTransitionResponse) ProtoMessage() {} +func (*QueryGroupTransitionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{13} +} +func (m *QueryGroupTransitionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGroupTransitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGroupTransitionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGroupTransitionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGroupTransitionResponse.Merge(m, src) +} +func (m *QueryGroupTransitionResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGroupTransitionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGroupTransitionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGroupTransitionResponse proto.InternalMessageInfo + +func (m *QueryGroupTransitionResponse) GetGroupTransition() *GroupTransition { + if m != nil { + return m.GroupTransition + } + return nil +} + +// QueryParamsRequest is request type for the Query/Params RPC method. +type QueryParamsRequest struct { +} + +func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } +func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryParamsRequest) ProtoMessage() {} +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{14} +} +func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsRequest.Merge(m, src) +} +func (m *QueryParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo + +// QueryParamsResponse is response type for the Query/Params RPC method. +type QueryParamsResponse struct { + // Params is the parameters of the module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +} + +func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } +func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryParamsResponse) ProtoMessage() {} +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d619290a87c09054, []int{15} +} +func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsResponse.Merge(m, src) +} +func (m *QueryParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo + +func (m *QueryParamsResponse) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func init() { + proto.RegisterEnum("band.bandtss.v1beta1.MemberStatusFilter", MemberStatusFilter_name, MemberStatusFilter_value) + proto.RegisterType((*QueryCountsRequest)(nil), "band.bandtss.v1beta1.QueryCountsRequest") + proto.RegisterType((*QueryCountsResponse)(nil), "band.bandtss.v1beta1.QueryCountsResponse") + proto.RegisterType((*QueryMembersRequest)(nil), "band.bandtss.v1beta1.QueryMembersRequest") + proto.RegisterType((*QueryMembersResponse)(nil), "band.bandtss.v1beta1.QueryMembersResponse") + proto.RegisterType((*QueryMemberRequest)(nil), "band.bandtss.v1beta1.QueryMemberRequest") + proto.RegisterType((*QueryMemberResponse)(nil), "band.bandtss.v1beta1.QueryMemberResponse") + proto.RegisterType((*QueryCurrentGroupRequest)(nil), "band.bandtss.v1beta1.QueryCurrentGroupRequest") + proto.RegisterType((*QueryCurrentGroupResponse)(nil), "band.bandtss.v1beta1.QueryCurrentGroupResponse") + proto.RegisterType((*QueryIncomingGroupRequest)(nil), "band.bandtss.v1beta1.QueryIncomingGroupRequest") + proto.RegisterType((*QueryIncomingGroupResponse)(nil), "band.bandtss.v1beta1.QueryIncomingGroupResponse") + proto.RegisterType((*QuerySigningRequest)(nil), "band.bandtss.v1beta1.QuerySigningRequest") + proto.RegisterType((*QuerySigningResponse)(nil), "band.bandtss.v1beta1.QuerySigningResponse") + proto.RegisterType((*QueryGroupTransitionRequest)(nil), "band.bandtss.v1beta1.QueryGroupTransitionRequest") + proto.RegisterType((*QueryGroupTransitionResponse)(nil), "band.bandtss.v1beta1.QueryGroupTransitionResponse") + proto.RegisterType((*QueryParamsRequest)(nil), "band.bandtss.v1beta1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "band.bandtss.v1beta1.QueryParamsResponse") +} + +func init() { proto.RegisterFile("band/bandtss/v1beta1/query.proto", fileDescriptor_d619290a87c09054) } + +var fileDescriptor_d619290a87c09054 = []byte{ + // 1268 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xb1, 0x6f, 0xdb, 0x56, + 0x13, 0x17, 0x15, 0x45, 0x8a, 0x9f, 0x9d, 0xd8, 0xdf, 0x8b, 0x3f, 0x54, 0xa6, 0x6d, 0x51, 0x66, + 0x52, 0x47, 0x31, 0x50, 0xd2, 0x56, 0xda, 0x0e, 0x59, 0xda, 0xc8, 0x91, 0x03, 0x35, 0x75, 0xa0, + 0x50, 0x4a, 0x86, 0x2c, 0x2a, 0x25, 0x3d, 0xd3, 0x84, 0x25, 0x92, 0xe6, 0x23, 0x8d, 0xba, 0x41, + 0x3a, 0x04, 0x1d, 0x9a, 0xcd, 0x40, 0x87, 0x0c, 0x1d, 0xb3, 0x75, 0xe8, 0x3f, 0xd1, 0x25, 0x40, + 0x97, 0x00, 0x5d, 0x3a, 0x39, 0x85, 0xdd, 0xb5, 0x5b, 0xa7, 0x4c, 0x05, 0xdf, 0x3b, 0xca, 0xa2, + 0xc4, 0xd0, 0xea, 0xde, 0xc5, 0x96, 0xde, 0xdd, 0xbd, 0xfb, 0xdd, 0xdd, 0xbb, 0xdf, 0x9d, 0x50, + 0xb1, 0xad, 0x5b, 0x5d, 0x35, 0xf8, 0xe3, 0x51, 0xaa, 0x1e, 0x6c, 0xb4, 0x89, 0xa7, 0x6f, 0xa8, + 0xfb, 0x3e, 0x71, 0x0f, 0x15, 0xc7, 0xb5, 0x3d, 0x1b, 0xcf, 0x07, 0x42, 0x05, 0x34, 0x14, 0xd0, + 0x10, 0xe7, 0x0d, 0xdb, 0xb0, 0x99, 0x82, 0x1a, 0x7c, 0xe2, 0xba, 0xa2, 0x64, 0xd8, 0xb6, 0xd1, + 0x23, 0x2a, 0xfb, 0xd6, 0xf6, 0x77, 0x54, 0xcf, 0xec, 0x13, 0xea, 0xe9, 0x7d, 0x07, 0x14, 0xd6, + 0x3a, 0x36, 0xed, 0xdb, 0x54, 0x6d, 0xeb, 0x94, 0x70, 0x2f, 0x03, 0x9f, 0x8e, 0x6e, 0x98, 0x96, + 0xee, 0x99, 0xb6, 0x05, 0xba, 0x85, 0x61, 0xdd, 0x50, 0xab, 0x63, 0x9b, 0xa1, 0x7c, 0x09, 0x9c, + 0xe9, 0x8e, 0xa9, 0xea, 0x96, 0x65, 0x7b, 0xcc, 0x98, 0x82, 0x54, 0x64, 0x81, 0x0d, 0x07, 0x15, + 0xc0, 0xe7, 0x32, 0x39, 0x36, 0xe8, 0x30, 0xc4, 0x24, 0x1d, 0x83, 0x58, 0x84, 0x9a, 0xa0, 0x23, + 0xcf, 0x23, 0xfc, 0x30, 0x88, 0x61, 0xd3, 0xf6, 0x2d, 0x8f, 0x6a, 0x64, 0xdf, 0x27, 0xd4, 0x93, + 0x6f, 0xa3, 0xab, 0x91, 0x53, 0xea, 0xd8, 0x16, 0x25, 0xf8, 0x1a, 0xba, 0x4c, 0x4d, 0xc3, 0x32, + 0x2d, 0xa3, 0xd5, 0x09, 0x24, 0x79, 0xa1, 0x28, 0x94, 0x32, 0xda, 0x0c, 0x1c, 0x32, 0x6d, 0xf9, + 0x57, 0x01, 0x8c, 0xb7, 0x49, 0xbf, 0x4d, 0xdc, 0xf0, 0x4e, 0xfc, 0x39, 0xca, 0x52, 0x4f, 0xf7, + 0x7c, 0xca, 0xac, 0xae, 0x94, 0x4b, 0x4a, 0x5c, 0x55, 0x14, 0x6e, 0xd5, 0x60, 0x9a, 0x5b, 0x66, + 0xcf, 0x23, 0xae, 0x06, 0x76, 0x78, 0x0d, 0xfd, 0xcf, 0xa4, 0x2d, 0xd3, 0xea, 0xd8, 0xfd, 0x00, + 0x82, 0xe1, 0xda, 0xbe, 0x93, 0x4f, 0x17, 0x85, 0xd2, 0x25, 0x6d, 0xd6, 0xa4, 0x35, 0x38, 0xbf, + 0x17, 0x1c, 0xe3, 0x2d, 0x84, 0xce, 0xaa, 0x91, 0xbf, 0x50, 0x14, 0x4a, 0xd3, 0xe5, 0x55, 0x85, + 0x97, 0x43, 0x09, 0xca, 0xa1, 0xf0, 0x07, 0x12, 0xba, 0xad, 0xeb, 0x06, 0x01, 0xa4, 0xda, 0x90, + 0xa5, 0xfc, 0x52, 0x40, 0xf3, 0xd1, 0x68, 0x20, 0x17, 0x9f, 0xa2, 0x5c, 0x9f, 0x1f, 0xe5, 0x85, + 0xe2, 0x85, 0xd2, 0x74, 0x79, 0x29, 0x29, 0x1e, 0x2d, 0x54, 0xc6, 0xf7, 0x22, 0xc0, 0xd2, 0x0c, + 0xd8, 0x8d, 0x73, 0x81, 0x71, 0xa7, 0x11, 0x64, 0x0a, 0x54, 0x0e, 0x1c, 0x40, 0x96, 0xf3, 0x28, + 0xa7, 0x77, 0xbb, 0x2e, 0xa1, 0x3c, 0xcd, 0x53, 0x5a, 0xf8, 0x55, 0xfe, 0x25, 0x5a, 0x97, 0x41, + 0x20, 0x4d, 0x34, 0xdf, 0xf1, 0x5d, 0x97, 0x58, 0x1e, 0xcf, 0x68, 0x8b, 0x23, 0x65, 0xe6, 0xe7, + 0x44, 0x55, 0xc9, 0xbc, 0x3e, 0x96, 0x52, 0x1a, 0x06, 0x7b, 0x96, 0x79, 0x2e, 0xc1, 0x8f, 0xd1, + 0xff, 0xa3, 0x85, 0x0a, 0xaf, 0x4d, 0x4f, 0x7c, 0xed, 0x55, 0x73, 0xb8, 0xa2, 0x5c, 0x24, 0x8b, + 0x28, 0xcf, 0x5f, 0xe6, 0x90, 0xcb, 0xf0, 0xd5, 0xfe, 0x9d, 0x46, 0x0b, 0x31, 0x42, 0x88, 0xf3, + 0x09, 0xba, 0xc4, 0x81, 0x98, 0x5d, 0xfe, 0x6e, 0x2b, 0x9f, 0x9d, 0x1c, 0x4b, 0x39, 0xa6, 0x54, + 0xbb, 0xfb, 0xee, 0x58, 0x5a, 0x37, 0x4c, 0x6f, 0xd7, 0x6f, 0x2b, 0x1d, 0xbb, 0xcf, 0x9a, 0x86, + 0x35, 0x48, 0xc7, 0xee, 0xa9, 0x9d, 0x5d, 0xdd, 0xb4, 0xd4, 0x83, 0x5b, 0xaa, 0xb3, 0x67, 0xb0, + 0x16, 0x04, 0x1b, 0x2d, 0xc7, 0x2e, 0xac, 0x75, 0x31, 0x46, 0x19, 0x6a, 0x7e, 0x43, 0x58, 0x70, + 0x19, 0x8d, 0x7d, 0xc6, 0x4b, 0x68, 0xca, 0xdb, 0x75, 0x09, 0xdd, 0xb5, 0x7b, 0x5d, 0xf6, 0x00, + 0x33, 0xda, 0xd9, 0x01, 0xbe, 0x8f, 0x72, 0x8e, 0xdf, 0x6e, 0xed, 0x91, 0xc3, 0x7c, 0xa6, 0x28, + 0x94, 0x66, 0x2a, 0xe5, 0x77, 0xc7, 0x92, 0x32, 0x31, 0x82, 0xba, 0x6d, 0x5a, 0x9e, 0x96, 0x75, + 0xfc, 0xf6, 0x7d, 0x72, 0x88, 0x3f, 0x19, 0xb4, 0xd6, 0x45, 0xd6, 0x5a, 0xcb, 0x3c, 0xbb, 0xc3, + 0x99, 0x65, 0x90, 0x79, 0x57, 0x0d, 0xfa, 0xa9, 0x8a, 0xa6, 0xf5, 0x8e, 0x67, 0x1e, 0x90, 0x56, + 0xc0, 0x71, 0xf9, 0x2c, 0xab, 0x8c, 0xa8, 0x70, 0x4e, 0x52, 0x42, 0x02, 0x54, 0x9a, 0x21, 0x01, + 0x56, 0x2e, 0x05, 0x75, 0x39, 0x7a, 0x2b, 0x09, 0x1a, 0xe2, 0x86, 0x81, 0x48, 0x5e, 0x84, 0xac, + 0x47, 0x1a, 0x30, 0xac, 0xc9, 0xcf, 0x69, 0x24, 0xc6, 0x49, 0xff, 0x2b, 0x4a, 0x7c, 0x51, 0xe4, + 0x8f, 0xa1, 0x4b, 0x1b, 0x9c, 0x53, 0xc3, 0xbe, 0x5e, 0x46, 0x28, 0xa4, 0xde, 0x30, 0x55, 0xda, + 0x14, 0x9c, 0xd4, 0xba, 0xf2, 0x5f, 0x69, 0xa0, 0xa9, 0x81, 0x19, 0x24, 0x78, 0x1f, 0x5d, 0xd9, + 0x21, 0xa4, 0xe5, 0x10, 0xb7, 0x15, 0x68, 0xb3, 0xbe, 0x0e, 0xd8, 0x6a, 0x21, 0x42, 0x39, 0x21, + 0xa0, 0x4d, 0xdb, 0xb4, 0x2a, 0xeb, 0x41, 0x95, 0x7f, 0x7a, 0x2b, 0x95, 0x86, 0x02, 0x87, 0x39, + 0xc6, 0xff, 0x7d, 0x44, 0xbb, 0x7b, 0xaa, 0x77, 0xe8, 0x10, 0xca, 0x0c, 0xa8, 0x36, 0xb3, 0x43, + 0x48, 0x9d, 0xb8, 0x0d, 0xe6, 0x20, 0xc8, 0xb1, 0xcb, 0x51, 0x43, 0xbb, 0x4f, 0x69, 0x67, 0x07, + 0xf8, 0x2b, 0xb4, 0x14, 0xa5, 0x9b, 0x30, 0x2c, 0x97, 0x50, 0xbf, 0xe7, 0x01, 0x55, 0x4b, 0xe3, + 0xc9, 0x3a, 0x8b, 0xcc, 0xef, 0x79, 0xda, 0xc2, 0x30, 0xe7, 0x44, 0x44, 0xb8, 0x8d, 0x96, 0x47, + 0xa8, 0x67, 0xc4, 0x45, 0x66, 0x32, 0x17, 0x62, 0x84, 0x7f, 0x22, 0x32, 0x79, 0x19, 0x2d, 0xb2, + 0x74, 0x33, 0x51, 0xd3, 0xd5, 0x2d, 0x6a, 0x06, 0xa4, 0x1c, 0xbe, 0x7a, 0x07, 0x2d, 0xc5, 0x8b, + 0xa1, 0x2a, 0x75, 0x34, 0xc7, 0x91, 0x79, 0x03, 0x19, 0xf0, 0xed, 0x87, 0xf1, 0xc4, 0x38, 0x7a, + 0xd1, 0xac, 0x11, 0x3d, 0x18, 0xcc, 0xf1, 0xba, 0xee, 0xea, 0xfd, 0xc1, 0x1c, 0x7f, 0x08, 0x8f, + 0x29, 0x3c, 0x05, 0xf7, 0xb7, 0x51, 0xd6, 0x61, 0x27, 0xc9, 0x24, 0xcf, 0xad, 0x80, 0x8d, 0xc1, + 0x62, 0xed, 0x3b, 0x01, 0xe1, 0xf1, 0x19, 0x8d, 0xaf, 0xa3, 0xe2, 0x76, 0x75, 0xbb, 0x52, 0xd5, + 0x5a, 0x8d, 0xe6, 0x9d, 0xe6, 0xa3, 0x46, 0x6b, 0xab, 0xf6, 0x65, 0xb3, 0xaa, 0xb5, 0x1e, 0x3d, + 0x68, 0xd4, 0xab, 0x9b, 0xb5, 0xad, 0x5a, 0xf5, 0xee, 0x5c, 0x0a, 0x4b, 0x68, 0x31, 0x56, 0xeb, + 0xce, 0x66, 0xb3, 0xf6, 0xb8, 0x3a, 0x27, 0xe0, 0x15, 0xb4, 0x1c, 0xab, 0x50, 0x7b, 0x00, 0x2a, + 0x69, 0x31, 0xf3, 0xfd, 0xab, 0x42, 0xaa, 0xfc, 0x62, 0x0a, 0x5d, 0x64, 0xa1, 0xe1, 0x6f, 0x51, + 0x96, 0xaf, 0x29, 0xf8, 0x3d, 0x1b, 0xc5, 0xf8, 0x7e, 0x23, 0xde, 0x9c, 0x40, 0x93, 0xe7, 0x4a, + 0x96, 0x9e, 0xff, 0xf6, 0xe7, 0x0f, 0xe9, 0x05, 0xfc, 0xc1, 0xd8, 0x22, 0xd5, 0xe1, 0x5e, 0x9f, + 0x0b, 0x28, 0x07, 0xcb, 0x01, 0x4e, 0xba, 0x37, 0xba, 0x0e, 0x89, 0x6b, 0x93, 0xa8, 0x02, 0x86, + 0x22, 0xc3, 0x20, 0xe2, 0xfc, 0x18, 0x86, 0x70, 0xab, 0x78, 0x21, 0xa0, 0x2c, 0x4c, 0xde, 0xd2, + 0xb9, 0x17, 0x4f, 0x92, 0x85, 0xe8, 0x92, 0x20, 0xaf, 0x31, 0x04, 0xd7, 0xb1, 0xfc, 0x3e, 0x04, + 0xea, 0x53, 0xd8, 0x33, 0x9e, 0xe1, 0x97, 0x02, 0x9a, 0x19, 0x9e, 0xc0, 0x58, 0x49, 0xca, 0xf6, + 0xf8, 0x1c, 0x17, 0xd5, 0x89, 0xf5, 0x01, 0xdd, 0x2a, 0x43, 0x57, 0xc4, 0x85, 0xf1, 0x1a, 0x0d, + 0x53, 0x0d, 0xfe, 0x51, 0x40, 0x97, 0xa3, 0x6b, 0x62, 0x92, 0xab, 0xb8, 0x79, 0x26, 0xae, 0x4f, + 0x6e, 0x00, 0xe0, 0x6e, 0x30, 0x70, 0x2b, 0x58, 0x1a, 0x03, 0x17, 0x65, 0x29, 0x7c, 0x24, 0xa0, + 0x1c, 0xb0, 0x4c, 0xe2, 0x43, 0x8a, 0x4e, 0x86, 0xc4, 0x87, 0x34, 0x32, 0x0d, 0x64, 0x85, 0x61, + 0x29, 0xe1, 0xd5, 0x31, 0x2c, 0x40, 0x91, 0x54, 0x7d, 0x7a, 0x36, 0x66, 0x9e, 0xe1, 0x57, 0x02, + 0x9a, 0x1d, 0xa1, 0x1e, 0xbc, 0x91, 0xe0, 0x2f, 0x9e, 0x0e, 0xc5, 0xf2, 0xbf, 0x31, 0x01, 0xa8, + 0x37, 0x19, 0xd4, 0x6b, 0x78, 0x65, 0xfc, 0x07, 0xcc, 0x08, 0x73, 0x06, 0x0c, 0xc0, 0xa9, 0x2a, + 0xf1, 0xed, 0x47, 0x98, 0x31, 0xf1, 0xed, 0x47, 0xd9, 0x32, 0x81, 0x01, 0x38, 0x25, 0x56, 0xbe, + 0x78, 0x7d, 0x52, 0x10, 0xde, 0x9c, 0x14, 0x84, 0x3f, 0x4e, 0x0a, 0xc2, 0xd1, 0x69, 0x21, 0xf5, + 0xe6, 0xb4, 0x90, 0xfa, 0xfd, 0xb4, 0x90, 0x7a, 0x72, 0xfe, 0xf6, 0xf2, 0xf5, 0xe0, 0x52, 0x36, + 0x50, 0xdb, 0x59, 0xa6, 0x72, 0xeb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x08, 0x2c, 0x11, 0xcf, + 0xd5, 0x0e, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Counts queries the number of existing signing. + Counts(ctx context.Context, in *QueryCountsRequest, opts ...grpc.CallOption) (*QueryCountsResponse, error) + // Members queries all members. + Members(ctx context.Context, in *QueryMembersRequest, opts ...grpc.CallOption) (*QueryMembersResponse, error) + // Member queries the member information of the given address. + Member(ctx context.Context, in *QueryMemberRequest, opts ...grpc.CallOption) (*QueryMemberResponse, error) + // CurrentGroup queries the current group information. + CurrentGroup( + ctx context.Context, + in *QueryCurrentGroupRequest, + opts ...grpc.CallOption, + ) (*QueryCurrentGroupResponse, error) + // IncomingGroup queries the incoming group information. + IncomingGroup( + ctx context.Context, + in *QueryIncomingGroupRequest, + opts ...grpc.CallOption, + ) (*QueryIncomingGroupResponse, error) + // Signing queries the signing result of the given signing request ID. + Signing(ctx context.Context, in *QuerySigningRequest, opts ...grpc.CallOption) (*QuerySigningResponse, error) + // GroupTransition queries the group transition information. + GroupTransition( + ctx context.Context, + in *QueryGroupTransitionRequest, + opts ...grpc.CallOption, + ) (*QueryGroupTransitionResponse, error) + // Params queries parameters of bandtss module + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Counts( + ctx context.Context, + in *QueryCountsRequest, + opts ...grpc.CallOption, +) (*QueryCountsResponse, error) { + out := new(QueryCountsResponse) + err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/Counts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Members( + ctx context.Context, + in *QueryMembersRequest, + opts ...grpc.CallOption, +) (*QueryMembersResponse, error) { + out := new(QueryMembersResponse) + err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/Members", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Member( + ctx context.Context, + in *QueryMemberRequest, + opts ...grpc.CallOption, +) (*QueryMemberResponse, error) { + out := new(QueryMemberResponse) + err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/Member", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) CurrentGroup( + ctx context.Context, + in *QueryCurrentGroupRequest, + opts ...grpc.CallOption, +) (*QueryCurrentGroupResponse, error) { + out := new(QueryCurrentGroupResponse) + err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/CurrentGroup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) IncomingGroup( + ctx context.Context, + in *QueryIncomingGroupRequest, + opts ...grpc.CallOption, +) (*QueryIncomingGroupResponse, error) { + out := new(QueryIncomingGroupResponse) + err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/IncomingGroup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Signing( + ctx context.Context, + in *QuerySigningRequest, + opts ...grpc.CallOption, +) (*QuerySigningResponse, error) { + out := new(QuerySigningResponse) + err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/Signing", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GroupTransition( + ctx context.Context, + in *QueryGroupTransitionRequest, + opts ...grpc.CallOption, +) (*QueryGroupTransitionResponse, error) { + out := new(QueryGroupTransitionResponse) + err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/GroupTransition", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Params( + ctx context.Context, + in *QueryParamsRequest, + opts ...grpc.CallOption, +) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Counts queries the number of existing signing. + Counts(context.Context, *QueryCountsRequest) (*QueryCountsResponse, error) + // Members queries all members. + Members(context.Context, *QueryMembersRequest) (*QueryMembersResponse, error) + // Member queries the member information of the given address. + Member(context.Context, *QueryMemberRequest) (*QueryMemberResponse, error) + // CurrentGroup queries the current group information. + CurrentGroup(context.Context, *QueryCurrentGroupRequest) (*QueryCurrentGroupResponse, error) + // IncomingGroup queries the incoming group information. + IncomingGroup(context.Context, *QueryIncomingGroupRequest) (*QueryIncomingGroupResponse, error) + // Signing queries the signing result of the given signing request ID. + Signing(context.Context, *QuerySigningRequest) (*QuerySigningResponse, error) + // GroupTransition queries the group transition information. + GroupTransition(context.Context, *QueryGroupTransitionRequest) (*QueryGroupTransitionResponse, error) + // Params queries parameters of bandtss module + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Counts(ctx context.Context, req *QueryCountsRequest) (*QueryCountsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Counts not implemented") +} + +func (*UnimplementedQueryServer) Members( + ctx context.Context, + req *QueryMembersRequest, +) (*QueryMembersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Members not implemented") +} +func (*UnimplementedQueryServer) Member(ctx context.Context, req *QueryMemberRequest) (*QueryMemberResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Member not implemented") +} + +func (*UnimplementedQueryServer) CurrentGroup( + ctx context.Context, + req *QueryCurrentGroupRequest, +) (*QueryCurrentGroupResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CurrentGroup not implemented") +} + +func (*UnimplementedQueryServer) IncomingGroup( + ctx context.Context, + req *QueryIncomingGroupRequest, +) (*QueryIncomingGroupResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IncomingGroup not implemented") +} + +func (*UnimplementedQueryServer) Signing( + ctx context.Context, + req *QuerySigningRequest, +) (*QuerySigningResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Signing not implemented") +} + +func (*UnimplementedQueryServer) GroupTransition( + ctx context.Context, + req *QueryGroupTransitionRequest, +) (*QueryGroupTransitionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GroupTransition not implemented") +} +func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_Counts_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryCountsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Counts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.bandtss.v1beta1.Query/Counts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Counts(ctx, req.(*QueryCountsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Members_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryMembersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Members(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.bandtss.v1beta1.Query/Members", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Members(ctx, req.(*QueryMembersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Member_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryMemberRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Member(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.bandtss.v1beta1.Query/Member", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Member(ctx, req.(*QueryMemberRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_CurrentGroup_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryCurrentGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).CurrentGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.bandtss.v1beta1.Query/CurrentGroup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).CurrentGroup(ctx, req.(*QueryCurrentGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_IncomingGroup_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryIncomingGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).IncomingGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.bandtss.v1beta1.Query/IncomingGroup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).IncomingGroup(ctx, req.(*QueryIncomingGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Signing_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QuerySigningRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Signing(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.bandtss.v1beta1.Query/Signing", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Signing(ctx, req.(*QuerySigningRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GroupTransition_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryGroupTransitionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GroupTransition(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.bandtss.v1beta1.Query/GroupTransition", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GroupTransition(ctx, req.(*QueryGroupTransitionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Params_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.bandtss.v1beta1.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "band.bandtss.v1beta1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Counts", + Handler: _Query_Counts_Handler, + }, + { + MethodName: "Members", + Handler: _Query_Members_Handler, + }, + { + MethodName: "Member", + Handler: _Query_Member_Handler, + }, + { + MethodName: "CurrentGroup", + Handler: _Query_CurrentGroup_Handler, + }, + { + MethodName: "IncomingGroup", + Handler: _Query_IncomingGroup_Handler, + }, + { + MethodName: "Signing", + Handler: _Query_Signing_Handler, + }, + { + MethodName: "GroupTransition", + Handler: _Query_GroupTransition_Handler, + }, + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "band/bandtss/v1beta1/query.proto", +} + +func (m *QueryCountsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryCountsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryCountsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryCountsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SigningCount != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.SigningCount)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryMembersRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryMembersRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.IsIncomingGroup { + i-- + if m.IsIncomingGroup { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.Status != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryMembersResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryMembersResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Members) > 0 { + for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryMemberRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryMemberRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryMemberRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryMemberResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryMemberResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryMemberResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.IncomingGroupMember.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.CurrentGroupMember.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryCurrentGroupRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryCurrentGroupRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCurrentGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryCurrentGroupResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryCurrentGroupResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCurrentGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n5, err5 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo( + m.ActiveTime, + dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ActiveTime):], + ) + if err5 != nil { + return 0, err5 + } + i -= n5 + i = encodeVarintQuery(dAtA, i, uint64(n5)) + i-- + dAtA[i] = 0x32 + if m.Status != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x28 + } + if len(m.PubKey) > 0 { + i -= len(m.PubKey) + copy(dAtA[i:], m.PubKey) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PubKey))) + i-- + dAtA[i] = 0x22 + } + if m.Threshold != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Threshold)) + i-- + dAtA[i] = 0x18 + } + if m.Size_ != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Size_)) + i-- + dAtA[i] = 0x10 + } + if m.GroupID != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.GroupID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryIncomingGroupRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryIncomingGroupRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryIncomingGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryIncomingGroupResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryIncomingGroupResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryIncomingGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Status != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x28 + } + if len(m.PubKey) > 0 { + i -= len(m.PubKey) + copy(dAtA[i:], m.PubKey) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PubKey))) + i-- + dAtA[i] = 0x22 + } + if m.Threshold != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Threshold)) + i-- + dAtA[i] = 0x18 + } + if m.Size_ != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Size_)) + i-- + dAtA[i] = 0x10 + } + if m.GroupID != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.GroupID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QuerySigningRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QuerySigningRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QuerySigningRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SigningId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.SigningId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QuerySigningResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QuerySigningResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QuerySigningResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IncomingGroupSigningResult != nil { + { + size, err := m.IncomingGroupSigningResult.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.CurrentGroupSigningResult != nil { + { + size, err := m.CurrentGroupSigningResult.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Requester) > 0 { + i -= len(m.Requester) + copy(dAtA[i:], m.Requester) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Requester))) + i-- + dAtA[i] = 0x12 + } + if len(m.FeePerSigner) > 0 { + for iNdEx := len(m.FeePerSigner) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FeePerSigner[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryGroupTransitionRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGroupTransitionRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGroupTransitionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryGroupTransitionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGroupTransitionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGroupTransitionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.GroupTransition != nil { + { + size, err := m.GroupTransition.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryCountsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryCountsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SigningCount != 0 { + n += 1 + sovQuery(uint64(m.SigningCount)) + } + return n +} + +func (m *QueryMembersRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Status != 0 { + n += 1 + sovQuery(uint64(m.Status)) + } + if m.IsIncomingGroup { + n += 2 + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryMembersResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Members) > 0 { + for _, e := range m.Members { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryMemberRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryMemberResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CurrentGroupMember.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.IncomingGroupMember.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryCurrentGroupRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryCurrentGroupResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.GroupID != 0 { + n += 1 + sovQuery(uint64(m.GroupID)) + } + if m.Size_ != 0 { + n += 1 + sovQuery(uint64(m.Size_)) + } + if m.Threshold != 0 { + n += 1 + sovQuery(uint64(m.Threshold)) + } + l = len(m.PubKey) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Status != 0 { + n += 1 + sovQuery(uint64(m.Status)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ActiveTime) + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryIncomingGroupRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryIncomingGroupResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.GroupID != 0 { + n += 1 + sovQuery(uint64(m.GroupID)) + } + if m.Size_ != 0 { + n += 1 + sovQuery(uint64(m.Size_)) + } + if m.Threshold != 0 { + n += 1 + sovQuery(uint64(m.Threshold)) + } + l = len(m.PubKey) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Status != 0 { + n += 1 + sovQuery(uint64(m.Status)) + } + return n +} + +func (m *QuerySigningRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SigningId != 0 { + n += 1 + sovQuery(uint64(m.SigningId)) + } + return n +} + +func (m *QuerySigningResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FeePerSigner) > 0 { + for _, e := range m.FeePerSigner { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + l = len(m.Requester) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.CurrentGroupSigningResult != nil { + l = m.CurrentGroupSigningResult.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.IncomingGroupSigningResult != nil { + l = m.IncomingGroupSigningResult.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGroupTransitionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryGroupTransitionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.GroupTransition != nil { + l = m.GroupTransition.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryCountsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryCountsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCountsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryCountsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryCountsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCountsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SigningCount", wireType) + } + m.SigningCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SigningCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryMembersRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryMembersRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryMembersRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= MemberStatusFilter(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsIncomingGroup", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsIncomingGroup = bool(v != 0) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryMembersResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryMembersResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryMembersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Members = append(m.Members, &Member{}) + if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryMemberRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryMemberRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryMemberRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryMemberResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryMemberResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryMemberResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentGroupMember", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CurrentGroupMember.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncomingGroupMember", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.IncomingGroupMember.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryCurrentGroupRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryCurrentGroupRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCurrentGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryCurrentGroupResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryCurrentGroupResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCurrentGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType) + } + m.GroupID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupID |= github_com_bandprotocol_chain_v3_pkg_tss.GroupID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) + } + m.Size_ = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Size_ |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Threshold", wireType) + } + m.Threshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Threshold |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...) + if m.PubKey == nil { + m.PubKey = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= types.GroupStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ActiveTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryIncomingGroupRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryIncomingGroupRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryIncomingGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryIncomingGroupResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryIncomingGroupResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryIncomingGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType) + } + m.GroupID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupID |= github_com_bandprotocol_chain_v3_pkg_tss.GroupID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) + } + m.Size_ = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Size_ |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Threshold", wireType) + } + m.Threshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Threshold |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...) + if m.PubKey == nil { + m.PubKey = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= types.GroupStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QuerySigningRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QuerySigningRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QuerySigningRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SigningId", wireType) + } + m.SigningId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SigningId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QuerySigningResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QuerySigningResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QuerySigningResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeePerSigner", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeePerSigner = append(m.FeePerSigner, types1.Coin{}) + if err := m.FeePerSigner[len(m.FeePerSigner)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requester", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requester = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentGroupSigningResult", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CurrentGroupSigningResult == nil { + m.CurrentGroupSigningResult = &types.SigningResult{} + } + if err := m.CurrentGroupSigningResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncomingGroupSigningResult", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IncomingGroupSigningResult == nil { + m.IncomingGroupSigningResult = &types.SigningResult{} + } + if err := m.IncomingGroupSigningResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGroupTransitionRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryGroupTransitionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGroupTransitionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGroupTransitionResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryGroupTransitionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGroupTransitionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupTransition", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GroupTransition == nil { + m.GroupTransition = &GroupTransition{} + } + if err := m.GroupTransition.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/internal/bandchain/feeds/encoder.pb.go b/internal/bandchain/feeds/encoder.pb.go new file mode 100644 index 0000000..f28b5d6 --- /dev/null +++ b/internal/bandchain/feeds/encoder.pb.go @@ -0,0 +1,76 @@ +package types + +import ( + "fmt" + "math" + + "github.com/cosmos/gogoproto/proto" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Encoder is an enumerator that defines the mode of encoding message in tss module. +type Encoder int32 + +const ( + // ENCODER_UNSPECIFIED is an unspecified encoder mode. + ENCODER_UNSPECIFIED Encoder = 0 + // ENCODER_FIXED_POINT_ABI is a fixed-point price abi encoder (price * 10^9). + ENCODER_FIXED_POINT_ABI Encoder = 1 + // ENCODER_TICK_ABI is a tick abi encoder. + ENCODER_TICK_ABI Encoder = 2 +) + +var Encoder_name = map[int32]string{ + 0: "ENCODER_UNSPECIFIED", + 1: "ENCODER_FIXED_POINT_ABI", + 2: "ENCODER_TICK_ABI", +} + +var Encoder_value = map[string]int32{ + "ENCODER_UNSPECIFIED": 0, + "ENCODER_FIXED_POINT_ABI": 1, + "ENCODER_TICK_ABI": 2, +} + +func (x Encoder) String() string { + return proto.EnumName(Encoder_name, int32(x)) +} + +func (Encoder) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ac3e992b65436f01, []int{0} +} + +func init() { + proto.RegisterEnum("band.feeds.v1beta1.Encoder", Encoder_name, Encoder_value) +} + +func init() { proto.RegisterFile("band/feeds/v1beta1/encoder.proto", fileDescriptor_ac3e992b65436f01) } + +var fileDescriptor_ac3e992b65436f01 = []byte{ + // 226 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0x4a, 0xcc, 0x4b, + 0xd1, 0x4f, 0x4b, 0x4d, 0x4d, 0x29, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x4f, + 0xcd, 0x4b, 0xce, 0x4f, 0x49, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x02, 0xa9, + 0xd0, 0x03, 0xab, 0xd0, 0x83, 0xaa, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x4b, 0xeb, 0x83, + 0x58, 0x10, 0x95, 0x5a, 0xd1, 0x5c, 0xec, 0xae, 0x10, 0xad, 0x42, 0xe2, 0x5c, 0xc2, 0xae, 0x7e, + 0xce, 0xfe, 0x2e, 0xae, 0x41, 0xf1, 0xa1, 0x7e, 0xc1, 0x01, 0xae, 0xce, 0x9e, 0x6e, 0x9e, 0xae, + 0x2e, 0x02, 0x0c, 0x42, 0xd2, 0x5c, 0xe2, 0x30, 0x09, 0x37, 0xcf, 0x08, 0x57, 0x97, 0xf8, 0x00, + 0x7f, 0x4f, 0xbf, 0x90, 0x78, 0x47, 0x27, 0x4f, 0x01, 0x46, 0x21, 0x11, 0x2e, 0x01, 0x98, 0x64, + 0x88, 0xa7, 0xb3, 0x37, 0x58, 0x94, 0x49, 0x8a, 0xa5, 0x63, 0xb1, 0x1c, 0x83, 0x93, 0xc7, 0x89, + 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, + 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xe9, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, + 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x83, 0xdc, 0x0a, 0x76, 0x4c, 0x72, 0x7e, 0x8e, 0x7e, 0x72, 0x46, + 0x62, 0x66, 0x9e, 0x7e, 0x99, 0xb1, 0x7e, 0x05, 0xd4, 0x83, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, + 0x6c, 0x60, 0x05, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xef, 0x0d, 0x10, 0xc0, 0xfb, 0x00, + 0x00, 0x00, +} diff --git a/internal/bandchain/feeds/feeds.pb.go b/internal/bandchain/feeds/feeds.pb.go new file mode 100644 index 0000000..a9ba266 --- /dev/null +++ b/internal/bandchain/feeds/feeds.pb.go @@ -0,0 +1,3598 @@ +package types + +import ( + "fmt" + "io" + "math" + math_bits "math/bits" + + "github.com/cosmos/gogoproto/proto" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// PriceStatus is a structure that defines the price status of a price. +type PriceStatus int32 + +const ( + // PRICE_STATUS_UNSPECIFIED is an unspecified price status. + PRICE_STATUS_UNSPECIFIED PriceStatus = 0 + // PRICE_STATUS_UNKNOWN_SIGNAL_ID is an unknown signal id price status. + PRICE_STATUS_UNKNOWN_SIGNAL_ID PriceStatus = 1 + // PRICE_STATUS_NOT_READY is a not ready price status. + PRICE_STATUS_NOT_READY PriceStatus = 2 + // PRICE_STATUS_AVAILABLE is an available price status. + PRICE_STATUS_AVAILABLE PriceStatus = 3 + // PRICE_STATUS_NOT_IN_CURRENT_FEEDS is a not in current feed price status. + PRICE_STATUS_NOT_IN_CURRENT_FEEDS PriceStatus = 4 +) + +var PriceStatus_name = map[int32]string{ + 0: "PRICE_STATUS_UNSPECIFIED", + 1: "PRICE_STATUS_UNKNOWN_SIGNAL_ID", + 2: "PRICE_STATUS_NOT_READY", + 3: "PRICE_STATUS_AVAILABLE", + 4: "PRICE_STATUS_NOT_IN_CURRENT_FEEDS", +} + +var PriceStatus_value = map[string]int32{ + "PRICE_STATUS_UNSPECIFIED": 0, + "PRICE_STATUS_UNKNOWN_SIGNAL_ID": 1, + "PRICE_STATUS_NOT_READY": 2, + "PRICE_STATUS_AVAILABLE": 3, + "PRICE_STATUS_NOT_IN_CURRENT_FEEDS": 4, +} + +func (x PriceStatus) String() string { + return proto.EnumName(PriceStatus_name, int32(x)) +} + +func (PriceStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_fc3afe81d3b13674, []int{0} +} + +// SignalPriceStatus is a structure that defines the price status of a signal id. +type SignalPriceStatus int32 + +const ( + // SIGNAL_PRICE_STATUS_UNSPECIFIED is an unspecified signal price status. + SIGNAL_PRICE_STATUS_UNSPECIFIED SignalPriceStatus = 0 + // SIGNAL_PRICE_STATUS_UNSUPPORTED is an unsupported signal price status. + SIGNAL_PRICE_STATUS_UNSUPPORTED SignalPriceStatus = 1 + // SIGNAL_PRICE_STATUS_UNAVAILABLE is an unavailable signal price status. + SIGNAL_PRICE_STATUS_UNAVAILABLE SignalPriceStatus = 2 + // SIGNAL_PRICE_STATUS_AVAILABLE is an available signal price status. + SIGNAL_PRICE_STATUS_AVAILABLE SignalPriceStatus = 3 +) + +var SignalPriceStatus_name = map[int32]string{ + 0: "SIGNAL_PRICE_STATUS_UNSPECIFIED", + 1: "SIGNAL_PRICE_STATUS_UNSUPPORTED", + 2: "SIGNAL_PRICE_STATUS_UNAVAILABLE", + 3: "SIGNAL_PRICE_STATUS_AVAILABLE", +} + +var SignalPriceStatus_value = map[string]int32{ + "SIGNAL_PRICE_STATUS_UNSPECIFIED": 0, + "SIGNAL_PRICE_STATUS_UNSUPPORTED": 1, + "SIGNAL_PRICE_STATUS_UNAVAILABLE": 2, + "SIGNAL_PRICE_STATUS_AVAILABLE": 3, +} + +func (x SignalPriceStatus) String() string { + return proto.EnumName(SignalPriceStatus_name, int32(x)) +} + +func (SignalPriceStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_fc3afe81d3b13674, []int{1} +} + +// Signal is the data structure that contains signal id and power of that signal. +type Signal struct { + // id is the id of the signal. + ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // power is the power of the corresponding signal id. + Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` +} + +func (m *Signal) Reset() { *m = Signal{} } +func (m *Signal) String() string { return proto.CompactTextString(m) } +func (*Signal) ProtoMessage() {} +func (*Signal) Descriptor() ([]byte, []int) { + return fileDescriptor_fc3afe81d3b13674, []int{0} +} +func (m *Signal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Signal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Signal.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Signal) XXX_Merge(src proto.Message) { + xxx_messageInfo_Signal.Merge(m, src) +} +func (m *Signal) XXX_Size() int { + return m.Size() +} +func (m *Signal) XXX_DiscardUnknown() { + xxx_messageInfo_Signal.DiscardUnknown(m) +} + +var xxx_messageInfo_Signal proto.InternalMessageInfo + +func (m *Signal) GetID() string { + if m != nil { + return m.ID + } + return "" +} + +func (m *Signal) GetPower() int64 { + if m != nil { + return m.Power + } + return 0 +} + +// Vote is the data structure that contains array of signals of a voter. +type Vote struct { + // voter is the address of the voter of this signals. + Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"` + // signals is a list of signals submit by the voter. + Signals []Signal `protobuf:"bytes,2,rep,name=signals,proto3" json:"signals"` +} + +func (m *Vote) Reset() { *m = Vote{} } +func (m *Vote) String() string { return proto.CompactTextString(m) } +func (*Vote) ProtoMessage() {} +func (*Vote) Descriptor() ([]byte, []int) { + return fileDescriptor_fc3afe81d3b13674, []int{1} +} +func (m *Vote) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Vote.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Vote) XXX_Merge(src proto.Message) { + xxx_messageInfo_Vote.Merge(m, src) +} +func (m *Vote) XXX_Size() int { + return m.Size() +} +func (m *Vote) XXX_DiscardUnknown() { + xxx_messageInfo_Vote.DiscardUnknown(m) +} + +var xxx_messageInfo_Vote proto.InternalMessageInfo + +func (m *Vote) GetVoter() string { + if m != nil { + return m.Voter + } + return "" +} + +func (m *Vote) GetSignals() []Signal { + if m != nil { + return m.Signals + } + return nil +} + +// Feed is a structure that holds a signal id, its total power, and its calculated interval. +type Feed struct { + // signal_id is the unique string that identifies the unit of feed. + SignalID string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` + // power is the power of the corresponding signal id. + Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` + // interval is the interval of the price feed. + Interval int64 `protobuf:"varint,3,opt,name=interval,proto3" json:"interval,omitempty"` +} + +func (m *Feed) Reset() { *m = Feed{} } +func (m *Feed) String() string { return proto.CompactTextString(m) } +func (*Feed) ProtoMessage() {} +func (*Feed) Descriptor() ([]byte, []int) { + return fileDescriptor_fc3afe81d3b13674, []int{2} +} +func (m *Feed) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Feed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Feed.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Feed) XXX_Merge(src proto.Message) { + xxx_messageInfo_Feed.Merge(m, src) +} +func (m *Feed) XXX_Size() int { + return m.Size() +} +func (m *Feed) XXX_DiscardUnknown() { + xxx_messageInfo_Feed.DiscardUnknown(m) +} + +var xxx_messageInfo_Feed proto.InternalMessageInfo + +func (m *Feed) GetSignalID() string { + if m != nil { + return m.SignalID + } + return "" +} + +func (m *Feed) GetPower() int64 { + if m != nil { + return m.Power + } + return 0 +} + +func (m *Feed) GetInterval() int64 { + if m != nil { + return m.Interval + } + return 0 +} + +// FeedWithDeviation is a structure that holds a signal id, its total power, and its calculated interval and deviation. +type FeedWithDeviation struct { + // signal_id is the unique string that identifies the unit of feed. + SignalID string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` + // power is the power of the corresponding signal id. + Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` + // interval is the interval of the price feed. + Interval int64 `protobuf:"varint,3,opt,name=interval,proto3" json:"interval,omitempty"` + // deviation_basis_point is the maximum deviation value the feed can tolerate, expressed in basis points. + DeviationBasisPoint int64 `protobuf:"varint,4,opt,name=deviation_basis_point,json=deviationBasisPoint,proto3" json:"deviation_basis_point,omitempty"` +} + +func (m *FeedWithDeviation) Reset() { *m = FeedWithDeviation{} } +func (m *FeedWithDeviation) String() string { return proto.CompactTextString(m) } +func (*FeedWithDeviation) ProtoMessage() {} +func (*FeedWithDeviation) Descriptor() ([]byte, []int) { + return fileDescriptor_fc3afe81d3b13674, []int{3} +} +func (m *FeedWithDeviation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeedWithDeviation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeedWithDeviation.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FeedWithDeviation) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeedWithDeviation.Merge(m, src) +} +func (m *FeedWithDeviation) XXX_Size() int { + return m.Size() +} +func (m *FeedWithDeviation) XXX_DiscardUnknown() { + xxx_messageInfo_FeedWithDeviation.DiscardUnknown(m) +} + +var xxx_messageInfo_FeedWithDeviation proto.InternalMessageInfo + +func (m *FeedWithDeviation) GetSignalID() string { + if m != nil { + return m.SignalID + } + return "" +} + +func (m *FeedWithDeviation) GetPower() int64 { + if m != nil { + return m.Power + } + return 0 +} + +func (m *FeedWithDeviation) GetInterval() int64 { + if m != nil { + return m.Interval + } + return 0 +} + +func (m *FeedWithDeviation) GetDeviationBasisPoint() int64 { + if m != nil { + return m.DeviationBasisPoint + } + return 0 +} + +// CurrentFeeds is a structure that holds a list of currently supported feeds, and its last update time and block. +type CurrentFeeds struct { + // feeds is a list of currently supported feeds. + Feeds []Feed `protobuf:"bytes,1,rep,name=feeds,proto3" json:"feeds"` + // last_update_timestamp is the timestamp of the last time supported feeds list is updated. + LastUpdateTimestamp int64 `protobuf:"varint,2,opt,name=last_update_timestamp,json=lastUpdateTimestamp,proto3" json:"last_update_timestamp,omitempty"` + // last_update_block is the number of blocks of the last time supported feeds list is updated. + LastUpdateBlock int64 `protobuf:"varint,3,opt,name=last_update_block,json=lastUpdateBlock,proto3" json:"last_update_block,omitempty"` +} + +func (m *CurrentFeeds) Reset() { *m = CurrentFeeds{} } +func (m *CurrentFeeds) String() string { return proto.CompactTextString(m) } +func (*CurrentFeeds) ProtoMessage() {} +func (*CurrentFeeds) Descriptor() ([]byte, []int) { + return fileDescriptor_fc3afe81d3b13674, []int{4} +} +func (m *CurrentFeeds) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CurrentFeeds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CurrentFeeds.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CurrentFeeds) XXX_Merge(src proto.Message) { + xxx_messageInfo_CurrentFeeds.Merge(m, src) +} +func (m *CurrentFeeds) XXX_Size() int { + return m.Size() +} +func (m *CurrentFeeds) XXX_DiscardUnknown() { + xxx_messageInfo_CurrentFeeds.DiscardUnknown(m) +} + +var xxx_messageInfo_CurrentFeeds proto.InternalMessageInfo + +func (m *CurrentFeeds) GetFeeds() []Feed { + if m != nil { + return m.Feeds + } + return nil +} + +func (m *CurrentFeeds) GetLastUpdateTimestamp() int64 { + if m != nil { + return m.LastUpdateTimestamp + } + return 0 +} + +func (m *CurrentFeeds) GetLastUpdateBlock() int64 { + if m != nil { + return m.LastUpdateBlock + } + return 0 +} + +// CurrentFeedWithDeviations is a structure that holds a list of currently supported feed-with-deviations, and its +// last update time and block. +type CurrentFeedWithDeviations struct { + // feeds is a list of currently supported feed-with-deviations. + Feeds []FeedWithDeviation `protobuf:"bytes,1,rep,name=feeds,proto3" json:"feeds"` + // last_update_timestamp is the timestamp of the last time supported feeds list is updated. + LastUpdateTimestamp int64 `protobuf:"varint,2,opt,name=last_update_timestamp,json=lastUpdateTimestamp,proto3" json:"last_update_timestamp,omitempty"` + // last_update_block is the number of blocks of the last time supported feeds list is updated. + LastUpdateBlock int64 `protobuf:"varint,3,opt,name=last_update_block,json=lastUpdateBlock,proto3" json:"last_update_block,omitempty"` +} + +func (m *CurrentFeedWithDeviations) Reset() { *m = CurrentFeedWithDeviations{} } +func (m *CurrentFeedWithDeviations) String() string { return proto.CompactTextString(m) } +func (*CurrentFeedWithDeviations) ProtoMessage() {} +func (*CurrentFeedWithDeviations) Descriptor() ([]byte, []int) { + return fileDescriptor_fc3afe81d3b13674, []int{5} +} +func (m *CurrentFeedWithDeviations) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CurrentFeedWithDeviations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CurrentFeedWithDeviations.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CurrentFeedWithDeviations) XXX_Merge(src proto.Message) { + xxx_messageInfo_CurrentFeedWithDeviations.Merge(m, src) +} +func (m *CurrentFeedWithDeviations) XXX_Size() int { + return m.Size() +} +func (m *CurrentFeedWithDeviations) XXX_DiscardUnknown() { + xxx_messageInfo_CurrentFeedWithDeviations.DiscardUnknown(m) +} + +var xxx_messageInfo_CurrentFeedWithDeviations proto.InternalMessageInfo + +func (m *CurrentFeedWithDeviations) GetFeeds() []FeedWithDeviation { + if m != nil { + return m.Feeds + } + return nil +} + +func (m *CurrentFeedWithDeviations) GetLastUpdateTimestamp() int64 { + if m != nil { + return m.LastUpdateTimestamp + } + return 0 +} + +func (m *CurrentFeedWithDeviations) GetLastUpdateBlock() int64 { + if m != nil { + return m.LastUpdateBlock + } + return 0 +} + +// Price is a structure that defines the price of a signal id. +type Price struct { + // status is the status of a the price. + Status PriceStatus `protobuf:"varint,1,opt,name=status,proto3,enum=band.feeds.v1beta1.PriceStatus" json:"status,omitempty"` + // signal_id is the signal id of the price. + SignalID string `protobuf:"bytes,2,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` + // price is the price of the signal id. + Price uint64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` + // timestamp is the timestamp at which the price was aggregated. + Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (m *Price) Reset() { *m = Price{} } +func (m *Price) String() string { return proto.CompactTextString(m) } +func (*Price) ProtoMessage() {} +func (*Price) Descriptor() ([]byte, []int) { + return fileDescriptor_fc3afe81d3b13674, []int{6} +} +func (m *Price) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Price) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Price.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Price) XXX_Merge(src proto.Message) { + xxx_messageInfo_Price.Merge(m, src) +} +func (m *Price) XXX_Size() int { + return m.Size() +} +func (m *Price) XXX_DiscardUnknown() { + xxx_messageInfo_Price.DiscardUnknown(m) +} + +var xxx_messageInfo_Price proto.InternalMessageInfo + +func (m *Price) GetStatus() PriceStatus { + if m != nil { + return m.Status + } + return PRICE_STATUS_UNSPECIFIED +} + +func (m *Price) GetSignalID() string { + if m != nil { + return m.SignalID + } + return "" +} + +func (m *Price) GetPrice() uint64 { + if m != nil { + return m.Price + } + return 0 +} + +func (m *Price) GetTimestamp() int64 { + if m != nil { + return m.Timestamp + } + return 0 +} + +// SignalPrice is a structure that defines the signaled price of a signal id. +type SignalPrice struct { + // status is the status of the signal price. + Status SignalPriceStatus `protobuf:"varint,1,opt,name=status,proto3,enum=band.feeds.v1beta1.SignalPriceStatus" json:"status,omitempty"` + // signal_id is the signal id of the price. + SignalID string `protobuf:"bytes,2,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` + // price is the price submitted by the validator. + Price uint64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` +} + +func (m *SignalPrice) Reset() { *m = SignalPrice{} } +func (m *SignalPrice) String() string { return proto.CompactTextString(m) } +func (*SignalPrice) ProtoMessage() {} +func (*SignalPrice) Descriptor() ([]byte, []int) { + return fileDescriptor_fc3afe81d3b13674, []int{7} +} +func (m *SignalPrice) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SignalPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SignalPrice.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SignalPrice) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignalPrice.Merge(m, src) +} +func (m *SignalPrice) XXX_Size() int { + return m.Size() +} +func (m *SignalPrice) XXX_DiscardUnknown() { + xxx_messageInfo_SignalPrice.DiscardUnknown(m) +} + +var xxx_messageInfo_SignalPrice proto.InternalMessageInfo + +func (m *SignalPrice) GetStatus() SignalPriceStatus { + if m != nil { + return m.Status + } + return SIGNAL_PRICE_STATUS_UNSPECIFIED +} + +func (m *SignalPrice) GetSignalID() string { + if m != nil { + return m.SignalID + } + return "" +} + +func (m *SignalPrice) GetPrice() uint64 { + if m != nil { + return m.Price + } + return 0 +} + +// ValidatorPrice is a structure that defines the price submitted by a validator for a signal id. +type ValidatorPrice struct { + // signal_price_status is the status of a signal price submitted. + SignalPriceStatus SignalPriceStatus `protobuf:"varint,1,opt,name=signal_price_status,json=signalPriceStatus,proto3,enum=band.feeds.v1beta1.SignalPriceStatus" json:"signal_price_status,omitempty"` + // signal_id is the signal id of the price. + SignalID string `protobuf:"bytes,2,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` + // price is the price submitted by the validator. + Price uint64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` + // timestamp is the timestamp at which the price was submitted. + Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // block_height is the block height at which the price was submitted. + BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +} + +func (m *ValidatorPrice) Reset() { *m = ValidatorPrice{} } +func (m *ValidatorPrice) String() string { return proto.CompactTextString(m) } +func (*ValidatorPrice) ProtoMessage() {} +func (*ValidatorPrice) Descriptor() ([]byte, []int) { + return fileDescriptor_fc3afe81d3b13674, []int{8} +} +func (m *ValidatorPrice) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorPrice.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ValidatorPrice) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorPrice.Merge(m, src) +} +func (m *ValidatorPrice) XXX_Size() int { + return m.Size() +} +func (m *ValidatorPrice) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorPrice.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorPrice proto.InternalMessageInfo + +func (m *ValidatorPrice) GetSignalPriceStatus() SignalPriceStatus { + if m != nil { + return m.SignalPriceStatus + } + return SIGNAL_PRICE_STATUS_UNSPECIFIED +} + +func (m *ValidatorPrice) GetSignalID() string { + if m != nil { + return m.SignalID + } + return "" +} + +func (m *ValidatorPrice) GetPrice() uint64 { + if m != nil { + return m.Price + } + return 0 +} + +func (m *ValidatorPrice) GetTimestamp() int64 { + if m != nil { + return m.Timestamp + } + return 0 +} + +func (m *ValidatorPrice) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +// ValidatorPriceList is a structure that holds a list of validator prices of +// a validator and its address. +type ValidatorPriceList struct { + // validator is the validator address. + Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` + // validators_prices is a list of validator prices. + ValidatorPrices []ValidatorPrice `protobuf:"bytes,2,rep,name=validator_prices,json=validatorPrices,proto3" json:"validator_prices"` +} + +func (m *ValidatorPriceList) Reset() { *m = ValidatorPriceList{} } +func (m *ValidatorPriceList) String() string { return proto.CompactTextString(m) } +func (*ValidatorPriceList) ProtoMessage() {} +func (*ValidatorPriceList) Descriptor() ([]byte, []int) { + return fileDescriptor_fc3afe81d3b13674, []int{9} +} +func (m *ValidatorPriceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorPriceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorPriceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ValidatorPriceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorPriceList.Merge(m, src) +} +func (m *ValidatorPriceList) XXX_Size() int { + return m.Size() +} +func (m *ValidatorPriceList) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorPriceList.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorPriceList proto.InternalMessageInfo + +func (m *ValidatorPriceList) GetValidator() string { + if m != nil { + return m.Validator + } + return "" +} + +func (m *ValidatorPriceList) GetValidatorPrices() []ValidatorPrice { + if m != nil { + return m.ValidatorPrices + } + return nil +} + +// ReferenceSourceConfig is a structure that defines the information of reference price source. +type ReferenceSourceConfig struct { + // registry_ipfs_hash is the hash of the reference registry. + RegistryIPFSHash string `protobuf:"bytes,1,opt,name=registry_ipfs_hash,json=registryIpfsHash,proto3" json:"registry_ipfs_hash,omitempty"` + // registry_version is the version of the reference registry. + RegistryVersion string `protobuf:"bytes,2,opt,name=registry_version,json=registryVersion,proto3" json:"registry_version,omitempty"` +} + +func (m *ReferenceSourceConfig) Reset() { *m = ReferenceSourceConfig{} } +func (m *ReferenceSourceConfig) String() string { return proto.CompactTextString(m) } +func (*ReferenceSourceConfig) ProtoMessage() {} +func (*ReferenceSourceConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_fc3afe81d3b13674, []int{10} +} +func (m *ReferenceSourceConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReferenceSourceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReferenceSourceConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ReferenceSourceConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReferenceSourceConfig.Merge(m, src) +} +func (m *ReferenceSourceConfig) XXX_Size() int { + return m.Size() +} +func (m *ReferenceSourceConfig) XXX_DiscardUnknown() { + xxx_messageInfo_ReferenceSourceConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_ReferenceSourceConfig proto.InternalMessageInfo + +func (m *ReferenceSourceConfig) GetRegistryIPFSHash() string { + if m != nil { + return m.RegistryIPFSHash + } + return "" +} + +func (m *ReferenceSourceConfig) GetRegistryVersion() string { + if m != nil { + return m.RegistryVersion + } + return "" +} + +// FeedsSignatureOrder defines a general signature order for feed data. +type FeedsSignatureOrder struct { + // signal_ids is the list of signal ids that require signatures. + SignalIDs []string `protobuf:"bytes,1,rep,name=signal_ids,json=signalIds,proto3" json:"signal_ids,omitempty"` + // encoder is the mode of encoding feeds signature order. + Encoder Encoder `protobuf:"varint,2,opt,name=encoder,proto3,enum=band.feeds.v1beta1.Encoder" json:"encoder,omitempty"` +} + +func (m *FeedsSignatureOrder) Reset() { *m = FeedsSignatureOrder{} } +func (m *FeedsSignatureOrder) String() string { return proto.CompactTextString(m) } +func (*FeedsSignatureOrder) ProtoMessage() {} +func (*FeedsSignatureOrder) Descriptor() ([]byte, []int) { + return fileDescriptor_fc3afe81d3b13674, []int{11} +} +func (m *FeedsSignatureOrder) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeedsSignatureOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeedsSignatureOrder.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FeedsSignatureOrder) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeedsSignatureOrder.Merge(m, src) +} +func (m *FeedsSignatureOrder) XXX_Size() int { + return m.Size() +} +func (m *FeedsSignatureOrder) XXX_DiscardUnknown() { + xxx_messageInfo_FeedsSignatureOrder.DiscardUnknown(m) +} + +var xxx_messageInfo_FeedsSignatureOrder proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("band.feeds.v1beta1.PriceStatus", PriceStatus_name, PriceStatus_value) + proto.RegisterEnum("band.feeds.v1beta1.SignalPriceStatus", SignalPriceStatus_name, SignalPriceStatus_value) + proto.RegisterType((*Signal)(nil), "band.feeds.v1beta1.Signal") + proto.RegisterType((*Vote)(nil), "band.feeds.v1beta1.Vote") + proto.RegisterType((*Feed)(nil), "band.feeds.v1beta1.Feed") + proto.RegisterType((*FeedWithDeviation)(nil), "band.feeds.v1beta1.FeedWithDeviation") + proto.RegisterType((*CurrentFeeds)(nil), "band.feeds.v1beta1.CurrentFeeds") + proto.RegisterType((*CurrentFeedWithDeviations)(nil), "band.feeds.v1beta1.CurrentFeedWithDeviations") + proto.RegisterType((*Price)(nil), "band.feeds.v1beta1.Price") + proto.RegisterType((*SignalPrice)(nil), "band.feeds.v1beta1.SignalPrice") + proto.RegisterType((*ValidatorPrice)(nil), "band.feeds.v1beta1.ValidatorPrice") + proto.RegisterType((*ValidatorPriceList)(nil), "band.feeds.v1beta1.ValidatorPriceList") + proto.RegisterType((*ReferenceSourceConfig)(nil), "band.feeds.v1beta1.ReferenceSourceConfig") + proto.RegisterType((*FeedsSignatureOrder)(nil), "band.feeds.v1beta1.FeedsSignatureOrder") +} + +func init() { proto.RegisterFile("band/feeds/v1beta1/feeds.proto", fileDescriptor_fc3afe81d3b13674) } + +var fileDescriptor_fc3afe81d3b13674 = []byte{ + // 989 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x41, 0x6f, 0x1a, 0x47, + 0x14, 0x66, 0x31, 0x76, 0xcc, 0xb3, 0x6b, 0xe3, 0xb1, 0x13, 0x6d, 0x68, 0x02, 0xb6, 0x2b, 0x4b, + 0x8e, 0xd5, 0x80, 0xe2, 0xb4, 0xaa, 0x64, 0xb5, 0xaa, 0xc0, 0xac, 0xeb, 0x55, 0x2d, 0x8c, 0x76, + 0xc1, 0x51, 0x7b, 0x59, 0x2d, 0xec, 0x00, 0xa3, 0xe2, 0x5d, 0x34, 0x33, 0xd0, 0xe4, 0xd6, 0x63, + 0x0e, 0x3d, 0x54, 0xea, 0x1f, 0x88, 0x54, 0xf5, 0xd2, 0x5e, 0x7a, 0xf0, 0x4f, 0xe8, 0x21, 0xc7, + 0x28, 0xa7, 0x9e, 0x50, 0x85, 0x2f, 0xbd, 0xf5, 0x2f, 0x54, 0x3b, 0x33, 0x0b, 0xc6, 0x86, 0x56, + 0xaa, 0x64, 0xe5, 0xc6, 0x7c, 0xdf, 0xf7, 0xf6, 0x7d, 0xef, 0xcd, 0xdb, 0xc7, 0x42, 0xa6, 0xee, + 0xfa, 0x5e, 0xbe, 0x89, 0xb1, 0xc7, 0xf2, 0xfd, 0x27, 0x75, 0xcc, 0xdd, 0x27, 0xf2, 0x94, 0xeb, + 0xd2, 0x80, 0x07, 0x08, 0x85, 0x7c, 0x4e, 0x22, 0x8a, 0x4f, 0xdf, 0x6f, 0x04, 0xec, 0x3c, 0x60, + 0x8e, 0x50, 0xe4, 0xe5, 0x41, 0xca, 0xd3, 0x1b, 0xad, 0xa0, 0x15, 0x48, 0x3c, 0xfc, 0xa5, 0xd0, + 0xcd, 0x29, 0x49, 0xb0, 0xdf, 0x08, 0x3c, 0x4c, 0xa5, 0x62, 0xfb, 0x53, 0x58, 0xb0, 0x49, 0xcb, + 0x77, 0x3b, 0xe8, 0x1e, 0xc4, 0x89, 0xa7, 0x6b, 0x9b, 0xda, 0x6e, 0xb2, 0xb8, 0x30, 0x1c, 0x64, + 0xe3, 0x66, 0xc9, 0x8a, 0x13, 0x0f, 0x6d, 0xc0, 0x7c, 0x37, 0xf8, 0x16, 0x53, 0x3d, 0xbe, 0xa9, + 0xed, 0xce, 0x59, 0xf2, 0x70, 0x90, 0xf8, 0xeb, 0x55, 0x56, 0xdb, 0x7e, 0x0e, 0x89, 0xb3, 0x80, + 0x63, 0x94, 0x83, 0xf9, 0x7e, 0xc0, 0x31, 0x55, 0xe1, 0xfa, 0xdb, 0x8b, 0xc7, 0x1b, 0xca, 0x5e, + 0xc1, 0xf3, 0x28, 0x66, 0xcc, 0xe6, 0x94, 0xf8, 0x2d, 0x4b, 0xca, 0xd0, 0x01, 0xdc, 0x61, 0x22, + 0x2b, 0xd3, 0xe3, 0x9b, 0x73, 0xbb, 0x4b, 0xfb, 0xe9, 0xdc, 0xcd, 0x72, 0x73, 0xd2, 0x58, 0x31, + 0xf1, 0x7a, 0x90, 0x8d, 0x59, 0x51, 0x80, 0xca, 0x4c, 0x20, 0x71, 0x84, 0xb1, 0x87, 0x1e, 0x41, + 0x52, 0x12, 0xce, 0xc8, 0xfc, 0xf2, 0x70, 0x90, 0x5d, 0x94, 0xb1, 0x66, 0xc9, 0x5a, 0x94, 0xb4, + 0x39, 0xa3, 0x10, 0x94, 0x86, 0x45, 0xe2, 0x73, 0x4c, 0xfb, 0x6e, 0x47, 0x9f, 0x13, 0xc4, 0xe8, + 0xac, 0x52, 0xfd, 0xa2, 0xc1, 0x5a, 0x98, 0xeb, 0x19, 0xe1, 0xed, 0x12, 0xee, 0x13, 0x97, 0x93, + 0xc0, 0xbf, 0xd5, 0xc4, 0x68, 0x1f, 0xee, 0x7a, 0x51, 0x26, 0xa7, 0xee, 0x32, 0xc2, 0x9c, 0x6e, + 0x40, 0x7c, 0xae, 0x27, 0x84, 0x70, 0x7d, 0x44, 0x16, 0x43, 0xae, 0x12, 0x52, 0x63, 0xb3, 0xcb, + 0x87, 0x3d, 0x4a, 0xb1, 0xcf, 0x43, 0xcf, 0x0c, 0x7d, 0x04, 0xf3, 0xa2, 0xab, 0xba, 0x26, 0x1a, + 0xad, 0x4f, 0x6b, 0x74, 0xa8, 0x54, 0x6d, 0x96, 0xe2, 0xd0, 0x40, 0xc7, 0x65, 0xdc, 0xe9, 0x75, + 0x3d, 0x97, 0x63, 0x87, 0x93, 0x73, 0xcc, 0xb8, 0x7b, 0xde, 0x55, 0x25, 0xac, 0x87, 0x64, 0x4d, + 0x70, 0xd5, 0x88, 0x42, 0x7b, 0xb0, 0x76, 0x35, 0xa6, 0xde, 0x09, 0x1a, 0xdf, 0xa8, 0xca, 0x56, + 0xc7, 0xfa, 0x62, 0x08, 0x2b, 0xb3, 0xbf, 0x6b, 0x70, 0xff, 0x8a, 0xd9, 0x89, 0x06, 0x33, 0x54, + 0x98, 0x74, 0xbe, 0x33, 0xcb, 0xf9, 0x44, 0xd8, 0xbb, 0x28, 0xe3, 0x67, 0x0d, 0xe6, 0x2b, 0x94, + 0x34, 0x30, 0xfa, 0x04, 0x16, 0x18, 0x77, 0x79, 0x8f, 0x89, 0x89, 0x58, 0xd9, 0xcf, 0x4e, 0xf3, + 0x2c, 0xa4, 0xb6, 0x90, 0x59, 0x4a, 0x3e, 0x39, 0x4d, 0xf1, 0xff, 0x9c, 0xa6, 0xf0, 0x09, 0xc2, + 0x53, 0xc2, 0x92, 0x07, 0xf4, 0x00, 0x92, 0xe3, 0xea, 0xe4, 0x94, 0x8c, 0x01, 0xe5, 0xf3, 0x47, + 0x0d, 0x96, 0xe4, 0x03, 0xa5, 0xdb, 0xcf, 0xae, 0xb9, 0xdd, 0x99, 0xfd, 0x12, 0xde, 0x86, 0x67, + 0xe5, 0xea, 0x6f, 0x0d, 0x56, 0xce, 0xdc, 0x0e, 0xf1, 0x5c, 0x1e, 0x50, 0x69, 0xac, 0x06, 0xeb, + 0xea, 0xc9, 0x42, 0xe8, 0xfc, 0x1f, 0x97, 0x6b, 0xec, 0x3a, 0x74, 0xcb, 0x4d, 0x46, 0x5b, 0xb0, + 0x2c, 0x86, 0xc5, 0x69, 0x63, 0xd2, 0x6a, 0x73, 0x7d, 0x5e, 0x08, 0x96, 0x04, 0x76, 0x2c, 0x20, + 0x55, 0xf1, 0x6f, 0x1a, 0xa0, 0xc9, 0x8a, 0x4f, 0x08, 0xe3, 0xe8, 0x73, 0x48, 0xf6, 0x23, 0x54, + 0x6d, 0x94, 0xad, 0xb7, 0x17, 0x8f, 0x1f, 0xaa, 0x45, 0x3a, 0x8a, 0x98, 0xdc, 0xa8, 0xe3, 0x18, + 0x64, 0x43, 0x6a, 0x74, 0x90, 0x9d, 0x8b, 0xd6, 0xeb, 0xf6, 0xb4, 0x9e, 0x4d, 0x5a, 0x50, 0x2f, + 0xce, 0x6a, 0x7f, 0x02, 0x8d, 0xd6, 0xed, 0xf7, 0x1a, 0xdc, 0xb5, 0x70, 0x13, 0x53, 0xec, 0x37, + 0xb0, 0x1d, 0xf4, 0x68, 0x03, 0x1f, 0x06, 0x7e, 0x93, 0xb4, 0x50, 0x11, 0x10, 0xc5, 0x2d, 0xc2, + 0x38, 0x7d, 0xe1, 0x90, 0x6e, 0x93, 0x39, 0x6d, 0x97, 0xb5, 0x95, 0xfd, 0x8d, 0xe1, 0x20, 0x9b, + 0xb2, 0x14, 0x6b, 0x56, 0x8e, 0xec, 0x63, 0x97, 0xb5, 0xad, 0x54, 0xa4, 0x37, 0xbb, 0x4d, 0x16, + 0x22, 0xe8, 0x11, 0x8c, 0x30, 0xa7, 0x8f, 0x29, 0x23, 0x81, 0x2f, 0xef, 0xc7, 0x5a, 0x8d, 0xf0, + 0x33, 0x09, 0x2b, 0x3b, 0xdf, 0x69, 0xb0, 0x2e, 0xd6, 0x9b, 0xb8, 0x3a, 0xde, 0xa3, 0xf8, 0x94, + 0x7a, 0x98, 0xa2, 0x0f, 0x01, 0x46, 0x37, 0x2c, 0xf7, 0x46, 0xb2, 0xf8, 0xde, 0x70, 0x90, 0x4d, + 0x46, 0x57, 0xcc, 0xac, 0x64, 0x74, 0xc7, 0x0c, 0x7d, 0x0c, 0x77, 0xd4, 0x9f, 0xa1, 0xc8, 0xb6, + 0xb2, 0xff, 0xfe, 0xb4, 0x36, 0x19, 0x52, 0x62, 0x45, 0xda, 0x83, 0xc4, 0xcb, 0x57, 0xd9, 0xd8, + 0xde, 0x85, 0x06, 0x4b, 0x57, 0x87, 0xeb, 0x01, 0xe8, 0x15, 0xcb, 0x3c, 0x34, 0x1c, 0xbb, 0x5a, + 0xa8, 0xd6, 0x6c, 0xa7, 0x56, 0xb6, 0x2b, 0xc6, 0xa1, 0x79, 0x64, 0x1a, 0xa5, 0x54, 0x0c, 0x6d, + 0x43, 0xe6, 0x1a, 0xfb, 0x65, 0xf9, 0xf4, 0x59, 0xd9, 0xb1, 0xcd, 0x2f, 0xca, 0x85, 0x13, 0xc7, + 0x2c, 0xa5, 0x34, 0x94, 0x86, 0x7b, 0x13, 0x9a, 0xf2, 0x69, 0xd5, 0xb1, 0x8c, 0x42, 0xe9, 0xab, + 0x54, 0xfc, 0x06, 0x57, 0x38, 0x2b, 0x98, 0x27, 0x85, 0xe2, 0x89, 0x91, 0x9a, 0x43, 0x3b, 0xb0, + 0x75, 0x23, 0xce, 0x2c, 0x3b, 0x87, 0x35, 0xcb, 0x32, 0xca, 0x55, 0xe7, 0xc8, 0x30, 0x4a, 0x76, + 0x2a, 0x91, 0x4e, 0xbc, 0xfc, 0x29, 0x13, 0xdb, 0xfb, 0x55, 0x83, 0xb5, 0x1b, 0x2f, 0x0b, 0xfa, + 0x00, 0xb2, 0xca, 0xc9, 0xbf, 0xd4, 0x30, 0x5b, 0x54, 0xab, 0x54, 0x4e, 0xad, 0xaa, 0x11, 0x16, + 0x31, 0x53, 0x34, 0x76, 0x1c, 0x47, 0x5b, 0xf0, 0x70, 0x9a, 0xe8, 0x4a, 0x51, 0xd2, 0x6d, 0xf1, + 0xf8, 0xf5, 0x30, 0xa3, 0xbd, 0x19, 0x66, 0xb4, 0x3f, 0x87, 0x19, 0xed, 0x87, 0xcb, 0x4c, 0xec, + 0xcd, 0x65, 0x26, 0xf6, 0xc7, 0x65, 0x26, 0xf6, 0x75, 0xae, 0x45, 0x78, 0xbb, 0x57, 0xcf, 0x35, + 0x82, 0xf3, 0x7c, 0x78, 0x69, 0xe2, 0x6b, 0xa6, 0x11, 0x74, 0xf2, 0x8d, 0xb6, 0x4b, 0xfc, 0x7c, + 0xff, 0x69, 0xfe, 0xb9, 0xfa, 0xee, 0xe1, 0x2f, 0xba, 0x98, 0xd5, 0x17, 0x84, 0xe0, 0xe9, 0x3f, + 0x01, 0x00, 0x00, 0xff, 0xff, 0x4a, 0x51, 0x26, 0xa8, 0x77, 0x09, 0x00, 0x00, +} + +func (this *Signal) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Signal) + if !ok { + that2, ok := that.(Signal) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.ID != that1.ID { + return false + } + if this.Power != that1.Power { + return false + } + return true +} +func (this *Vote) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Vote) + if !ok { + that2, ok := that.(Vote) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Voter != that1.Voter { + return false + } + if len(this.Signals) != len(that1.Signals) { + return false + } + for i := range this.Signals { + if !this.Signals[i].Equal(&that1.Signals[i]) { + return false + } + } + return true +} +func (this *Feed) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Feed) + if !ok { + that2, ok := that.(Feed) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.SignalID != that1.SignalID { + return false + } + if this.Power != that1.Power { + return false + } + if this.Interval != that1.Interval { + return false + } + return true +} +func (this *FeedWithDeviation) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*FeedWithDeviation) + if !ok { + that2, ok := that.(FeedWithDeviation) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.SignalID != that1.SignalID { + return false + } + if this.Power != that1.Power { + return false + } + if this.Interval != that1.Interval { + return false + } + if this.DeviationBasisPoint != that1.DeviationBasisPoint { + return false + } + return true +} +func (this *CurrentFeeds) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*CurrentFeeds) + if !ok { + that2, ok := that.(CurrentFeeds) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if len(this.Feeds) != len(that1.Feeds) { + return false + } + for i := range this.Feeds { + if !this.Feeds[i].Equal(&that1.Feeds[i]) { + return false + } + } + if this.LastUpdateTimestamp != that1.LastUpdateTimestamp { + return false + } + if this.LastUpdateBlock != that1.LastUpdateBlock { + return false + } + return true +} +func (this *CurrentFeedWithDeviations) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*CurrentFeedWithDeviations) + if !ok { + that2, ok := that.(CurrentFeedWithDeviations) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if len(this.Feeds) != len(that1.Feeds) { + return false + } + for i := range this.Feeds { + if !this.Feeds[i].Equal(&that1.Feeds[i]) { + return false + } + } + if this.LastUpdateTimestamp != that1.LastUpdateTimestamp { + return false + } + if this.LastUpdateBlock != that1.LastUpdateBlock { + return false + } + return true +} +func (this *Price) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Price) + if !ok { + that2, ok := that.(Price) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Status != that1.Status { + return false + } + if this.SignalID != that1.SignalID { + return false + } + if this.Price != that1.Price { + return false + } + if this.Timestamp != that1.Timestamp { + return false + } + return true +} +func (this *SignalPrice) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*SignalPrice) + if !ok { + that2, ok := that.(SignalPrice) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Status != that1.Status { + return false + } + if this.SignalID != that1.SignalID { + return false + } + if this.Price != that1.Price { + return false + } + return true +} +func (this *ValidatorPrice) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ValidatorPrice) + if !ok { + that2, ok := that.(ValidatorPrice) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.SignalPriceStatus != that1.SignalPriceStatus { + return false + } + if this.SignalID != that1.SignalID { + return false + } + if this.Price != that1.Price { + return false + } + if this.Timestamp != that1.Timestamp { + return false + } + if this.BlockHeight != that1.BlockHeight { + return false + } + return true +} +func (this *ValidatorPriceList) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ValidatorPriceList) + if !ok { + that2, ok := that.(ValidatorPriceList) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Validator != that1.Validator { + return false + } + if len(this.ValidatorPrices) != len(that1.ValidatorPrices) { + return false + } + for i := range this.ValidatorPrices { + if !this.ValidatorPrices[i].Equal(&that1.ValidatorPrices[i]) { + return false + } + } + return true +} +func (this *ReferenceSourceConfig) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ReferenceSourceConfig) + if !ok { + that2, ok := that.(ReferenceSourceConfig) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.RegistryIPFSHash != that1.RegistryIPFSHash { + return false + } + if this.RegistryVersion != that1.RegistryVersion { + return false + } + return true +} +func (m *Signal) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Signal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Signal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Power != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.Power)) + i-- + dAtA[i] = 0x10 + } + if len(m.ID) > 0 { + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintFeeds(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Vote) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Vote) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Signals) > 0 { + for iNdEx := len(m.Signals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Signals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFeeds(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Voter) > 0 { + i -= len(m.Voter) + copy(dAtA[i:], m.Voter) + i = encodeVarintFeeds(dAtA, i, uint64(len(m.Voter))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Feed) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Feed) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Feed) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Interval != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.Interval)) + i-- + dAtA[i] = 0x18 + } + if m.Power != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.Power)) + i-- + dAtA[i] = 0x10 + } + if len(m.SignalID) > 0 { + i -= len(m.SignalID) + copy(dAtA[i:], m.SignalID) + i = encodeVarintFeeds(dAtA, i, uint64(len(m.SignalID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FeedWithDeviation) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FeedWithDeviation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeedWithDeviation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DeviationBasisPoint != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.DeviationBasisPoint)) + i-- + dAtA[i] = 0x20 + } + if m.Interval != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.Interval)) + i-- + dAtA[i] = 0x18 + } + if m.Power != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.Power)) + i-- + dAtA[i] = 0x10 + } + if len(m.SignalID) > 0 { + i -= len(m.SignalID) + copy(dAtA[i:], m.SignalID) + i = encodeVarintFeeds(dAtA, i, uint64(len(m.SignalID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CurrentFeeds) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CurrentFeeds) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CurrentFeeds) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LastUpdateBlock != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.LastUpdateBlock)) + i-- + dAtA[i] = 0x18 + } + if m.LastUpdateTimestamp != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.LastUpdateTimestamp)) + i-- + dAtA[i] = 0x10 + } + if len(m.Feeds) > 0 { + for iNdEx := len(m.Feeds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Feeds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFeeds(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *CurrentFeedWithDeviations) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CurrentFeedWithDeviations) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CurrentFeedWithDeviations) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LastUpdateBlock != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.LastUpdateBlock)) + i-- + dAtA[i] = 0x18 + } + if m.LastUpdateTimestamp != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.LastUpdateTimestamp)) + i-- + dAtA[i] = 0x10 + } + if len(m.Feeds) > 0 { + for iNdEx := len(m.Feeds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Feeds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFeeds(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Price) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Price) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Price) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Timestamp != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x20 + } + if m.Price != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.Price)) + i-- + dAtA[i] = 0x18 + } + if len(m.SignalID) > 0 { + i -= len(m.SignalID) + copy(dAtA[i:], m.SignalID) + i = encodeVarintFeeds(dAtA, i, uint64(len(m.SignalID))) + i-- + dAtA[i] = 0x12 + } + if m.Status != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *SignalPrice) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SignalPrice) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignalPrice) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Price != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.Price)) + i-- + dAtA[i] = 0x18 + } + if len(m.SignalID) > 0 { + i -= len(m.SignalID) + copy(dAtA[i:], m.SignalID) + i = encodeVarintFeeds(dAtA, i, uint64(len(m.SignalID))) + i-- + dAtA[i] = 0x12 + } + if m.Status != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ValidatorPrice) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ValidatorPrice) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorPrice) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BlockHeight != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x28 + } + if m.Timestamp != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x20 + } + if m.Price != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.Price)) + i-- + dAtA[i] = 0x18 + } + if len(m.SignalID) > 0 { + i -= len(m.SignalID) + copy(dAtA[i:], m.SignalID) + i = encodeVarintFeeds(dAtA, i, uint64(len(m.SignalID))) + i-- + dAtA[i] = 0x12 + } + if m.SignalPriceStatus != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.SignalPriceStatus)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ValidatorPriceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ValidatorPriceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorPriceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ValidatorPrices) > 0 { + for iNdEx := len(m.ValidatorPrices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ValidatorPrices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFeeds(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Validator) > 0 { + i -= len(m.Validator) + copy(dAtA[i:], m.Validator) + i = encodeVarintFeeds(dAtA, i, uint64(len(m.Validator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ReferenceSourceConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ReferenceSourceConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReferenceSourceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RegistryVersion) > 0 { + i -= len(m.RegistryVersion) + copy(dAtA[i:], m.RegistryVersion) + i = encodeVarintFeeds(dAtA, i, uint64(len(m.RegistryVersion))) + i-- + dAtA[i] = 0x12 + } + if len(m.RegistryIPFSHash) > 0 { + i -= len(m.RegistryIPFSHash) + copy(dAtA[i:], m.RegistryIPFSHash) + i = encodeVarintFeeds(dAtA, i, uint64(len(m.RegistryIPFSHash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FeedsSignatureOrder) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FeedsSignatureOrder) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeedsSignatureOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Encoder != 0 { + i = encodeVarintFeeds(dAtA, i, uint64(m.Encoder)) + i-- + dAtA[i] = 0x10 + } + if len(m.SignalIDs) > 0 { + for iNdEx := len(m.SignalIDs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SignalIDs[iNdEx]) + copy(dAtA[i:], m.SignalIDs[iNdEx]) + i = encodeVarintFeeds(dAtA, i, uint64(len(m.SignalIDs[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintFeeds(dAtA []byte, offset int, v uint64) int { + offset -= sovFeeds(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Signal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ID) + if l > 0 { + n += 1 + l + sovFeeds(uint64(l)) + } + if m.Power != 0 { + n += 1 + sovFeeds(uint64(m.Power)) + } + return n +} + +func (m *Vote) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Voter) + if l > 0 { + n += 1 + l + sovFeeds(uint64(l)) + } + if len(m.Signals) > 0 { + for _, e := range m.Signals { + l = e.Size() + n += 1 + l + sovFeeds(uint64(l)) + } + } + return n +} + +func (m *Feed) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SignalID) + if l > 0 { + n += 1 + l + sovFeeds(uint64(l)) + } + if m.Power != 0 { + n += 1 + sovFeeds(uint64(m.Power)) + } + if m.Interval != 0 { + n += 1 + sovFeeds(uint64(m.Interval)) + } + return n +} + +func (m *FeedWithDeviation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SignalID) + if l > 0 { + n += 1 + l + sovFeeds(uint64(l)) + } + if m.Power != 0 { + n += 1 + sovFeeds(uint64(m.Power)) + } + if m.Interval != 0 { + n += 1 + sovFeeds(uint64(m.Interval)) + } + if m.DeviationBasisPoint != 0 { + n += 1 + sovFeeds(uint64(m.DeviationBasisPoint)) + } + return n +} + +func (m *CurrentFeeds) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Feeds) > 0 { + for _, e := range m.Feeds { + l = e.Size() + n += 1 + l + sovFeeds(uint64(l)) + } + } + if m.LastUpdateTimestamp != 0 { + n += 1 + sovFeeds(uint64(m.LastUpdateTimestamp)) + } + if m.LastUpdateBlock != 0 { + n += 1 + sovFeeds(uint64(m.LastUpdateBlock)) + } + return n +} + +func (m *CurrentFeedWithDeviations) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Feeds) > 0 { + for _, e := range m.Feeds { + l = e.Size() + n += 1 + l + sovFeeds(uint64(l)) + } + } + if m.LastUpdateTimestamp != 0 { + n += 1 + sovFeeds(uint64(m.LastUpdateTimestamp)) + } + if m.LastUpdateBlock != 0 { + n += 1 + sovFeeds(uint64(m.LastUpdateBlock)) + } + return n +} + +func (m *Price) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Status != 0 { + n += 1 + sovFeeds(uint64(m.Status)) + } + l = len(m.SignalID) + if l > 0 { + n += 1 + l + sovFeeds(uint64(l)) + } + if m.Price != 0 { + n += 1 + sovFeeds(uint64(m.Price)) + } + if m.Timestamp != 0 { + n += 1 + sovFeeds(uint64(m.Timestamp)) + } + return n +} + +func (m *SignalPrice) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Status != 0 { + n += 1 + sovFeeds(uint64(m.Status)) + } + l = len(m.SignalID) + if l > 0 { + n += 1 + l + sovFeeds(uint64(l)) + } + if m.Price != 0 { + n += 1 + sovFeeds(uint64(m.Price)) + } + return n +} + +func (m *ValidatorPrice) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SignalPriceStatus != 0 { + n += 1 + sovFeeds(uint64(m.SignalPriceStatus)) + } + l = len(m.SignalID) + if l > 0 { + n += 1 + l + sovFeeds(uint64(l)) + } + if m.Price != 0 { + n += 1 + sovFeeds(uint64(m.Price)) + } + if m.Timestamp != 0 { + n += 1 + sovFeeds(uint64(m.Timestamp)) + } + if m.BlockHeight != 0 { + n += 1 + sovFeeds(uint64(m.BlockHeight)) + } + return n +} + +func (m *ValidatorPriceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Validator) + if l > 0 { + n += 1 + l + sovFeeds(uint64(l)) + } + if len(m.ValidatorPrices) > 0 { + for _, e := range m.ValidatorPrices { + l = e.Size() + n += 1 + l + sovFeeds(uint64(l)) + } + } + return n +} + +func (m *ReferenceSourceConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RegistryIPFSHash) + if l > 0 { + n += 1 + l + sovFeeds(uint64(l)) + } + l = len(m.RegistryVersion) + if l > 0 { + n += 1 + l + sovFeeds(uint64(l)) + } + return n +} + +func (m *FeedsSignatureOrder) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SignalIDs) > 0 { + for _, s := range m.SignalIDs { + l = len(s) + n += 1 + l + sovFeeds(uint64(l)) + } + } + if m.Encoder != 0 { + n += 1 + sovFeeds(uint64(m.Encoder)) + } + return n +} + +func sovFeeds(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozFeeds(x uint64) (n int) { + return sovFeeds(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Signal) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Signal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Signal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) + } + m.Power = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Power |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipFeeds(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFeeds + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Vote) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Vote: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Vote: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Voter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signals = append(m.Signals, Signal{}) + if err := m.Signals[len(m.Signals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFeeds(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFeeds + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Feed) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Feed: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Feed: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SignalID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) + } + m.Power = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Power |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) + } + m.Interval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Interval |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipFeeds(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFeeds + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeedWithDeviation) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FeedWithDeviation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeedWithDeviation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SignalID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) + } + m.Power = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Power |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) + } + m.Interval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Interval |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeviationBasisPoint", wireType) + } + m.DeviationBasisPoint = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DeviationBasisPoint |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipFeeds(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFeeds + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CurrentFeeds) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CurrentFeeds: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CurrentFeeds: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Feeds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Feeds = append(m.Feeds, Feed{}) + if err := m.Feeds[len(m.Feeds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTimestamp", wireType) + } + m.LastUpdateTimestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastUpdateTimestamp |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateBlock", wireType) + } + m.LastUpdateBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastUpdateBlock |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipFeeds(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFeeds + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CurrentFeedWithDeviations) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CurrentFeedWithDeviations: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CurrentFeedWithDeviations: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Feeds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Feeds = append(m.Feeds, FeedWithDeviation{}) + if err := m.Feeds[len(m.Feeds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTimestamp", wireType) + } + m.LastUpdateTimestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastUpdateTimestamp |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateBlock", wireType) + } + m.LastUpdateBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastUpdateBlock |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipFeeds(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFeeds + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Price) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Price: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Price: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= PriceStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SignalID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) + } + m.Price = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Price |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipFeeds(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFeeds + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SignalPrice) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SignalPrice: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SignalPrice: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= SignalPriceStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SignalID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) + } + m.Price = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Price |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipFeeds(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFeeds + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorPrice) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ValidatorPrice: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorPrice: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalPriceStatus", wireType) + } + m.SignalPriceStatus = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SignalPriceStatus |= SignalPriceStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SignalID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) + } + m.Price = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Price |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipFeeds(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFeeds + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorPriceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ValidatorPriceList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorPriceList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Validator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorPrices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidatorPrices = append(m.ValidatorPrices, ValidatorPrice{}) + if err := m.ValidatorPrices[len(m.ValidatorPrices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFeeds(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFeeds + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReferenceSourceConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReferenceSourceConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReferenceSourceConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegistryIPFSHash", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RegistryIPFSHash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegistryVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RegistryVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFeeds(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFeeds + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeedsSignatureOrder) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FeedsSignatureOrder: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeedsSignatureOrder: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalIDs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFeeds + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFeeds + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SignalIDs = append(m.SignalIDs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Encoder", wireType) + } + m.Encoder = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFeeds + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Encoder |= Encoder(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipFeeds(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFeeds + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipFeeds(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFeeds + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFeeds + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFeeds + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthFeeds + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupFeeds + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthFeeds + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthFeeds = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowFeeds = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupFeeds = fmt.Errorf("proto: unexpected end of group") +) diff --git a/internal/bandchain/tss/error.go b/internal/bandchain/tss/error.go new file mode 100644 index 0000000..a978649 --- /dev/null +++ b/internal/bandchain/tss/error.go @@ -0,0 +1,51 @@ +package types + +import "fmt" + +// Error represents a TSS error. +type Error struct { + err error + desc string +} + +// NewError creates a new TSS error with the given wrapped error and description. +func NewError(err error, format string, args ...interface{}) *Error { + return &Error{ + err: err, + desc: fmt.Sprintf(format, args...), + } +} + +// Unwrap returns the underlying wrapped error. +func (e *Error) Unwrap() error { + return e.err +} + +// Error returns the string representation of the error. +func (e *Error) Error() string { + return fmt.Sprintf("%s: %s", e.desc, e.err) +} + +// ErrorKind represents a specific kind of TSS error. +type ErrorKind string + +// Error returns the string representation of the ErrorKind. +func (e ErrorKind) Error() string { + return string(e) +} + +// Predefined error kinds +var ( + ErrParseError = ErrorKind("parse error") + ErrInvalidLength = ErrorKind("invalid length") + ErrInvalidOrder = ErrorKind("invalid order") + ErrGenerateKeyPairFailed = ErrorKind("generate key pair failed") + ErrPrivateKeyZero = ErrorKind("private key zero") + ErrNotOnCurve = ErrorKind("not on curve") + ErrInvalidSecretShare = ErrorKind("invalid secret share") + ErrValidSecretShare = ErrorKind("valid secret share") + ErrInvalidSignature = ErrorKind("invalid signature") + ErrNotInOrder = ErrorKind("not in order") + ErrInvalidPubkeyFormat = ErrorKind("invalid pubkey format") + ErrRandomError = ErrorKind("random error") +) diff --git a/internal/bandchain/tss/helpers.go b/internal/bandchain/tss/helpers.go new file mode 100644 index 0000000..060642a --- /dev/null +++ b/internal/bandchain/tss/helpers.go @@ -0,0 +1,20 @@ +package types + +import "github.com/ethereum/go-ethereum/crypto" + +// PaddingBytes pads a byte slice with zero bytes to a specified length. +func PaddingBytes(data []byte, length int) []byte { + if len(data) >= length { + return data + } + + padding := make([]byte, length-len(data)) + return append(padding, data...) +} + +// H(m) +// Hash calculates the Keccak-256 hash of the given data. +// It returns the hash value as a byte slice. +func Hash(data ...[]byte) []byte { + return crypto.Keccak256(data...) +} diff --git a/internal/bandchain/tss/schnorr/complaint_signature.go b/internal/bandchain/tss/schnorr/complaint_signature.go new file mode 100644 index 0000000..a20e3a4 --- /dev/null +++ b/internal/bandchain/tss/schnorr/complaint_signature.go @@ -0,0 +1,105 @@ +package schnorr + +import ( + "fmt" + + "github.com/decred/dcrd/dcrec/secp256k1/v4" +) + +const ( + // ComplaintSignatureSize is the size of an encoded complaint signature. + ComplaintSignatureSize = 98 +) + +// ComplaintSignature is a type representing a complaint signature. +type ComplaintSignature struct { + A1 secp256k1.JacobianPoint + A2 secp256k1.JacobianPoint + Z secp256k1.ModNScalar +} + +// NewComplaintSignature instantiates a new complaint signature given some a1, a2 and z values. +func NewComplaintSignature( + a1 *secp256k1.JacobianPoint, + a2 *secp256k1.JacobianPoint, + z *secp256k1.ModNScalar, +) *ComplaintSignature { + var signature ComplaintSignature + signature.A1.Set(a1) + signature.A2.Set(a2) + signature.Z.Set(z) + return &signature +} + +// Serialize returns the complaint signature in the more strict format. +// +// The signatures are encoded as: +// +// bytes at 0-32 jacobian point R with z as 1 (A1), encoded by SerializeCompressed of secp256k1.PublicKey +// bytes at 33-65 jacobian point R with z as 1 (A2), encoded by SerializeCompressed of secp256k1.PublicKey +// bytes at 66-97 s, encoded also as big-endian uint256 (Z) +func (signature ComplaintSignature) Serialize() []byte { + // Total length of returned signature is the length of a1, a2 and z. + var b [ComplaintSignatureSize]byte + // Make z = 1 + signature.A1.ToAffine() + signature.A2.ToAffine() + // Copy compressed bytes of A1 to first 33 bytes + bytes := secp256k1.NewPublicKey(&signature.A1.X, &signature.A1.Y).SerializeCompressed() + copy(b[0:33], bytes) + // Copy compressed bytes of A2 to next 33 bytes + bytes = secp256k1.NewPublicKey(&signature.A2.X, &signature.A2.Y).SerializeCompressed() + copy(b[33:66], bytes) + // Copy bytes of S 32 bytes after + signature.Z.PutBytesUnchecked(b[66:98]) + return b[:] +} + +// ParseComplaintSignature parses a signature from bytes +// +// - The a1 component must be in the valid range for secp256k1 field elements +// - The a2 component must be in the valid range for secp256k1 field elements +// - The s component must be in the valid range for secp256k1 scalars +func ParseComplaintSignature(signature []byte) (*ComplaintSignature, error) { + // The signature must be the correct length. + sigLen := len(signature) + if sigLen < ComplaintSignatureSize { + str := fmt.Sprintf("malformed complaint signature: too short: %d < %d", sigLen, + ComplaintSignatureSize) + return nil, signatureError(ErrSigTooShort, str) + } + if sigLen > ComplaintSignatureSize { + str := fmt.Sprintf("malformed complaint signature: too long: %d > %d", sigLen, + ComplaintSignatureSize) + return nil, signatureError(ErrSigTooLong, str) + } + + // The signature is validly encoded at this point, however, enforce + // additional restrictions to ensure a1 and a2 are the valid jacobian point, and z is in + // the range [0, n-1] since valid complaint signatures are required to be in + // that range per spec. + var a1 secp256k1.JacobianPoint + pubKey, err := secp256k1.ParsePubKey(signature[0:33]) + if err != nil { + str := fmt.Sprintf("invalid complaint signature: a1 is not valid: %s", err.Error()) + return nil, signatureError(ErrSigA1TooBig, str) + } + pubKey.AsJacobian(&a1) + + var a2 secp256k1.JacobianPoint + pubKey, err = secp256k1.ParsePubKey(signature[33:66]) + if err != nil { + str := fmt.Sprintf("invalid complaint signature: a2 is not valid: %s", err.Error()) + return nil, signatureError(ErrSigA2TooBig, str) + } + pubKey.AsJacobian(&a2) + + var z secp256k1.ModNScalar + if overflow := z.SetByteSlice(signature[66:98]); overflow { + str := "invalid complaint signature: z >= group order" + return nil, signatureError(ErrSigZTooBig, str) + } + + // Return the complaint signature. + return NewComplaintSignature(&a1, &a2, &z), nil +} diff --git a/internal/bandchain/tss/schnorr/error.go b/internal/bandchain/tss/schnorr/error.go new file mode 100644 index 0000000..83a4447 --- /dev/null +++ b/internal/bandchain/tss/schnorr/error.go @@ -0,0 +1,82 @@ +// Copyright (c) 2014 Conformal Systems LLC. +// Copyright (c) 2015-2020 The Decred developers +// Use of this source code is governed by an ISC +// license that can be found in the LICENSE file. + +package schnorr + +// ErrorKind identifies a kind of error. It has full support for errors.Is +// and errors.As, so the caller can directly check against an error kind +// when determining the reason for an error. +type ErrorKind string + +// These constants are used to identify a specific RuleError. +const ( + // ErrSigTooShort is returned when a signature that should be a Schnorr + // signature is too short. + ErrSigTooShort = ErrorKind("ErrSigTooShort") + + // ErrSigTooLong is returned when a signature that should be a Schnorr + // signature is too long. + ErrSigTooLong = ErrorKind("ErrSigTooLong") + + // ErrSigRTooBig is returned when a signature has r with a value that is + // greater than or equal to the prime of the field underlying the group. + ErrSigRTooBig = ErrorKind("ErrSigRTooBig") + + // ErrSigSTooBig is returned when a signature has s with a value that is + // greater than or equal to the group order. + ErrSigSTooBig = ErrorKind("ErrSigSTooBig") + + // ErrSigA1TooBig is returned when a complaint signature has a1 with a value that is + // greater than or equal to the prime of the field underlying the group. + ErrSigA1TooBig = ErrorKind("ErrSigA1TooBig") + + // ErrSigA2TooBig is returned when a complaint signature has a2 with a value that is + // greater than or equal to the prime of the field underlying the group. + ErrSigA2TooBig = ErrorKind("ErrSigA2TooBig") + + // ErrSigZTooBig is returned when a complaint signature has s with a value that is + // greater than or equal to the group order. + ErrSigZTooBig = ErrorKind("ErrSigZTooBig") + + // ErrPrivateKeyZero is returned when a private key is zero. + ErrPrivateKeyZero = ErrorKind("ErrPrivateKeyZero") + + // ErrNotOnCurve is returned when a public key is not on curve. + ErrNotOnCurve = ErrorKind("ErrNotOnCurve") + + // ErrRInfinity is returned when a calculated R is at infinity. + ErrRInfinity = ErrorKind("ErrRInfinity") + + // ErrIncorrectR is returned when a calculated R is not given R. + ErrIncorrectR = ErrorKind("ErrIncorrectR") +) + +// Error satisfies the error interface and prints human-readable errors. +func (e ErrorKind) Error() string { + return string(e) +} + +// Error identifies an error related to a schnorr signature. It has full +// support for errors.Is and errors.As, so the caller can ascertain the +// specific reason for the error by checking the underlying error. +type Error struct { + Err error + Description string +} + +// Error satisfies the error interface and prints human-readable errors. +func (e Error) Error() string { + return e.Description +} + +// Unwrap returns the underlying wrapped error. +func (e Error) Unwrap() error { + return e.Err +} + +// signatureError creates an Error given a set of arguments. +func signatureError(kind ErrorKind, desc string) Error { + return Error{Err: kind, Description: desc} +} diff --git a/internal/bandchain/tss/schnorr/signature.go b/internal/bandchain/tss/schnorr/signature.go new file mode 100644 index 0000000..88f820a --- /dev/null +++ b/internal/bandchain/tss/schnorr/signature.go @@ -0,0 +1,110 @@ +package schnorr + +import ( + "fmt" + + "github.com/decred/dcrd/dcrec/secp256k1/v4" +) + +const ( + // SignatureSize is the size of an encoded Schnorr signature. + SignatureSize = 65 +) + +// RFC6979ExtraDataV0 is the extra data to feed to RFC6979 when generating +// the deterministic nonce for the EC-Schnorr-DCRv0 scheme. This ensures +// the same nonce is not generated for the same message and key as for other +// signing algorithms such as ECDSA. +// +// It is equal to BLAKE-256([]byte("EC-Schnorr-DCRv0")). +var RFC6979ExtraDataV0 = [32]byte{ + 0x0b, 0x75, 0xf9, 0x7b, 0x60, 0xe8, 0xa5, 0x76, + 0x28, 0x76, 0xc0, 0x04, 0x82, 0x9e, 0xe9, 0xb9, + 0x26, 0xfa, 0x6f, 0x0d, 0x2e, 0xea, 0xec, 0x3a, + 0x4f, 0xd1, 0x44, 0x6a, 0x76, 0x83, 0x31, 0xcb, +} + +// Signature is a type representing a Schnorr signature. +type Signature struct { + R secp256k1.JacobianPoint + S secp256k1.ModNScalar +} + +// NewSignature instantiates a new signature given some r and s values. +func NewSignature(r *secp256k1.JacobianPoint, s *secp256k1.ModNScalar) *Signature { + var signature Signature + signature.R.Set(r) + signature.S.Set(s) + return &signature +} + +// Serialize returns the Schnorr signature in the more strict format. +// +// The signatures are encoded as: +// +// bytes at 0-32 jacobian point R with z as 1, encoded by SerializeCompressed of secp256k1.PublicKey +// bytes at 33-64 s, encoded also as big-endian uint256 +func (signature Signature) Serialize() []byte { + // Total length of returned signature is the length of r and s. + var b [SignatureSize]byte + // Make z = 1 + signature.R.ToAffine() + // Copy compressed bytes of R to first 33 bytes + pubKey := secp256k1.NewPublicKey(&signature.R.X, &signature.R.Y).SerializeCompressed() + copy(b[0:33], pubKey) + // Copy bytes of S 32 bytes after + signature.S.PutBytesUnchecked(b[33:65]) + return b[:] +} + +// ParseSignature parses a signature according to the EC-Schnorr-DCRv0 +// specification and enforces the following additional restrictions specific to +// secp256k1: +// +// - The r component must be in the valid range for secp256k1 field elements +// - The s component must be in the valid range for secp256k1 scalars +func ParseSignature(signature []byte) (*Signature, error) { + // The signature must be the correct length. + sigLen := len(signature) + if sigLen < SignatureSize { + str := fmt.Sprintf("malformed signature: too short: %d < %d", sigLen, + SignatureSize) + return nil, signatureError(ErrSigTooShort, str) + } + if sigLen > SignatureSize { + str := fmt.Sprintf("malformed signature: too long: %d > %d", sigLen, + SignatureSize) + return nil, signatureError(ErrSigTooLong, str) + } + + // The signature is validly encoded at this point, however, enforce + // additional restrictions to ensure r is the valid jacobian point, and s is in + // the range [0, n-1] since valid Schnorr signatures are required to be in + // that range per spec. + var r secp256k1.JacobianPoint + pubKey, err := secp256k1.ParsePubKey(signature[0:33]) + if err != nil { + str := fmt.Sprintf("invalid signature: r is not valid: %s", err.Error()) + return nil, signatureError(ErrSigRTooBig, str) + } + pubKey.AsJacobian(&r) + + var s secp256k1.ModNScalar + if overflow := s.SetByteSlice(signature[33:65]); overflow { + str := "invalid signature: s >= group order" + return nil, signatureError(ErrSigSTooBig, str) + } + + // Return the signature. + return NewSignature(&r, &s), nil +} + +// IsEqual compares this Signature instance to the one passed, returning true +// if both Signatures are equivalent. A signature is equivalent to another, if +// they both have the same scalar value for R and S. +// Note: Both R must be affine coordinate. +func (signature Signature) IsEqual(otherSignature *Signature) bool { + return signature.R.X.Equals(&otherSignature.R.X) && signature.R.Y.Equals(&otherSignature.R.Y) && + signature.R.Z.Equals(&otherSignature.R.Z) && + signature.S.Equals(&otherSignature.S) +} diff --git a/internal/bandchain/tss/tss.go b/internal/bandchain/tss/tss.go new file mode 100644 index 0000000..291e121 --- /dev/null +++ b/internal/bandchain/tss/tss.go @@ -0,0 +1,748 @@ +package types + +import ( + "crypto/rand" + "encoding/hex" + "fmt" + "sort" + "strings" + + "github.com/decred/dcrd/dcrec/secp256k1/v4" + + "github.com/bandprotocol/falcon/internal/bandchain/tss/schnorr" +) + +// GroupID represents the ID of a group. +type GroupID uint64 + +// MemberID represents the ID of a member. +// Please note that the MemberID can only be 1, 2, 3, ..., 2**64 - 1 +type MemberID uint64 + +// SigningID represents the ID of a signing. +type SigningID uint64 + +// Scalar represents a scalar value stored as bytes. +// It uses secp256k1.ModNScalar and secp256k1.PrivateKey as a base implementation for serialization and parsing. +type Scalar []byte + +// NewScalar constructs a Scalar from bytes. +func NewScalar(bytes []byte) (Scalar, error) { + // Create a Scalar from the provided bytes. + scalar := Scalar(bytes) + + // Check the validity of the scalar value. + if err := scalar.Validate(); err != nil { + return nil, NewError(err, "check valid") + } + + return scalar, nil +} + +// NewScalarFromModNScalar parses a secp256k1.ModNScalar into a Scalar. +func NewScalarFromModNScalar(scalar *secp256k1.ModNScalar) Scalar { + bytes := scalar.Bytes() + return bytes[:] +} + +// NewScalarFromPrivateKey parses a secp256k1.PrivateKey into a Scalar. +func NewScalarFromPrivateKey(privKey *secp256k1.PrivateKey) Scalar { + return privKey.Serialize() +} + +// Marshal needed for protobuf compatibility +func (s Scalar) Marshal() ([]byte, error) { + return s, nil +} + +// Unmarshal needed for protobuf compatibility +func (s *Scalar) Unmarshal(data []byte) error { + *s = data + return nil +} + +// MarshalJSON converts the Scalar to its JSON representation. +func (s Scalar) MarshalJSON() ([]byte, error) { + str := strings.ToUpper(hex.EncodeToString(s)) + jbz := make([]byte, len(str)+2) + jbz[0] = '"' + copy(jbz[1:], str) + jbz[len(jbz)-1] = '"' + return jbz, nil +} + +// UnmarshalJSON parses a JSON string into a Scalar. +func (s *Scalar) UnmarshalJSON(data []byte) error { + if len(data) < 2 || data[0] != '"' || data[len(data)-1] != '"' { + return fmt.Errorf("invalid hex string: %s", data) + } + bz2, err := hex.DecodeString(string(data[1 : len(data)-1])) + if err != nil { + return err + } + *s = bz2 + return nil +} + +// Bytes returns the underlying byte slice of the Scalar. +func (s Scalar) Bytes() []byte { + return s +} + +// String returns the hexadecimal representation of the Scalar in uppercase. +func (s Scalar) String() string { + return strings.ToUpper(hex.EncodeToString(s)) +} + +// Validate returns an error if the scalar value is invalid. +func (s Scalar) Validate() error { + // Check the length of the Scalar value. + if len(s) != 32 { + return NewError(ErrInvalidLength, "length: %d != 32", len(s)) + } + + // Set the byte slice value of the Scalar. + var scalar secp256k1.ModNScalar + overflow := scalar.SetByteSlice(s) + + // Check if the Scalar is zero or if there was an overflow. + if scalar.IsZero() || overflow { + return NewError(ErrInvalidOrder, "set bytes") + } + + return nil +} + +// Point converts a Scalar to a Point. +func (s Scalar) Point() Point { + point := s.jacobianPoint() + return NewPointFromJacobianPoint(point) +} + +// modNScalar converts a Scalar back to a secp256k1.ModNScalar. +func (s Scalar) modNScalar() *secp256k1.ModNScalar { + var scalar secp256k1.ModNScalar + scalar.SetByteSlice(s) + + return &scalar +} + +// privateKey converts a Scalar back to a secp256k1.PrivateKey. +func (s Scalar) privateKey() *secp256k1.PrivateKey { + scalar := s.modNScalar() + return secp256k1.NewPrivateKey(scalar) +} + +// publicKey converts a Scalar back to a secp256k1.PublicKey. +func (s Scalar) publicKey() *secp256k1.PublicKey { + return s.privateKey().PubKey() +} + +// jacobianPoint converts a Scalar to a secp256k1.JacobianPoint. +func (s Scalar) jacobianPoint() *secp256k1.JacobianPoint { + // Convert the Scalar to a ModNScalar. + scalar := s.modNScalar() + + // Create a new JacobianPoint by performing scalar base multiplication. + var point secp256k1.JacobianPoint + secp256k1.ScalarBaseMultNonConst(scalar, &point) + point.ToAffine() + + return &point +} + +// Scalars represents a slice of Scalar values. +type Scalars []Scalar + +// modNScalars converts a slice of Scalars into a slice of secp256k1.ModNScalar. +func (ss Scalars) modNScalars() []*secp256k1.ModNScalar { + var scalars []*secp256k1.ModNScalar + for _, s := range ss { + scalar := s.modNScalar() + scalars = append(scalars, scalar) + } + + return scalars +} + +// jacobianPoints converts a slice of Scalars into a slice of secp256k1.JacobianPoint. +func (ss Scalars) jacobianPoints() []*secp256k1.JacobianPoint { + var points []*secp256k1.JacobianPoint + for _, s := range ss { + point := s.jacobianPoint() + points = append(points, point) + } + + return points +} + +// Point represents a point (x, y, z) stored as bytes. +// It uses secp256k1.JacobianPoint and secp256k1.PublicKey as base implementations for serialization and parsing. +type Point []byte + +// NewPoint constructs a Point from bytes. +func NewPoint(bytes []byte) (Point, error) { + // Create a Point from the provided bytes. + point := Point(bytes) + + // Check the validity of the point value. + if err := point.Validate(); err != nil { + return nil, NewError(err, "check valid") + } + + return point, nil +} + +// NewPointFromJacobianPoint parses a secp256k1.JacobianPoint into a Point. +func NewPointFromJacobianPoint(point *secp256k1.JacobianPoint) Point { + // Convert the JacobianPoint to affine coordinates. + affinePoint := *point + affinePoint.ToAffine() + + // Serialize the affine coordinates into bytes and create a Point from it. + bytes := secp256k1.NewPublicKey(&affinePoint.X, &affinePoint.Y).SerializeCompressed() + return Point(bytes) +} + +// NewPointFromPublicKey parses a secp256k1.PublicKey into a Point. +func NewPointFromPublicKey(pubKey *secp256k1.PublicKey) Point { + // Serialize the PublicKey into bytes and create a Point from it. + bytes := pubKey.SerializeCompressed() + return Point(bytes) +} + +// Marshal needed for protobuf compatibility +func (p Point) Marshal() ([]byte, error) { + return p, nil +} + +// Unmarshal needed for protobuf compatibility +func (p *Point) Unmarshal(data []byte) error { + *p = data + return nil +} + +// MarshalJSON converts the Point to its JSON representation. +func (p Point) MarshalJSON() ([]byte, error) { + str := strings.ToUpper(hex.EncodeToString(p)) + jbz := make([]byte, len(str)+2) + jbz[0] = '"' + copy(jbz[1:], str) + jbz[len(jbz)-1] = '"' + return jbz, nil +} + +// UnmarshalJSON parses a JSON string into a Point. +func (p *Point) UnmarshalJSON(data []byte) error { + if len(data) < 2 || data[0] != '"' || data[len(data)-1] != '"' { + return fmt.Errorf("invalid hex string: %s", data) + } + bz2, err := hex.DecodeString(string(data[1 : len(data)-1])) + if err != nil { + return err + } + *p = bz2 + return nil +} + +// Bytes returns the underlying byte slice of the Point. +func (p Point) Bytes() []byte { + return p +} + +// String returns the hexadecimal representation of the Point in uppercase. +func (p Point) String() string { + return strings.ToUpper(hex.EncodeToString(p)) +} + +// Validate returns an error if the value is invalid. +func (p Point) Validate() error { + if _, err := p.publicKey(); err != nil { + return NewError(err, "check valid") + } + + return nil +} + +// Address returns an ethereum address of the point +func (p Point) Address() ([]byte, error) { + pubKey, err := p.publicKey() + if err != nil { + return nil, err + } + + paddedPx := PaddingBytes(pubKey.X().Bytes(), 32) + paddedPy := PaddingBytes(pubKey.Y().Bytes(), 32) + return Hash(paddedPx, paddedPy)[12:], nil +} + +// publicKey converts a Point back to a secp256k1.PublicKey. +func (p Point) publicKey() (*secp256k1.PublicKey, error) { + pubKey, err := secp256k1.ParsePubKey(p) + if err != nil { + return nil, NewError(ErrParseError, "%s", err.Error()) + } + + return pubKey, nil +} + +// jacobianPoint converts a Point back to a secp256k1.JacobianPoint. +func (p Point) jacobianPoint() (*secp256k1.JacobianPoint, error) { + pubKey, err := p.publicKey() + if err != nil { + return nil, NewError(err, "parse public key") + } + + var point secp256k1.JacobianPoint + pubKey.AsJacobian(&point) + + return &point, nil +} + +// Points represents a slice of Point values. +type Points []Point + +// jacobianPoints converts a slice of Points into a slice of secp256k1.JacobianPoint. +func (ps Points) jacobianPoints() ([]*secp256k1.JacobianPoint, error) { + var points []*secp256k1.JacobianPoint + for idx, p := range ps { + point, err := p.jacobianPoint() + if err != nil { + return nil, NewError(err, "parse index: %d", idx) + } + + points = append(points, point) + } + + return points, nil +} + +// Signature represents a signature (r, s) stored as bytes. +// It uses schnorr.Signature as a base implementation for serialization and parsing. +type Signature []byte + +// Signatures represents a slice of Signature values. +type Signatures []Signature + +// NewSignature constructs a Signature from bytes. +func NewSignature(bytes []byte) (Signature, error) { + signature := Signature(bytes) + if err := signature.Validate(); err != nil { + return nil, NewError(err, "check valid") + } + + return signature, nil +} + +// NewSignatureFromComponents generates a signature from Point (R) and Scalar (S). +// It returns a Signature and an error, if any. +func NewSignatureFromComponents(rawR Point, rawS Scalar) (Signature, error) { + r, err := rawR.jacobianPoint() + if err != nil { + return nil, NewError(err, "parse r") + } + + s := rawS.modNScalar() + + return NewSignatureFromType(schnorr.NewSignature(r, s)), nil +} + +// NewSignatureFromType parses a schnorr.Signature into a Signature. +func NewSignatureFromType(signature *schnorr.Signature) Signature { + return signature.Serialize() +} + +// Marshal needed for protobuf compatibility +func (s Signature) Marshal() ([]byte, error) { + return s, nil +} + +// Unmarshal needed for protobuf compatibility +func (s *Signature) Unmarshal(data []byte) error { + *s = data + return nil +} + +// MarshalJSON converts the Signature to its JSON representation. +func (s Signature) MarshalJSON() ([]byte, error) { + str := strings.ToUpper(hex.EncodeToString(s)) + jbz := make([]byte, len(str)+2) + jbz[0] = '"' + copy(jbz[1:], str) + jbz[len(jbz)-1] = '"' + return jbz, nil +} + +// UnmarshalJSON parses a JSON string into a Signature. +func (s *Signature) UnmarshalJSON(data []byte) error { + if len(data) < 2 || data[0] != '"' || data[len(data)-1] != '"' { + return fmt.Errorf("invalid hex string: %s", data) + } + bz2, err := hex.DecodeString(string(data[1 : len(data)-1])) + if err != nil { + return err + } + *s = bz2 + return nil +} + +// Bytes returns the underlying byte slice of the Signature. +func (s Signature) Bytes() []byte { + return s +} + +// String returns the hexadecimal representation of the Signature in uppercase. +func (s Signature) String() string { + return strings.ToUpper(hex.EncodeToString(s)) +} + +// Validate returns an error if the value is invalid. +func (s Signature) Validate() error { + if _, err := s.signature(); err != nil { + return err + } + + return nil +} + +// signature converts a Signature to a schnorr.Signature. +func (s Signature) signature() (*schnorr.Signature, error) { + signature, err := schnorr.ParseSignature(s) + if err != nil { + return nil, NewError(ErrParseError, "%s", err.Error()) + } + + return signature, nil +} + +// R returns the R part of the signature. +func (s Signature) R() Point { + if len(s) < 33 { + return []byte{} + } + return Point(s[0:33]) +} + +// S returns the S part of the signature. +func (s Signature) S() Scalar { + if len(s) < 65 { + return []byte{} + } + return Scalar(s[33:65]) +} + +// ComplaintSignature represents a signature (a1, a2, z) stored as bytes. +// It uses schnorr.ComplaintSignature as a base implementation for serialization and parsing. +type ComplaintSignature []byte + +// ComplaintSignatures represents a slice of ComplaintSignature values. +type ComplaintSignatures []ComplaintSignature + +// NewComplaintSignature constructs a ComplaintSignature from bytes. +func NewComplaintSignature(bytes []byte) (ComplaintSignature, error) { + comSignature := ComplaintSignature(bytes) + if err := comSignature.Validate(); err != nil { + return nil, NewError(err, "invalid") + } + + return comSignature, nil +} + +// NewComplaintSignatureFromComponents generates a complaint signature from 2 Points (A1, A2) and Scalar (Z). +// It returns a ComplaintSignature and an error, if any. +func NewComplaintSignatureFromComponents(rawA1 Point, rawA2 Point, rawZ Scalar) (ComplaintSignature, error) { + a1, err := rawA1.jacobianPoint() + if err != nil { + return nil, NewError(err, "parse A1") + } + + a2, err := rawA2.jacobianPoint() + if err != nil { + return nil, NewError(err, "parse A2") + } + + z := rawZ.modNScalar() + + return NewComplaintSignatureFromType(schnorr.NewComplaintSignature(a1, a2, z)), nil +} + +// NewComplaintSignatureFromType parses a schnorr.ComplaintSignature into a ComplaintSignature. +func NewComplaintSignatureFromType(signature *schnorr.ComplaintSignature) ComplaintSignature { + return signature.Serialize() +} + +// Marshal needed for protobuf compatibility +func (cs ComplaintSignature) Marshal() ([]byte, error) { + return cs, nil +} + +// Unmarshal needed for protobuf compatibility +func (cs *ComplaintSignature) Unmarshal(data []byte) error { + *cs = data + return nil +} + +// MarshalJSON converts the ComplaintSignature to its JSON representation. +func (cs ComplaintSignature) MarshalJSON() ([]byte, error) { + str := strings.ToUpper(hex.EncodeToString(cs)) + jbz := make([]byte, len(str)+2) + jbz[0] = '"' + copy(jbz[1:], str) + jbz[len(jbz)-1] = '"' + return jbz, nil +} + +// UnmarshalJSON parses a JSON string into a ComplaintSignature. +func (cs *ComplaintSignature) UnmarshalJSON(data []byte) error { + if len(data) < 2 || data[0] != '"' || data[len(data)-1] != '"' { + return fmt.Errorf("invalid hex string: %s", data) + } + bz2, err := hex.DecodeString(string(data[1 : len(data)-1])) + if err != nil { + return err + } + *cs = bz2 + return nil +} + +// Bytes returns the underlying byte slice of the ComplaintSignature. +func (cs ComplaintSignature) Bytes() []byte { + return cs +} + +// String returns the hexadecimal representation of the ComplaintSignature in uppercase. +func (cs ComplaintSignature) String() string { + return strings.ToUpper(hex.EncodeToString(cs)) +} + +// Validate returns an error if the value is invalid. +func (cs ComplaintSignature) Validate() error { + if _, err := cs.complaintSignature(); err != nil { + return err + } + + return nil +} + +// complaintSignature converts a ComplaintSignature to a schnorr.ComplaintSignature. +func (cs ComplaintSignature) complaintSignature() (*schnorr.ComplaintSignature, error) { + // No need to check error as the caller should validate it first. + signature, err := schnorr.ParseComplaintSignature(cs) + if err != nil { + return nil, NewError(ErrParseError, "%s", err.Error()) + } + + return signature, nil +} + +// A1 returns the A1 part of the complaint signature. +func (cs ComplaintSignature) A1() Point { + if len(cs) < 33 { + return []byte{} + } + return Point(cs[0:33]) +} + +// A2 returns the A2 part of the complaint signature. +func (cs ComplaintSignature) A2() Point { + if len(cs) < 66 { + return []byte{} + } + return Point(cs[33:66]) +} + +// Z returns the Z part of the complaint signature. +func (cs ComplaintSignature) Z() Scalar { + if len(cs) < 98 { + return []byte{} + } + return Scalar(cs[66:98]) +} + +// KeyPair represents a key pair consisting of a private key and a public key. +type KeyPair struct { + PrivKey Scalar + PubKey Point +} + +// KeyPairs represents a slice of KeyPair values. +type KeyPairs []KeyPair + +// CommitmentIDE represents a commitment issued by a participant in the signing process +// +// Fields: +// - ID: A NonZeroScalar identifier for the participant (uint64) +// - D: The hiding nonce commitment is represented by the type Point +// - E: The binding nonce commitment is represented by the type Point +type CommitmentIDE struct { + ID MemberID + D Point + E Point +} + +// CommitmentIDEList is a slice of CommitmentIDE structs. +// +// This type represents a list of commitments issued by each participant in the signing process. +// Each element in the list indicates an identifier and two commitment PublicKey values as a tuple +// . +// +// Please note that this list must be sorted in ascending order by identifier +type CommitmentIDEList []CommitmentIDE + +// Len returns the number of elements in the CommitmentIDEList. +func (b CommitmentIDEList) Len() int { + return len(b) +} + +// Sort sorts the CommitmentIDEList in ascending order by the identifier (ID) of each CommitmentIDE. +// It also checks for repeated elements and returns an error if any are found. +func (b CommitmentIDEList) Sort() error { + sort.Slice(b, func(i, j int) bool { + return b[i].ID < b[j].ID + }) + + for i := 0; i < len(b)-1; i++ { + if b[i].ID == b[i+1].ID { + return fmt.Errorf("CommitmentIDEList: sorting fail because repeated element found at ID = %v", b[i].ID) + } + } + + return nil +} + +// EncSecretShare represents a structure for storing an encrypted secret share. +// It contains the encrypted value `Value` and the corresponding nonce `Nonce` +// used in the Elgamal encryption process. The `Value` field holds the encrypted +// data, and `Nonce` is used to ensure the security and uniqueness of the encryption. +type EncSecretShare []byte + +func NewEncSecretShare(value []byte, nonce []byte) (EncSecretShare, error) { + enc := EncSecretShare(append(value, nonce...)) + if err := enc.Validate(); err != nil { + return nil, err + } + + return enc, nil +} + +// Value return the value part of EncSecretShare +func (e EncSecretShare) Value() []byte { + return e[0:32] +} + +// Nonce return the nonce part of EncSecretShare +func (e EncSecretShare) Nonce() []byte { + return e[32:48] +} + +// Clone creates a deep copy of the EncSecretShare instance. +func (e EncSecretShare) Clone() EncSecretShare { + bz := make([]byte, len(e)) + copy(bz, e) + return bz +} + +// Marshal needed for protobuf compatibility +func (e EncSecretShare) Marshal() ([]byte, error) { + return e, nil +} + +// Unmarshal needed for protobuf compatibility +func (e *EncSecretShare) Unmarshal(data []byte) error { + *e = data + return nil +} + +// MarshalJSON converts the EncSecretShare to its JSON representation. +func (e EncSecretShare) MarshalJSON() ([]byte, error) { + str := strings.ToUpper(hex.EncodeToString(e)) + jbz := make([]byte, len(str)+2) + jbz[0] = '"' + copy(jbz[1:], str) + jbz[len(jbz)-1] = '"' + return jbz, nil +} + +// UnmarshalJSON parses a JSON string into a EncSecretShare. +func (e *EncSecretShare) UnmarshalJSON(data []byte) error { + if len(data) < 2 || data[0] != '"' || data[len(data)-1] != '"' { + return fmt.Errorf("invalid hex string: %s", data) + } + bz2, err := hex.DecodeString(string(data[1 : len(data)-1])) + if err != nil { + return err + } + *e = bz2 + return nil +} + +// Bytes returns the underlying byte slice of the EncSecretShare. +func (e EncSecretShare) Bytes() []byte { + return e +} + +// String returns the hexadecimal representation of the EncSecretShare in uppercase. +func (e EncSecretShare) String() string { + return strings.ToUpper(hex.EncodeToString(e)) +} + +// Validate checks the integrity and validity of the EncSecretShare instance. +// It ensures that the encrypted value and nonce have the correct expected sizes. +func (e EncSecretShare) Validate() error { + if len(e) != 48 { + return fmt.Errorf("EncSecretShare: invalid size") + } + return nil +} + +// EncSecretShares is a slice of EncSecretShare. It's used for storing multiple +// encrypted secret shares. This type is particularly useful when dealing with +// scenarios where multiple pieces of data need to be encrypted, such as in +// threshold cryptography or secure multiparty computations, where each participant +// might have their own encrypted share of a secret. +type EncSecretShares []EncSecretShare + +// Clone creates a deep copy of the EncSecretShares slice. +// It iterates through the slice, cloning each EncSecretShare to ensure +// that modifications to the cloned slice do not affect the original EncSecretShares. +func (es EncSecretShares) Clone() EncSecretShares { + copied := make([]EncSecretShare, len(es)) + for i, e := range es { + copied[i] = e.Clone() + } + return copied +} + +// Validate iterates through each EncSecretShare in the EncSecretShares slice, +// performing validation checks on each EncSecretShare. +func (es EncSecretShares) Validate() error { + var err error + for i, e := range es { + err = e.Validate() + if err != nil { + return NewError(err, "index %d error", i) + } + } + return err +} + +// INonce16Generator defines an interface for generating a 16-byte nonce. +type INonce16Generator interface { + RandBytes16() ([]byte, error) +} + +// DefaultNonce16Generator is a struct that implements the INonce16Generator interface. +// It provides a default mechanism to generate a slice of 16 random bytes. +type DefaultNonce16Generator struct{} + +// RandBytes16 generates a 16-byte random nonce. +// It returns a slice of 16 cryptographically secure random bytes and an error if the random byte +// generation fails. This method satisfies the INonce16Generator interface. +func (dng DefaultNonce16Generator) RandBytes16() ([]byte, error) { + b := make([]byte, 16) + _, err := rand.Read(b) + if err != nil { + return nil, NewError(err, "rand nonce bytes16") + } + return b, nil +} diff --git a/internal/bandchain/tss/tss.pb.go b/internal/bandchain/tss/tss.pb.go new file mode 100644 index 0000000..2006aee --- /dev/null +++ b/internal/bandchain/tss/tss.pb.go @@ -0,0 +1,7897 @@ +package types + +import ( + "bytes" + "fmt" + "io" + "math" + math_bits "math/bits" + "time" + + github_com_cometbft_cometbft_libs_bytes "github.com/cometbft/cometbft/libs/bytes" + "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// SigningStatus is an enumeration of the possible statuses of a signing. +type SigningStatus int32 + +const ( + // SIGNING_STATUS_UNSPECIFIED is the status of a signing that has not been specified. + SIGNING_STATUS_UNSPECIFIED SigningStatus = 0 + // SIGNING_STATUS_WAITING is the status of a signing that is waiting to be signed in the protocol. + SIGNING_STATUS_WAITING SigningStatus = 1 + // SIGNING_STATUS_SUCCESS is the status of a signing that has success in the protocol. + SIGNING_STATUS_SUCCESS SigningStatus = 2 + // SIGNING_STATUS_FALLEN is the status of a signing that has fallen out of the protocol. + SIGNING_STATUS_FALLEN SigningStatus = 3 +) + +var SigningStatus_name = map[int32]string{ + 0: "SIGNING_STATUS_UNSPECIFIED", + 1: "SIGNING_STATUS_WAITING", + 2: "SIGNING_STATUS_SUCCESS", + 3: "SIGNING_STATUS_FALLEN", +} + +var SigningStatus_value = map[string]int32{ + "SIGNING_STATUS_UNSPECIFIED": 0, + "SIGNING_STATUS_WAITING": 1, + "SIGNING_STATUS_SUCCESS": 2, + "SIGNING_STATUS_FALLEN": 3, +} + +func (x SigningStatus) String() string { + return proto.EnumName(SigningStatus_name, int32(x)) +} + +func (SigningStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{0} +} + +// GroupStatus is an enumeration of the possible statuses of a group. +type GroupStatus int32 + +const ( + // GROUP_STATUS_UNSPECIFIED is the status of a group that has not been specified. + GROUP_STATUS_UNSPECIFIED GroupStatus = 0 + // GROUP_STATUS_ROUND_1 is the status of a group that is in the first round of the protocol. + GROUP_STATUS_ROUND_1 GroupStatus = 1 + // GROUP_STATUS_ROUND_2 is the status of a group that is in the second round of the protocol. + GROUP_STATUS_ROUND_2 GroupStatus = 2 + // GROUP_STATUS_ROUND_3 is the status of a group that is in the third round of the protocol. + GROUP_STATUS_ROUND_3 GroupStatus = 3 + // GROUP_STATUS_ACTIVE is the status of a group that is actively participating in the protocol. + GROUP_STATUS_ACTIVE GroupStatus = 4 + // GROUP_STATUS_EXPIRED is the status of a group that has expired in the protocol. + GROUP_STATUS_EXPIRED GroupStatus = 5 + // GROUP_STATUS_FALLEN is the status of a group that has fallen out of the protocol. + GROUP_STATUS_FALLEN GroupStatus = 6 +) + +var GroupStatus_name = map[int32]string{ + 0: "GROUP_STATUS_UNSPECIFIED", + 1: "GROUP_STATUS_ROUND_1", + 2: "GROUP_STATUS_ROUND_2", + 3: "GROUP_STATUS_ROUND_3", + 4: "GROUP_STATUS_ACTIVE", + 5: "GROUP_STATUS_EXPIRED", + 6: "GROUP_STATUS_FALLEN", +} + +var GroupStatus_value = map[string]int32{ + "GROUP_STATUS_UNSPECIFIED": 0, + "GROUP_STATUS_ROUND_1": 1, + "GROUP_STATUS_ROUND_2": 2, + "GROUP_STATUS_ROUND_3": 3, + "GROUP_STATUS_ACTIVE": 4, + "GROUP_STATUS_EXPIRED": 5, + "GROUP_STATUS_FALLEN": 6, +} + +func (x GroupStatus) String() string { + return proto.EnumName(GroupStatus_name, int32(x)) +} + +func (GroupStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{1} +} + +// ComplaintStatus represents the status of a complaint. +type ComplaintStatus int32 + +const ( + // COMPLAINT_STATUS_UNSPECIFIED represents an undefined status of the complaint. + COMPLAINT_STATUS_UNSPECIFIED ComplaintStatus = 0 + // COMPLAINT_STATUS_SUCCESS represents a successful complaint. + COMPLAINT_STATUS_SUCCESS ComplaintStatus = 1 + // COMPLAINT_STATUS_FAILED represents a failed complaint. + COMPLAINT_STATUS_FAILED ComplaintStatus = 2 +) + +var ComplaintStatus_name = map[int32]string{ + 0: "COMPLAINT_STATUS_UNSPECIFIED", + 1: "COMPLAINT_STATUS_SUCCESS", + 2: "COMPLAINT_STATUS_FAILED", +} + +var ComplaintStatus_value = map[string]int32{ + "COMPLAINT_STATUS_UNSPECIFIED": 0, + "COMPLAINT_STATUS_SUCCESS": 1, + "COMPLAINT_STATUS_FAILED": 2, +} + +func (x ComplaintStatus) String() string { + return proto.EnumName(ComplaintStatus_name, int32(x)) +} + +func (ComplaintStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{2} +} + +// Group is a type representing a participant group in a Distributed Key Generation or signing process. +type Group struct { + // id is the unique identifier of the group. + ID GroupID `protobuf:"varint,1,opt,name=id,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"id,omitempty"` + // size is the number of members in the group. + Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + // threshold is the minimum number of members needed to generate a valid signature. + Threshold uint64 `protobuf:"varint,3,opt,name=threshold,proto3" json:"threshold,omitempty"` + // pub_key is the public key generated by the group after successful completion of the DKG process. + PubKey Point `protobuf:"bytes,4,opt,name=pub_key,json=pubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_key,omitempty"` + // status represents the current stage of the group in the DKG or signing process. + Status GroupStatus `protobuf:"varint,5,opt,name=status,proto3,enum=band.tss.v1beta1.GroupStatus" json:"status,omitempty"` + // created_height is the block height when the group was created. + CreatedHeight uint64 `protobuf:"varint,6,opt,name=created_height,json=createdHeight,proto3" json:"created_height,omitempty"` + // module_owner is the module that creates this group. + ModuleOwner string `protobuf:"bytes,7,opt,name=module_owner,json=moduleOwner,proto3" json:"module_owner,omitempty"` +} + +func (m *Group) Reset() { *m = Group{} } +func (m *Group) String() string { return proto.CompactTextString(m) } +func (*Group) ProtoMessage() {} +func (*Group) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{0} +} +func (m *Group) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Group.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Group) XXX_Merge(src proto.Message) { + xxx_messageInfo_Group.Merge(m, src) +} +func (m *Group) XXX_Size() int { + return m.Size() +} +func (m *Group) XXX_DiscardUnknown() { + xxx_messageInfo_Group.DiscardUnknown(m) +} + +var xxx_messageInfo_Group proto.InternalMessageInfo + +func (m *Group) GetID() GroupID { + if m != nil { + return m.ID + } + return 0 +} + +func (m *Group) GetSize_() uint64 { + if m != nil { + return m.Size_ + } + return 0 +} + +func (m *Group) GetThreshold() uint64 { + if m != nil { + return m.Threshold + } + return 0 +} + +func (m *Group) GetPubKey() Point { + if m != nil { + return m.PubKey + } + return nil +} + +func (m *Group) GetStatus() GroupStatus { + if m != nil { + return m.Status + } + return GROUP_STATUS_UNSPECIFIED +} + +func (m *Group) GetCreatedHeight() uint64 { + if m != nil { + return m.CreatedHeight + } + return 0 +} + +func (m *Group) GetModuleOwner() string { + if m != nil { + return m.ModuleOwner + } + return "" +} + +// GroupResult is a tss group result from querying tss group information. +type GroupResult struct { + // group defines the group object containing group information. + Group Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group"` + // dkg_context defines the DKG context data. + DKGContext github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,2,opt,name=dkg_context,json=dkgContext,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"dkg_context,omitempty"` + // members is the list of members in the group. + Members []Member `protobuf:"bytes,3,rep,name=members,proto3" json:"members"` + // round1_infos is the list of Round 1 information. + Round1Infos []Round1Info `protobuf:"bytes,4,rep,name=round1_infos,json=round1Infos,proto3" json:"round1_infos"` + // round2_infos is the list of Round 2 information. + Round2Infos []Round2Info `protobuf:"bytes,5,rep,name=round2_infos,json=round2Infos,proto3" json:"round2_infos"` + // complaints_with_status is the list of complaints with status. + ComplaintsWithStatus []ComplaintsWithStatus `protobuf:"bytes,6,rep,name=complaints_with_status,json=complaintsWithStatus,proto3" json:"complaints_with_status"` + // confirms is the list of confirms. + Confirms []Confirm `protobuf:"bytes,7,rep,name=confirms,proto3" json:"confirms"` +} + +func (m *GroupResult) Reset() { *m = GroupResult{} } +func (m *GroupResult) String() string { return proto.CompactTextString(m) } +func (*GroupResult) ProtoMessage() {} +func (*GroupResult) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{1} +} +func (m *GroupResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GroupResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GroupResult.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GroupResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupResult.Merge(m, src) +} +func (m *GroupResult) XXX_Size() int { + return m.Size() +} +func (m *GroupResult) XXX_DiscardUnknown() { + xxx_messageInfo_GroupResult.DiscardUnknown(m) +} + +var xxx_messageInfo_GroupResult proto.InternalMessageInfo + +func (m *GroupResult) GetGroup() Group { + if m != nil { + return m.Group + } + return Group{} +} + +func (m *GroupResult) GetDKGContext() github_com_cometbft_cometbft_libs_bytes.HexBytes { + if m != nil { + return m.DKGContext + } + return nil +} + +func (m *GroupResult) GetMembers() []Member { + if m != nil { + return m.Members + } + return nil +} + +func (m *GroupResult) GetRound1Infos() []Round1Info { + if m != nil { + return m.Round1Infos + } + return nil +} + +func (m *GroupResult) GetRound2Infos() []Round2Info { + if m != nil { + return m.Round2Infos + } + return nil +} + +func (m *GroupResult) GetComplaintsWithStatus() []ComplaintsWithStatus { + if m != nil { + return m.ComplaintsWithStatus + } + return nil +} + +func (m *GroupResult) GetConfirms() []Confirm { + if m != nil { + return m.Confirms + } + return nil +} + +// Round1Info contains all necessary information for handling round 1 of the DKG process. +type Round1Info struct { + // member_id is the unique identifier of a group member. + MemberID MemberID `protobuf:"varint,1,opt,name=member_id,json=memberId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"member_id,omitempty"` + // coefficients_commits is a list of commitments to the coefficients of the member's secret polynomial. + CoefficientCommits Points `protobuf:"bytes,2,rep,name=coefficient_commits,json=coefficientCommits,proto3,castrepeated=github.com/bandprotocol/falcon/internal/bandchain/tss.Points" json:"coefficient_commits,omitempty"` + // one_time_pub_key is the one-time public key used by the member to encrypt secret shares. + OneTimePubKey Point `protobuf:"bytes,3,opt,name=one_time_pub_key,json=oneTimePubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"one_time_pub_key,omitempty"` + // a0_signature is the member's signature on the first coefficient of its secret polynomial. + A0Signature Signature `protobuf:"bytes,4,opt,name=a0_signature,json=a0Signature,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Signature" json:"a0_signature,omitempty"` + // one_time_signature is the member's signature on its one-time public key. + OneTimeSignature Signature `protobuf:"bytes,5,opt,name=one_time_signature,json=oneTimeSignature,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Signature" json:"one_time_signature,omitempty"` +} + +func (m *Round1Info) Reset() { *m = Round1Info{} } +func (m *Round1Info) String() string { return proto.CompactTextString(m) } +func (*Round1Info) ProtoMessage() {} +func (*Round1Info) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{2} +} +func (m *Round1Info) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Round1Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Round1Info.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Round1Info) XXX_Merge(src proto.Message) { + xxx_messageInfo_Round1Info.Merge(m, src) +} +func (m *Round1Info) XXX_Size() int { + return m.Size() +} +func (m *Round1Info) XXX_DiscardUnknown() { + xxx_messageInfo_Round1Info.DiscardUnknown(m) +} + +var xxx_messageInfo_Round1Info proto.InternalMessageInfo + +func (m *Round1Info) GetMemberID() MemberID { + if m != nil { + return m.MemberID + } + return 0 +} + +func (m *Round1Info) GetCoefficientCommits() Points { + if m != nil { + return m.CoefficientCommits + } + return nil +} + +func (m *Round1Info) GetOneTimePubKey() Point { + if m != nil { + return m.OneTimePubKey + } + return nil +} + +func (m *Round1Info) GetA0Signature() Signature { + if m != nil { + return m.A0Signature + } + return nil +} + +func (m *Round1Info) GetOneTimeSignature() Signature { + if m != nil { + return m.OneTimeSignature + } + return nil +} + +// Round2Info contains all necessary information for handling round 2 of the DKG process. +type Round2Info struct { + // member_id is the unique identifier of a group member. + MemberID MemberID `protobuf:"varint,1,opt,name=member_id,json=memberId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"member_id,omitempty"` + // encrypted_secret_shares is a list of secret shares encrypted under the public keys of other members. + EncryptedSecretShares EncSecretShares `protobuf:"bytes,2,rep,name=encrypted_secret_shares,json=encryptedSecretShares,proto3,castrepeated=github.com/bandprotocol/falcon/internal/bandchain/tss.EncSecretShares" json:"encrypted_secret_shares,omitempty"` +} + +func (m *Round2Info) Reset() { *m = Round2Info{} } +func (m *Round2Info) String() string { return proto.CompactTextString(m) } +func (*Round2Info) ProtoMessage() {} +func (*Round2Info) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{3} +} +func (m *Round2Info) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Round2Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Round2Info.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Round2Info) XXX_Merge(src proto.Message) { + xxx_messageInfo_Round2Info.Merge(m, src) +} +func (m *Round2Info) XXX_Size() int { + return m.Size() +} +func (m *Round2Info) XXX_DiscardUnknown() { + xxx_messageInfo_Round2Info.DiscardUnknown(m) +} + +var xxx_messageInfo_Round2Info proto.InternalMessageInfo + +func (m *Round2Info) GetMemberID() MemberID { + if m != nil { + return m.MemberID + } + return 0 +} + +func (m *Round2Info) GetEncryptedSecretShares() EncSecretShares { + if m != nil { + return m.EncryptedSecretShares + } + return nil +} + +// DE contains the public parts of a member's decryption and encryption keys. +type DE struct { + // pub_d is the public value of own commitment (D). + PubD Point `protobuf:"bytes,1,opt,name=pub_d,json=pubD,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_d,omitempty"` + // pub_e is the public value of own commitment (E). + PubE Point `protobuf:"bytes,2,opt,name=pub_e,json=pubE,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_e,omitempty"` +} + +func (m *DE) Reset() { *m = DE{} } +func (m *DE) String() string { return proto.CompactTextString(m) } +func (*DE) ProtoMessage() {} +func (*DE) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{4} +} +func (m *DE) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DE) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DE.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DE) XXX_Merge(src proto.Message) { + xxx_messageInfo_DE.Merge(m, src) +} +func (m *DE) XXX_Size() int { + return m.Size() +} +func (m *DE) XXX_DiscardUnknown() { + xxx_messageInfo_DE.DiscardUnknown(m) +} + +var xxx_messageInfo_DE proto.InternalMessageInfo + +func (m *DE) GetPubD() Point { + if m != nil { + return m.PubD + } + return nil +} + +func (m *DE) GetPubE() Point { + if m != nil { + return m.PubE + } + return nil +} + +// DEQueue is a simple queue data structure contains index of existing DE objects of each member. +type DEQueue struct { + // head is the current index of the first element in the queue. + Head uint64 `protobuf:"varint,1,opt,name=head,proto3" json:"head,omitempty"` + // tail is the current index of the last element in the queue. + Tail uint64 `protobuf:"varint,2,opt,name=tail,proto3" json:"tail,omitempty"` +} + +func (m *DEQueue) Reset() { *m = DEQueue{} } +func (m *DEQueue) String() string { return proto.CompactTextString(m) } +func (*DEQueue) ProtoMessage() {} +func (*DEQueue) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{5} +} +func (m *DEQueue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DEQueue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DEQueue.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DEQueue) XXX_Merge(src proto.Message) { + xxx_messageInfo_DEQueue.Merge(m, src) +} +func (m *DEQueue) XXX_Size() int { + return m.Size() +} +func (m *DEQueue) XXX_DiscardUnknown() { + xxx_messageInfo_DEQueue.DiscardUnknown(m) +} + +var xxx_messageInfo_DEQueue proto.InternalMessageInfo + +func (m *DEQueue) GetHead() uint64 { + if m != nil { + return m.Head + } + return 0 +} + +func (m *DEQueue) GetTail() uint64 { + if m != nil { + return m.Tail + } + return 0 +} + +// Signing contains all necessary information for handling a signing request. +type Signing struct { + // id is the unique identifier of the signing. + ID SigningID `protobuf:"varint,1,opt,name=id,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"id,omitempty"` + // current_attempt is the latest round number that signing has been attempted. + CurrentAttempt uint64 `protobuf:"varint,2,opt,name=current_attempt,json=currentAttempt,proto3" json:"current_attempt,omitempty"` + // group_id is the unique identifier of the group. + GroupID GroupID `protobuf:"varint,3,opt,name=group_id,json=groupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"group_id,omitempty"` + // group_pub_key is the public key of the group that sign this message. + GroupPubKey Point `protobuf:"bytes,4,opt,name=group_pub_key,json=groupPubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"group_pub_key,omitempty"` + // message is the message to be signed. + Message github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,5,opt,name=message,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"message,omitempty"` + // group_pub_nonce is the public nonce generated by the group for this signing process. + GroupPubNonce Point `protobuf:"bytes,6,opt,name=group_pub_nonce,json=groupPubNonce,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"group_pub_nonce,omitempty"` + // signature is the group's signature on the message. + Signature Signature `protobuf:"bytes,7,opt,name=signature,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Signature" json:"signature,omitempty"` + // status represents the current stage of the signing in the signing process. + Status SigningStatus `protobuf:"varint,8,opt,name=status,proto3,enum=band.tss.v1beta1.SigningStatus" json:"status,omitempty"` + // created_height is the block height when the signing was created. + CreatedHeight uint64 `protobuf:"varint,9,opt,name=created_height,json=createdHeight,proto3" json:"created_height,omitempty"` + // created_timestamp is the block timestamp when the signing was created. + CreatedTimestamp time.Time `protobuf:"bytes,10,opt,name=created_timestamp,json=createdTimestamp,proto3,stdtime" json:"created_timestamp"` +} + +func (m *Signing) Reset() { *m = Signing{} } +func (m *Signing) String() string { return proto.CompactTextString(m) } +func (*Signing) ProtoMessage() {} +func (*Signing) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{6} +} +func (m *Signing) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Signing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Signing.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Signing) XXX_Merge(src proto.Message) { + xxx_messageInfo_Signing.Merge(m, src) +} +func (m *Signing) XXX_Size() int { + return m.Size() +} +func (m *Signing) XXX_DiscardUnknown() { + xxx_messageInfo_Signing.DiscardUnknown(m) +} + +var xxx_messageInfo_Signing proto.InternalMessageInfo + +func (m *Signing) GetID() SigningID { + if m != nil { + return m.ID + } + return 0 +} + +func (m *Signing) GetCurrentAttempt() uint64 { + if m != nil { + return m.CurrentAttempt + } + return 0 +} + +func (m *Signing) GetGroupID() GroupID { + if m != nil { + return m.GroupID + } + return 0 +} + +func (m *Signing) GetGroupPubKey() Point { + if m != nil { + return m.GroupPubKey + } + return nil +} + +func (m *Signing) GetMessage() github_com_cometbft_cometbft_libs_bytes.HexBytes { + if m != nil { + return m.Message + } + return nil +} + +func (m *Signing) GetGroupPubNonce() Point { + if m != nil { + return m.GroupPubNonce + } + return nil +} + +func (m *Signing) GetSignature() Signature { + if m != nil { + return m.Signature + } + return nil +} + +func (m *Signing) GetStatus() SigningStatus { + if m != nil { + return m.Status + } + return SIGNING_STATUS_UNSPECIFIED +} + +func (m *Signing) GetCreatedHeight() uint64 { + if m != nil { + return m.CreatedHeight + } + return 0 +} + +func (m *Signing) GetCreatedTimestamp() time.Time { + if m != nil { + return m.CreatedTimestamp + } + return time.Time{} +} + +// SigningAttempt contains a member that has been assigned to and expiration block height of +// the specific attempt. +type SigningAttempt struct { + // signing_id is the unique identifier of the signing. + SigningID SigningID `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"signing_id,omitempty"` + // attempt is the number of round that this signing has been attempted. + Attempt uint64 `protobuf:"varint,2,opt,name=attempt,proto3" json:"attempt,omitempty"` + // expired_height is the block height when this signing attempt was expired. + ExpiredHeight uint64 `protobuf:"varint,3,opt,name=expired_height,json=expiredHeight,proto3" json:"expired_height,omitempty"` + // assigned_members is a list of members assigned to the signing process. + AssignedMembers []AssignedMember `protobuf:"bytes,4,rep,name=assigned_members,json=assignedMembers,proto3" json:"assigned_members"` +} + +func (m *SigningAttempt) Reset() { *m = SigningAttempt{} } +func (m *SigningAttempt) String() string { return proto.CompactTextString(m) } +func (*SigningAttempt) ProtoMessage() {} +func (*SigningAttempt) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{7} +} +func (m *SigningAttempt) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SigningAttempt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SigningAttempt.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SigningAttempt) XXX_Merge(src proto.Message) { + xxx_messageInfo_SigningAttempt.Merge(m, src) +} +func (m *SigningAttempt) XXX_Size() int { + return m.Size() +} +func (m *SigningAttempt) XXX_DiscardUnknown() { + xxx_messageInfo_SigningAttempt.DiscardUnknown(m) +} + +var xxx_messageInfo_SigningAttempt proto.InternalMessageInfo + +func (m *SigningAttempt) GetSigningID() SigningID { + if m != nil { + return m.SigningID + } + return 0 +} + +func (m *SigningAttempt) GetAttempt() uint64 { + if m != nil { + return m.Attempt + } + return 0 +} + +func (m *SigningAttempt) GetExpiredHeight() uint64 { + if m != nil { + return m.ExpiredHeight + } + return 0 +} + +func (m *SigningAttempt) GetAssignedMembers() []AssignedMember { + if m != nil { + return m.AssignedMembers + } + return nil +} + +// AssignedMember is a type representing a member that has been assigned to a signing process. +type AssignedMember struct { + // member_id is the unique identifier of the member. + MemberID MemberID `protobuf:"varint,1,opt,name=member_id,json=memberId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"member_id,omitempty"` + // member is the human-readable name of the member. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // pub_key is the public part of a member. + PubKey Point `protobuf:"bytes,3,opt,name=pub_key,json=pubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_key,omitempty"` + // pub_d is the public part of a member's decryption key. + PubD Point `protobuf:"bytes,4,opt,name=pub_d,json=pubD,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_d,omitempty"` + // pub_e is the public part of a member's encryption key. + PubE Point `protobuf:"bytes,5,opt,name=pub_e,json=pubE,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_e,omitempty"` + // binding_factor is the binding factor of the member for the signing process. + BindingFactor Scalar `protobuf:"bytes,6,opt,name=binding_factor,json=bindingFactor,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Scalar" json:"binding_factor,omitempty"` + // pub_nonce is the public nonce of the member for the signing process. + PubNonce Point `protobuf:"bytes,7,opt,name=pub_nonce,json=pubNonce,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_nonce,omitempty"` +} + +func (m *AssignedMember) Reset() { *m = AssignedMember{} } +func (m *AssignedMember) String() string { return proto.CompactTextString(m) } +func (*AssignedMember) ProtoMessage() {} +func (*AssignedMember) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{8} +} +func (m *AssignedMember) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AssignedMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AssignedMember.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AssignedMember) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssignedMember.Merge(m, src) +} +func (m *AssignedMember) XXX_Size() int { + return m.Size() +} +func (m *AssignedMember) XXX_DiscardUnknown() { + xxx_messageInfo_AssignedMember.DiscardUnknown(m) +} + +var xxx_messageInfo_AssignedMember proto.InternalMessageInfo + +func (m *AssignedMember) GetMemberID() MemberID { + if m != nil { + return m.MemberID + } + return 0 +} + +func (m *AssignedMember) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *AssignedMember) GetPubKey() Point { + if m != nil { + return m.PubKey + } + return nil +} + +func (m *AssignedMember) GetPubD() Point { + if m != nil { + return m.PubD + } + return nil +} + +func (m *AssignedMember) GetPubE() Point { + if m != nil { + return m.PubE + } + return nil +} + +func (m *AssignedMember) GetBindingFactor() Scalar { + if m != nil { + return m.BindingFactor + } + return nil +} + +func (m *AssignedMember) GetPubNonce() Point { + if m != nil { + return m.PubNonce + } + return nil +} + +// PendingSignings is a list of all signing processes that are currently pending. +type PendingSignings struct { + // signing_ids is a list of identifiers for the signing processes. + SigningIds []uint64 `protobuf:"varint,1,rep,packed,name=signing_ids,json=signingIds,proto3" json:"signing_ids,omitempty"` +} + +func (m *PendingSignings) Reset() { *m = PendingSignings{} } +func (m *PendingSignings) String() string { return proto.CompactTextString(m) } +func (*PendingSignings) ProtoMessage() {} +func (*PendingSignings) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{9} +} +func (m *PendingSignings) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PendingSignings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PendingSignings.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PendingSignings) XXX_Merge(src proto.Message) { + xxx_messageInfo_PendingSignings.Merge(m, src) +} +func (m *PendingSignings) XXX_Size() int { + return m.Size() +} +func (m *PendingSignings) XXX_DiscardUnknown() { + xxx_messageInfo_PendingSignings.DiscardUnknown(m) +} + +var xxx_messageInfo_PendingSignings proto.InternalMessageInfo + +func (m *PendingSignings) GetSigningIds() []uint64 { + if m != nil { + return m.SigningIds + } + return nil +} + +// Member is a type representing a member of the group. +type Member struct { + // id is the unique identifier of a member. + ID MemberID `protobuf:"varint,1,opt,name=id,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"id,omitempty"` + // group_id is the group id of this member. + GroupID GroupID `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"group_id,omitempty"` + // address is the address of the member. + Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + // pub_key is the public key of the member. + PubKey Point `protobuf:"bytes,4,opt,name=pub_key,json=pubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_key,omitempty"` + // is_malicious is a boolean flag indicating whether the member is considered malicious. + IsMalicious bool `protobuf:"varint,5,opt,name=is_malicious,json=isMalicious,proto3" json:"is_malicious,omitempty"` + // is_active is a boolean flag indicating whether the member is currently active in the protocol. + IsActive bool `protobuf:"varint,6,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` +} + +func (m *Member) Reset() { *m = Member{} } +func (m *Member) String() string { return proto.CompactTextString(m) } +func (*Member) ProtoMessage() {} +func (*Member) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{10} +} +func (m *Member) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Member.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Member) XXX_Merge(src proto.Message) { + xxx_messageInfo_Member.Merge(m, src) +} +func (m *Member) XXX_Size() int { + return m.Size() +} +func (m *Member) XXX_DiscardUnknown() { + xxx_messageInfo_Member.DiscardUnknown(m) +} + +var xxx_messageInfo_Member proto.InternalMessageInfo + +func (m *Member) GetID() MemberID { + if m != nil { + return m.ID + } + return 0 +} + +func (m *Member) GetGroupID() GroupID { + if m != nil { + return m.GroupID + } + return 0 +} + +func (m *Member) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *Member) GetPubKey() Point { + if m != nil { + return m.PubKey + } + return nil +} + +func (m *Member) GetIsMalicious() bool { + if m != nil { + return m.IsMalicious + } + return false +} + +func (m *Member) GetIsActive() bool { + if m != nil { + return m.IsActive + } + return false +} + +// Confirm is a message type used to confirm participation in the protocol. +type Confirm struct { + // member_id is the unique identifier of a group member. + MemberID MemberID `protobuf:"varint,1,opt,name=member_id,json=memberId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"member_id,omitempty"` + // own_pub_key_sig is a signature over the member's own public key. + OwnPubKeySig Signature `protobuf:"bytes,2,opt,name=own_pub_key_sig,json=ownPubKeySig,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Signature" json:"own_pub_key_sig,omitempty"` +} + +func (m *Confirm) Reset() { *m = Confirm{} } +func (m *Confirm) String() string { return proto.CompactTextString(m) } +func (*Confirm) ProtoMessage() {} +func (*Confirm) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{11} +} +func (m *Confirm) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Confirm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Confirm.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Confirm) XXX_Merge(src proto.Message) { + xxx_messageInfo_Confirm.Merge(m, src) +} +func (m *Confirm) XXX_Size() int { + return m.Size() +} +func (m *Confirm) XXX_DiscardUnknown() { + xxx_messageInfo_Confirm.DiscardUnknown(m) +} + +var xxx_messageInfo_Confirm proto.InternalMessageInfo + +func (m *Confirm) GetMemberID() MemberID { + if m != nil { + return m.MemberID + } + return 0 +} + +func (m *Confirm) GetOwnPubKeySig() Signature { + if m != nil { + return m.OwnPubKeySig + } + return nil +} + +// Complaint is a message type used to issue a complaint against a member. +type Complaint struct { + // complainant is the member issuing the complaint. + Complainant MemberID `protobuf:"varint,1,opt,name=complainant,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"complainant,omitempty"` + // respondent is the member against whom the complaint is issued. + Respondent MemberID `protobuf:"varint,2,opt,name=respondent,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"respondent,omitempty"` + // key_sym is a symmetric key between respondent's private key and respondent's public key. + KeySym Point `protobuf:"bytes,3,opt,name=key_sym,json=keySym,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"key_sym,omitempty"` + // signature is the complaint signature that can do a symmetric key validation and complaint verification. + Signature ComplaintSignature `protobuf:"bytes,4,opt,name=signature,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.ComplaintSignature" json:"signature,omitempty"` +} + +func (m *Complaint) Reset() { *m = Complaint{} } +func (m *Complaint) String() string { return proto.CompactTextString(m) } +func (*Complaint) ProtoMessage() {} +func (*Complaint) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{12} +} +func (m *Complaint) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Complaint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Complaint.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Complaint) XXX_Merge(src proto.Message) { + xxx_messageInfo_Complaint.Merge(m, src) +} +func (m *Complaint) XXX_Size() int { + return m.Size() +} +func (m *Complaint) XXX_DiscardUnknown() { + xxx_messageInfo_Complaint.DiscardUnknown(m) +} + +var xxx_messageInfo_Complaint proto.InternalMessageInfo + +func (m *Complaint) GetComplainant() MemberID { + if m != nil { + return m.Complainant + } + return 0 +} + +func (m *Complaint) GetRespondent() MemberID { + if m != nil { + return m.Respondent + } + return 0 +} + +func (m *Complaint) GetKeySym() Point { + if m != nil { + return m.KeySym + } + return nil +} + +func (m *Complaint) GetSignature() ComplaintSignature { + if m != nil { + return m.Signature + } + return nil +} + +// ComplaintWithStatus contains information about a complaint with its status. +type ComplaintWithStatus struct { + // complaint is the information about the complaint. + Complaint Complaint `protobuf:"bytes,1,opt,name=complaint,proto3" json:"complaint"` + // complaint_status is the status of the complaint. + ComplaintStatus ComplaintStatus `protobuf:"varint,2,opt,name=complaint_status,json=complaintStatus,proto3,enum=band.tss.v1beta1.ComplaintStatus" json:"complaint_status,omitempty"` +} + +func (m *ComplaintWithStatus) Reset() { *m = ComplaintWithStatus{} } +func (m *ComplaintWithStatus) String() string { return proto.CompactTextString(m) } +func (*ComplaintWithStatus) ProtoMessage() {} +func (*ComplaintWithStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{13} +} +func (m *ComplaintWithStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComplaintWithStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComplaintWithStatus.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComplaintWithStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComplaintWithStatus.Merge(m, src) +} +func (m *ComplaintWithStatus) XXX_Size() int { + return m.Size() +} +func (m *ComplaintWithStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ComplaintWithStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ComplaintWithStatus proto.InternalMessageInfo + +func (m *ComplaintWithStatus) GetComplaint() Complaint { + if m != nil { + return m.Complaint + } + return Complaint{} +} + +func (m *ComplaintWithStatus) GetComplaintStatus() ComplaintStatus { + if m != nil { + return m.ComplaintStatus + } + return COMPLAINT_STATUS_UNSPECIFIED +} + +// ComplaintsWithStatus contains information about multiple complaints and their status from a single member. +type ComplaintsWithStatus struct { + // member_id is the identifier of the member filing the complaints. + MemberID MemberID `protobuf:"varint,1,opt,name=member_id,json=memberId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"member_id,omitempty"` + // complaints_with_status is the list of complaints with their status from this member. + ComplaintsWithStatus []ComplaintWithStatus `protobuf:"bytes,2,rep,name=complaints_with_status,json=complaintsWithStatus,proto3" json:"complaints_with_status"` +} + +func (m *ComplaintsWithStatus) Reset() { *m = ComplaintsWithStatus{} } +func (m *ComplaintsWithStatus) String() string { return proto.CompactTextString(m) } +func (*ComplaintsWithStatus) ProtoMessage() {} +func (*ComplaintsWithStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{14} +} +func (m *ComplaintsWithStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComplaintsWithStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComplaintsWithStatus.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComplaintsWithStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComplaintsWithStatus.Merge(m, src) +} +func (m *ComplaintsWithStatus) XXX_Size() int { + return m.Size() +} +func (m *ComplaintsWithStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ComplaintsWithStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ComplaintsWithStatus proto.InternalMessageInfo + +func (m *ComplaintsWithStatus) GetMemberID() MemberID { + if m != nil { + return m.MemberID + } + return 0 +} + +func (m *ComplaintsWithStatus) GetComplaintsWithStatus() []ComplaintWithStatus { + if m != nil { + return m.ComplaintsWithStatus + } + return nil +} + +// PendingProcessGroups is a list of groups that are waiting to be processed. +type PendingProcessGroups struct { + // group_ids is a list of group IDs. + GroupIDs []GroupID `protobuf:"varint,1,rep,packed,name=group_ids,json=groupIds,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"group_ids,omitempty"` +} + +func (m *PendingProcessGroups) Reset() { *m = PendingProcessGroups{} } +func (m *PendingProcessGroups) String() string { return proto.CompactTextString(m) } +func (*PendingProcessGroups) ProtoMessage() {} +func (*PendingProcessGroups) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{15} +} +func (m *PendingProcessGroups) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PendingProcessGroups) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PendingProcessGroups.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PendingProcessGroups) XXX_Merge(src proto.Message) { + xxx_messageInfo_PendingProcessGroups.Merge(m, src) +} +func (m *PendingProcessGroups) XXX_Size() int { + return m.Size() +} +func (m *PendingProcessGroups) XXX_DiscardUnknown() { + xxx_messageInfo_PendingProcessGroups.DiscardUnknown(m) +} + +var xxx_messageInfo_PendingProcessGroups proto.InternalMessageInfo + +func (m *PendingProcessGroups) GetGroupIDs() []GroupID { + if m != nil { + return m.GroupIDs + } + return nil +} + +// PendingProcessSignigns is a list of signings that are waiting to be processed. +type PendingProcessSignings struct { + // signing_ids is a list of signing IDs. + SigningIDs []SigningID `protobuf:"varint,1,rep,packed,name=signing_ids,json=signingIds,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"signing_ids,omitempty"` +} + +func (m *PendingProcessSignings) Reset() { *m = PendingProcessSignings{} } +func (m *PendingProcessSignings) String() string { return proto.CompactTextString(m) } +func (*PendingProcessSignings) ProtoMessage() {} +func (*PendingProcessSignings) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{16} +} +func (m *PendingProcessSignings) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PendingProcessSignings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PendingProcessSignings.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PendingProcessSignings) XXX_Merge(src proto.Message) { + xxx_messageInfo_PendingProcessSignings.Merge(m, src) +} +func (m *PendingProcessSignings) XXX_Size() int { + return m.Size() +} +func (m *PendingProcessSignings) XXX_DiscardUnknown() { + xxx_messageInfo_PendingProcessSignings.DiscardUnknown(m) +} + +var xxx_messageInfo_PendingProcessSignings proto.InternalMessageInfo + +func (m *PendingProcessSignings) GetSigningIDs() []SigningID { + if m != nil { + return m.SigningIDs + } + return nil +} + +// PartialSignature contains information about a member's partial signature. +type PartialSignature struct { + // signing_id is the unique identifier of the signing. + SigningID SigningID `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"signing_id,omitempty"` + // signing_attempt is the number of attempts for this signing. + SigningAttempt uint64 `protobuf:"varint,2,opt,name=signing_attempt,json=signingAttempt,proto3" json:"signing_attempt,omitempty"` + // member_id is the identifier of the member providing the partial signature. + MemberID MemberID `protobuf:"varint,3,opt,name=member_id,json=memberId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"member_id,omitempty"` + // signature is the partial signature provided by this member. + Signature Signature `protobuf:"bytes,4,opt,name=signature,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Signature" json:"signature,omitempty"` +} + +func (m *PartialSignature) Reset() { *m = PartialSignature{} } +func (m *PartialSignature) String() string { return proto.CompactTextString(m) } +func (*PartialSignature) ProtoMessage() {} +func (*PartialSignature) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{17} +} +func (m *PartialSignature) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PartialSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PartialSignature.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PartialSignature) XXX_Merge(src proto.Message) { + xxx_messageInfo_PartialSignature.Merge(m, src) +} +func (m *PartialSignature) XXX_Size() int { + return m.Size() +} +func (m *PartialSignature) XXX_DiscardUnknown() { + xxx_messageInfo_PartialSignature.DiscardUnknown(m) +} + +var xxx_messageInfo_PartialSignature proto.InternalMessageInfo + +func (m *PartialSignature) GetSigningID() SigningID { + if m != nil { + return m.SigningID + } + return 0 +} + +func (m *PartialSignature) GetSigningAttempt() uint64 { + if m != nil { + return m.SigningAttempt + } + return 0 +} + +func (m *PartialSignature) GetMemberID() MemberID { + if m != nil { + return m.MemberID + } + return 0 +} + +func (m *PartialSignature) GetSignature() Signature { + if m != nil { + return m.Signature + } + return nil +} + +// TextSignatureOrder defines a general text signature order. +type TextSignatureOrder struct { + // message is the data that needs to be signed. + Message github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,1,opt,name=message,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"message,omitempty"` +} + +func (m *TextSignatureOrder) Reset() { *m = TextSignatureOrder{} } +func (m *TextSignatureOrder) String() string { return proto.CompactTextString(m) } +func (*TextSignatureOrder) ProtoMessage() {} +func (*TextSignatureOrder) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{18} +} +func (m *TextSignatureOrder) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TextSignatureOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TextSignatureOrder.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TextSignatureOrder) XXX_Merge(src proto.Message) { + xxx_messageInfo_TextSignatureOrder.Merge(m, src) +} +func (m *TextSignatureOrder) XXX_Size() int { + return m.Size() +} +func (m *TextSignatureOrder) XXX_DiscardUnknown() { + xxx_messageInfo_TextSignatureOrder.DiscardUnknown(m) +} + +var xxx_messageInfo_TextSignatureOrder proto.InternalMessageInfo + +func (m *TextSignatureOrder) GetMessage() github_com_cometbft_cometbft_libs_bytes.HexBytes { + if m != nil { + return m.Message + } + return nil +} + +// EVMSignature defines a signature in the EVM format. +type EVMSignature struct { + // r_address is the address of the nonce for using in the contract. + RAddress github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,1,opt,name=r_address,json=rAddress,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"r_address,omitempty"` + // signature is the signature part for using in the contract. + Signature github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,2,opt,name=signature,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"signature,omitempty"` +} + +func (m *EVMSignature) Reset() { *m = EVMSignature{} } +func (m *EVMSignature) String() string { return proto.CompactTextString(m) } +func (*EVMSignature) ProtoMessage() {} +func (*EVMSignature) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{19} +} +func (m *EVMSignature) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EVMSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EVMSignature.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EVMSignature) XXX_Merge(src proto.Message) { + xxx_messageInfo_EVMSignature.Merge(m, src) +} +func (m *EVMSignature) XXX_Size() int { + return m.Size() +} +func (m *EVMSignature) XXX_DiscardUnknown() { + xxx_messageInfo_EVMSignature.DiscardUnknown(m) +} + +var xxx_messageInfo_EVMSignature proto.InternalMessageInfo + +func (m *EVMSignature) GetRAddress() github_com_cometbft_cometbft_libs_bytes.HexBytes { + if m != nil { + return m.RAddress + } + return nil +} + +func (m *EVMSignature) GetSignature() github_com_cometbft_cometbft_libs_bytes.HexBytes { + if m != nil { + return m.Signature + } + return nil +} + +// SigningResult is a tss signing result from querying tss signing information. +type SigningResult struct { + // signing is the tss signing result. + Signing Signing `protobuf:"bytes,1,opt,name=signing,proto3" json:"signing"` + // current_signing_attempt is the current attempt information of the signing. + CurrentSigningAttempt *SigningAttempt `protobuf:"bytes,2,opt,name=current_signing_attempt,json=currentSigningAttempt,proto3" json:"current_signing_attempt,omitempty"` + // evm_signature is the signature in the format that can use directly in EVM. + EVMSignature *EVMSignature `protobuf:"bytes,3,opt,name=evm_signature,json=evmSignature,proto3" json:"evm_signature,omitempty"` + // received_partial_signatures is a list of received partial signatures. + ReceivedPartialSignatures []PartialSignature `protobuf:"bytes,4,rep,name=received_partial_signatures,json=receivedPartialSignatures,proto3" json:"received_partial_signatures"` +} + +func (m *SigningResult) Reset() { *m = SigningResult{} } +func (m *SigningResult) String() string { return proto.CompactTextString(m) } +func (*SigningResult) ProtoMessage() {} +func (*SigningResult) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{20} +} +func (m *SigningResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SigningResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SigningResult.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SigningResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_SigningResult.Merge(m, src) +} +func (m *SigningResult) XXX_Size() int { + return m.Size() +} +func (m *SigningResult) XXX_DiscardUnknown() { + xxx_messageInfo_SigningResult.DiscardUnknown(m) +} + +var xxx_messageInfo_SigningResult proto.InternalMessageInfo + +func (m *SigningResult) GetSigning() Signing { + if m != nil { + return m.Signing + } + return Signing{} +} + +func (m *SigningResult) GetCurrentSigningAttempt() *SigningAttempt { + if m != nil { + return m.CurrentSigningAttempt + } + return nil +} + +func (m *SigningResult) GetEVMSignature() *EVMSignature { + if m != nil { + return m.EVMSignature + } + return nil +} + +func (m *SigningResult) GetReceivedPartialSignatures() []PartialSignature { + if m != nil { + return m.ReceivedPartialSignatures + } + return nil +} + +// SigningExpiration defines the expiration time of the signing. +type SigningExpiration struct { + // signing_id is the id of the signing. + SigningID SigningID `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"signing_id,omitempty"` + // signing_attempt is the number of attempts of the signing. + SigningAttempt uint64 `protobuf:"varint,2,opt,name=signing_attempt,json=signingAttempt,proto3" json:"signing_attempt,omitempty"` +} + +func (m *SigningExpiration) Reset() { *m = SigningExpiration{} } +func (m *SigningExpiration) String() string { return proto.CompactTextString(m) } +func (*SigningExpiration) ProtoMessage() {} +func (*SigningExpiration) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{21} +} +func (m *SigningExpiration) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SigningExpiration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SigningExpiration.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SigningExpiration) XXX_Merge(src proto.Message) { + xxx_messageInfo_SigningExpiration.Merge(m, src) +} +func (m *SigningExpiration) XXX_Size() int { + return m.Size() +} +func (m *SigningExpiration) XXX_DiscardUnknown() { + xxx_messageInfo_SigningExpiration.DiscardUnknown(m) +} + +var xxx_messageInfo_SigningExpiration proto.InternalMessageInfo + +func (m *SigningExpiration) GetSigningID() SigningID { + if m != nil { + return m.SigningID + } + return 0 +} + +func (m *SigningExpiration) GetSigningAttempt() uint64 { + if m != nil { + return m.SigningAttempt + } + return 0 +} + +// SigningExpirations is a list of signing expiration information that are waiting in the queue. +type SigningExpirations struct { + // signing_expirations is a list of SigningExpiration object. + SigningExpirations []SigningExpiration `protobuf:"bytes,1,rep,name=signing_expirations,json=signingExpirations,proto3" json:"signing_expirations"` +} + +func (m *SigningExpirations) Reset() { *m = SigningExpirations{} } +func (m *SigningExpirations) String() string { return proto.CompactTextString(m) } +func (*SigningExpirations) ProtoMessage() {} +func (*SigningExpirations) Descriptor() ([]byte, []int) { + return fileDescriptor_26231ff63bcc8f4b, []int{22} +} +func (m *SigningExpirations) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SigningExpirations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SigningExpirations.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SigningExpirations) XXX_Merge(src proto.Message) { + xxx_messageInfo_SigningExpirations.Merge(m, src) +} +func (m *SigningExpirations) XXX_Size() int { + return m.Size() +} +func (m *SigningExpirations) XXX_DiscardUnknown() { + xxx_messageInfo_SigningExpirations.DiscardUnknown(m) +} + +var xxx_messageInfo_SigningExpirations proto.InternalMessageInfo + +func (m *SigningExpirations) GetSigningExpirations() []SigningExpiration { + if m != nil { + return m.SigningExpirations + } + return nil +} + +func init() { + proto.RegisterEnum("band.tss.v1beta1.SigningStatus", SigningStatus_name, SigningStatus_value) + proto.RegisterEnum("band.tss.v1beta1.GroupStatus", GroupStatus_name, GroupStatus_value) + proto.RegisterEnum("band.tss.v1beta1.ComplaintStatus", ComplaintStatus_name, ComplaintStatus_value) + proto.RegisterType((*Group)(nil), "band.tss.v1beta1.Group") + proto.RegisterType((*GroupResult)(nil), "band.tss.v1beta1.GroupResult") + proto.RegisterType((*Round1Info)(nil), "band.tss.v1beta1.Round1Info") + proto.RegisterType((*Round2Info)(nil), "band.tss.v1beta1.Round2Info") + proto.RegisterType((*DE)(nil), "band.tss.v1beta1.DE") + proto.RegisterType((*DEQueue)(nil), "band.tss.v1beta1.DEQueue") + proto.RegisterType((*Signing)(nil), "band.tss.v1beta1.Signing") + proto.RegisterType((*SigningAttempt)(nil), "band.tss.v1beta1.SigningAttempt") + proto.RegisterType((*AssignedMember)(nil), "band.tss.v1beta1.AssignedMember") + proto.RegisterType((*PendingSignings)(nil), "band.tss.v1beta1.PendingSignings") + proto.RegisterType((*Member)(nil), "band.tss.v1beta1.Member") + proto.RegisterType((*Confirm)(nil), "band.tss.v1beta1.Confirm") + proto.RegisterType((*Complaint)(nil), "band.tss.v1beta1.Complaint") + proto.RegisterType((*ComplaintWithStatus)(nil), "band.tss.v1beta1.ComplaintWithStatus") + proto.RegisterType((*ComplaintsWithStatus)(nil), "band.tss.v1beta1.ComplaintsWithStatus") + proto.RegisterType((*PendingProcessGroups)(nil), "band.tss.v1beta1.PendingProcessGroups") + proto.RegisterType((*PendingProcessSignings)(nil), "band.tss.v1beta1.PendingProcessSignings") + proto.RegisterType((*PartialSignature)(nil), "band.tss.v1beta1.PartialSignature") + proto.RegisterType((*TextSignatureOrder)(nil), "band.tss.v1beta1.TextSignatureOrder") + proto.RegisterType((*EVMSignature)(nil), "band.tss.v1beta1.EVMSignature") + proto.RegisterType((*SigningResult)(nil), "band.tss.v1beta1.SigningResult") + proto.RegisterType((*SigningExpiration)(nil), "band.tss.v1beta1.SigningExpiration") + proto.RegisterType((*SigningExpirations)(nil), "band.tss.v1beta1.SigningExpirations") +} + +func init() { proto.RegisterFile("band/tss/v1beta1/tss.proto", fileDescriptor_26231ff63bcc8f4b) } + +var fileDescriptor_26231ff63bcc8f4b = []byte{ + // 2007 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0x4f, 0x6f, 0xdb, 0xc8, + 0x15, 0x37, 0x25, 0xd9, 0x92, 0x9e, 0x64, 0x5b, 0x3b, 0x71, 0x62, 0xd9, 0x71, 0x25, 0x87, 0xc5, + 0x76, 0x8d, 0x45, 0x6b, 0xc5, 0x72, 0xb7, 0xdd, 0x6e, 0x16, 0x48, 0x25, 0x4b, 0xf1, 0x6a, 0xe3, + 0xd8, 0x0e, 0x25, 0x27, 0x5b, 0x17, 0x5b, 0x82, 0x22, 0xc7, 0x12, 0x61, 0x91, 0x54, 0x39, 0x23, + 0xc7, 0xee, 0xa5, 0xd7, 0x1c, 0x73, 0xda, 0x73, 0x81, 0xf6, 0x50, 0xec, 0xb9, 0xfd, 0x0e, 0x41, + 0x7b, 0x59, 0xa0, 0x28, 0xb0, 0xbd, 0x28, 0x85, 0x82, 0xa2, 0xe8, 0xad, 0x67, 0x9f, 0x0a, 0x0e, + 0x87, 0xa4, 0x64, 0xc9, 0x59, 0x47, 0x4a, 0x82, 0xde, 0x38, 0xef, 0xbd, 0xf9, 0xcd, 0x9b, 0x37, + 0xef, 0xaf, 0x04, 0xcb, 0x75, 0xc5, 0xd4, 0x72, 0x94, 0x90, 0xdc, 0xc9, 0x46, 0x1d, 0x53, 0x65, + 0xc3, 0xf9, 0x5e, 0x6f, 0xdb, 0x16, 0xb5, 0x50, 0xca, 0xe1, 0xad, 0x3b, 0x6b, 0xce, 0x5b, 0x5e, + 0x68, 0x58, 0x0d, 0x8b, 0x31, 0x73, 0xce, 0x97, 0x2b, 0xb7, 0xbc, 0xa4, 0x5a, 0xc4, 0xb0, 0x88, + 0xec, 0x32, 0xdc, 0x05, 0x67, 0x65, 0x1b, 0x96, 0xd5, 0x68, 0xe1, 0x1c, 0x5b, 0xd5, 0x3b, 0x47, + 0x39, 0xaa, 0x1b, 0x98, 0x50, 0xc5, 0x68, 0xbb, 0x02, 0xe2, 0xdf, 0x42, 0x30, 0xbd, 0x6d, 0x5b, + 0x9d, 0x36, 0xfa, 0x1c, 0x42, 0xba, 0x96, 0x16, 0x56, 0x85, 0xb5, 0x48, 0xf1, 0x93, 0x5e, 0x37, + 0x1b, 0xaa, 0x94, 0xce, 0xbb, 0xd9, 0xdb, 0x0d, 0x9d, 0x36, 0x3b, 0xf5, 0x75, 0xd5, 0x32, 0x72, + 0x8e, 0x3a, 0x6c, 0x97, 0x6a, 0xb5, 0x72, 0x6a, 0x53, 0xd1, 0xcd, 0xdc, 0xc9, 0x66, 0xae, 0x7d, + 0xdc, 0x60, 0x3a, 0x33, 0x94, 0x4a, 0x49, 0x0a, 0xe9, 0x1a, 0x42, 0x10, 0x21, 0xfa, 0x6f, 0x70, + 0x3a, 0xe4, 0xa0, 0x49, 0xec, 0x1b, 0xad, 0x40, 0x9c, 0x36, 0x6d, 0x4c, 0x9a, 0x56, 0x4b, 0x4b, + 0x87, 0x19, 0x23, 0x20, 0xa0, 0xfb, 0x10, 0x6d, 0x77, 0xea, 0xf2, 0x31, 0x3e, 0x4b, 0x47, 0x56, + 0x85, 0xb5, 0x64, 0x31, 0x7f, 0xde, 0xcd, 0xae, 0x5f, 0xf9, 0xf0, 0x7d, 0x4b, 0x37, 0xa9, 0x34, + 0xd3, 0xee, 0xd4, 0xef, 0xe3, 0x33, 0xf4, 0x11, 0xcc, 0x10, 0xaa, 0xd0, 0x0e, 0x49, 0x4f, 0xaf, + 0x0a, 0x6b, 0x73, 0xf9, 0xef, 0xad, 0x5f, 0xb4, 0xa4, 0xab, 0x6d, 0x95, 0x09, 0x49, 0x5c, 0x18, + 0xbd, 0x0f, 0x73, 0xaa, 0x8d, 0x15, 0x8a, 0x35, 0xb9, 0x89, 0xf5, 0x46, 0x93, 0xa6, 0x67, 0x98, + 0x9a, 0xb3, 0x9c, 0xfa, 0x19, 0x23, 0xa2, 0x5b, 0x90, 0x34, 0x2c, 0xad, 0xd3, 0xc2, 0xb2, 0xf5, + 0xc4, 0xc4, 0x76, 0x3a, 0xba, 0x2a, 0xac, 0xc5, 0xa5, 0x84, 0x4b, 0xdb, 0x73, 0x48, 0xe2, 0xb3, + 0x08, 0x24, 0xd8, 0x09, 0x12, 0x26, 0x9d, 0x16, 0x45, 0x9b, 0x30, 0xdd, 0x70, 0x96, 0xcc, 0xbc, + 0x89, 0xfc, 0xe2, 0x25, 0xfa, 0x14, 0x23, 0xcf, 0xbb, 0xd9, 0x29, 0xc9, 0x95, 0x45, 0x2a, 0x24, + 0xb4, 0xe3, 0x86, 0xac, 0x5a, 0x26, 0xc5, 0xa7, 0x94, 0xd9, 0x32, 0x59, 0x2c, 0xf6, 0xba, 0x59, + 0x28, 0xdd, 0xdf, 0xde, 0x72, 0xa9, 0x17, 0x5e, 0x48, 0xb5, 0x0c, 0x4c, 0xeb, 0x47, 0x34, 0xf8, + 0x68, 0xe9, 0x75, 0x92, 0xab, 0x9f, 0x51, 0x4c, 0xd6, 0x3f, 0xc3, 0xa7, 0x45, 0xe7, 0x43, 0x02, + 0xed, 0xb8, 0xc1, 0xf7, 0xa3, 0x8f, 0x21, 0x6a, 0x60, 0xa3, 0x8e, 0x6d, 0x92, 0x0e, 0xaf, 0x86, + 0xd7, 0x12, 0xf9, 0xf4, 0xb0, 0x6e, 0x0f, 0x98, 0x00, 0x57, 0xce, 0x13, 0x47, 0x65, 0x48, 0xda, + 0x56, 0xc7, 0xd4, 0x36, 0x64, 0xdd, 0x3c, 0xb2, 0x48, 0x3a, 0xc2, 0xb6, 0xaf, 0x0c, 0x6f, 0x97, + 0x98, 0x54, 0xc5, 0x3c, 0xb2, 0x38, 0x44, 0xc2, 0xf6, 0x29, 0x01, 0x4c, 0x9e, 0xc3, 0x4c, 0xbf, + 0x12, 0x26, 0x3f, 0x04, 0x93, 0x77, 0x61, 0xea, 0x70, 0x43, 0xb5, 0x8c, 0x76, 0x4b, 0xd1, 0x4d, + 0x4a, 0xe4, 0x27, 0x3a, 0x6d, 0xca, 0xdc, 0x05, 0x66, 0x18, 0xe0, 0x0f, 0x86, 0x01, 0xb7, 0x7c, + 0xf9, 0xc7, 0x3a, 0x6d, 0xba, 0xbe, 0xc0, 0xa1, 0x17, 0xd4, 0x11, 0x3c, 0x74, 0x07, 0x62, 0xaa, + 0x65, 0x1e, 0xe9, 0xb6, 0x41, 0xd2, 0x51, 0x86, 0xba, 0x34, 0x0a, 0x95, 0x49, 0x70, 0x20, 0x7f, + 0x83, 0xf8, 0xdf, 0x30, 0x40, 0x60, 0x09, 0xf4, 0x2b, 0x88, 0xbb, 0x86, 0x94, 0xfd, 0xa0, 0x2b, + 0xf4, 0xba, 0xd9, 0x98, 0x6b, 0x6b, 0x16, 0x7a, 0x1b, 0x57, 0xf6, 0x7e, 0x6f, 0x93, 0x14, 0x73, + 0x31, 0x2b, 0x1a, 0xd2, 0xe0, 0x9a, 0x6a, 0xe1, 0xa3, 0x23, 0x5d, 0xd5, 0xb1, 0x49, 0x65, 0xd5, + 0x32, 0x0c, 0x9d, 0x92, 0x74, 0x68, 0x35, 0xbc, 0x96, 0x2c, 0x6e, 0x7e, 0xfd, 0x22, 0x9b, 0x7b, + 0xbd, 0xd8, 0x22, 0x12, 0xea, 0xc3, 0xdb, 0x72, 0xe1, 0xd0, 0x2f, 0x21, 0x65, 0x99, 0x58, 0x76, + 0x92, 0x8a, 0xec, 0x85, 0x6f, 0x78, 0xec, 0xf0, 0x9d, 0xb5, 0x4c, 0x5c, 0xd3, 0x0d, 0xbc, 0xef, + 0x46, 0xf1, 0x2f, 0x20, 0xa9, 0xdc, 0x96, 0x89, 0xde, 0x30, 0x15, 0xda, 0xb1, 0x31, 0xcf, 0x0b, + 0x3f, 0x39, 0xef, 0x66, 0xf3, 0x57, 0x06, 0xae, 0x7a, 0xbb, 0xa5, 0x84, 0x72, 0xdb, 0x5f, 0x20, + 0x0d, 0x90, 0xaf, 0x77, 0x70, 0xc0, 0xf4, 0x44, 0x07, 0xa4, 0xb8, 0xf6, 0x3e, 0x45, 0xec, 0x09, + 0xfc, 0xc9, 0xf3, 0xef, 0xe4, 0xc9, 0x29, 0x2c, 0x62, 0x53, 0xb5, 0xcf, 0xda, 0x4e, 0x02, 0x23, + 0x58, 0xb5, 0x31, 0x95, 0x49, 0x53, 0xb1, 0xb1, 0xf7, 0xec, 0x9f, 0x7e, 0xfd, 0x22, 0xfb, 0xf1, + 0x95, 0x4f, 0x28, 0x9b, 0x6a, 0x95, 0x81, 0x54, 0x19, 0x86, 0x74, 0xdd, 0x07, 0xef, 0x27, 0x8b, + 0x5f, 0x09, 0x10, 0x2a, 0x95, 0xd1, 0x36, 0x4c, 0x3b, 0x0e, 0xe0, 0x5e, 0x6c, 0xbc, 0xe7, 0x8f, + 0xb4, 0x3b, 0xf5, 0x92, 0x07, 0x84, 0x79, 0xbe, 0x1b, 0x17, 0xa8, 0x2c, 0x6e, 0x40, 0xb4, 0x54, + 0x7e, 0xd8, 0xc1, 0x1d, 0xec, 0x94, 0xa3, 0x26, 0x56, 0xb8, 0xd1, 0x25, 0xf6, 0xed, 0xd0, 0xa8, + 0xa2, 0xb7, 0xbc, 0x12, 0xe5, 0x7c, 0x8b, 0xff, 0x99, 0x86, 0xa8, 0xf3, 0x7c, 0xba, 0xd9, 0x40, + 0x3b, 0x7d, 0xe5, 0xf0, 0x53, 0xbf, 0x1c, 0xbe, 0x9e, 0x63, 0xe8, 0x66, 0x83, 0x17, 0xc4, 0x0f, + 0x60, 0x5e, 0xed, 0xd8, 0xb6, 0x13, 0x8a, 0x0a, 0xa5, 0xd8, 0x68, 0x53, 0x7e, 0xf0, 0x1c, 0x27, + 0x17, 0x5c, 0x2a, 0x3a, 0x84, 0x18, 0xcb, 0xfe, 0x8e, 0x8f, 0xb0, 0x22, 0x59, 0xbc, 0xdb, 0xeb, + 0x66, 0xa3, 0xbc, 0xb8, 0x8e, 0x55, 0x90, 0xa3, 0x0c, 0xb0, 0xa2, 0xa1, 0x47, 0x30, 0xeb, 0x62, + 0x4f, 0x5e, 0x69, 0x13, 0x0c, 0x88, 0x07, 0xea, 0xae, 0x53, 0x43, 0x08, 0x51, 0x1a, 0x5e, 0x08, + 0xfd, 0x78, 0xac, 0xb2, 0xe4, 0x81, 0xa0, 0x43, 0x98, 0x0f, 0xf4, 0x34, 0x2d, 0x53, 0xc5, 0xac, + 0x10, 0x8f, 0x99, 0x54, 0x3c, 0x4d, 0x77, 0x1d, 0x20, 0x54, 0x83, 0x78, 0x10, 0xf0, 0xd1, 0x89, + 0x02, 0x3e, 0x00, 0x42, 0x3f, 0xf5, 0x1b, 0x8e, 0x18, 0x6b, 0x38, 0xb2, 0xc3, 0x75, 0x81, 0xfb, + 0xc3, 0x77, 0xb6, 0x1c, 0xf1, 0x51, 0x2d, 0xc7, 0x43, 0x78, 0xcf, 0x13, 0xf3, 0x1b, 0xb8, 0x34, + 0xb0, 0x5e, 0x62, 0x79, 0xdd, 0x6d, 0xf1, 0xd6, 0xbd, 0x16, 0x6f, 0xbd, 0xe6, 0x49, 0x14, 0x63, + 0x4e, 0x0d, 0x7a, 0xf6, 0x22, 0x2b, 0x48, 0x29, 0xbe, 0xdd, 0xe7, 0x89, 0x4f, 0x43, 0x30, 0xc7, + 0x75, 0xf2, 0x7c, 0xaf, 0x0e, 0x40, 0x5c, 0x4a, 0x90, 0xa1, 0xb6, 0x7a, 0xdd, 0x6c, 0xdc, 0xf7, + 0xe5, 0x31, 0x23, 0x20, 0xce, 0x61, 0x2b, 0x1a, 0x4a, 0x43, 0x74, 0x30, 0x00, 0xbc, 0xa5, 0x63, + 0x0a, 0x7c, 0xda, 0xd6, 0xed, 0xc0, 0x14, 0x6e, 0x93, 0x38, 0xcb, 0xa9, 0xbe, 0x29, 0x52, 0x0a, + 0x71, 0xf0, 0xb0, 0x26, 0x7b, 0x9d, 0x8b, 0xdb, 0x7a, 0xac, 0x0e, 0x1b, 0xbd, 0xc0, 0x25, 0x07, + 0x3a, 0x98, 0x79, 0x65, 0x80, 0x4a, 0xc4, 0xaf, 0x22, 0x30, 0x37, 0x28, 0xf9, 0xd6, 0x73, 0xb5, + 0x63, 0x06, 0x4d, 0xb3, 0x31, 0x21, 0xcc, 0x0c, 0x71, 0xc9, 0x5b, 0xf6, 0x37, 0xc2, 0xe1, 0x89, + 0x1b, 0x61, 0x3f, 0x2b, 0x47, 0xde, 0x54, 0x56, 0x9e, 0x9e, 0x2c, 0x2b, 0xa3, 0x43, 0x98, 0xab, + 0xeb, 0xa6, 0xe6, 0xf8, 0xd8, 0x91, 0xa2, 0x52, 0xcb, 0xe6, 0xa1, 0xbd, 0x79, 0xde, 0x7d, 0x8d, + 0x96, 0xa4, 0xaa, 0x2a, 0x2d, 0xc5, 0x96, 0x66, 0x39, 0xd4, 0x3d, 0x86, 0x84, 0xf6, 0x20, 0x1e, + 0x64, 0x8c, 0xe8, 0xd8, 0x8a, 0xc6, 0xda, 0x3c, 0x59, 0x88, 0x79, 0x98, 0xdf, 0xc7, 0xec, 0x04, + 0xee, 0xcb, 0x04, 0x65, 0x21, 0x11, 0xc4, 0x08, 0x49, 0x0b, 0xab, 0xe1, 0xb5, 0x88, 0x04, 0xbe, + 0x7f, 0x13, 0xf1, 0xdb, 0x10, 0xcc, 0x70, 0x27, 0xba, 0xdf, 0x57, 0x42, 0xee, 0xf8, 0x25, 0x64, + 0x0c, 0xbf, 0x71, 0x2a, 0x48, 0x7f, 0x61, 0x08, 0xbd, 0xe1, 0xc2, 0xd0, 0xe7, 0x8d, 0xe1, 0x4b, + 0xbd, 0x71, 0xf2, 0xb1, 0xec, 0x16, 0x24, 0x75, 0x22, 0x1b, 0x4a, 0x4b, 0x57, 0x75, 0x8b, 0x0f, + 0x67, 0x31, 0x29, 0xa1, 0x93, 0x07, 0x1e, 0x09, 0xdd, 0x84, 0xb8, 0x4e, 0x64, 0x45, 0xa5, 0xfa, + 0x89, 0x9b, 0xf4, 0x63, 0x52, 0x4c, 0x27, 0x05, 0xb6, 0x16, 0x9f, 0x0b, 0x10, 0xe5, 0xed, 0xf5, + 0x5b, 0x0f, 0xd0, 0x2f, 0x61, 0xde, 0x7a, 0x62, 0x7a, 0x95, 0xd2, 0x69, 0x12, 0x79, 0x43, 0x32, + 0x6e, 0xb5, 0x48, 0x5a, 0x4f, 0x4c, 0xb7, 0x5e, 0x56, 0xf5, 0x86, 0xf8, 0xef, 0x10, 0xc4, 0xfd, + 0xf9, 0x03, 0x3d, 0x86, 0x84, 0x37, 0x70, 0x28, 0x26, 0xe5, 0xd7, 0xf9, 0x68, 0xbc, 0x2b, 0xf4, + 0x23, 0xa1, 0x03, 0x00, 0x1b, 0x93, 0xb6, 0x65, 0x6a, 0xd8, 0xe4, 0x09, 0x77, 0x5c, 0xdc, 0x3e, + 0x20, 0xc7, 0x2b, 0x98, 0x51, 0xce, 0x8c, 0x49, 0x72, 0xd4, 0x31, 0x3e, 0xab, 0x9e, 0x19, 0xe8, + 0xcb, 0xfe, 0x8a, 0xec, 0x3a, 0xd9, 0xdd, 0xf3, 0x6e, 0xf6, 0xce, 0x95, 0xe1, 0x7c, 0x3b, 0x8e, + 0x2a, 0xcd, 0xe2, 0x1f, 0x04, 0xb8, 0xe6, 0x4b, 0xf4, 0x0d, 0x73, 0x77, 0x21, 0xee, 0x0f, 0x79, + 0x7c, 0x2c, 0xbf, 0xf9, 0x8a, 0x19, 0x91, 0xd7, 0x8e, 0x60, 0x0f, 0xda, 0x81, 0x94, 0xbf, 0xf0, + 0x66, 0xcd, 0x10, 0xab, 0xfe, 0xb7, 0x5e, 0x81, 0xc3, 0xeb, 0xff, 0xbc, 0x3a, 0x48, 0x10, 0xff, + 0x21, 0xc0, 0xc2, 0xa8, 0x81, 0xf4, 0xad, 0x3b, 0xba, 0x72, 0xe9, 0xe0, 0x1c, 0x62, 0x55, 0xf5, + 0xfd, 0x57, 0x5c, 0xe6, 0x6a, 0x73, 0xb3, 0xd8, 0x81, 0x05, 0x9e, 0x46, 0xf7, 0x6d, 0x4b, 0xc5, + 0x84, 0xb0, 0x04, 0x44, 0x9c, 0x97, 0xf7, 0x52, 0x1a, 0xcf, 0xa4, 0xc5, 0x9f, 0x3b, 0x57, 0xe3, + 0xf9, 0x89, 0x8c, 0x95, 0xd4, 0x62, 0x3c, 0xa9, 0x11, 0xf1, 0xb7, 0x70, 0x63, 0xf0, 0x58, 0x3f, + 0x89, 0xe3, 0x11, 0x49, 0xbc, 0x58, 0xea, 0x75, 0xb3, 0xe0, 0xf7, 0x2c, 0x64, 0xcc, 0x56, 0xa7, + 0xbf, 0x14, 0xfc, 0x3d, 0x04, 0xa9, 0x7d, 0xc5, 0xa6, 0xba, 0xd2, 0x0a, 0x46, 0xcf, 0x77, 0xd1, + 0x64, 0x7d, 0x00, 0xf3, 0xde, 0x19, 0x17, 0xa6, 0x0d, 0x32, 0xd8, 0xf1, 0x0d, 0x38, 0x57, 0xf8, + 0xcd, 0x3b, 0x57, 0x6d, 0x38, 0xb6, 0x27, 0xef, 0xb6, 0xc5, 0x5f, 0x03, 0xaa, 0xe1, 0xd3, 0x20, + 0xdc, 0xf7, 0x6c, 0x0d, 0xdb, 0xfd, 0x53, 0x88, 0xf0, 0x06, 0xa6, 0x90, 0x4f, 0x12, 0x7f, 0xf9, + 0xd3, 0x8f, 0xa2, 0xec, 0x67, 0x32, 0x93, 0x8a, 0x7f, 0x16, 0x20, 0x59, 0x7e, 0xf4, 0x20, 0x78, + 0xc6, 0x87, 0x10, 0xb7, 0x65, 0xaf, 0x68, 0x4e, 0x72, 0x5e, 0xcc, 0x2e, 0xf0, 0x5a, 0x2b, 0xf5, + 0x1b, 0x2b, 0x34, 0x01, 0x64, 0x9f, 0xa9, 0xfe, 0x15, 0x82, 0x59, 0xee, 0x22, 0xfc, 0xa7, 0xc8, + 0x9f, 0x41, 0x94, 0x3b, 0x01, 0xcf, 0x7a, 0x4b, 0x97, 0xce, 0x2a, 0xde, 0x2f, 0x7e, 0x5c, 0x1e, + 0x7d, 0x01, 0x8b, 0xde, 0x10, 0x3b, 0xca, 0xbd, 0x46, 0x76, 0xe0, 0x83, 0x23, 0x86, 0x74, 0x9d, + 0x03, 0x5c, 0x98, 0x3c, 0x0e, 0x60, 0x16, 0x9f, 0x18, 0x7d, 0x3f, 0xc5, 0x84, 0x19, 0x5e, 0x66, + 0x18, 0xaf, 0xff, 0x11, 0x8a, 0xa9, 0x5e, 0x37, 0x3b, 0xf0, 0x2c, 0x52, 0x12, 0x9f, 0x18, 0xc1, + 0x23, 0x35, 0xe1, 0xa6, 0x8d, 0x55, 0xac, 0x9f, 0x60, 0x4d, 0x6e, 0xbb, 0x81, 0x18, 0x9c, 0xe1, + 0x8d, 0x0d, 0xe2, 0xf0, 0x21, 0x17, 0x83, 0x96, 0x1b, 0x62, 0xc9, 0x03, 0xbb, 0xc8, 0x27, 0xe2, + 0xef, 0x04, 0x78, 0x8f, 0xdf, 0xa9, 0xec, 0x8c, 0x2b, 0x0a, 0xd5, 0x2d, 0xf3, 0xff, 0x2a, 0xd6, + 0xc5, 0x36, 0xa0, 0x21, 0x0d, 0x09, 0x3a, 0x84, 0x6b, 0xde, 0x76, 0x1c, 0x90, 0x59, 0x4a, 0x4c, + 0xe4, 0xbf, 0x7f, 0xe9, 0x7b, 0x06, 0x10, 0xdc, 0x36, 0x88, 0x0c, 0x61, 0x7f, 0xf8, 0x54, 0xf0, + 0x9d, 0x8f, 0x17, 0xb3, 0x0c, 0x2c, 0x57, 0x2b, 0xdb, 0xbb, 0x95, 0xdd, 0x6d, 0xb9, 0x5a, 0x2b, + 0xd4, 0x0e, 0xaa, 0xf2, 0xc1, 0x6e, 0x75, 0xbf, 0xbc, 0x55, 0xb9, 0x57, 0x29, 0x97, 0x52, 0x53, + 0x68, 0x19, 0x6e, 0x5c, 0xe0, 0x3f, 0x2e, 0x54, 0x6a, 0x95, 0xdd, 0xed, 0x94, 0x30, 0x82, 0x57, + 0x3d, 0xd8, 0xda, 0x2a, 0x57, 0xab, 0xa9, 0x10, 0x5a, 0x82, 0xeb, 0x17, 0x78, 0xf7, 0x0a, 0x3b, + 0x3b, 0xe5, 0xdd, 0x54, 0x78, 0x39, 0xf2, 0xf4, 0xf7, 0x99, 0xa9, 0x0f, 0xff, 0x2a, 0xf0, 0x1f, + 0xe4, 0xb9, 0x22, 0x2b, 0x90, 0xde, 0x96, 0xf6, 0x0e, 0xf6, 0x47, 0xab, 0x91, 0x86, 0x85, 0x01, + 0xae, 0xb4, 0x77, 0xb0, 0x5b, 0x92, 0x37, 0x52, 0xc2, 0x25, 0x9c, 0x7c, 0x2a, 0x74, 0x09, 0x67, + 0x33, 0x15, 0x46, 0x8b, 0x70, 0x6d, 0x80, 0x53, 0xd8, 0xaa, 0x55, 0x1e, 0x95, 0x53, 0x91, 0xa1, + 0x2d, 0xe5, 0x2f, 0xf6, 0x2b, 0x52, 0xb9, 0x94, 0x9a, 0x1e, 0xda, 0xc2, 0x6f, 0x33, 0xc3, 0x6f, + 0x43, 0x61, 0xfe, 0x42, 0x43, 0x81, 0x56, 0x61, 0x65, 0x6b, 0xef, 0xc1, 0xfe, 0x4e, 0xa1, 0xb2, + 0x5b, 0x1b, 0x7d, 0xa9, 0x15, 0x48, 0x0f, 0x49, 0x78, 0x16, 0x14, 0xd0, 0x4d, 0x58, 0x1c, 0xe2, + 0xde, 0x2b, 0x54, 0x76, 0xca, 0xa5, 0x54, 0xc8, 0x3d, 0xb5, 0xf8, 0xf9, 0x1f, 0x7b, 0x19, 0xe1, + 0x79, 0x2f, 0x23, 0x7c, 0xd3, 0xcb, 0x08, 0xff, 0xec, 0x65, 0x84, 0x67, 0x2f, 0x33, 0x53, 0xdf, + 0xbc, 0xcc, 0x4c, 0x7d, 0xfb, 0x32, 0x33, 0x75, 0xf8, 0xc3, 0xef, 0x74, 0xe3, 0x53, 0xf6, 0x37, + 0x17, 0x3d, 0x6b, 0x63, 0x52, 0x9f, 0x61, 0xec, 0xcd, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x55, + 0x02, 0x06, 0x92, 0xff, 0x1a, 0x00, 0x00, +} + +func (this *Group) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Group) + if !ok { + that2, ok := that.(Group) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.ID != that1.ID { + return false + } + if this.Size_ != that1.Size_ { + return false + } + if this.Threshold != that1.Threshold { + return false + } + if !bytes.Equal(this.PubKey, that1.PubKey) { + return false + } + if this.Status != that1.Status { + return false + } + if this.CreatedHeight != that1.CreatedHeight { + return false + } + if this.ModuleOwner != that1.ModuleOwner { + return false + } + return true +} +func (this *GroupResult) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*GroupResult) + if !ok { + that2, ok := that.(GroupResult) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.Group.Equal(&that1.Group) { + return false + } + if !bytes.Equal(this.DKGContext, that1.DKGContext) { + return false + } + if len(this.Members) != len(that1.Members) { + return false + } + for i := range this.Members { + if !this.Members[i].Equal(&that1.Members[i]) { + return false + } + } + if len(this.Round1Infos) != len(that1.Round1Infos) { + return false + } + for i := range this.Round1Infos { + if !this.Round1Infos[i].Equal(&that1.Round1Infos[i]) { + return false + } + } + if len(this.Round2Infos) != len(that1.Round2Infos) { + return false + } + for i := range this.Round2Infos { + if !this.Round2Infos[i].Equal(&that1.Round2Infos[i]) { + return false + } + } + if len(this.ComplaintsWithStatus) != len(that1.ComplaintsWithStatus) { + return false + } + for i := range this.ComplaintsWithStatus { + if !this.ComplaintsWithStatus[i].Equal(&that1.ComplaintsWithStatus[i]) { + return false + } + } + if len(this.Confirms) != len(that1.Confirms) { + return false + } + for i := range this.Confirms { + if !this.Confirms[i].Equal(&that1.Confirms[i]) { + return false + } + } + return true +} +func (this *Round1Info) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Round1Info) + if !ok { + that2, ok := that.(Round1Info) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.MemberID != that1.MemberID { + return false + } + if len(this.CoefficientCommits) != len(that1.CoefficientCommits) { + return false + } + for i := range this.CoefficientCommits { + if !bytes.Equal(this.CoefficientCommits[i], that1.CoefficientCommits[i]) { + return false + } + } + if !bytes.Equal(this.OneTimePubKey, that1.OneTimePubKey) { + return false + } + if !bytes.Equal(this.A0Signature, that1.A0Signature) { + return false + } + if !bytes.Equal(this.OneTimeSignature, that1.OneTimeSignature) { + return false + } + return true +} +func (this *Round2Info) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Round2Info) + if !ok { + that2, ok := that.(Round2Info) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.MemberID != that1.MemberID { + return false + } + if len(this.EncryptedSecretShares) != len(that1.EncryptedSecretShares) { + return false + } + for i := range this.EncryptedSecretShares { + if !bytes.Equal(this.EncryptedSecretShares[i], that1.EncryptedSecretShares[i]) { + return false + } + } + return true +} +func (this *DE) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*DE) + if !ok { + that2, ok := that.(DE) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !bytes.Equal(this.PubD, that1.PubD) { + return false + } + if !bytes.Equal(this.PubE, that1.PubE) { + return false + } + return true +} +func (this *DEQueue) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*DEQueue) + if !ok { + that2, ok := that.(DEQueue) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Head != that1.Head { + return false + } + if this.Tail != that1.Tail { + return false + } + return true +} +func (this *Signing) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Signing) + if !ok { + that2, ok := that.(Signing) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.ID != that1.ID { + return false + } + if this.CurrentAttempt != that1.CurrentAttempt { + return false + } + if this.GroupID != that1.GroupID { + return false + } + if !bytes.Equal(this.GroupPubKey, that1.GroupPubKey) { + return false + } + if !bytes.Equal(this.Message, that1.Message) { + return false + } + if !bytes.Equal(this.GroupPubNonce, that1.GroupPubNonce) { + return false + } + if !bytes.Equal(this.Signature, that1.Signature) { + return false + } + if this.Status != that1.Status { + return false + } + if this.CreatedHeight != that1.CreatedHeight { + return false + } + if !this.CreatedTimestamp.Equal(that1.CreatedTimestamp) { + return false + } + return true +} +func (this *SigningAttempt) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*SigningAttempt) + if !ok { + that2, ok := that.(SigningAttempt) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.SigningID != that1.SigningID { + return false + } + if this.Attempt != that1.Attempt { + return false + } + if this.ExpiredHeight != that1.ExpiredHeight { + return false + } + if len(this.AssignedMembers) != len(that1.AssignedMembers) { + return false + } + for i := range this.AssignedMembers { + if !this.AssignedMembers[i].Equal(&that1.AssignedMembers[i]) { + return false + } + } + return true +} +func (this *AssignedMember) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*AssignedMember) + if !ok { + that2, ok := that.(AssignedMember) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.MemberID != that1.MemberID { + return false + } + if this.Address != that1.Address { + return false + } + if !bytes.Equal(this.PubKey, that1.PubKey) { + return false + } + if !bytes.Equal(this.PubD, that1.PubD) { + return false + } + if !bytes.Equal(this.PubE, that1.PubE) { + return false + } + if !bytes.Equal(this.BindingFactor, that1.BindingFactor) { + return false + } + if !bytes.Equal(this.PubNonce, that1.PubNonce) { + return false + } + return true +} +func (this *PendingSignings) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*PendingSignings) + if !ok { + that2, ok := that.(PendingSignings) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if len(this.SigningIds) != len(that1.SigningIds) { + return false + } + for i := range this.SigningIds { + if this.SigningIds[i] != that1.SigningIds[i] { + return false + } + } + return true +} +func (this *Member) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Member) + if !ok { + that2, ok := that.(Member) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.ID != that1.ID { + return false + } + if this.GroupID != that1.GroupID { + return false + } + if this.Address != that1.Address { + return false + } + if !bytes.Equal(this.PubKey, that1.PubKey) { + return false + } + if this.IsMalicious != that1.IsMalicious { + return false + } + if this.IsActive != that1.IsActive { + return false + } + return true +} +func (this *Confirm) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Confirm) + if !ok { + that2, ok := that.(Confirm) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.MemberID != that1.MemberID { + return false + } + if !bytes.Equal(this.OwnPubKeySig, that1.OwnPubKeySig) { + return false + } + return true +} +func (this *Complaint) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Complaint) + if !ok { + that2, ok := that.(Complaint) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Complainant != that1.Complainant { + return false + } + if this.Respondent != that1.Respondent { + return false + } + if !bytes.Equal(this.KeySym, that1.KeySym) { + return false + } + if !bytes.Equal(this.Signature, that1.Signature) { + return false + } + return true +} +func (this *ComplaintWithStatus) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ComplaintWithStatus) + if !ok { + that2, ok := that.(ComplaintWithStatus) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.Complaint.Equal(&that1.Complaint) { + return false + } + if this.ComplaintStatus != that1.ComplaintStatus { + return false + } + return true +} +func (this *ComplaintsWithStatus) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ComplaintsWithStatus) + if !ok { + that2, ok := that.(ComplaintsWithStatus) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.MemberID != that1.MemberID { + return false + } + if len(this.ComplaintsWithStatus) != len(that1.ComplaintsWithStatus) { + return false + } + for i := range this.ComplaintsWithStatus { + if !this.ComplaintsWithStatus[i].Equal(&that1.ComplaintsWithStatus[i]) { + return false + } + } + return true +} +func (this *PendingProcessGroups) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*PendingProcessGroups) + if !ok { + that2, ok := that.(PendingProcessGroups) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if len(this.GroupIDs) != len(that1.GroupIDs) { + return false + } + for i := range this.GroupIDs { + if this.GroupIDs[i] != that1.GroupIDs[i] { + return false + } + } + return true +} +func (this *PendingProcessSignings) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*PendingProcessSignings) + if !ok { + that2, ok := that.(PendingProcessSignings) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if len(this.SigningIDs) != len(that1.SigningIDs) { + return false + } + for i := range this.SigningIDs { + if this.SigningIDs[i] != that1.SigningIDs[i] { + return false + } + } + return true +} +func (this *PartialSignature) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*PartialSignature) + if !ok { + that2, ok := that.(PartialSignature) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.SigningID != that1.SigningID { + return false + } + if this.SigningAttempt != that1.SigningAttempt { + return false + } + if this.MemberID != that1.MemberID { + return false + } + if !bytes.Equal(this.Signature, that1.Signature) { + return false + } + return true +} +func (this *TextSignatureOrder) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*TextSignatureOrder) + if !ok { + that2, ok := that.(TextSignatureOrder) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !bytes.Equal(this.Message, that1.Message) { + return false + } + return true +} +func (this *EVMSignature) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*EVMSignature) + if !ok { + that2, ok := that.(EVMSignature) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !bytes.Equal(this.RAddress, that1.RAddress) { + return false + } + if !bytes.Equal(this.Signature, that1.Signature) { + return false + } + return true +} +func (this *SigningResult) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*SigningResult) + if !ok { + that2, ok := that.(SigningResult) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.Signing.Equal(&that1.Signing) { + return false + } + if !this.CurrentSigningAttempt.Equal(that1.CurrentSigningAttempt) { + return false + } + if !this.EVMSignature.Equal(that1.EVMSignature) { + return false + } + if len(this.ReceivedPartialSignatures) != len(that1.ReceivedPartialSignatures) { + return false + } + for i := range this.ReceivedPartialSignatures { + if !this.ReceivedPartialSignatures[i].Equal(&that1.ReceivedPartialSignatures[i]) { + return false + } + } + return true +} +func (this *SigningExpiration) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*SigningExpiration) + if !ok { + that2, ok := that.(SigningExpiration) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.SigningID != that1.SigningID { + return false + } + if this.SigningAttempt != that1.SigningAttempt { + return false + } + return true +} +func (this *SigningExpirations) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*SigningExpirations) + if !ok { + that2, ok := that.(SigningExpirations) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if len(this.SigningExpirations) != len(that1.SigningExpirations) { + return false + } + for i := range this.SigningExpirations { + if !this.SigningExpirations[i].Equal(&that1.SigningExpirations[i]) { + return false + } + } + return true +} +func (m *Group) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Group) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Group) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ModuleOwner) > 0 { + i -= len(m.ModuleOwner) + copy(dAtA[i:], m.ModuleOwner) + i = encodeVarintTss(dAtA, i, uint64(len(m.ModuleOwner))) + i-- + dAtA[i] = 0x3a + } + if m.CreatedHeight != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.CreatedHeight)) + i-- + dAtA[i] = 0x30 + } + if m.Status != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x28 + } + if len(m.PubKey) > 0 { + i -= len(m.PubKey) + copy(dAtA[i:], m.PubKey) + i = encodeVarintTss(dAtA, i, uint64(len(m.PubKey))) + i-- + dAtA[i] = 0x22 + } + if m.Threshold != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.Threshold)) + i-- + dAtA[i] = 0x18 + } + if m.Size_ != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.Size_)) + i-- + dAtA[i] = 0x10 + } + if m.ID != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.ID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GroupResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GroupResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GroupResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Confirms) > 0 { + for iNdEx := len(m.Confirms) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Confirms[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.ComplaintsWithStatus) > 0 { + for iNdEx := len(m.ComplaintsWithStatus) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ComplaintsWithStatus[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.Round2Infos) > 0 { + for iNdEx := len(m.Round2Infos) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Round2Infos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.Round1Infos) > 0 { + for iNdEx := len(m.Round1Infos) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Round1Infos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Members) > 0 { + for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.DKGContext) > 0 { + i -= len(m.DKGContext) + copy(dAtA[i:], m.DKGContext) + i = encodeVarintTss(dAtA, i, uint64(len(m.DKGContext))) + i-- + dAtA[i] = 0x12 + } + { + size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Round1Info) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Round1Info) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Round1Info) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OneTimeSignature) > 0 { + i -= len(m.OneTimeSignature) + copy(dAtA[i:], m.OneTimeSignature) + i = encodeVarintTss(dAtA, i, uint64(len(m.OneTimeSignature))) + i-- + dAtA[i] = 0x2a + } + if len(m.A0Signature) > 0 { + i -= len(m.A0Signature) + copy(dAtA[i:], m.A0Signature) + i = encodeVarintTss(dAtA, i, uint64(len(m.A0Signature))) + i-- + dAtA[i] = 0x22 + } + if len(m.OneTimePubKey) > 0 { + i -= len(m.OneTimePubKey) + copy(dAtA[i:], m.OneTimePubKey) + i = encodeVarintTss(dAtA, i, uint64(len(m.OneTimePubKey))) + i-- + dAtA[i] = 0x1a + } + if len(m.CoefficientCommits) > 0 { + for iNdEx := len(m.CoefficientCommits) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.CoefficientCommits[iNdEx]) + copy(dAtA[i:], m.CoefficientCommits[iNdEx]) + i = encodeVarintTss(dAtA, i, uint64(len(m.CoefficientCommits[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if m.MemberID != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.MemberID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Round2Info) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Round2Info) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Round2Info) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EncryptedSecretShares) > 0 { + for iNdEx := len(m.EncryptedSecretShares) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.EncryptedSecretShares[iNdEx]) + copy(dAtA[i:], m.EncryptedSecretShares[iNdEx]) + i = encodeVarintTss(dAtA, i, uint64(len(m.EncryptedSecretShares[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if m.MemberID != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.MemberID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *DE) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DE) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DE) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PubE) > 0 { + i -= len(m.PubE) + copy(dAtA[i:], m.PubE) + i = encodeVarintTss(dAtA, i, uint64(len(m.PubE))) + i-- + dAtA[i] = 0x12 + } + if len(m.PubD) > 0 { + i -= len(m.PubD) + copy(dAtA[i:], m.PubD) + i = encodeVarintTss(dAtA, i, uint64(len(m.PubD))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DEQueue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DEQueue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DEQueue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Tail != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.Tail)) + i-- + dAtA[i] = 0x10 + } + if m.Head != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.Head)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Signing) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Signing) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Signing) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo( + m.CreatedTimestamp, + dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CreatedTimestamp):], + ) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintTss(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x52 + if m.CreatedHeight != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.CreatedHeight)) + i-- + dAtA[i] = 0x48 + } + if m.Status != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x40 + } + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintTss(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x3a + } + if len(m.GroupPubNonce) > 0 { + i -= len(m.GroupPubNonce) + copy(dAtA[i:], m.GroupPubNonce) + i = encodeVarintTss(dAtA, i, uint64(len(m.GroupPubNonce))) + i-- + dAtA[i] = 0x32 + } + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintTss(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x2a + } + if len(m.GroupPubKey) > 0 { + i -= len(m.GroupPubKey) + copy(dAtA[i:], m.GroupPubKey) + i = encodeVarintTss(dAtA, i, uint64(len(m.GroupPubKey))) + i-- + dAtA[i] = 0x22 + } + if m.GroupID != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.GroupID)) + i-- + dAtA[i] = 0x18 + } + if m.CurrentAttempt != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.CurrentAttempt)) + i-- + dAtA[i] = 0x10 + } + if m.ID != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.ID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *SigningAttempt) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SigningAttempt) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SigningAttempt) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AssignedMembers) > 0 { + for iNdEx := len(m.AssignedMembers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AssignedMembers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if m.ExpiredHeight != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.ExpiredHeight)) + i-- + dAtA[i] = 0x18 + } + if m.Attempt != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.Attempt)) + i-- + dAtA[i] = 0x10 + } + if m.SigningID != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.SigningID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *AssignedMember) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AssignedMember) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AssignedMember) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PubNonce) > 0 { + i -= len(m.PubNonce) + copy(dAtA[i:], m.PubNonce) + i = encodeVarintTss(dAtA, i, uint64(len(m.PubNonce))) + i-- + dAtA[i] = 0x3a + } + if len(m.BindingFactor) > 0 { + i -= len(m.BindingFactor) + copy(dAtA[i:], m.BindingFactor) + i = encodeVarintTss(dAtA, i, uint64(len(m.BindingFactor))) + i-- + dAtA[i] = 0x32 + } + if len(m.PubE) > 0 { + i -= len(m.PubE) + copy(dAtA[i:], m.PubE) + i = encodeVarintTss(dAtA, i, uint64(len(m.PubE))) + i-- + dAtA[i] = 0x2a + } + if len(m.PubD) > 0 { + i -= len(m.PubD) + copy(dAtA[i:], m.PubD) + i = encodeVarintTss(dAtA, i, uint64(len(m.PubD))) + i-- + dAtA[i] = 0x22 + } + if len(m.PubKey) > 0 { + i -= len(m.PubKey) + copy(dAtA[i:], m.PubKey) + i = encodeVarintTss(dAtA, i, uint64(len(m.PubKey))) + i-- + dAtA[i] = 0x1a + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintTss(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if m.MemberID != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.MemberID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *PendingSignings) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PendingSignings) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PendingSignings) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SigningIds) > 0 { + dAtA4 := make([]byte, len(m.SigningIds)*10) + var j3 int + for _, num := range m.SigningIds { + for num >= 1<<7 { + dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j3++ + } + dAtA4[j3] = uint8(num) + j3++ + } + i -= j3 + copy(dAtA[i:], dAtA4[:j3]) + i = encodeVarintTss(dAtA, i, uint64(j3)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Member) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Member) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsActive { + i-- + if m.IsActive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.IsMalicious { + i-- + if m.IsMalicious { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.PubKey) > 0 { + i -= len(m.PubKey) + copy(dAtA[i:], m.PubKey) + i = encodeVarintTss(dAtA, i, uint64(len(m.PubKey))) + i-- + dAtA[i] = 0x22 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintTss(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x1a + } + if m.GroupID != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.GroupID)) + i-- + dAtA[i] = 0x10 + } + if m.ID != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.ID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Confirm) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Confirm) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Confirm) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OwnPubKeySig) > 0 { + i -= len(m.OwnPubKeySig) + copy(dAtA[i:], m.OwnPubKeySig) + i = encodeVarintTss(dAtA, i, uint64(len(m.OwnPubKeySig))) + i-- + dAtA[i] = 0x12 + } + if m.MemberID != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.MemberID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Complaint) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Complaint) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Complaint) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintTss(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x22 + } + if len(m.KeySym) > 0 { + i -= len(m.KeySym) + copy(dAtA[i:], m.KeySym) + i = encodeVarintTss(dAtA, i, uint64(len(m.KeySym))) + i-- + dAtA[i] = 0x1a + } + if m.Respondent != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.Respondent)) + i-- + dAtA[i] = 0x10 + } + if m.Complainant != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.Complainant)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ComplaintWithStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComplaintWithStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComplaintWithStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ComplaintStatus != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.ComplaintStatus)) + i-- + dAtA[i] = 0x10 + } + { + size, err := m.Complaint.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ComplaintsWithStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComplaintsWithStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComplaintsWithStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ComplaintsWithStatus) > 0 { + for iNdEx := len(m.ComplaintsWithStatus) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ComplaintsWithStatus[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.MemberID != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.MemberID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *PendingProcessGroups) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PendingProcessGroups) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PendingProcessGroups) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.GroupIDs) > 0 { + dAtA7 := make([]byte, len(m.GroupIDs)*10) + var j6 int + for _, num := range m.GroupIDs { + for num >= 1<<7 { + dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j6++ + } + dAtA7[j6] = uint8(num) + j6++ + } + i -= j6 + copy(dAtA[i:], dAtA7[:j6]) + i = encodeVarintTss(dAtA, i, uint64(j6)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PendingProcessSignings) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PendingProcessSignings) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PendingProcessSignings) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SigningIDs) > 0 { + dAtA9 := make([]byte, len(m.SigningIDs)*10) + var j8 int + for _, num := range m.SigningIDs { + for num >= 1<<7 { + dAtA9[j8] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j8++ + } + dAtA9[j8] = uint8(num) + j8++ + } + i -= j8 + copy(dAtA[i:], dAtA9[:j8]) + i = encodeVarintTss(dAtA, i, uint64(j8)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PartialSignature) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PartialSignature) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PartialSignature) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintTss(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x22 + } + if m.MemberID != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.MemberID)) + i-- + dAtA[i] = 0x18 + } + if m.SigningAttempt != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.SigningAttempt)) + i-- + dAtA[i] = 0x10 + } + if m.SigningID != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.SigningID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TextSignatureOrder) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TextSignatureOrder) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TextSignatureOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintTss(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EVMSignature) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EVMSignature) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EVMSignature) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintTss(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x12 + } + if len(m.RAddress) > 0 { + i -= len(m.RAddress) + copy(dAtA[i:], m.RAddress) + i = encodeVarintTss(dAtA, i, uint64(len(m.RAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SigningResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SigningResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SigningResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReceivedPartialSignatures) > 0 { + for iNdEx := len(m.ReceivedPartialSignatures) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ReceivedPartialSignatures[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if m.EVMSignature != nil { + { + size, err := m.EVMSignature.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.CurrentSigningAttempt != nil { + { + size, err := m.CurrentSigningAttempt.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + { + size, err := m.Signing.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SigningExpiration) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SigningExpiration) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SigningExpiration) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SigningAttempt != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.SigningAttempt)) + i-- + dAtA[i] = 0x10 + } + if m.SigningID != 0 { + i = encodeVarintTss(dAtA, i, uint64(m.SigningID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *SigningExpirations) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SigningExpirations) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SigningExpirations) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SigningExpirations) > 0 { + for iNdEx := len(m.SigningExpirations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SigningExpirations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTss(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintTss(dAtA []byte, offset int, v uint64) int { + offset -= sovTss(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Group) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ID != 0 { + n += 1 + sovTss(uint64(m.ID)) + } + if m.Size_ != 0 { + n += 1 + sovTss(uint64(m.Size_)) + } + if m.Threshold != 0 { + n += 1 + sovTss(uint64(m.Threshold)) + } + l = len(m.PubKey) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + if m.Status != 0 { + n += 1 + sovTss(uint64(m.Status)) + } + if m.CreatedHeight != 0 { + n += 1 + sovTss(uint64(m.CreatedHeight)) + } + l = len(m.ModuleOwner) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + return n +} + +func (m *GroupResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Group.Size() + n += 1 + l + sovTss(uint64(l)) + l = len(m.DKGContext) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + if len(m.Members) > 0 { + for _, e := range m.Members { + l = e.Size() + n += 1 + l + sovTss(uint64(l)) + } + } + if len(m.Round1Infos) > 0 { + for _, e := range m.Round1Infos { + l = e.Size() + n += 1 + l + sovTss(uint64(l)) + } + } + if len(m.Round2Infos) > 0 { + for _, e := range m.Round2Infos { + l = e.Size() + n += 1 + l + sovTss(uint64(l)) + } + } + if len(m.ComplaintsWithStatus) > 0 { + for _, e := range m.ComplaintsWithStatus { + l = e.Size() + n += 1 + l + sovTss(uint64(l)) + } + } + if len(m.Confirms) > 0 { + for _, e := range m.Confirms { + l = e.Size() + n += 1 + l + sovTss(uint64(l)) + } + } + return n +} + +func (m *Round1Info) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MemberID != 0 { + n += 1 + sovTss(uint64(m.MemberID)) + } + if len(m.CoefficientCommits) > 0 { + for _, b := range m.CoefficientCommits { + l = len(b) + n += 1 + l + sovTss(uint64(l)) + } + } + l = len(m.OneTimePubKey) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + l = len(m.A0Signature) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + l = len(m.OneTimeSignature) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + return n +} + +func (m *Round2Info) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MemberID != 0 { + n += 1 + sovTss(uint64(m.MemberID)) + } + if len(m.EncryptedSecretShares) > 0 { + for _, b := range m.EncryptedSecretShares { + l = len(b) + n += 1 + l + sovTss(uint64(l)) + } + } + return n +} + +func (m *DE) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PubD) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + l = len(m.PubE) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + return n +} + +func (m *DEQueue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Head != 0 { + n += 1 + sovTss(uint64(m.Head)) + } + if m.Tail != 0 { + n += 1 + sovTss(uint64(m.Tail)) + } + return n +} + +func (m *Signing) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ID != 0 { + n += 1 + sovTss(uint64(m.ID)) + } + if m.CurrentAttempt != 0 { + n += 1 + sovTss(uint64(m.CurrentAttempt)) + } + if m.GroupID != 0 { + n += 1 + sovTss(uint64(m.GroupID)) + } + l = len(m.GroupPubKey) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + l = len(m.GroupPubNonce) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + if m.Status != 0 { + n += 1 + sovTss(uint64(m.Status)) + } + if m.CreatedHeight != 0 { + n += 1 + sovTss(uint64(m.CreatedHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CreatedTimestamp) + n += 1 + l + sovTss(uint64(l)) + return n +} + +func (m *SigningAttempt) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SigningID != 0 { + n += 1 + sovTss(uint64(m.SigningID)) + } + if m.Attempt != 0 { + n += 1 + sovTss(uint64(m.Attempt)) + } + if m.ExpiredHeight != 0 { + n += 1 + sovTss(uint64(m.ExpiredHeight)) + } + if len(m.AssignedMembers) > 0 { + for _, e := range m.AssignedMembers { + l = e.Size() + n += 1 + l + sovTss(uint64(l)) + } + } + return n +} + +func (m *AssignedMember) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MemberID != 0 { + n += 1 + sovTss(uint64(m.MemberID)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + l = len(m.PubKey) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + l = len(m.PubD) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + l = len(m.PubE) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + l = len(m.BindingFactor) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + l = len(m.PubNonce) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + return n +} + +func (m *PendingSignings) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SigningIds) > 0 { + l = 0 + for _, e := range m.SigningIds { + l += sovTss(uint64(e)) + } + n += 1 + sovTss(uint64(l)) + l + } + return n +} + +func (m *Member) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ID != 0 { + n += 1 + sovTss(uint64(m.ID)) + } + if m.GroupID != 0 { + n += 1 + sovTss(uint64(m.GroupID)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + l = len(m.PubKey) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + if m.IsMalicious { + n += 2 + } + if m.IsActive { + n += 2 + } + return n +} + +func (m *Confirm) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MemberID != 0 { + n += 1 + sovTss(uint64(m.MemberID)) + } + l = len(m.OwnPubKeySig) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + return n +} + +func (m *Complaint) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Complainant != 0 { + n += 1 + sovTss(uint64(m.Complainant)) + } + if m.Respondent != 0 { + n += 1 + sovTss(uint64(m.Respondent)) + } + l = len(m.KeySym) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + return n +} + +func (m *ComplaintWithStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Complaint.Size() + n += 1 + l + sovTss(uint64(l)) + if m.ComplaintStatus != 0 { + n += 1 + sovTss(uint64(m.ComplaintStatus)) + } + return n +} + +func (m *ComplaintsWithStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MemberID != 0 { + n += 1 + sovTss(uint64(m.MemberID)) + } + if len(m.ComplaintsWithStatus) > 0 { + for _, e := range m.ComplaintsWithStatus { + l = e.Size() + n += 1 + l + sovTss(uint64(l)) + } + } + return n +} + +func (m *PendingProcessGroups) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.GroupIDs) > 0 { + l = 0 + for _, e := range m.GroupIDs { + l += sovTss(uint64(e)) + } + n += 1 + sovTss(uint64(l)) + l + } + return n +} + +func (m *PendingProcessSignings) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SigningIDs) > 0 { + l = 0 + for _, e := range m.SigningIDs { + l += sovTss(uint64(e)) + } + n += 1 + sovTss(uint64(l)) + l + } + return n +} + +func (m *PartialSignature) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SigningID != 0 { + n += 1 + sovTss(uint64(m.SigningID)) + } + if m.SigningAttempt != 0 { + n += 1 + sovTss(uint64(m.SigningAttempt)) + } + if m.MemberID != 0 { + n += 1 + sovTss(uint64(m.MemberID)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + return n +} + +func (m *TextSignatureOrder) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Message) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + return n +} + +func (m *EVMSignature) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RAddress) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovTss(uint64(l)) + } + return n +} + +func (m *SigningResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Signing.Size() + n += 1 + l + sovTss(uint64(l)) + if m.CurrentSigningAttempt != nil { + l = m.CurrentSigningAttempt.Size() + n += 1 + l + sovTss(uint64(l)) + } + if m.EVMSignature != nil { + l = m.EVMSignature.Size() + n += 1 + l + sovTss(uint64(l)) + } + if len(m.ReceivedPartialSignatures) > 0 { + for _, e := range m.ReceivedPartialSignatures { + l = e.Size() + n += 1 + l + sovTss(uint64(l)) + } + } + return n +} + +func (m *SigningExpiration) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SigningID != 0 { + n += 1 + sovTss(uint64(m.SigningID)) + } + if m.SigningAttempt != 0 { + n += 1 + sovTss(uint64(m.SigningAttempt)) + } + return n +} + +func (m *SigningExpirations) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SigningExpirations) > 0 { + for _, e := range m.SigningExpirations { + l = e.Size() + n += 1 + l + sovTss(uint64(l)) + } + } + return n +} + +func sovTss(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTss(x uint64) (n int) { + return sovTss(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Group) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Group: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Group: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ID |= GroupID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) + } + m.Size_ = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Size_ |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Threshold", wireType) + } + m.Threshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Threshold |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...) + if m.PubKey == nil { + m.PubKey = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= GroupStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedHeight", wireType) + } + m.CreatedHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CreatedHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ModuleOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GroupResult) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GroupResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GroupResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DKGContext", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DKGContext = append(m.DKGContext[:0], dAtA[iNdEx:postIndex]...) + if m.DKGContext == nil { + m.DKGContext = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Members = append(m.Members, Member{}) + if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Round1Infos", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Round1Infos = append(m.Round1Infos, Round1Info{}) + if err := m.Round1Infos[len(m.Round1Infos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Round2Infos", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Round2Infos = append(m.Round2Infos, Round2Info{}) + if err := m.Round2Infos[len(m.Round2Infos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ComplaintsWithStatus", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ComplaintsWithStatus = append(m.ComplaintsWithStatus, ComplaintsWithStatus{}) + if err := m.ComplaintsWithStatus[len(m.ComplaintsWithStatus)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Confirms", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Confirms = append(m.Confirms, Confirm{}) + if err := m.Confirms[len(m.Confirms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Round1Info) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Round1Info: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Round1Info: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) + } + m.MemberID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemberID |= MemberID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CoefficientCommits", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CoefficientCommits = append(m.CoefficientCommits, make([]byte, postIndex-iNdEx)) + copy(m.CoefficientCommits[len(m.CoefficientCommits)-1], dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneTimePubKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneTimePubKey = append(m.OneTimePubKey[:0], dAtA[iNdEx:postIndex]...) + if m.OneTimePubKey == nil { + m.OneTimePubKey = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field A0Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.A0Signature = append(m.A0Signature[:0], dAtA[iNdEx:postIndex]...) + if m.A0Signature == nil { + m.A0Signature = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneTimeSignature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneTimeSignature = append(m.OneTimeSignature[:0], dAtA[iNdEx:postIndex]...) + if m.OneTimeSignature == nil { + m.OneTimeSignature = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Round2Info) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Round2Info: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Round2Info: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) + } + m.MemberID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemberID |= MemberID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EncryptedSecretShares", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EncryptedSecretShares = append(m.EncryptedSecretShares, make([]byte, postIndex-iNdEx)) + copy(m.EncryptedSecretShares[len(m.EncryptedSecretShares)-1], dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DE) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DE: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DE: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PubD", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PubD = append(m.PubD[:0], dAtA[iNdEx:postIndex]...) + if m.PubD == nil { + m.PubD = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PubE", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PubE = append(m.PubE[:0], dAtA[iNdEx:postIndex]...) + if m.PubE == nil { + m.PubE = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DEQueue) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DEQueue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DEQueue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Head", wireType) + } + m.Head = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Head |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Tail", wireType) + } + m.Tail = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Tail |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Signing) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Signing: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Signing: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ID |= SigningID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentAttempt", wireType) + } + m.CurrentAttempt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CurrentAttempt |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType) + } + m.GroupID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupID |= GroupID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupPubKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GroupPubKey = append(m.GroupPubKey[:0], dAtA[iNdEx:postIndex]...) + if m.GroupPubKey == nil { + m.GroupPubKey = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Message = append(m.Message[:0], dAtA[iNdEx:postIndex]...) + if m.Message == nil { + m.Message = []byte{} + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupPubNonce", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GroupPubNonce = append(m.GroupPubNonce[:0], dAtA[iNdEx:postIndex]...) + if m.GroupPubNonce == nil { + m.GroupPubNonce = []byte{} + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= SigningStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedHeight", wireType) + } + m.CreatedHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CreatedHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedTimestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.CreatedTimestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SigningAttempt) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SigningAttempt: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SigningAttempt: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SigningID", wireType) + } + m.SigningID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SigningID |= SigningID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) + } + m.Attempt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Attempt |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpiredHeight", wireType) + } + m.ExpiredHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ExpiredHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AssignedMembers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AssignedMembers = append(m.AssignedMembers, AssignedMember{}) + if err := m.AssignedMembers[len(m.AssignedMembers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AssignedMember) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AssignedMember: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AssignedMember: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) + } + m.MemberID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemberID |= MemberID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...) + if m.PubKey == nil { + m.PubKey = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PubD", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PubD = append(m.PubD[:0], dAtA[iNdEx:postIndex]...) + if m.PubD == nil { + m.PubD = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PubE", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PubE = append(m.PubE[:0], dAtA[iNdEx:postIndex]...) + if m.PubE == nil { + m.PubE = []byte{} + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingFactor", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BindingFactor = append(m.BindingFactor[:0], dAtA[iNdEx:postIndex]...) + if m.BindingFactor == nil { + m.BindingFactor = []byte{} + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PubNonce", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PubNonce = append(m.PubNonce[:0], dAtA[iNdEx:postIndex]...) + if m.PubNonce == nil { + m.PubNonce = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PendingSignings) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PendingSignings: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PendingSignings: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SigningIds = append(m.SigningIds, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.SigningIds) == 0 { + m.SigningIds = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SigningIds = append(m.SigningIds, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field SigningIds", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Member) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Member: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ID |= MemberID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType) + } + m.GroupID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupID |= GroupID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...) + if m.PubKey == nil { + m.PubKey = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsMalicious", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsMalicious = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsActive = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Confirm) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Confirm: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Confirm: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) + } + m.MemberID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemberID |= MemberID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnPubKeySig", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnPubKeySig = append(m.OwnPubKeySig[:0], dAtA[iNdEx:postIndex]...) + if m.OwnPubKeySig == nil { + m.OwnPubKeySig = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Complaint) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Complaint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Complaint: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Complainant", wireType) + } + m.Complainant = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Complainant |= MemberID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Respondent", wireType) + } + m.Respondent = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Respondent |= MemberID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeySym", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KeySym = append(m.KeySym[:0], dAtA[iNdEx:postIndex]...) + if m.KeySym == nil { + m.KeySym = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComplaintWithStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ComplaintWithStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ComplaintWithStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Complaint", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Complaint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ComplaintStatus", wireType) + } + m.ComplaintStatus = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ComplaintStatus |= ComplaintStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComplaintsWithStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ComplaintsWithStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ComplaintsWithStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) + } + m.MemberID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemberID |= MemberID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ComplaintsWithStatus", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ComplaintsWithStatus = append(m.ComplaintsWithStatus, ComplaintWithStatus{}) + if err := m.ComplaintsWithStatus[len(m.ComplaintsWithStatus)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PendingProcessGroups) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PendingProcessGroups: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PendingProcessGroups: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v GroupID + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= GroupID(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.GroupIDs = append(m.GroupIDs, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.GroupIDs) == 0 { + m.GroupIDs = make([]GroupID, 0, elementCount) + } + for iNdEx < postIndex { + var v GroupID + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= GroupID(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.GroupIDs = append(m.GroupIDs, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field GroupIDs", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PendingProcessSignings) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PendingProcessSignings: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PendingProcessSignings: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v SigningID + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= SigningID(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SigningIDs = append(m.SigningIDs, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.SigningIDs) == 0 { + m.SigningIDs = make([]SigningID, 0, elementCount) + } + for iNdEx < postIndex { + var v SigningID + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= SigningID(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SigningIDs = append(m.SigningIDs, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field SigningIDs", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PartialSignature) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PartialSignature: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PartialSignature: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SigningID", wireType) + } + m.SigningID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SigningID |= SigningID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SigningAttempt", wireType) + } + m.SigningAttempt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SigningAttempt |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) + } + m.MemberID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemberID |= MemberID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TextSignatureOrder) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TextSignatureOrder: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TextSignatureOrder: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Message = append(m.Message[:0], dAtA[iNdEx:postIndex]...) + if m.Message == nil { + m.Message = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EVMSignature) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EVMSignature: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EVMSignature: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RAddress", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RAddress = append(m.RAddress[:0], dAtA[iNdEx:postIndex]...) + if m.RAddress == nil { + m.RAddress = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SigningResult) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SigningResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SigningResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signing", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Signing.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentSigningAttempt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CurrentSigningAttempt == nil { + m.CurrentSigningAttempt = &SigningAttempt{} + } + if err := m.CurrentSigningAttempt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EVMSignature", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EVMSignature == nil { + m.EVMSignature = &EVMSignature{} + } + if err := m.EVMSignature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceivedPartialSignatures", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReceivedPartialSignatures = append(m.ReceivedPartialSignatures, PartialSignature{}) + if err := m.ReceivedPartialSignatures[len(m.ReceivedPartialSignatures)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SigningExpiration) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SigningExpiration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SigningExpiration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SigningID", wireType) + } + m.SigningID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SigningID |= SigningID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SigningAttempt", wireType) + } + m.SigningAttempt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SigningAttempt |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SigningExpirations) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SigningExpirations: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SigningExpirations: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SigningExpirations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTss + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTss + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTss + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SigningExpirations = append(m.SigningExpirations, SigningExpiration{}) + if err := m.SigningExpirations[len(m.SigningExpirations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTss(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTss + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTss(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTss + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTss + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTss + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTss + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTss + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTss + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTss = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTss = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTss = fmt.Errorf("proto: unexpected end of group") +) diff --git a/internal/bandchain/tunnel/ibc_route.go b/internal/bandchain/tunnel/ibc_route.go new file mode 100644 index 0000000..04bf3d2 --- /dev/null +++ b/internal/bandchain/tunnel/ibc_route.go @@ -0,0 +1,42 @@ +package types + +import ( + feedstypes "github.com/bandprotocol/falcon/internal/bandchain/feeds" +) + +// IBCRoute defines the IBC route for the tunnel module +var _ RouteI = &IBCRoute{} + +// NewIBCRoute creates a new IBCRoute instance. +func NewIBCRoute(channelID string) *IBCRoute { + return &IBCRoute{ + ChannelID: channelID, + } +} + +// ValidateBasic validates the IBCRoute +func (r *IBCRoute) ValidateBasic() error { + return nil +} + +// NewIBCPacketReceipt creates a new IBCPacketReceipt instance. +func NewIBCPacketReceipt(sequence uint64) *IBCPacketReceipt { + return &IBCPacketReceipt{ + Sequence: sequence, + } +} + +// NewTunnelPricesPacketData creates a new TunnelPricesPacketData instance. +func NewTunnelPricesPacketData( + tunnelID uint64, + sequence uint64, + prices []feedstypes.Price, + createdAt int64, +) TunnelPricesPacketData { + return TunnelPricesPacketData{ + TunnelID: tunnelID, + Sequence: sequence, + Prices: prices, + CreatedAt: createdAt, + } +} diff --git a/internal/bandchain/tunnel/packet_receipt.go b/internal/bandchain/tunnel/packet_receipt.go new file mode 100644 index 0000000..5ab313a --- /dev/null +++ b/internal/bandchain/tunnel/packet_receipt.go @@ -0,0 +1,8 @@ +package types + +import "github.com/cosmos/gogoproto/proto" + +// PacketReceiptI defines an interface for confirming the delivery of a packet to its destination via the specified route. +type PacketReceiptI interface { + proto.Message +} diff --git a/internal/bandchain/tunnel/params.pb.go b/internal/bandchain/tunnel/params.pb.go new file mode 100644 index 0000000..5de153a --- /dev/null +++ b/internal/bandchain/tunnel/params.pb.go @@ -0,0 +1,637 @@ +package types + +import ( + "fmt" + "io" + "math" + math_bits "math/bits" + + "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/gogoproto/proto" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Params is the data structure that keeps the parameters of the module. +type Params struct { + // min_deposit is the minimum deposit required to create a tunnel. + MinDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=min_deposit,json=minDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"min_deposit"` + // min_interval is the minimum interval in seconds. + MinInterval uint64 `protobuf:"varint,2,opt,name=min_interval,json=minInterval,proto3" json:"min_interval,omitempty"` + // max_interval is the maximum interval in seconds. + MaxInterval uint64 `protobuf:"varint,3,opt,name=max_interval,json=maxInterval,proto3" json:"max_interval,omitempty"` + // min_deviation_bps is the minimum deviation in basis points. + MinDeviationBPS uint64 `protobuf:"varint,4,opt,name=min_deviation_bps,json=minDeviationBps,proto3" json:"min_deviation_bps,omitempty"` + // max_deviation_bps is the maximum deviation in basis points. + MaxDeviationBPS uint64 `protobuf:"varint,5,opt,name=max_deviation_bps,json=maxDeviationBps,proto3" json:"max_deviation_bps,omitempty"` + // max_signals defines the maximum number of signals allowed per tunnel. + MaxSignals uint64 `protobuf:"varint,6,opt,name=max_signals,json=maxSignals,proto3" json:"max_signals,omitempty"` + // base_packet_fee is the base fee for each packet. + BasePacketFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,7,rep,name=base_packet_fee,json=basePacketFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"base_packet_fee"` +} + +func (m *Params) Reset() { *m = Params{} } +func (m *Params) String() string { return proto.CompactTextString(m) } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_842b3bf03f22bf82, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func (m *Params) GetMinDeposit() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.MinDeposit + } + return nil +} + +func (m *Params) GetMinInterval() uint64 { + if m != nil { + return m.MinInterval + } + return 0 +} + +func (m *Params) GetMaxInterval() uint64 { + if m != nil { + return m.MaxInterval + } + return 0 +} + +func (m *Params) GetMinDeviationBPS() uint64 { + if m != nil { + return m.MinDeviationBPS + } + return 0 +} + +func (m *Params) GetMaxDeviationBPS() uint64 { + if m != nil { + return m.MaxDeviationBPS + } + return 0 +} + +func (m *Params) GetMaxSignals() uint64 { + if m != nil { + return m.MaxSignals + } + return 0 +} + +func (m *Params) GetBasePacketFee() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.BasePacketFee + } + return nil +} + +func init() { + proto.RegisterType((*Params)(nil), "band.tunnel.v1beta1.Params") +} + +func init() { proto.RegisterFile("band/tunnel/v1beta1/params.proto", fileDescriptor_842b3bf03f22bf82) } + +var fileDescriptor_842b3bf03f22bf82 = []byte{ + // 398 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x31, 0x8f, 0xda, 0x30, + 0x14, 0xc7, 0x93, 0x42, 0xa9, 0x64, 0x5a, 0xa1, 0x86, 0x0e, 0x29, 0x43, 0x42, 0x3b, 0xb1, 0x34, + 0x2e, 0x65, 0xeb, 0x52, 0x29, 0xad, 0x2a, 0x31, 0x54, 0x42, 0xb0, 0x75, 0x89, 0x9c, 0xe0, 0x06, + 0x8b, 0xc4, 0xb6, 0xb0, 0x89, 0xd2, 0x6f, 0x71, 0x1f, 0xe1, 0xe6, 0xfb, 0x24, 0x8c, 0x8c, 0xa7, + 0x1b, 0xb8, 0x53, 0x58, 0xee, 0x63, 0x9c, 0x6c, 0x07, 0x2e, 0x62, 0xbe, 0x29, 0xd1, 0x7b, 0x3f, + 0xff, 0xfe, 0x4f, 0x4f, 0x0f, 0x0c, 0x63, 0x44, 0x97, 0x50, 0x6e, 0x29, 0xc5, 0x19, 0x2c, 0xc6, + 0x31, 0x96, 0x68, 0x0c, 0x39, 0xda, 0xa0, 0x5c, 0x04, 0x7c, 0xc3, 0x24, 0x73, 0xfa, 0x8a, 0x08, + 0x0c, 0x11, 0xd4, 0xc4, 0xe0, 0x43, 0xca, 0x52, 0xa6, 0xfb, 0x50, 0xfd, 0x19, 0x74, 0xe0, 0x25, + 0x4c, 0xe4, 0x4c, 0xc0, 0x18, 0x09, 0x7c, 0x96, 0x25, 0x8c, 0x50, 0xd3, 0xff, 0x7c, 0xd7, 0x02, + 0x9d, 0x99, 0x76, 0x3b, 0x19, 0xe8, 0xe6, 0x84, 0x46, 0x4b, 0xcc, 0x99, 0x20, 0xd2, 0xb5, 0x87, + 0xad, 0x51, 0xf7, 0xdb, 0xc7, 0xc0, 0x08, 0x02, 0x25, 0x38, 0x65, 0x05, 0x3f, 0x19, 0xa1, 0xe1, + 0xd7, 0xdd, 0xc1, 0xb7, 0x6e, 0xee, 0xfd, 0x51, 0x4a, 0xe4, 0x6a, 0x1b, 0x07, 0x09, 0xcb, 0x61, + 0x9d, 0x66, 0x3e, 0x5f, 0xc4, 0x72, 0x0d, 0xe5, 0x7f, 0x8e, 0x85, 0x7e, 0x20, 0xe6, 0x20, 0x27, + 0xf4, 0x97, 0xd1, 0x3b, 0x9f, 0xc0, 0x5b, 0x95, 0x46, 0xa8, 0xc4, 0x9b, 0x02, 0x65, 0xee, 0xab, + 0xa1, 0x3d, 0x6a, 0xcf, 0xd5, 0x04, 0xd3, 0xba, 0xa4, 0x11, 0x54, 0x3e, 0x23, 0xad, 0x1a, 0x41, + 0xe5, 0x19, 0xf9, 0x01, 0xde, 0x9b, 0x99, 0x0b, 0x82, 0x24, 0x61, 0x34, 0x8a, 0xb9, 0x70, 0xdb, + 0x8a, 0x0b, 0xfb, 0xd5, 0xc1, 0xef, 0xfd, 0x51, 0x81, 0x75, 0x2f, 0x9c, 0x2d, 0xe6, 0xbd, 0xbc, + 0x59, 0xe0, 0x42, 0x0b, 0x50, 0x79, 0x21, 0x78, 0xdd, 0x10, 0xa0, 0xf2, 0x42, 0xd0, 0x2c, 0x70, + 0xe1, 0xf8, 0x40, 0x0d, 0x14, 0x09, 0x92, 0x52, 0x94, 0x09, 0xb7, 0xa3, 0x67, 0x04, 0x39, 0x2a, + 0x17, 0xa6, 0xe2, 0x08, 0xd0, 0x53, 0xbb, 0x8b, 0x38, 0x4a, 0xd6, 0x58, 0x46, 0xff, 0x30, 0x76, + 0xdf, 0xbc, 0xfc, 0x6a, 0xdf, 0x29, 0xc9, 0x4c, 0x47, 0xfc, 0xc6, 0xf8, 0x7b, 0xfb, 0xf1, 0xda, + 0xb7, 0xc3, 0xe9, 0xae, 0xf2, 0xec, 0x7d, 0xe5, 0xd9, 0x0f, 0x95, 0x67, 0x5f, 0x1d, 0x3d, 0x6b, + 0x7f, 0xf4, 0xac, 0xdb, 0xa3, 0x67, 0xfd, 0x85, 0x0d, 0xb1, 0x3a, 0x26, 0x7d, 0x0c, 0x09, 0xcb, + 0x60, 0xb2, 0x42, 0x84, 0xc2, 0x62, 0x02, 0xcb, 0xd3, 0x05, 0xea, 0x94, 0xb8, 0xa3, 0x89, 0xc9, + 0x53, 0x00, 0x00, 0x00, 0xff, 0xff, 0x57, 0x4c, 0x65, 0x68, 0x9d, 0x02, 0x00, 0x00, +} + +func (this *Params) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Params) + if !ok { + that2, ok := that.(Params) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if len(this.MinDeposit) != len(that1.MinDeposit) { + return false + } + for i := range this.MinDeposit { + if !this.MinDeposit[i].Equal(&that1.MinDeposit[i]) { + return false + } + } + if this.MinInterval != that1.MinInterval { + return false + } + if this.MaxInterval != that1.MaxInterval { + return false + } + if this.MinDeviationBPS != that1.MinDeviationBPS { + return false + } + if this.MaxDeviationBPS != that1.MaxDeviationBPS { + return false + } + if this.MaxSignals != that1.MaxSignals { + return false + } + if len(this.BasePacketFee) != len(that1.BasePacketFee) { + return false + } + for i := range this.BasePacketFee { + if !this.BasePacketFee[i].Equal(&that1.BasePacketFee[i]) { + return false + } + } + return true +} +func (m *Params) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.BasePacketFee) > 0 { + for iNdEx := len(m.BasePacketFee) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BasePacketFee[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.MaxSignals != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxSignals)) + i-- + dAtA[i] = 0x30 + } + if m.MaxDeviationBPS != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxDeviationBPS)) + i-- + dAtA[i] = 0x28 + } + if m.MinDeviationBPS != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MinDeviationBPS)) + i-- + dAtA[i] = 0x20 + } + if m.MaxInterval != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxInterval)) + i-- + dAtA[i] = 0x18 + } + if m.MinInterval != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MinInterval)) + i-- + dAtA[i] = 0x10 + } + if len(m.MinDeposit) > 0 { + for iNdEx := len(m.MinDeposit) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MinDeposit[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintParams(dAtA []byte, offset int, v uint64) int { + offset -= sovParams(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.MinDeposit) > 0 { + for _, e := range m.MinDeposit { + l = e.Size() + n += 1 + l + sovParams(uint64(l)) + } + } + if m.MinInterval != 0 { + n += 1 + sovParams(uint64(m.MinInterval)) + } + if m.MaxInterval != 0 { + n += 1 + sovParams(uint64(m.MaxInterval)) + } + if m.MinDeviationBPS != 0 { + n += 1 + sovParams(uint64(m.MinDeviationBPS)) + } + if m.MaxDeviationBPS != 0 { + n += 1 + sovParams(uint64(m.MaxDeviationBPS)) + } + if m.MaxSignals != 0 { + n += 1 + sovParams(uint64(m.MaxSignals)) + } + if len(m.BasePacketFee) > 0 { + for _, e := range m.BasePacketFee { + l = e.Size() + n += 1 + l + sovParams(uint64(l)) + } + } + return n +} + +func sovParams(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozParams(x uint64) (n int) { + return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinDeposit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MinDeposit = append(m.MinDeposit, types.Coin{}) + if err := m.MinDeposit[len(m.MinDeposit)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinInterval", wireType) + } + m.MinInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinInterval |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxInterval", wireType) + } + m.MaxInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxInterval |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinDeviationBPS", wireType) + } + m.MinDeviationBPS = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinDeviationBPS |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxDeviationBPS", wireType) + } + m.MaxDeviationBPS = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxDeviationBPS |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSignals", wireType) + } + m.MaxSignals = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxSignals |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BasePacketFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BasePacketFee = append(m.BasePacketFee, types.Coin{}) + if err := m.BasePacketFee[len(m.BasePacketFee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipParams(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowParams + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowParams + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowParams + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthParams + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupParams + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthParams + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") +) diff --git a/internal/bandchain/tunnel/query.pb.go b/internal/bandchain/tunnel/query.pb.go new file mode 100644 index 0000000..d71eb5f --- /dev/null +++ b/internal/bandchain/tunnel/query.pb.go @@ -0,0 +1,3725 @@ +package types + +import ( + "context" + "fmt" + "io" + "math" + math_bits "math/bits" + + "github.com/cosmos/cosmos-sdk/types/query" + grpc1 "github.com/cosmos/gogoproto/grpc" + "github.com/cosmos/gogoproto/proto" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// TunnelStatusFilter defines a filter for tunnel status. +type TunnelStatusFilter int32 + +const ( + // TUNNEL_STATUS_FILTER_UNSPECIFIED defines an unspecified status. + TUNNEL_STATUS_FILTER_UNSPECIFIED TunnelStatusFilter = 0 + // TUNNEL_STATUS_FILTER_ACTIVE defines an active tunnel. + TUNNEL_STATUS_FILTER_ACTIVE TunnelStatusFilter = 1 + // TUNNEL_STATUS_FILTER_INACTIVE defines an inactive tunnel. + TUNNEL_STATUS_FILTER_INACTIVE TunnelStatusFilter = 2 +) + +var TunnelStatusFilter_name = map[int32]string{ + 0: "TUNNEL_STATUS_FILTER_UNSPECIFIED", + 1: "TUNNEL_STATUS_FILTER_ACTIVE", + 2: "TUNNEL_STATUS_FILTER_INACTIVE", +} + +var TunnelStatusFilter_value = map[string]int32{ + "TUNNEL_STATUS_FILTER_UNSPECIFIED": 0, + "TUNNEL_STATUS_FILTER_ACTIVE": 1, + "TUNNEL_STATUS_FILTER_INACTIVE": 2, +} + +func (x TunnelStatusFilter) String() string { + return proto.EnumName(TunnelStatusFilter_name, int32(x)) +} + +func (TunnelStatusFilter) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{0} +} + +// QueryTunnelsRequest is the request type for the Query/Tunnels RPC method. +type QueryTunnelsRequest struct { + // status_filter is a flag to filter tunnels by status. + StatusFilter TunnelStatusFilter `protobuf:"varint,1,opt,name=status_filter,json=statusFilter,proto3,enum=band.tunnel.v1beta1.TunnelStatusFilter" json:"status_filter,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryTunnelsRequest) Reset() { *m = QueryTunnelsRequest{} } +func (m *QueryTunnelsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTunnelsRequest) ProtoMessage() {} +func (*QueryTunnelsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{0} +} +func (m *QueryTunnelsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTunnelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTunnelsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTunnelsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTunnelsRequest.Merge(m, src) +} +func (m *QueryTunnelsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryTunnelsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTunnelsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTunnelsRequest proto.InternalMessageInfo + +func (m *QueryTunnelsRequest) GetStatusFilter() TunnelStatusFilter { + if m != nil { + return m.StatusFilter + } + return TUNNEL_STATUS_FILTER_UNSPECIFIED +} + +func (m *QueryTunnelsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryTunnelsResponse is the response type for the Query/Tunnels RPC method. +type QueryTunnelsResponse struct { + // Tunnels is a list of tunnels. + Tunnels []*Tunnel `protobuf:"bytes,1,rep,name=tunnels,proto3" json:"tunnels,omitempty"` + // pagination defines an optional pagination for the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryTunnelsResponse) Reset() { *m = QueryTunnelsResponse{} } +func (m *QueryTunnelsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTunnelsResponse) ProtoMessage() {} +func (*QueryTunnelsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{1} +} +func (m *QueryTunnelsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTunnelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTunnelsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTunnelsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTunnelsResponse.Merge(m, src) +} +func (m *QueryTunnelsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryTunnelsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTunnelsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTunnelsResponse proto.InternalMessageInfo + +func (m *QueryTunnelsResponse) GetTunnels() []*Tunnel { + if m != nil { + return m.Tunnels + } + return nil +} + +func (m *QueryTunnelsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryTunnelRequest is the request type for the Query/Tunnel RPC method. +type QueryTunnelRequest struct { + // tunnel_id is the ID of the tunnel to query. + TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` +} + +func (m *QueryTunnelRequest) Reset() { *m = QueryTunnelRequest{} } +func (m *QueryTunnelRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTunnelRequest) ProtoMessage() {} +func (*QueryTunnelRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{2} +} +func (m *QueryTunnelRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTunnelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTunnelRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTunnelRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTunnelRequest.Merge(m, src) +} +func (m *QueryTunnelRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryTunnelRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTunnelRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTunnelRequest proto.InternalMessageInfo + +func (m *QueryTunnelRequest) GetTunnelId() uint64 { + if m != nil { + return m.TunnelId + } + return 0 +} + +// QueryTunnelResponse is the response type for the Query/Tunnel RPC method. +type QueryTunnelResponse struct { + // tunnel is the tunnel with the given ID. + Tunnel Tunnel `protobuf:"bytes,1,opt,name=tunnel,proto3" json:"tunnel"` +} + +func (m *QueryTunnelResponse) Reset() { *m = QueryTunnelResponse{} } +func (m *QueryTunnelResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTunnelResponse) ProtoMessage() {} +func (*QueryTunnelResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{3} +} +func (m *QueryTunnelResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTunnelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTunnelResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTunnelResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTunnelResponse.Merge(m, src) +} +func (m *QueryTunnelResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryTunnelResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTunnelResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTunnelResponse proto.InternalMessageInfo + +func (m *QueryTunnelResponse) GetTunnel() Tunnel { + if m != nil { + return m.Tunnel + } + return Tunnel{} +} + +// QueryDepositsRequest is the request type for the Query/Deposits RPC method. +type QueryDepositsRequest struct { + // tunnel_id is the ID of the tunnel to query deposits. + TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryDepositsRequest) Reset() { *m = QueryDepositsRequest{} } +func (m *QueryDepositsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryDepositsRequest) ProtoMessage() {} +func (*QueryDepositsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{4} +} +func (m *QueryDepositsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDepositsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryDepositsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDepositsRequest.Merge(m, src) +} +func (m *QueryDepositsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryDepositsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDepositsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDepositsRequest proto.InternalMessageInfo + +func (m *QueryDepositsRequest) GetTunnelId() uint64 { + if m != nil { + return m.TunnelId + } + return 0 +} + +func (m *QueryDepositsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryDepositsResponse is the response type for the Query/Deposits RPC method. +type QueryDepositsResponse struct { + // deposits is a list of deposits. + Deposits []*Deposit `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits,omitempty"` + // pagination defines an optional pagination for the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryDepositsResponse) Reset() { *m = QueryDepositsResponse{} } +func (m *QueryDepositsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryDepositsResponse) ProtoMessage() {} +func (*QueryDepositsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{5} +} +func (m *QueryDepositsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDepositsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryDepositsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDepositsResponse.Merge(m, src) +} +func (m *QueryDepositsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryDepositsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDepositsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDepositsResponse proto.InternalMessageInfo + +func (m *QueryDepositsResponse) GetDeposits() []*Deposit { + if m != nil { + return m.Deposits + } + return nil +} + +func (m *QueryDepositsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryDepositRequest is the request type for the Query/Deposit RPC method. +type QueryDepositRequest struct { + // tunnel_id is the ID of the tunnel to query. + TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` + // depositor is the address of the depositor to query. + Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` +} + +func (m *QueryDepositRequest) Reset() { *m = QueryDepositRequest{} } +func (m *QueryDepositRequest) String() string { return proto.CompactTextString(m) } +func (*QueryDepositRequest) ProtoMessage() {} +func (*QueryDepositRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{6} +} +func (m *QueryDepositRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDepositRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDepositRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryDepositRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDepositRequest.Merge(m, src) +} +func (m *QueryDepositRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryDepositRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDepositRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDepositRequest proto.InternalMessageInfo + +func (m *QueryDepositRequest) GetTunnelId() uint64 { + if m != nil { + return m.TunnelId + } + return 0 +} + +func (m *QueryDepositRequest) GetDepositor() string { + if m != nil { + return m.Depositor + } + return "" +} + +// QueryDepositResponse is the response type for the Query/Deposit RPC method. +type QueryDepositResponse struct { + // deposit is the deposit with the given tunnel ID and depositor address. + Deposit Deposit `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit"` +} + +func (m *QueryDepositResponse) Reset() { *m = QueryDepositResponse{} } +func (m *QueryDepositResponse) String() string { return proto.CompactTextString(m) } +func (*QueryDepositResponse) ProtoMessage() {} +func (*QueryDepositResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{7} +} +func (m *QueryDepositResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDepositResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryDepositResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDepositResponse.Merge(m, src) +} +func (m *QueryDepositResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryDepositResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDepositResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDepositResponse proto.InternalMessageInfo + +func (m *QueryDepositResponse) GetDeposit() Deposit { + if m != nil { + return m.Deposit + } + return Deposit{} +} + +// QueryPacketsRequest is the request type for the Query/Packets RPC method. +type QueryPacketsRequest struct { + // tunnel_id is the ID of the tunnel to query packets. + TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryPacketsRequest) Reset() { *m = QueryPacketsRequest{} } +func (m *QueryPacketsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPacketsRequest) ProtoMessage() {} +func (*QueryPacketsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{8} +} +func (m *QueryPacketsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPacketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPacketsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryPacketsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPacketsRequest.Merge(m, src) +} +func (m *QueryPacketsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryPacketsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPacketsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPacketsRequest proto.InternalMessageInfo + +func (m *QueryPacketsRequest) GetTunnelId() uint64 { + if m != nil { + return m.TunnelId + } + return 0 +} + +func (m *QueryPacketsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryPacketsResponse is the response type for the Query/Packets RPC method. +type QueryPacketsResponse struct { + // packets is a list of packets. + Packets []*Packet `protobuf:"bytes,1,rep,name=packets,proto3" json:"packets,omitempty"` + // pagination defines an optional pagination for the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryPacketsResponse) Reset() { *m = QueryPacketsResponse{} } +func (m *QueryPacketsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPacketsResponse) ProtoMessage() {} +func (*QueryPacketsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{9} +} +func (m *QueryPacketsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPacketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPacketsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryPacketsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPacketsResponse.Merge(m, src) +} +func (m *QueryPacketsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryPacketsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPacketsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPacketsResponse proto.InternalMessageInfo + +func (m *QueryPacketsResponse) GetPackets() []*Packet { + if m != nil { + return m.Packets + } + return nil +} + +func (m *QueryPacketsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryPacketRequest is the request type for the Query/Packet RPC method. +type QueryPacketRequest struct { + // tunnel_id is the ID of the tunnel to query packets. + TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` + // sequence is the sequence of the packet to query. + Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` +} + +func (m *QueryPacketRequest) Reset() { *m = QueryPacketRequest{} } +func (m *QueryPacketRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPacketRequest) ProtoMessage() {} +func (*QueryPacketRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{10} +} +func (m *QueryPacketRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPacketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPacketRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryPacketRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPacketRequest.Merge(m, src) +} +func (m *QueryPacketRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryPacketRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPacketRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPacketRequest proto.InternalMessageInfo + +func (m *QueryPacketRequest) GetTunnelId() uint64 { + if m != nil { + return m.TunnelId + } + return 0 +} + +func (m *QueryPacketRequest) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +// QueryPacketResponse is the response type for the Query/Packet RPC method. +type QueryPacketResponse struct { + // packet is the packet with the given tunnel ID and sequence. + Packet *Packet `protobuf:"bytes,1,opt,name=packet,proto3" json:"packet,omitempty"` +} + +func (m *QueryPacketResponse) Reset() { *m = QueryPacketResponse{} } +func (m *QueryPacketResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPacketResponse) ProtoMessage() {} +func (*QueryPacketResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{11} +} +func (m *QueryPacketResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPacketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPacketResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryPacketResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPacketResponse.Merge(m, src) +} +func (m *QueryPacketResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryPacketResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPacketResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPacketResponse proto.InternalMessageInfo + +func (m *QueryPacketResponse) GetPacket() *Packet { + if m != nil { + return m.Packet + } + return nil +} + +// QueryTotalFeesRequest is the request type for the Query/TotalFees RPC method. +type QueryTotalFeesRequest struct { +} + +func (m *QueryTotalFeesRequest) Reset() { *m = QueryTotalFeesRequest{} } +func (m *QueryTotalFeesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTotalFeesRequest) ProtoMessage() {} +func (*QueryTotalFeesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{12} +} +func (m *QueryTotalFeesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTotalFeesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTotalFeesRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTotalFeesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTotalFeesRequest.Merge(m, src) +} +func (m *QueryTotalFeesRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryTotalFeesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTotalFeesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTotalFeesRequest proto.InternalMessageInfo + +// QueryTotalFeesResponse is the response type for the Query/TotalFees RPC method. +type QueryTotalFeesResponse struct { + // total_fees is the total fees collected by the tunnel. + TotalFees TotalFees `protobuf:"bytes,1,opt,name=total_fees,json=totalFees,proto3" json:"total_fees"` +} + +func (m *QueryTotalFeesResponse) Reset() { *m = QueryTotalFeesResponse{} } +func (m *QueryTotalFeesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTotalFeesResponse) ProtoMessage() {} +func (*QueryTotalFeesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{13} +} +func (m *QueryTotalFeesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTotalFeesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTotalFeesResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryTotalFeesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTotalFeesResponse.Merge(m, src) +} +func (m *QueryTotalFeesResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryTotalFeesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTotalFeesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTotalFeesResponse proto.InternalMessageInfo + +func (m *QueryTotalFeesResponse) GetTotalFees() TotalFees { + if m != nil { + return m.TotalFees + } + return TotalFees{} +} + +// QueryParamsRequest is the request type for the Query/Params RPC method. +type QueryParamsRequest struct { +} + +func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } +func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryParamsRequest) ProtoMessage() {} +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{14} +} +func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsRequest.Merge(m, src) +} +func (m *QueryParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo + +// QueryParamsResponse is the response type for the Query/Params RPC method. +type QueryParamsResponse struct { + // params is the parameters of the module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +} + +func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } +func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryParamsResponse) ProtoMessage() {} +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f80b85392d1440ac, []int{15} +} +func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsResponse.Merge(m, src) +} +func (m *QueryParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo + +func (m *QueryParamsResponse) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func init() { + proto.RegisterEnum("band.tunnel.v1beta1.TunnelStatusFilter", TunnelStatusFilter_name, TunnelStatusFilter_value) + proto.RegisterType((*QueryTunnelsRequest)(nil), "band.tunnel.v1beta1.QueryTunnelsRequest") + proto.RegisterType((*QueryTunnelsResponse)(nil), "band.tunnel.v1beta1.QueryTunnelsResponse") + proto.RegisterType((*QueryTunnelRequest)(nil), "band.tunnel.v1beta1.QueryTunnelRequest") + proto.RegisterType((*QueryTunnelResponse)(nil), "band.tunnel.v1beta1.QueryTunnelResponse") + proto.RegisterType((*QueryDepositsRequest)(nil), "band.tunnel.v1beta1.QueryDepositsRequest") + proto.RegisterType((*QueryDepositsResponse)(nil), "band.tunnel.v1beta1.QueryDepositsResponse") + proto.RegisterType((*QueryDepositRequest)(nil), "band.tunnel.v1beta1.QueryDepositRequest") + proto.RegisterType((*QueryDepositResponse)(nil), "band.tunnel.v1beta1.QueryDepositResponse") + proto.RegisterType((*QueryPacketsRequest)(nil), "band.tunnel.v1beta1.QueryPacketsRequest") + proto.RegisterType((*QueryPacketsResponse)(nil), "band.tunnel.v1beta1.QueryPacketsResponse") + proto.RegisterType((*QueryPacketRequest)(nil), "band.tunnel.v1beta1.QueryPacketRequest") + proto.RegisterType((*QueryPacketResponse)(nil), "band.tunnel.v1beta1.QueryPacketResponse") + proto.RegisterType((*QueryTotalFeesRequest)(nil), "band.tunnel.v1beta1.QueryTotalFeesRequest") + proto.RegisterType((*QueryTotalFeesResponse)(nil), "band.tunnel.v1beta1.QueryTotalFeesResponse") + proto.RegisterType((*QueryParamsRequest)(nil), "band.tunnel.v1beta1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "band.tunnel.v1beta1.QueryParamsResponse") +} + +func init() { proto.RegisterFile("band/tunnel/v1beta1/query.proto", fileDescriptor_f80b85392d1440ac) } + +var fileDescriptor_f80b85392d1440ac = []byte{ + // 944 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcf, 0x6f, 0x1b, 0x45, + 0x18, 0xf5, 0x84, 0x60, 0xc7, 0x53, 0x40, 0xd5, 0x34, 0xb4, 0x61, 0x13, 0x36, 0x66, 0xf9, 0x11, + 0x37, 0x81, 0x1d, 0x25, 0x01, 0x14, 0x10, 0x42, 0xb4, 0xa9, 0x8d, 0x8c, 0x42, 0x64, 0x36, 0x0e, + 0x07, 0x24, 0x64, 0xad, 0x9d, 0xa9, 0xbb, 0xc2, 0xd9, 0xd9, 0x7a, 0xd6, 0x15, 0xc5, 0x8a, 0x90, + 0x10, 0x87, 0x1e, 0x38, 0x20, 0x55, 0x02, 0x09, 0x2e, 0x48, 0x1c, 0xf9, 0x47, 0x7a, 0xac, 0xc4, + 0x85, 0x13, 0x42, 0x09, 0x7f, 0x08, 0xda, 0x99, 0x6f, 0xd6, 0x5e, 0x77, 0x59, 0x6f, 0xa4, 0xa8, + 0x37, 0x7b, 0xf6, 0x7d, 0xf3, 0xde, 0xf7, 0xbe, 0x99, 0xb7, 0x8b, 0x57, 0x3b, 0xae, 0x7f, 0x44, + 0xc3, 0xa1, 0xef, 0xb3, 0x3e, 0xbd, 0xb7, 0xd9, 0x61, 0xa1, 0xbb, 0x49, 0xef, 0x0e, 0xd9, 0xe0, + 0xbe, 0x1d, 0x0c, 0x78, 0xc8, 0xc9, 0x95, 0x08, 0x60, 0x2b, 0x80, 0x0d, 0x00, 0x63, 0xb1, 0xc7, + 0x7b, 0x5c, 0x3e, 0xa7, 0xd1, 0x2f, 0x05, 0x35, 0xd6, 0xbb, 0x5c, 0x1c, 0x73, 0x41, 0x3b, 0xae, + 0x60, 0x6a, 0x8f, 0x78, 0xc7, 0xc0, 0xed, 0x79, 0xbe, 0x1b, 0x7a, 0xdc, 0x07, 0xec, 0x4a, 0x8f, + 0xf3, 0x5e, 0x9f, 0x51, 0x37, 0xf0, 0xa8, 0xeb, 0xfb, 0x3c, 0x94, 0x0f, 0x05, 0x3c, 0xad, 0xa4, + 0xa9, 0x0a, 0xdc, 0x81, 0x7b, 0x9c, 0x89, 0x00, 0x95, 0x12, 0x61, 0xfd, 0x81, 0xf0, 0x95, 0xcf, + 0x22, 0x11, 0x2d, 0xb9, 0x2a, 0x1c, 0x76, 0x77, 0xc8, 0x44, 0x48, 0xf6, 0xf0, 0xf3, 0x22, 0x74, + 0xc3, 0xa1, 0x68, 0xdf, 0xf6, 0xfa, 0x21, 0x1b, 0x2c, 0xa1, 0x0a, 0xaa, 0xbe, 0xb0, 0xb5, 0x66, + 0xa7, 0x34, 0x6a, 0xab, 0xda, 0x03, 0x89, 0xaf, 0x4b, 0xb8, 0xf3, 0x9c, 0x98, 0xf8, 0x47, 0xea, + 0x18, 0x8f, 0x7b, 0x5b, 0x9a, 0xab, 0xa0, 0xea, 0xa5, 0xad, 0x37, 0x6c, 0x65, 0x84, 0x1d, 0x19, + 0x61, 0x2b, 0x33, 0xf5, 0x86, 0x4d, 0xb7, 0xc7, 0x40, 0x89, 0x33, 0x51, 0x69, 0xfd, 0x84, 0xf0, + 0x62, 0x52, 0xad, 0x08, 0xb8, 0x2f, 0x18, 0x79, 0x07, 0x97, 0x94, 0x26, 0xb1, 0x84, 0x2a, 0xcf, + 0x54, 0x2f, 0x6d, 0x2d, 0x67, 0x08, 0x75, 0x34, 0x96, 0x7c, 0x9c, 0xa2, 0x6b, 0x6d, 0xa6, 0x2e, + 0xc5, 0x99, 0x10, 0xb6, 0x89, 0xc9, 0x84, 0x2e, 0x6d, 0xe2, 0x32, 0x2e, 0x2b, 0xa6, 0xb6, 0x77, + 0x24, 0x0d, 0x9c, 0x77, 0x16, 0xd4, 0x42, 0xe3, 0xc8, 0x6a, 0x26, 0x8c, 0x8f, 0x3b, 0x79, 0x0f, + 0x17, 0x15, 0x44, 0x16, 0x64, 0x37, 0x72, 0x73, 0xfe, 0xd1, 0xdf, 0xab, 0x05, 0x07, 0x0a, 0xac, + 0x11, 0x98, 0x73, 0x8b, 0x05, 0x5c, 0x78, 0xa1, 0xc8, 0x23, 0xe3, 0xc2, 0x46, 0xf3, 0x0b, 0xc2, + 0x2f, 0x4e, 0xb1, 0x43, 0x47, 0x3b, 0x78, 0xe1, 0x08, 0xd6, 0x60, 0x38, 0x2b, 0xa9, 0x3d, 0x41, + 0xa1, 0x13, 0xa3, 0x2f, 0x6e, 0x3c, 0xda, 0x6b, 0x4d, 0x91, 0xc7, 0x98, 0x15, 0x5c, 0x06, 0x21, + 0x7c, 0x20, 0xb9, 0xcb, 0xce, 0x78, 0xc1, 0x6a, 0x25, 0xbd, 0x8e, 0x9b, 0xfd, 0x00, 0x97, 0x00, + 0x04, 0xf3, 0xcb, 0xec, 0x15, 0x06, 0xa8, 0x4b, 0xac, 0x6f, 0x40, 0x67, 0xd3, 0xed, 0x7e, 0xc5, + 0x9e, 0xf2, 0x00, 0xe3, 0xbb, 0x15, 0x93, 0x8f, 0xef, 0x56, 0xa0, 0x96, 0x32, 0xef, 0x96, 0x2a, + 0x73, 0x34, 0xf6, 0xe2, 0x86, 0xf7, 0x29, 0xdc, 0x2d, 0x20, 0xc8, 0xe3, 0x89, 0x81, 0x17, 0x44, + 0x84, 0xf3, 0xbb, 0x4c, 0x32, 0xcf, 0x3b, 0xf1, 0x7f, 0xeb, 0x93, 0x84, 0xc7, 0x71, 0x97, 0xdb, + 0xb8, 0xa8, 0x94, 0x67, 0xde, 0x3b, 0x28, 0x02, 0xa8, 0x75, 0x0d, 0xce, 0x7c, 0x8b, 0x87, 0x6e, + 0xbf, 0xce, 0x98, 0x9e, 0x98, 0xf5, 0x25, 0xbe, 0x3a, 0xfd, 0x00, 0x78, 0x76, 0x31, 0x0e, 0xa3, + 0xc5, 0xf6, 0x6d, 0xc6, 0x04, 0x70, 0x99, 0xe9, 0x77, 0x5c, 0xd7, 0xc2, 0x29, 0x29, 0x87, 0x7a, + 0xc1, 0x5a, 0x8c, 0x2d, 0x89, 0xc2, 0x5e, 0x93, 0x36, 0xe3, 0xce, 0xd4, 0xea, 0x38, 0x51, 0xd4, + 0x4b, 0x61, 0x46, 0x67, 0x11, 0x44, 0x27, 0x8a, 0x2a, 0x58, 0xff, 0x1e, 0x61, 0xf2, 0x64, 0xb8, + 0x93, 0xd7, 0x70, 0xa5, 0x75, 0xb8, 0xbf, 0x5f, 0xdb, 0x6b, 0x1f, 0xb4, 0x6e, 0xb4, 0x0e, 0x0f, + 0xda, 0xf5, 0xc6, 0x5e, 0xab, 0xe6, 0xb4, 0x0f, 0xf7, 0x0f, 0x9a, 0xb5, 0xdd, 0x46, 0xbd, 0x51, + 0xbb, 0x75, 0xb9, 0x40, 0x56, 0xf1, 0x72, 0x2a, 0xea, 0xc6, 0x6e, 0xab, 0xf1, 0x79, 0xed, 0x32, + 0x22, 0xaf, 0xe0, 0x97, 0x53, 0x01, 0x8d, 0x7d, 0x80, 0xcc, 0x19, 0xf3, 0x0f, 0x7e, 0x37, 0x0b, + 0x5b, 0x3f, 0x94, 0xf1, 0xb3, 0xb2, 0x33, 0xf2, 0x2d, 0x2e, 0x41, 0xf4, 0x93, 0x6a, 0x6a, 0x1b, + 0x29, 0xef, 0x32, 0xe3, 0x7a, 0x0e, 0xa4, 0xf2, 0xca, 0x5a, 0xfd, 0xee, 0xcf, 0x7f, 0x1f, 0xce, + 0xbd, 0x44, 0xae, 0xa5, 0xbf, 0x34, 0x05, 0x79, 0x80, 0x70, 0x51, 0x15, 0x91, 0xb5, 0x59, 0xdb, + 0x6a, 0xfe, 0xea, 0x6c, 0x20, 0xd0, 0x6f, 0x48, 0xfa, 0xd7, 0xc9, 0xab, 0xff, 0x43, 0x4f, 0x47, + 0xf1, 0x99, 0x3f, 0x21, 0x3f, 0x23, 0xbc, 0xa0, 0xc3, 0x96, 0x64, 0xf4, 0x38, 0xf5, 0x3a, 0x30, + 0xd6, 0xf3, 0x40, 0x41, 0xd0, 0xdb, 0x52, 0x90, 0x4d, 0xde, 0xcc, 0x21, 0x88, 0xc6, 0xb9, 0xfd, + 0x1b, 0xc2, 0x25, 0xd8, 0x2a, 0x6b, 0x4c, 0xc9, 0x34, 0x36, 0xae, 0xe7, 0x40, 0x82, 0xac, 0x8f, + 0xa4, 0xac, 0xf7, 0xc9, 0xce, 0x79, 0x64, 0xd1, 0x51, 0x1c, 0xdf, 0x27, 0xe4, 0x21, 0xc2, 0x25, + 0x08, 0xba, 0x2c, 0x89, 0xc9, 0x20, 0xce, 0x92, 0x38, 0x95, 0x9a, 0xd6, 0xb6, 0x94, 0xf8, 0x16, + 0xd9, 0xc8, 0x23, 0x51, 0x67, 0xe6, 0xaf, 0x08, 0x17, 0xd5, 0x46, 0x59, 0xa7, 0x2b, 0x11, 0x84, + 0x46, 0x75, 0x36, 0x10, 0x24, 0x7d, 0x28, 0x25, 0xed, 0x90, 0x77, 0xcf, 0x21, 0x89, 0x8e, 0x74, + 0x70, 0x9e, 0x44, 0x67, 0xbf, 0x1c, 0x87, 0x12, 0xc9, 0x38, 0x46, 0xd3, 0x71, 0x68, 0x6c, 0xe4, + 0xc2, 0x82, 0x4c, 0x4b, 0xca, 0x5c, 0x21, 0xc6, 0x13, 0x32, 0xe3, 0xdc, 0x24, 0xa3, 0xc8, 0xa7, + 0x28, 0xa2, 0xb2, 0x7d, 0x9a, 0x48, 0xc7, 0x6c, 0x9f, 0x26, 0x03, 0xd3, 0x32, 0xa5, 0x80, 0x25, + 0x72, 0x35, 0xfd, 0xdb, 0xfa, 0x66, 0xe3, 0xd1, 0xa9, 0x89, 0x1e, 0x9f, 0x9a, 0xe8, 0x9f, 0x53, + 0x13, 0xfd, 0x78, 0x66, 0x16, 0x1e, 0x9f, 0x99, 0x85, 0xbf, 0xce, 0xcc, 0xc2, 0x17, 0xb4, 0xe7, + 0x85, 0x77, 0x86, 0x1d, 0xbb, 0xcb, 0x8f, 0x69, 0xc4, 0x26, 0xbf, 0xb1, 0xbb, 0xbc, 0x4f, 0xbb, + 0x77, 0x5c, 0xcf, 0xa7, 0xf7, 0xb6, 0xe9, 0xd7, 0x7a, 0xcf, 0xf0, 0x7e, 0xc0, 0x44, 0xa7, 0x28, + 0x11, 0xdb, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x75, 0xeb, 0x1c, 0x48, 0x61, 0x0c, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Tunnels is a RPC method that returns all tunnels. + Tunnels(ctx context.Context, in *QueryTunnelsRequest, opts ...grpc.CallOption) (*QueryTunnelsResponse, error) + // Tunnel is a RPC method that returns a tunnel by its ID. + Tunnel(ctx context.Context, in *QueryTunnelRequest, opts ...grpc.CallOption) (*QueryTunnelResponse, error) + // Deposits queries all deposits of a single tunnel. + Deposits(ctx context.Context, in *QueryDepositsRequest, opts ...grpc.CallOption) (*QueryDepositsResponse, error) + // Deposit queries single deposit information based tunnelID, depositAddr. + Deposit(ctx context.Context, in *QueryDepositRequest, opts ...grpc.CallOption) (*QueryDepositResponse, error) + // Packets is a RPC method that returns all packets of a tunnel. + Packets(ctx context.Context, in *QueryPacketsRequest, opts ...grpc.CallOption) (*QueryPacketsResponse, error) + // Packet is a RPC method that returns a packet by its tunnel ID and sequence. + Packet(ctx context.Context, in *QueryPacketRequest, opts ...grpc.CallOption) (*QueryPacketResponse, error) + // TotalFees is a RPC method that returns the total fees collected by the tunnel + TotalFees(ctx context.Context, in *QueryTotalFeesRequest, opts ...grpc.CallOption) (*QueryTotalFeesResponse, error) + // Params is a RPC method that returns all parameters of the module. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Tunnels( + ctx context.Context, + in *QueryTunnelsRequest, + opts ...grpc.CallOption, +) (*QueryTunnelsResponse, error) { + out := new(QueryTunnelsResponse) + err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Tunnels", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Tunnel( + ctx context.Context, + in *QueryTunnelRequest, + opts ...grpc.CallOption, +) (*QueryTunnelResponse, error) { + out := new(QueryTunnelResponse) + err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Tunnel", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Deposits( + ctx context.Context, + in *QueryDepositsRequest, + opts ...grpc.CallOption, +) (*QueryDepositsResponse, error) { + out := new(QueryDepositsResponse) + err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Deposits", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Deposit( + ctx context.Context, + in *QueryDepositRequest, + opts ...grpc.CallOption, +) (*QueryDepositResponse, error) { + out := new(QueryDepositResponse) + err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Deposit", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Packets( + ctx context.Context, + in *QueryPacketsRequest, + opts ...grpc.CallOption, +) (*QueryPacketsResponse, error) { + out := new(QueryPacketsResponse) + err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Packets", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Packet( + ctx context.Context, + in *QueryPacketRequest, + opts ...grpc.CallOption, +) (*QueryPacketResponse, error) { + out := new(QueryPacketResponse) + err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Packet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) TotalFees( + ctx context.Context, + in *QueryTotalFeesRequest, + opts ...grpc.CallOption, +) (*QueryTotalFeesResponse, error) { + out := new(QueryTotalFeesResponse) + err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/TotalFees", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Params( + ctx context.Context, + in *QueryParamsRequest, + opts ...grpc.CallOption, +) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Tunnels is a RPC method that returns all tunnels. + Tunnels(context.Context, *QueryTunnelsRequest) (*QueryTunnelsResponse, error) + // Tunnel is a RPC method that returns a tunnel by its ID. + Tunnel(context.Context, *QueryTunnelRequest) (*QueryTunnelResponse, error) + // Deposits queries all deposits of a single tunnel. + Deposits(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error) + // Deposit queries single deposit information based tunnelID, depositAddr. + Deposit(context.Context, *QueryDepositRequest) (*QueryDepositResponse, error) + // Packets is a RPC method that returns all packets of a tunnel. + Packets(context.Context, *QueryPacketsRequest) (*QueryPacketsResponse, error) + // Packet is a RPC method that returns a packet by its tunnel ID and sequence. + Packet(context.Context, *QueryPacketRequest) (*QueryPacketResponse, error) + // TotalFees is a RPC method that returns the total fees collected by the tunnel + TotalFees(context.Context, *QueryTotalFeesRequest) (*QueryTotalFeesResponse, error) + // Params is a RPC method that returns all parameters of the module. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Tunnels( + ctx context.Context, + req *QueryTunnelsRequest, +) (*QueryTunnelsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Tunnels not implemented") +} +func (*UnimplementedQueryServer) Tunnel(ctx context.Context, req *QueryTunnelRequest) (*QueryTunnelResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Tunnel not implemented") +} + +func (*UnimplementedQueryServer) Deposits( + ctx context.Context, + req *QueryDepositsRequest, +) (*QueryDepositsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Deposits not implemented") +} + +func (*UnimplementedQueryServer) Deposit( + ctx context.Context, + req *QueryDepositRequest, +) (*QueryDepositResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Deposit not implemented") +} + +func (*UnimplementedQueryServer) Packets( + ctx context.Context, + req *QueryPacketsRequest, +) (*QueryPacketsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Packets not implemented") +} +func (*UnimplementedQueryServer) Packet(ctx context.Context, req *QueryPacketRequest) (*QueryPacketResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Packet not implemented") +} + +func (*UnimplementedQueryServer) TotalFees( + ctx context.Context, + req *QueryTotalFeesRequest, +) (*QueryTotalFeesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TotalFees not implemented") +} +func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_Tunnels_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryTunnelsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Tunnels(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.tunnel.v1beta1.Query/Tunnels", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Tunnels(ctx, req.(*QueryTunnelsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Tunnel_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryTunnelRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Tunnel(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.tunnel.v1beta1.Query/Tunnel", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Tunnel(ctx, req.(*QueryTunnelRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Deposits_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryDepositsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Deposits(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.tunnel.v1beta1.Query/Deposits", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Deposits(ctx, req.(*QueryDepositsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Deposit_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryDepositRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Deposit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.tunnel.v1beta1.Query/Deposit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Deposit(ctx, req.(*QueryDepositRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Packets_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryPacketsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Packets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.tunnel.v1beta1.Query/Packets", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Packets(ctx, req.(*QueryPacketsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Packet_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryPacketRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Packet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.tunnel.v1beta1.Query/Packet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Packet(ctx, req.(*QueryPacketRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_TotalFees_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryTotalFeesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).TotalFees(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.tunnel.v1beta1.Query/TotalFees", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TotalFees(ctx, req.(*QueryTotalFeesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Params_Handler( + srv interface{}, + ctx context.Context, + dec func(interface{}) error, + interceptor grpc.UnaryServerInterceptor, +) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/band.tunnel.v1beta1.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "band.tunnel.v1beta1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Tunnels", + Handler: _Query_Tunnels_Handler, + }, + { + MethodName: "Tunnel", + Handler: _Query_Tunnel_Handler, + }, + { + MethodName: "Deposits", + Handler: _Query_Deposits_Handler, + }, + { + MethodName: "Deposit", + Handler: _Query_Deposit_Handler, + }, + { + MethodName: "Packets", + Handler: _Query_Packets_Handler, + }, + { + MethodName: "Packet", + Handler: _Query_Packet_Handler, + }, + { + MethodName: "TotalFees", + Handler: _Query_TotalFees_Handler, + }, + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "band/tunnel/v1beta1/query.proto", +} + +func (m *QueryTunnelsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTunnelsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTunnelsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.StatusFilter != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.StatusFilter)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryTunnelsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTunnelsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTunnelsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Tunnels) > 0 { + for iNdEx := len(m.Tunnels) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tunnels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryTunnelRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTunnelRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTunnelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TunnelId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TunnelId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryTunnelResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTunnelResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTunnelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Tunnel.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryDepositsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryDepositsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.TunnelId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TunnelId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryDepositsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryDepositsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Deposits) > 0 { + for iNdEx := len(m.Deposits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Deposits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryDepositRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryDepositRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDepositRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Depositor) > 0 { + i -= len(m.Depositor) + copy(dAtA[i:], m.Depositor) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Depositor))) + i-- + dAtA[i] = 0x12 + } + if m.TunnelId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TunnelId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryDepositResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryDepositResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Deposit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryPacketsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryPacketsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryPacketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.TunnelId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TunnelId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryPacketsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryPacketsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryPacketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Packets) > 0 { + for iNdEx := len(m.Packets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Packets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryPacketRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryPacketRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryPacketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Sequence != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Sequence)) + i-- + dAtA[i] = 0x10 + } + if m.TunnelId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TunnelId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryPacketResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryPacketResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryPacketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Packet != nil { + { + size, err := m.Packet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTotalFeesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTotalFeesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTotalFeesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryTotalFeesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryTotalFeesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTotalFeesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.TotalFees.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryTunnelsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StatusFilter != 0 { + n += 1 + sovQuery(uint64(m.StatusFilter)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTunnelsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Tunnels) > 0 { + for _, e := range m.Tunnels { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTunnelRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelId != 0 { + n += 1 + sovQuery(uint64(m.TunnelId)) + } + return n +} + +func (m *QueryTunnelResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Tunnel.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryDepositsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelId != 0 { + n += 1 + sovQuery(uint64(m.TunnelId)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryDepositsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Deposits) > 0 { + for _, e := range m.Deposits { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryDepositRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelId != 0 { + n += 1 + sovQuery(uint64(m.TunnelId)) + } + l = len(m.Depositor) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryDepositResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Deposit.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryPacketsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelId != 0 { + n += 1 + sovQuery(uint64(m.TunnelId)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryPacketsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Packets) > 0 { + for _, e := range m.Packets { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryPacketRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelId != 0 { + n += 1 + sovQuery(uint64(m.TunnelId)) + } + if m.Sequence != 0 { + n += 1 + sovQuery(uint64(m.Sequence)) + } + return n +} + +func (m *QueryPacketResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packet != nil { + l = m.Packet.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTotalFeesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryTotalFeesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TotalFees.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryTunnelsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTunnelsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTunnelsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusFilter", wireType) + } + m.StatusFilter = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StatusFilter |= TunnelStatusFilter(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTunnelsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTunnelsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTunnelsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tunnels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tunnels = append(m.Tunnels, &Tunnel{}) + if err := m.Tunnels[len(m.Tunnels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTunnelRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTunnelRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTunnelRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) + } + m.TunnelId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TunnelId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTunnelResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTunnelResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTunnelResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tunnel", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Tunnel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryDepositsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryDepositsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDepositsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) + } + m.TunnelId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TunnelId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryDepositsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryDepositsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDepositsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Deposits", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Deposits = append(m.Deposits, &Deposit{}) + if err := m.Deposits[len(m.Deposits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryDepositRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryDepositRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDepositRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) + } + m.TunnelId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TunnelId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Depositor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Depositor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryDepositResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryDepositResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Deposit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryPacketsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryPacketsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryPacketsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) + } + m.TunnelId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TunnelId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryPacketsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryPacketsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryPacketsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Packets = append(m.Packets, &Packet{}) + if err := m.Packets[len(m.Packets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryPacketRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryPacketRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryPacketRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) + } + m.TunnelId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TunnelId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + } + m.Sequence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryPacketResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryPacketResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryPacketResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Packet == nil { + m.Packet = &Packet{} + } + if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTotalFeesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTotalFeesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTotalFeesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTotalFeesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryTotalFeesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTotalFeesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalFees", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalFees.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/internal/bandchain/tunnel/route.go b/internal/bandchain/tunnel/route.go new file mode 100644 index 0000000..4beb343 --- /dev/null +++ b/internal/bandchain/tunnel/route.go @@ -0,0 +1,10 @@ +package types + +import "github.com/cosmos/gogoproto/proto" + +// RouteI defines a routing path to deliver data to the destination. +type RouteI interface { + proto.Message + + ValidateBasic() error +} diff --git a/internal/bandchain/tunnel/route.pb.go b/internal/bandchain/tunnel/route.pb.go new file mode 100644 index 0000000..0545018 --- /dev/null +++ b/internal/bandchain/tunnel/route.pb.go @@ -0,0 +1,1344 @@ +package types + +import ( + "fmt" + "io" + "math" + math_bits "math/bits" + + "github.com/cosmos/gogoproto/proto" + + github_com_bandprotocol_chain_v3_x_bandtss_types "github.com/bandprotocol/falcon/internal/bandchain/bandtss" + types "github.com/bandprotocol/falcon/internal/bandchain/feeds" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// TSSRoute represents a route for TSS packets and implements the RouteI interface. +type TSSRoute struct { + // destination_chain_id is the destination chain ID + DestinationChainID string `protobuf:"bytes,1,opt,name=destination_chain_id,json=destinationChainId,proto3" json:"destination_chain_id,omitempty"` + // destination_contract_address is the destination contract address + DestinationContractAddress string `protobuf:"bytes,2,opt,name=destination_contract_address,json=destinationContractAddress,proto3" json:"destination_contract_address,omitempty"` + // encoder is the mode of encoding packet data. + Encoder types.Encoder `protobuf:"varint,3,opt,name=encoder,proto3,enum=band.feeds.v1beta1.Encoder" json:"encoder,omitempty"` +} + +func (m *TSSRoute) Reset() { *m = TSSRoute{} } +func (m *TSSRoute) String() string { return proto.CompactTextString(m) } +func (*TSSRoute) ProtoMessage() {} +func (*TSSRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_543238289d94b7a6, []int{0} +} +func (m *TSSRoute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TSSRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TSSRoute.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TSSRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_TSSRoute.Merge(m, src) +} +func (m *TSSRoute) XXX_Size() int { + return m.Size() +} +func (m *TSSRoute) XXX_DiscardUnknown() { + xxx_messageInfo_TSSRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_TSSRoute proto.InternalMessageInfo + +func (m *TSSRoute) GetDestinationChainID() string { + if m != nil { + return m.DestinationChainID + } + return "" +} + +func (m *TSSRoute) GetDestinationContractAddress() string { + if m != nil { + return m.DestinationContractAddress + } + return "" +} + +func (m *TSSRoute) GetEncoder() types.Encoder { + if m != nil { + return m.Encoder + } + return types.ENCODER_UNSPECIFIED +} + +// TSSPacketReceipt represents a receipt for a TSS packet and implements the PacketReceiptI interface. +type TSSPacketReceipt struct { + // signing_id is the signing ID + SigningID github_com_bandprotocol_chain_v3_x_bandtss_types.SigningID `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3,casttype=github.com/bandprotocol/chain/v3/x/bandtss/types.SigningID" json:"signing_id,omitempty"` +} + +func (m *TSSPacketReceipt) Reset() { *m = TSSPacketReceipt{} } +func (m *TSSPacketReceipt) String() string { return proto.CompactTextString(m) } +func (*TSSPacketReceipt) ProtoMessage() {} +func (*TSSPacketReceipt) Descriptor() ([]byte, []int) { + return fileDescriptor_543238289d94b7a6, []int{1} +} +func (m *TSSPacketReceipt) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TSSPacketReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TSSPacketReceipt.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TSSPacketReceipt) XXX_Merge(src proto.Message) { + xxx_messageInfo_TSSPacketReceipt.Merge(m, src) +} +func (m *TSSPacketReceipt) XXX_Size() int { + return m.Size() +} +func (m *TSSPacketReceipt) XXX_DiscardUnknown() { + xxx_messageInfo_TSSPacketReceipt.DiscardUnknown(m) +} + +var xxx_messageInfo_TSSPacketReceipt proto.InternalMessageInfo + +func (m *TSSPacketReceipt) GetSigningID() github_com_bandprotocol_chain_v3_x_bandtss_types.SigningID { + if m != nil { + return m.SigningID + } + return 0 +} + +// IBCRoute represents a route for IBC packets and implements the RouteI interface. +type IBCRoute struct { + // channel_id is the IBC channel ID + ChannelID string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` +} + +func (m *IBCRoute) Reset() { *m = IBCRoute{} } +func (m *IBCRoute) String() string { return proto.CompactTextString(m) } +func (*IBCRoute) ProtoMessage() {} +func (*IBCRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_543238289d94b7a6, []int{2} +} +func (m *IBCRoute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IBCRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IBCRoute.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IBCRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_IBCRoute.Merge(m, src) +} +func (m *IBCRoute) XXX_Size() int { + return m.Size() +} +func (m *IBCRoute) XXX_DiscardUnknown() { + xxx_messageInfo_IBCRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_IBCRoute proto.InternalMessageInfo + +func (m *IBCRoute) GetChannelID() string { + if m != nil { + return m.ChannelID + } + return "" +} + +// IBCPacketReceipt represents a receipt for a IBC packet and implements the PacketReceiptI interface. +type IBCPacketReceipt struct { + // sequence is representing the sequence of the IBC packet. + Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"` +} + +func (m *IBCPacketReceipt) Reset() { *m = IBCPacketReceipt{} } +func (m *IBCPacketReceipt) String() string { return proto.CompactTextString(m) } +func (*IBCPacketReceipt) ProtoMessage() {} +func (*IBCPacketReceipt) Descriptor() ([]byte, []int) { + return fileDescriptor_543238289d94b7a6, []int{3} +} +func (m *IBCPacketReceipt) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IBCPacketReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IBCPacketReceipt.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IBCPacketReceipt) XXX_Merge(src proto.Message) { + xxx_messageInfo_IBCPacketReceipt.Merge(m, src) +} +func (m *IBCPacketReceipt) XXX_Size() int { + return m.Size() +} +func (m *IBCPacketReceipt) XXX_DiscardUnknown() { + xxx_messageInfo_IBCPacketReceipt.DiscardUnknown(m) +} + +var xxx_messageInfo_IBCPacketReceipt proto.InternalMessageInfo + +func (m *IBCPacketReceipt) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +// TunnelPricesPacketData represents the IBC packet payload for the tunnel packet. +type TunnelPricesPacketData struct { + // tunnel_id is the tunnel ID + TunnelID uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` + // sequence is representing the sequence of the tunnel packet. + Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` + // prices is the list of prices information from feeds module. + Prices []types.Price `protobuf:"bytes,3,rep,name=prices,proto3" json:"prices"` + // created_at is the timestamp when the packet is created + CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` +} + +func (m *TunnelPricesPacketData) Reset() { *m = TunnelPricesPacketData{} } +func (m *TunnelPricesPacketData) String() string { return proto.CompactTextString(m) } +func (*TunnelPricesPacketData) ProtoMessage() {} +func (*TunnelPricesPacketData) Descriptor() ([]byte, []int) { + return fileDescriptor_543238289d94b7a6, []int{4} +} +func (m *TunnelPricesPacketData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TunnelPricesPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TunnelPricesPacketData.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TunnelPricesPacketData) XXX_Merge(src proto.Message) { + xxx_messageInfo_TunnelPricesPacketData.Merge(m, src) +} +func (m *TunnelPricesPacketData) XXX_Size() int { + return m.Size() +} +func (m *TunnelPricesPacketData) XXX_DiscardUnknown() { + xxx_messageInfo_TunnelPricesPacketData.DiscardUnknown(m) +} + +var xxx_messageInfo_TunnelPricesPacketData proto.InternalMessageInfo + +func (m *TunnelPricesPacketData) GetTunnelID() uint64 { + if m != nil { + return m.TunnelID + } + return 0 +} + +func (m *TunnelPricesPacketData) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *TunnelPricesPacketData) GetPrices() []types.Price { + if m != nil { + return m.Prices + } + return nil +} + +func (m *TunnelPricesPacketData) GetCreatedAt() int64 { + if m != nil { + return m.CreatedAt + } + return 0 +} + +func init() { + proto.RegisterType((*TSSRoute)(nil), "band.tunnel.v1beta1.TSSRoute") + proto.RegisterType((*TSSPacketReceipt)(nil), "band.tunnel.v1beta1.TSSPacketReceipt") + proto.RegisterType((*IBCRoute)(nil), "band.tunnel.v1beta1.IBCRoute") + proto.RegisterType((*IBCPacketReceipt)(nil), "band.tunnel.v1beta1.IBCPacketReceipt") + proto.RegisterType((*TunnelPricesPacketData)(nil), "band.tunnel.v1beta1.TunnelPricesPacketData") +} + +func init() { proto.RegisterFile("band/tunnel/v1beta1/route.proto", fileDescriptor_543238289d94b7a6) } + +var fileDescriptor_543238289d94b7a6 = []byte{ + // 542 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x6e, 0xd3, 0x30, + 0x18, 0xc7, 0xeb, 0xb5, 0x2a, 0xad, 0x81, 0x69, 0x32, 0xd3, 0xd4, 0x15, 0x48, 0xaa, 0x9e, 0x8a, + 0xc4, 0x12, 0x6d, 0x13, 0x42, 0xea, 0x89, 0xa5, 0x41, 0x22, 0x42, 0x48, 0x53, 0xda, 0x13, 0x97, + 0xca, 0xb5, 0x4d, 0x1b, 0xd8, 0xec, 0x12, 0xbb, 0x13, 0xbc, 0x05, 0xe2, 0x29, 0x78, 0x80, 0x49, + 0xbc, 0xc2, 0xb4, 0xd3, 0x8e, 0x70, 0x89, 0x50, 0xfa, 0x16, 0x9c, 0x50, 0x6c, 0xaf, 0x25, 0xa8, + 0x07, 0x6e, 0xf5, 0xff, 0xfb, 0xe5, 0xfb, 0x7f, 0xff, 0xcf, 0x2e, 0x74, 0x27, 0x98, 0x53, 0x5f, + 0x2d, 0x38, 0x67, 0x67, 0xfe, 0xc5, 0xe1, 0x84, 0x29, 0x7c, 0xe8, 0xa7, 0x62, 0xa1, 0x98, 0x37, + 0x4f, 0x85, 0x12, 0xe8, 0x41, 0x01, 0x78, 0x06, 0xf0, 0x2c, 0xd0, 0xde, 0x27, 0x42, 0x9e, 0x0b, + 0x39, 0xd6, 0x88, 0x6f, 0x0e, 0x86, 0x6f, 0xef, 0x4e, 0xc5, 0x54, 0x18, 0xbd, 0xf8, 0x65, 0xd5, + 0x8e, 0xb6, 0x79, 0xc7, 0x18, 0x95, 0x2b, 0x17, 0xc6, 0x89, 0xa0, 0x2c, 0xb5, 0x84, 0xb3, 0x81, + 0xd0, 0x27, 0x53, 0xef, 0xfe, 0x04, 0xb0, 0x31, 0x1a, 0x0e, 0xe3, 0x62, 0x34, 0xf4, 0x0a, 0xee, + 0x52, 0x26, 0x55, 0xc2, 0xb1, 0x4a, 0x04, 0x1f, 0x93, 0x19, 0x4e, 0xf8, 0x38, 0xa1, 0x2d, 0xd0, + 0x01, 0xbd, 0x66, 0xb0, 0x97, 0x67, 0x2e, 0x0a, 0xd7, 0xf5, 0x41, 0x51, 0x8e, 0xc2, 0x18, 0xd1, + 0x7f, 0x35, 0x8a, 0x5e, 0xc0, 0x47, 0xa5, 0x4e, 0x82, 0xab, 0x14, 0x13, 0x35, 0xc6, 0x94, 0xa6, + 0x4c, 0xca, 0xd6, 0x56, 0xd1, 0x31, 0x6e, 0xff, 0xfd, 0xa5, 0x45, 0x4e, 0x0c, 0x81, 0x9e, 0xc1, + 0x3b, 0x36, 0x49, 0xab, 0xda, 0x01, 0xbd, 0xed, 0xa3, 0x87, 0x9e, 0x5e, 0x99, 0x19, 0xde, 0x46, + 0xf1, 0x5e, 0x1a, 0x24, 0xbe, 0x65, 0xfb, 0xf0, 0xfa, 0xf2, 0xa0, 0xae, 0xd3, 0x44, 0xdd, 0xaf, + 0x00, 0xee, 0x8c, 0x86, 0xc3, 0x53, 0x4c, 0x3e, 0x30, 0x15, 0x33, 0xc2, 0x92, 0xb9, 0x42, 0xef, + 0x21, 0x94, 0xc9, 0x94, 0x27, 0x7c, 0x7a, 0x9b, 0xac, 0x16, 0xbc, 0xce, 0x33, 0xb7, 0x39, 0x34, + 0x6a, 0x14, 0xfe, 0xce, 0xdc, 0xfe, 0x34, 0x51, 0xb3, 0xc5, 0xc4, 0x23, 0xe2, 0xdc, 0x2f, 0x5c, + 0xf5, 0xae, 0x88, 0x38, 0xf3, 0xf5, 0x4a, 0xfc, 0x8b, 0x63, 0xff, 0x93, 0xd6, 0x95, 0x94, 0xbe, + 0xfa, 0x3c, 0x67, 0xd2, 0x5b, 0x7d, 0x1d, 0x37, 0x6d, 0xfb, 0x88, 0xf6, 0xd1, 0xf5, 0xe5, 0xc1, + 0x76, 0xc9, 0x3e, 0xea, 0x86, 0xb0, 0x11, 0x05, 0x03, 0xb3, 0xef, 0xa7, 0x10, 0x92, 0x19, 0x2e, + 0x9e, 0xc0, 0x7a, 0xcb, 0xf7, 0x8b, 0x59, 0x06, 0x46, 0x2d, 0xba, 0x59, 0x20, 0xa2, 0xa5, 0x68, + 0x01, 0xdc, 0x89, 0x82, 0x41, 0x39, 0x59, 0x1b, 0x36, 0x24, 0xfb, 0xb8, 0x60, 0x9c, 0x30, 0x93, + 0x2b, 0x5e, 0x9d, 0x37, 0x4e, 0xf2, 0x1d, 0xc0, 0xbd, 0x91, 0x7e, 0x80, 0xa7, 0x69, 0x42, 0x98, + 0x34, 0xe5, 0x10, 0x2b, 0x8c, 0x9e, 0xc0, 0xa6, 0x79, 0x9a, 0xeb, 0x1d, 0xdd, 0xcb, 0x33, 0xb7, + 0x61, 0xf0, 0x28, 0x8c, 0x1b, 0xa6, 0x1c, 0xd1, 0x92, 0xeb, 0x56, 0xd9, 0x15, 0x3d, 0x87, 0xf5, + 0xb9, 0x6e, 0xdd, 0xaa, 0x76, 0xaa, 0xbd, 0xbb, 0x47, 0xfb, 0x9b, 0xae, 0x50, 0x9b, 0x07, 0xb5, + 0xab, 0xcc, 0xad, 0xc4, 0x16, 0x47, 0x8f, 0x21, 0x24, 0x29, 0xc3, 0x8a, 0xd1, 0x31, 0x56, 0xad, + 0x5a, 0x07, 0xf4, 0xaa, 0x71, 0xd3, 0x2a, 0x27, 0x2a, 0x78, 0xf3, 0x2d, 0x77, 0xc0, 0x55, 0xee, + 0x80, 0x9b, 0xdc, 0x01, 0xbf, 0x72, 0x07, 0x7c, 0x59, 0x3a, 0x95, 0x9b, 0xa5, 0x53, 0xf9, 0xb1, + 0x74, 0x2a, 0x6f, 0xfd, 0xff, 0xb8, 0x3c, 0xfb, 0xcf, 0xd4, 0x77, 0x37, 0xa9, 0x6b, 0xe2, 0xf8, + 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xce, 0xc1, 0x97, 0x14, 0xb5, 0x03, 0x00, 0x00, +} + +func (this *TSSRoute) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*TSSRoute) + if !ok { + that2, ok := that.(TSSRoute) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.DestinationChainID != that1.DestinationChainID { + return false + } + if this.DestinationContractAddress != that1.DestinationContractAddress { + return false + } + if this.Encoder != that1.Encoder { + return false + } + return true +} +func (this *TSSPacketReceipt) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*TSSPacketReceipt) + if !ok { + that2, ok := that.(TSSPacketReceipt) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.SigningID != that1.SigningID { + return false + } + return true +} +func (this *IBCRoute) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*IBCRoute) + if !ok { + that2, ok := that.(IBCRoute) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.ChannelID != that1.ChannelID { + return false + } + return true +} +func (this *IBCPacketReceipt) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*IBCPacketReceipt) + if !ok { + that2, ok := that.(IBCPacketReceipt) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Sequence != that1.Sequence { + return false + } + return true +} +func (this *TunnelPricesPacketData) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*TunnelPricesPacketData) + if !ok { + that2, ok := that.(TunnelPricesPacketData) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.TunnelID != that1.TunnelID { + return false + } + if this.Sequence != that1.Sequence { + return false + } + if len(this.Prices) != len(that1.Prices) { + return false + } + for i := range this.Prices { + if !this.Prices[i].Equal(&that1.Prices[i]) { + return false + } + } + if this.CreatedAt != that1.CreatedAt { + return false + } + return true +} +func (m *TSSRoute) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TSSRoute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TSSRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Encoder != 0 { + i = encodeVarintRoute(dAtA, i, uint64(m.Encoder)) + i-- + dAtA[i] = 0x18 + } + if len(m.DestinationContractAddress) > 0 { + i -= len(m.DestinationContractAddress) + copy(dAtA[i:], m.DestinationContractAddress) + i = encodeVarintRoute(dAtA, i, uint64(len(m.DestinationContractAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.DestinationChainID) > 0 { + i -= len(m.DestinationChainID) + copy(dAtA[i:], m.DestinationChainID) + i = encodeVarintRoute(dAtA, i, uint64(len(m.DestinationChainID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TSSPacketReceipt) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TSSPacketReceipt) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TSSPacketReceipt) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SigningID != 0 { + i = encodeVarintRoute(dAtA, i, uint64(m.SigningID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *IBCRoute) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IBCRoute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IBCRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ChannelID) > 0 { + i -= len(m.ChannelID) + copy(dAtA[i:], m.ChannelID) + i = encodeVarintRoute(dAtA, i, uint64(len(m.ChannelID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IBCPacketReceipt) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IBCPacketReceipt) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IBCPacketReceipt) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Sequence != 0 { + i = encodeVarintRoute(dAtA, i, uint64(m.Sequence)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TunnelPricesPacketData) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TunnelPricesPacketData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TunnelPricesPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CreatedAt != 0 { + i = encodeVarintRoute(dAtA, i, uint64(m.CreatedAt)) + i-- + dAtA[i] = 0x20 + } + if len(m.Prices) > 0 { + for iNdEx := len(m.Prices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Prices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRoute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Sequence != 0 { + i = encodeVarintRoute(dAtA, i, uint64(m.Sequence)) + i-- + dAtA[i] = 0x10 + } + if m.TunnelID != 0 { + i = encodeVarintRoute(dAtA, i, uint64(m.TunnelID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintRoute(dAtA []byte, offset int, v uint64) int { + offset -= sovRoute(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *TSSRoute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DestinationChainID) + if l > 0 { + n += 1 + l + sovRoute(uint64(l)) + } + l = len(m.DestinationContractAddress) + if l > 0 { + n += 1 + l + sovRoute(uint64(l)) + } + if m.Encoder != 0 { + n += 1 + sovRoute(uint64(m.Encoder)) + } + return n +} + +func (m *TSSPacketReceipt) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SigningID != 0 { + n += 1 + sovRoute(uint64(m.SigningID)) + } + return n +} + +func (m *IBCRoute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChannelID) + if l > 0 { + n += 1 + l + sovRoute(uint64(l)) + } + return n +} + +func (m *IBCPacketReceipt) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Sequence != 0 { + n += 1 + sovRoute(uint64(m.Sequence)) + } + return n +} + +func (m *TunnelPricesPacketData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelID != 0 { + n += 1 + sovRoute(uint64(m.TunnelID)) + } + if m.Sequence != 0 { + n += 1 + sovRoute(uint64(m.Sequence)) + } + if len(m.Prices) > 0 { + for _, e := range m.Prices { + l = e.Size() + n += 1 + l + sovRoute(uint64(l)) + } + } + if m.CreatedAt != 0 { + n += 1 + sovRoute(uint64(m.CreatedAt)) + } + return n +} + +func sovRoute(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRoute(x uint64) (n int) { + return sovRoute(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *TSSRoute) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TSSRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TSSRoute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationChainID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRoute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRoute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DestinationChainID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRoute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRoute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DestinationContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Encoder", wireType) + } + m.Encoder = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Encoder |= types.Encoder(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRoute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthRoute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TSSPacketReceipt) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TSSPacketReceipt: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TSSPacketReceipt: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SigningID", wireType) + } + m.SigningID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SigningID |= github_com_bandprotocol_chain_v3_x_bandtss_types.SigningID(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRoute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthRoute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IBCRoute) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IBCRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IBCRoute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRoute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRoute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRoute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthRoute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IBCPacketReceipt) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IBCPacketReceipt: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IBCPacketReceipt: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + } + m.Sequence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRoute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthRoute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TunnelPricesPacketData) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TunnelPricesPacketData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TunnelPricesPacketData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelID", wireType) + } + m.TunnelID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TunnelID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + } + m.Sequence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRoute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRoute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prices = append(m.Prices, types.Price{}) + if err := m.Prices[len(m.Prices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) + } + m.CreatedAt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRoute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CreatedAt |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRoute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthRoute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRoute(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRoute + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRoute + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRoute + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthRoute + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRoute + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRoute + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRoute = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRoute = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRoute = fmt.Errorf("proto: unexpected end of group") +) diff --git a/internal/bandchain/tunnel/tss_route.go b/internal/bandchain/tunnel/tss_route.go new file mode 100644 index 0000000..4a3ea41 --- /dev/null +++ b/internal/bandchain/tunnel/tss_route.go @@ -0,0 +1,33 @@ +package types + +import ( + bandtsstypes "github.com/bandprotocol/falcon/internal/bandchain/bandtss" + feedstypes "github.com/bandprotocol/falcon/internal/bandchain/feeds" +) + +var _ RouteI = &TSSRoute{} + +// NewTSSRoute return a new TSSRoute instance. +func NewTSSRoute( + destinationChainID string, + destinationContractAddress string, + encoder feedstypes.Encoder, +) TSSRoute { + return TSSRoute{ + DestinationChainID: destinationChainID, + DestinationContractAddress: destinationContractAddress, + Encoder: encoder, + } +} + +// ValidateBasic performs basic validation of the TSSRoute fields. +func (r *TSSRoute) ValidateBasic() error { + return nil +} + +// NewTSSPacketReceipt creates a new TSSPacketReceipt instance. +func NewTSSPacketReceipt(signingID bandtsstypes.SigningID) *TSSPacketReceipt { + return &TSSPacketReceipt{ + SigningID: signingID, + } +} diff --git a/internal/bandchain/tunnel/tunnel.pb.go b/internal/bandchain/tunnel/tunnel.pb.go new file mode 100644 index 0000000..10ff03c --- /dev/null +++ b/internal/bandchain/tunnel/tunnel.pb.go @@ -0,0 +1,2628 @@ +package types + +import ( + "fmt" + "io" + "math" + math_bits "math/bits" + + "github.com/cosmos/cosmos-sdk/codec/types" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types1 "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/gogoproto/proto" + + types2 "github.com/bandprotocol/falcon/internal/bandchain/feeds" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Tunnel contains the information of the tunnel that is created by the user +type Tunnel struct { + // id is the tunnel ID + ID uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // sequence is representing the sequence of the tunnel packet. + Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` + // route is the route for delivering the signal prices + Route *types.Any `protobuf:"bytes,3,opt,name=route,proto3" json:"route,omitempty"` + // fee_payer is the address of the fee payer + FeePayer string `protobuf:"bytes,4,opt,name=fee_payer,json=feePayer,proto3" json:"fee_payer,omitempty"` + // signal_deviations is the list of signal deviations + SignalDeviations []SignalDeviation `protobuf:"bytes,5,rep,name=signal_deviations,json=signalDeviations,proto3" json:"signal_deviations"` + // interval is the interval for delivering the signal prices + Interval uint64 `protobuf:"varint,6,opt,name=interval,proto3" json:"interval,omitempty"` + // total_deposit is the total deposit on the tunnel. + TotalDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,7,rep,name=total_deposit,json=totalDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_deposit"` + // is_active is the flag to indicate if the tunnel is active + IsActive bool `protobuf:"varint,8,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` + // created_at is the timestamp when the tunnel is created + CreatedAt int64 `protobuf:"varint,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // creator is the address of the creator + Creator string `protobuf:"bytes,10,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *Tunnel) Reset() { *m = Tunnel{} } +func (m *Tunnel) String() string { return proto.CompactTextString(m) } +func (*Tunnel) ProtoMessage() {} +func (*Tunnel) Descriptor() ([]byte, []int) { + return fileDescriptor_6bb6151451ba2f25, []int{0} +} +func (m *Tunnel) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Tunnel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Tunnel.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Tunnel) XXX_Merge(src proto.Message) { + xxx_messageInfo_Tunnel.Merge(m, src) +} +func (m *Tunnel) XXX_Size() int { + return m.Size() +} +func (m *Tunnel) XXX_DiscardUnknown() { + xxx_messageInfo_Tunnel.DiscardUnknown(m) +} + +var xxx_messageInfo_Tunnel proto.InternalMessageInfo + +func (m *Tunnel) GetID() uint64 { + if m != nil { + return m.ID + } + return 0 +} + +func (m *Tunnel) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *Tunnel) GetRoute() *types.Any { + if m != nil { + return m.Route + } + return nil +} + +func (m *Tunnel) GetFeePayer() string { + if m != nil { + return m.FeePayer + } + return "" +} + +func (m *Tunnel) GetSignalDeviations() []SignalDeviation { + if m != nil { + return m.SignalDeviations + } + return nil +} + +func (m *Tunnel) GetInterval() uint64 { + if m != nil { + return m.Interval + } + return 0 +} + +func (m *Tunnel) GetTotalDeposit() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.TotalDeposit + } + return nil +} + +func (m *Tunnel) GetIsActive() bool { + if m != nil { + return m.IsActive + } + return false +} + +func (m *Tunnel) GetCreatedAt() int64 { + if m != nil { + return m.CreatedAt + } + return 0 +} + +func (m *Tunnel) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +// LatestPrices is the type for prices that tunnel produces +type LatestPrices struct { + // tunnel_id is the tunnel ID + TunnelID uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` + // prices is the list of prices information from feeds module. + Prices []types2.Price `protobuf:"bytes,2,rep,name=prices,proto3" json:"prices"` + // last_interval is the last interval when the signal prices are produced by interval trigger + LastInterval int64 `protobuf:"varint,3,opt,name=last_interval,json=lastInterval,proto3" json:"last_interval,omitempty"` +} + +func (m *LatestPrices) Reset() { *m = LatestPrices{} } +func (m *LatestPrices) String() string { return proto.CompactTextString(m) } +func (*LatestPrices) ProtoMessage() {} +func (*LatestPrices) Descriptor() ([]byte, []int) { + return fileDescriptor_6bb6151451ba2f25, []int{1} +} +func (m *LatestPrices) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LatestPrices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LatestPrices.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LatestPrices) XXX_Merge(src proto.Message) { + xxx_messageInfo_LatestPrices.Merge(m, src) +} +func (m *LatestPrices) XXX_Size() int { + return m.Size() +} +func (m *LatestPrices) XXX_DiscardUnknown() { + xxx_messageInfo_LatestPrices.DiscardUnknown(m) +} + +var xxx_messageInfo_LatestPrices proto.InternalMessageInfo + +func (m *LatestPrices) GetTunnelID() uint64 { + if m != nil { + return m.TunnelID + } + return 0 +} + +func (m *LatestPrices) GetPrices() []types2.Price { + if m != nil { + return m.Prices + } + return nil +} + +func (m *LatestPrices) GetLastInterval() int64 { + if m != nil { + return m.LastInterval + } + return 0 +} + +// TotalFees is the type for the total fees collected by the tunnel +type TotalFees struct { + // total_base_packet_fee is the total base packet fee collected by the tunnel + TotalBasePacketFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=total_base_packet_fee,json=totalBasePacketFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_base_packet_fee"` +} + +func (m *TotalFees) Reset() { *m = TotalFees{} } +func (m *TotalFees) String() string { return proto.CompactTextString(m) } +func (*TotalFees) ProtoMessage() {} +func (*TotalFees) Descriptor() ([]byte, []int) { + return fileDescriptor_6bb6151451ba2f25, []int{2} +} +func (m *TotalFees) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TotalFees) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TotalFees.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TotalFees) XXX_Merge(src proto.Message) { + xxx_messageInfo_TotalFees.Merge(m, src) +} +func (m *TotalFees) XXX_Size() int { + return m.Size() +} +func (m *TotalFees) XXX_DiscardUnknown() { + xxx_messageInfo_TotalFees.DiscardUnknown(m) +} + +var xxx_messageInfo_TotalFees proto.InternalMessageInfo + +func (m *TotalFees) GetTotalBasePacketFee() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.TotalBasePacketFee + } + return nil +} + +// Packet is the packet that tunnel produces +type Packet struct { + // tunnel_id is the tunnel ID + TunnelID uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` + // sequence is representing the sequence of the tunnel packet. + Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` + // prices is the list of prices information from feeds module. + Prices []types2.Price `protobuf:"bytes,3,rep,name=prices,proto3" json:"prices"` + // receipt represents the confirmation of the packet delivery to the destination via the specified route. + Receipt *types.Any `protobuf:"bytes,4,opt,name=receipt,proto3" json:"receipt,omitempty"` + // created_at is the timestamp when the packet is created + CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` +} + +func (m *Packet) Reset() { *m = Packet{} } +func (m *Packet) String() string { return proto.CompactTextString(m) } +func (*Packet) ProtoMessage() {} +func (*Packet) Descriptor() ([]byte, []int) { + return fileDescriptor_6bb6151451ba2f25, []int{3} +} +func (m *Packet) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Packet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Packet.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Packet) XXX_Merge(src proto.Message) { + xxx_messageInfo_Packet.Merge(m, src) +} +func (m *Packet) XXX_Size() int { + return m.Size() +} +func (m *Packet) XXX_DiscardUnknown() { + xxx_messageInfo_Packet.DiscardUnknown(m) +} + +var xxx_messageInfo_Packet proto.InternalMessageInfo + +func (m *Packet) GetTunnelID() uint64 { + if m != nil { + return m.TunnelID + } + return 0 +} + +func (m *Packet) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *Packet) GetPrices() []types2.Price { + if m != nil { + return m.Prices + } + return nil +} + +func (m *Packet) GetReceipt() *types.Any { + if m != nil { + return m.Receipt + } + return nil +} + +func (m *Packet) GetCreatedAt() int64 { + if m != nil { + return m.CreatedAt + } + return 0 +} + +// Deposit defines an amount deposited by an account address to the tunnel. +type Deposit struct { + // tunnel_id defines the unique id of the tunnel. + TunnelID uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` + // depositor defines the deposit addresses from the proposals. + Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` + // amount to be deposited by depositor. + Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` +} + +func (m *Deposit) Reset() { *m = Deposit{} } +func (m *Deposit) String() string { return proto.CompactTextString(m) } +func (*Deposit) ProtoMessage() {} +func (*Deposit) Descriptor() ([]byte, []int) { + return fileDescriptor_6bb6151451ba2f25, []int{4} +} +func (m *Deposit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Deposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Deposit.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Deposit) XXX_Merge(src proto.Message) { + xxx_messageInfo_Deposit.Merge(m, src) +} +func (m *Deposit) XXX_Size() int { + return m.Size() +} +func (m *Deposit) XXX_DiscardUnknown() { + xxx_messageInfo_Deposit.DiscardUnknown(m) +} + +var xxx_messageInfo_Deposit proto.InternalMessageInfo + +func (m *Deposit) GetTunnelID() uint64 { + if m != nil { + return m.TunnelID + } + return 0 +} + +func (m *Deposit) GetDepositor() string { + if m != nil { + return m.Depositor + } + return "" +} + +func (m *Deposit) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Amount + } + return nil +} + +// SignalDeviation is the type for a signal with soft and hard deviation +type SignalDeviation struct { + // signal_id is the signal ID + SignalID string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` + // soft_deviation_bps is the soft deviation in basis points + SoftDeviationBPS uint64 `protobuf:"varint,2,opt,name=soft_deviation_bps,json=softDeviationBps,proto3" json:"soft_deviation_bps,omitempty"` + // hard_deviation_bps is the hard deviation in basis points + HardDeviationBPS uint64 `protobuf:"varint,3,opt,name=hard_deviation_bps,json=hardDeviationBps,proto3" json:"hard_deviation_bps,omitempty"` +} + +func (m *SignalDeviation) Reset() { *m = SignalDeviation{} } +func (m *SignalDeviation) String() string { return proto.CompactTextString(m) } +func (*SignalDeviation) ProtoMessage() {} +func (*SignalDeviation) Descriptor() ([]byte, []int) { + return fileDescriptor_6bb6151451ba2f25, []int{5} +} +func (m *SignalDeviation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SignalDeviation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SignalDeviation.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SignalDeviation) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignalDeviation.Merge(m, src) +} +func (m *SignalDeviation) XXX_Size() int { + return m.Size() +} +func (m *SignalDeviation) XXX_DiscardUnknown() { + xxx_messageInfo_SignalDeviation.DiscardUnknown(m) +} + +var xxx_messageInfo_SignalDeviation proto.InternalMessageInfo + +func (m *SignalDeviation) GetSignalID() string { + if m != nil { + return m.SignalID + } + return "" +} + +func (m *SignalDeviation) GetSoftDeviationBPS() uint64 { + if m != nil { + return m.SoftDeviationBPS + } + return 0 +} + +func (m *SignalDeviation) GetHardDeviationBPS() uint64 { + if m != nil { + return m.HardDeviationBPS + } + return 0 +} + +// TunnelSignatureOrder defines a general signature order for sending signature to tss group. +type TunnelSignatureOrder struct { + // sequence is the sequence of the packet + Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"` + // prices is the list of prices information from feeds module. + Prices []types2.Price `protobuf:"bytes,2,rep,name=prices,proto3" json:"prices"` + // created_at is the timestamp when the packet is created + CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // encoder is the mode of encoding data. + Encoder types2.Encoder `protobuf:"varint,4,opt,name=encoder,proto3,enum=band.feeds.v1beta1.Encoder" json:"encoder,omitempty"` +} + +func (m *TunnelSignatureOrder) Reset() { *m = TunnelSignatureOrder{} } +func (m *TunnelSignatureOrder) String() string { return proto.CompactTextString(m) } +func (*TunnelSignatureOrder) ProtoMessage() {} +func (*TunnelSignatureOrder) Descriptor() ([]byte, []int) { + return fileDescriptor_6bb6151451ba2f25, []int{6} +} +func (m *TunnelSignatureOrder) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TunnelSignatureOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TunnelSignatureOrder.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TunnelSignatureOrder) XXX_Merge(src proto.Message) { + xxx_messageInfo_TunnelSignatureOrder.Merge(m, src) +} +func (m *TunnelSignatureOrder) XXX_Size() int { + return m.Size() +} +func (m *TunnelSignatureOrder) XXX_DiscardUnknown() { + xxx_messageInfo_TunnelSignatureOrder.DiscardUnknown(m) +} + +var xxx_messageInfo_TunnelSignatureOrder proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Tunnel)(nil), "band.tunnel.v1beta1.Tunnel") + proto.RegisterType((*LatestPrices)(nil), "band.tunnel.v1beta1.LatestPrices") + proto.RegisterType((*TotalFees)(nil), "band.tunnel.v1beta1.TotalFees") + proto.RegisterType((*Packet)(nil), "band.tunnel.v1beta1.Packet") + proto.RegisterType((*Deposit)(nil), "band.tunnel.v1beta1.Deposit") + proto.RegisterType((*SignalDeviation)(nil), "band.tunnel.v1beta1.SignalDeviation") + proto.RegisterType((*TunnelSignatureOrder)(nil), "band.tunnel.v1beta1.TunnelSignatureOrder") +} + +func init() { proto.RegisterFile("band/tunnel/v1beta1/tunnel.proto", fileDescriptor_6bb6151451ba2f25) } + +var fileDescriptor_6bb6151451ba2f25 = []byte{ + // 898 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xf7, 0xd8, 0x8e, 0xed, 0x9d, 0xa6, 0x25, 0x1d, 0x0c, 0xda, 0xa6, 0xc2, 0xb6, 0x02, 0x07, + 0x83, 0x94, 0x5d, 0x9a, 0x2a, 0x45, 0xea, 0x2d, 0x4b, 0xa8, 0xb0, 0x04, 0x22, 0xda, 0x54, 0x42, + 0xe2, 0xb2, 0x1a, 0xef, 0x3e, 0xdb, 0xa3, 0x3a, 0x3b, 0xcb, 0xcc, 0xd8, 0x22, 0x17, 0xce, 0x5c, + 0x90, 0xe0, 0x03, 0x20, 0xf5, 0x58, 0x71, 0xe2, 0x90, 0xef, 0x40, 0x95, 0x53, 0xc5, 0x89, 0x03, + 0x0a, 0xc8, 0x39, 0x80, 0xc4, 0x97, 0x40, 0x3b, 0x33, 0x6b, 0x63, 0x2b, 0x6d, 0x64, 0xa9, 0x97, + 0xc4, 0xef, 0xbd, 0xdf, 0xbc, 0x7f, 0xbf, 0xdf, 0xcc, 0xe2, 0x4e, 0x9f, 0xa6, 0x89, 0xaf, 0x26, + 0x69, 0x0a, 0x63, 0x7f, 0x7a, 0xaf, 0x0f, 0x8a, 0xde, 0xb3, 0xa6, 0x97, 0x09, 0xae, 0x38, 0x79, + 0x33, 0x47, 0x78, 0xd6, 0x65, 0x11, 0xdb, 0xb7, 0xe9, 0x09, 0x4b, 0xb9, 0xaf, 0xff, 0x1a, 0xdc, + 0x76, 0x2b, 0xe6, 0xf2, 0x84, 0x4b, 0xbf, 0x4f, 0x25, 0xcc, 0x33, 0xc5, 0x9c, 0xa5, 0x36, 0x7e, + 0xc7, 0xc4, 0x23, 0x6d, 0xf9, 0xc6, 0xb0, 0xa1, 0xe6, 0x90, 0x0f, 0xb9, 0xf1, 0xe7, 0xbf, 0x8a, + 0x03, 0x43, 0xce, 0x87, 0x63, 0xf0, 0xb5, 0xd5, 0x9f, 0x0c, 0x7c, 0x9a, 0x9e, 0xda, 0x90, 0xe9, + 0x7a, 0x00, 0x90, 0xc8, 0x79, 0x29, 0x48, 0x63, 0x9e, 0x80, 0x28, 0xba, 0xb9, 0x02, 0xa1, 0x2d, + 0x13, 0xdf, 0xf9, 0xbe, 0x8a, 0x6b, 0x8f, 0xf5, 0x4c, 0xe4, 0x6d, 0x5c, 0x66, 0x89, 0x8b, 0x3a, + 0xa8, 0x5b, 0x0d, 0x6a, 0xb3, 0x8b, 0x76, 0xb9, 0x77, 0x18, 0x96, 0x59, 0x42, 0xb6, 0x71, 0x43, + 0xc2, 0xd7, 0x13, 0x48, 0x63, 0x70, 0xcb, 0x79, 0x34, 0x9c, 0xdb, 0xe4, 0x01, 0xde, 0x10, 0x7c, + 0xa2, 0xc0, 0xad, 0x74, 0x50, 0xf7, 0xc6, 0x5e, 0xd3, 0x33, 0xbd, 0x7a, 0x45, 0xaf, 0xde, 0x41, + 0x7a, 0x1a, 0xe0, 0xf3, 0xb3, 0xdd, 0x5a, 0x98, 0xc3, 0x7a, 0xa1, 0x81, 0x93, 0x7d, 0xec, 0x0c, + 0x00, 0xa2, 0x8c, 0x9e, 0x82, 0x70, 0xab, 0x1d, 0xd4, 0x75, 0x02, 0xf7, 0xb7, 0xb3, 0xdd, 0xa6, + 0x5d, 0xc7, 0x41, 0x92, 0x08, 0x90, 0xf2, 0x58, 0x09, 0x96, 0x0e, 0xc3, 0xc6, 0x00, 0xe0, 0x28, + 0x47, 0x92, 0x2f, 0xf1, 0x6d, 0xc9, 0x86, 0x29, 0x1d, 0x47, 0x09, 0x4c, 0x19, 0x55, 0x8c, 0xa7, + 0xd2, 0xdd, 0xe8, 0x54, 0xba, 0x37, 0xf6, 0xde, 0xf3, 0xae, 0xe0, 0xc7, 0x3b, 0xd6, 0xe8, 0xc3, + 0x02, 0x1c, 0x54, 0x9f, 0x5f, 0xb4, 0x4b, 0xe1, 0x96, 0x5c, 0x76, 0xcb, 0x7c, 0x46, 0x96, 0x2a, + 0x10, 0x53, 0x3a, 0x76, 0x6b, 0x66, 0xc6, 0xc2, 0x26, 0x13, 0x7c, 0x53, 0x71, 0xa5, 0x6b, 0x66, + 0x5c, 0x32, 0xe5, 0xd6, 0x75, 0xc1, 0x3b, 0x9e, 0x6d, 0x36, 0x27, 0x7a, 0x5e, 0xf0, 0x63, 0xce, + 0xd2, 0x60, 0x3f, 0xaf, 0xf2, 0xf3, 0x9f, 0xed, 0xee, 0x90, 0xa9, 0xd1, 0xa4, 0xef, 0xc5, 0xfc, + 0xc4, 0x12, 0x6d, 0xff, 0xed, 0xca, 0xe4, 0x89, 0xaf, 0x4e, 0x33, 0x90, 0xfa, 0x80, 0x7c, 0xf6, + 0xf7, 0x2f, 0x1f, 0xa0, 0x70, 0x53, 0x97, 0x39, 0x34, 0x55, 0xc8, 0x5d, 0xec, 0x30, 0x19, 0xd1, + 0x58, 0xb1, 0x29, 0xb8, 0x8d, 0x0e, 0xea, 0x36, 0xc2, 0x06, 0x93, 0x07, 0xda, 0x26, 0xef, 0x60, + 0x1c, 0x0b, 0xa0, 0x0a, 0x92, 0x88, 0x2a, 0xd7, 0xe9, 0xa0, 0x6e, 0x25, 0x74, 0xac, 0xe7, 0x40, + 0x91, 0x3d, 0x5c, 0xd7, 0x06, 0x17, 0x2e, 0xbe, 0x66, 0xb9, 0x05, 0xf0, 0x61, 0xf5, 0x9f, 0xa7, + 0x6d, 0xb4, 0xf3, 0x13, 0xc2, 0x9b, 0x9f, 0x51, 0x05, 0x52, 0x1d, 0x09, 0x16, 0x83, 0x24, 0xef, + 0x63, 0xc7, 0xec, 0x34, 0x9a, 0x8b, 0x63, 0x73, 0x76, 0xd1, 0x6e, 0x18, 0xd1, 0xf4, 0x0e, 0xc3, + 0x86, 0x09, 0xf7, 0x12, 0xf2, 0x11, 0xae, 0x65, 0xfa, 0x90, 0x5b, 0xb6, 0x1b, 0xd2, 0x94, 0x18, + 0xb9, 0x15, 0x0b, 0xd2, 0x69, 0x2d, 0x0f, 0x16, 0x4e, 0xde, 0xc5, 0x37, 0xc7, 0x54, 0xaa, 0x68, + 0x4e, 0x41, 0x45, 0x0f, 0xb4, 0x99, 0x3b, 0x7b, 0xd6, 0x67, 0xfb, 0xfb, 0x11, 0x61, 0xe7, 0x71, + 0xbe, 0xa6, 0x47, 0x00, 0x92, 0x7c, 0x8b, 0xdf, 0x32, 0xd4, 0xe4, 0x1c, 0x44, 0x19, 0x8d, 0x9f, + 0x80, 0x8a, 0x06, 0x00, 0x2e, 0xba, 0x8e, 0xa2, 0x0f, 0xd7, 0xa5, 0x28, 0x24, 0xba, 0x52, 0x40, + 0x25, 0x1c, 0xe9, 0x3a, 0x8f, 0x00, 0x6c, 0x4f, 0xff, 0x22, 0x5c, 0x33, 0xbe, 0x75, 0xb6, 0xf5, + 0xaa, 0x6b, 0xb5, 0xd8, 0x64, 0x65, 0xbd, 0x4d, 0x06, 0xb8, 0x2e, 0x20, 0x06, 0x96, 0x29, 0x7d, + 0xab, 0x5e, 0x76, 0x23, 0xc9, 0xf9, 0xd9, 0xee, 0x2d, 0xd3, 0x72, 0x68, 0xe0, 0xbd, 0xb0, 0x38, + 0xb8, 0xa2, 0xad, 0x8d, 0x15, 0x6d, 0xed, 0xfc, 0x81, 0x70, 0xbd, 0xd0, 0xe8, 0x1a, 0xe3, 0x3e, + 0xc0, 0x8e, 0xbd, 0x3f, 0x5c, 0xe8, 0x79, 0x5f, 0x25, 0xca, 0x05, 0x94, 0x8c, 0x70, 0x8d, 0x9e, + 0xf0, 0x49, 0xaa, 0xe6, 0xab, 0x78, 0xdd, 0xd7, 0xce, 0xe6, 0xb7, 0x64, 0x9e, 0x23, 0xfc, 0xc6, + 0xca, 0xab, 0x91, 0x8f, 0x69, 0x9f, 0x1d, 0x3b, 0xa6, 0x63, 0xc6, 0x34, 0xb8, 0x7c, 0x4c, 0x13, + 0xee, 0x25, 0x24, 0xc0, 0x44, 0xf2, 0x81, 0x5a, 0xbc, 0x4f, 0x51, 0x3f, 0x93, 0x86, 0xdf, 0xa0, + 0x39, 0xbb, 0x68, 0x6f, 0x1d, 0xf3, 0x81, 0x5a, 0xbc, 0x47, 0x47, 0xc7, 0xe1, 0x96, 0x5c, 0xf2, + 0x64, 0x39, 0x89, 0x64, 0x44, 0x45, 0xb2, 0x92, 0xa3, 0xb2, 0xc8, 0xf1, 0x29, 0x15, 0xc9, 0x72, + 0x8e, 0xd1, 0x92, 0x27, 0x93, 0x76, 0x98, 0x5f, 0x11, 0x6e, 0x1a, 0x2e, 0x74, 0xab, 0x6a, 0x22, + 0xe0, 0x0b, 0x91, 0x80, 0x58, 0x12, 0x1f, 0x7a, 0xa9, 0xf8, 0xd6, 0xbc, 0xc6, 0xcb, 0xc2, 0xa9, + 0xac, 0x3e, 0x4a, 0xfb, 0xb8, 0x6e, 0xbf, 0x4d, 0x5a, 0x9b, 0xb7, 0xf6, 0xee, 0x5e, 0x95, 0xf8, + 0x13, 0x03, 0x09, 0x0b, 0xec, 0xc3, 0xea, 0x77, 0x4f, 0xdb, 0xa5, 0xe0, 0xf3, 0x67, 0xb3, 0x16, + 0x7a, 0x3e, 0x6b, 0xa1, 0x17, 0xb3, 0x16, 0xfa, 0x6b, 0xd6, 0x42, 0x3f, 0x5c, 0xb6, 0x4a, 0x2f, + 0x2e, 0x5b, 0xa5, 0xdf, 0x2f, 0x5b, 0xa5, 0xaf, 0xfc, 0xff, 0x31, 0x9e, 0xe7, 0xd4, 0x62, 0x8f, + 0xf9, 0xd8, 0x8f, 0x47, 0x94, 0xa5, 0xfe, 0xf4, 0xbe, 0xff, 0x4d, 0xf1, 0x6d, 0xd7, 0xf4, 0xf7, + 0x6b, 0x1a, 0x71, 0xff, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x38, 0x1b, 0xc5, 0xfa, 0xf7, 0x07, + 0x00, 0x00, +} + +func (this *Tunnel) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Tunnel) + if !ok { + that2, ok := that.(Tunnel) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.ID != that1.ID { + return false + } + if this.Sequence != that1.Sequence { + return false + } + if !this.Route.Equal(that1.Route) { + return false + } + if this.FeePayer != that1.FeePayer { + return false + } + if len(this.SignalDeviations) != len(that1.SignalDeviations) { + return false + } + for i := range this.SignalDeviations { + if !this.SignalDeviations[i].Equal(&that1.SignalDeviations[i]) { + return false + } + } + if this.Interval != that1.Interval { + return false + } + if len(this.TotalDeposit) != len(that1.TotalDeposit) { + return false + } + for i := range this.TotalDeposit { + if !this.TotalDeposit[i].Equal(&that1.TotalDeposit[i]) { + return false + } + } + if this.IsActive != that1.IsActive { + return false + } + if this.CreatedAt != that1.CreatedAt { + return false + } + if this.Creator != that1.Creator { + return false + } + return true +} +func (this *LatestPrices) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*LatestPrices) + if !ok { + that2, ok := that.(LatestPrices) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.TunnelID != that1.TunnelID { + return false + } + if len(this.Prices) != len(that1.Prices) { + return false + } + for i := range this.Prices { + if !this.Prices[i].Equal(&that1.Prices[i]) { + return false + } + } + if this.LastInterval != that1.LastInterval { + return false + } + return true +} +func (this *TotalFees) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*TotalFees) + if !ok { + that2, ok := that.(TotalFees) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if len(this.TotalBasePacketFee) != len(that1.TotalBasePacketFee) { + return false + } + for i := range this.TotalBasePacketFee { + if !this.TotalBasePacketFee[i].Equal(&that1.TotalBasePacketFee[i]) { + return false + } + } + return true +} +func (this *Packet) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Packet) + if !ok { + that2, ok := that.(Packet) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.TunnelID != that1.TunnelID { + return false + } + if this.Sequence != that1.Sequence { + return false + } + if len(this.Prices) != len(that1.Prices) { + return false + } + for i := range this.Prices { + if !this.Prices[i].Equal(&that1.Prices[i]) { + return false + } + } + if !this.Receipt.Equal(that1.Receipt) { + return false + } + if this.CreatedAt != that1.CreatedAt { + return false + } + return true +} +func (this *Deposit) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Deposit) + if !ok { + that2, ok := that.(Deposit) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.TunnelID != that1.TunnelID { + return false + } + if this.Depositor != that1.Depositor { + return false + } + if len(this.Amount) != len(that1.Amount) { + return false + } + for i := range this.Amount { + if !this.Amount[i].Equal(&that1.Amount[i]) { + return false + } + } + return true +} +func (this *SignalDeviation) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*SignalDeviation) + if !ok { + that2, ok := that.(SignalDeviation) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.SignalID != that1.SignalID { + return false + } + if this.SoftDeviationBPS != that1.SoftDeviationBPS { + return false + } + if this.HardDeviationBPS != that1.HardDeviationBPS { + return false + } + return true +} +func (this *TunnelSignatureOrder) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*TunnelSignatureOrder) + if !ok { + that2, ok := that.(TunnelSignatureOrder) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Sequence != that1.Sequence { + return false + } + if len(this.Prices) != len(that1.Prices) { + return false + } + for i := range this.Prices { + if !this.Prices[i].Equal(&that1.Prices[i]) { + return false + } + } + if this.CreatedAt != that1.CreatedAt { + return false + } + if this.Encoder != that1.Encoder { + return false + } + return true +} +func (m *Tunnel) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Tunnel) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Tunnel) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTunnel(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x52 + } + if m.CreatedAt != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.CreatedAt)) + i-- + dAtA[i] = 0x48 + } + if m.IsActive { + i-- + if m.IsActive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if len(m.TotalDeposit) > 0 { + for iNdEx := len(m.TotalDeposit) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TotalDeposit[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTunnel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.Interval != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.Interval)) + i-- + dAtA[i] = 0x30 + } + if len(m.SignalDeviations) > 0 { + for iNdEx := len(m.SignalDeviations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SignalDeviations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTunnel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.FeePayer) > 0 { + i -= len(m.FeePayer) + copy(dAtA[i:], m.FeePayer) + i = encodeVarintTunnel(dAtA, i, uint64(len(m.FeePayer))) + i-- + dAtA[i] = 0x22 + } + if m.Route != nil { + { + size, err := m.Route.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTunnel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Sequence != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.Sequence)) + i-- + dAtA[i] = 0x10 + } + if m.ID != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.ID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *LatestPrices) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LatestPrices) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LatestPrices) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LastInterval != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.LastInterval)) + i-- + dAtA[i] = 0x18 + } + if len(m.Prices) > 0 { + for iNdEx := len(m.Prices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Prices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTunnel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.TunnelID != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.TunnelID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TotalFees) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TotalFees) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TotalFees) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TotalBasePacketFee) > 0 { + for iNdEx := len(m.TotalBasePacketFee) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TotalBasePacketFee[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTunnel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Packet) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Packet) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Packet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CreatedAt != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.CreatedAt)) + i-- + dAtA[i] = 0x28 + } + if m.Receipt != nil { + { + size, err := m.Receipt.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTunnel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.Prices) > 0 { + for iNdEx := len(m.Prices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Prices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTunnel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Sequence != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.Sequence)) + i-- + dAtA[i] = 0x10 + } + if m.TunnelID != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.TunnelID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Deposit) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Deposit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Deposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTunnel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Depositor) > 0 { + i -= len(m.Depositor) + copy(dAtA[i:], m.Depositor) + i = encodeVarintTunnel(dAtA, i, uint64(len(m.Depositor))) + i-- + dAtA[i] = 0x12 + } + if m.TunnelID != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.TunnelID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *SignalDeviation) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SignalDeviation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignalDeviation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HardDeviationBPS != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.HardDeviationBPS)) + i-- + dAtA[i] = 0x18 + } + if m.SoftDeviationBPS != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.SoftDeviationBPS)) + i-- + dAtA[i] = 0x10 + } + if len(m.SignalID) > 0 { + i -= len(m.SignalID) + copy(dAtA[i:], m.SignalID) + i = encodeVarintTunnel(dAtA, i, uint64(len(m.SignalID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TunnelSignatureOrder) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TunnelSignatureOrder) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TunnelSignatureOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Encoder != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.Encoder)) + i-- + dAtA[i] = 0x20 + } + if m.CreatedAt != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.CreatedAt)) + i-- + dAtA[i] = 0x18 + } + if len(m.Prices) > 0 { + for iNdEx := len(m.Prices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Prices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTunnel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Sequence != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.Sequence)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintTunnel(dAtA []byte, offset int, v uint64) int { + offset -= sovTunnel(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Tunnel) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ID != 0 { + n += 1 + sovTunnel(uint64(m.ID)) + } + if m.Sequence != 0 { + n += 1 + sovTunnel(uint64(m.Sequence)) + } + if m.Route != nil { + l = m.Route.Size() + n += 1 + l + sovTunnel(uint64(l)) + } + l = len(m.FeePayer) + if l > 0 { + n += 1 + l + sovTunnel(uint64(l)) + } + if len(m.SignalDeviations) > 0 { + for _, e := range m.SignalDeviations { + l = e.Size() + n += 1 + l + sovTunnel(uint64(l)) + } + } + if m.Interval != 0 { + n += 1 + sovTunnel(uint64(m.Interval)) + } + if len(m.TotalDeposit) > 0 { + for _, e := range m.TotalDeposit { + l = e.Size() + n += 1 + l + sovTunnel(uint64(l)) + } + } + if m.IsActive { + n += 2 + } + if m.CreatedAt != 0 { + n += 1 + sovTunnel(uint64(m.CreatedAt)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTunnel(uint64(l)) + } + return n +} + +func (m *LatestPrices) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelID != 0 { + n += 1 + sovTunnel(uint64(m.TunnelID)) + } + if len(m.Prices) > 0 { + for _, e := range m.Prices { + l = e.Size() + n += 1 + l + sovTunnel(uint64(l)) + } + } + if m.LastInterval != 0 { + n += 1 + sovTunnel(uint64(m.LastInterval)) + } + return n +} + +func (m *TotalFees) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TotalBasePacketFee) > 0 { + for _, e := range m.TotalBasePacketFee { + l = e.Size() + n += 1 + l + sovTunnel(uint64(l)) + } + } + return n +} + +func (m *Packet) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelID != 0 { + n += 1 + sovTunnel(uint64(m.TunnelID)) + } + if m.Sequence != 0 { + n += 1 + sovTunnel(uint64(m.Sequence)) + } + if len(m.Prices) > 0 { + for _, e := range m.Prices { + l = e.Size() + n += 1 + l + sovTunnel(uint64(l)) + } + } + if m.Receipt != nil { + l = m.Receipt.Size() + n += 1 + l + sovTunnel(uint64(l)) + } + if m.CreatedAt != 0 { + n += 1 + sovTunnel(uint64(m.CreatedAt)) + } + return n +} + +func (m *Deposit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelID != 0 { + n += 1 + sovTunnel(uint64(m.TunnelID)) + } + l = len(m.Depositor) + if l > 0 { + n += 1 + l + sovTunnel(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovTunnel(uint64(l)) + } + } + return n +} + +func (m *SignalDeviation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SignalID) + if l > 0 { + n += 1 + l + sovTunnel(uint64(l)) + } + if m.SoftDeviationBPS != 0 { + n += 1 + sovTunnel(uint64(m.SoftDeviationBPS)) + } + if m.HardDeviationBPS != 0 { + n += 1 + sovTunnel(uint64(m.HardDeviationBPS)) + } + return n +} + +func (m *TunnelSignatureOrder) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Sequence != 0 { + n += 1 + sovTunnel(uint64(m.Sequence)) + } + if len(m.Prices) > 0 { + for _, e := range m.Prices { + l = e.Size() + n += 1 + l + sovTunnel(uint64(l)) + } + } + if m.CreatedAt != 0 { + n += 1 + sovTunnel(uint64(m.CreatedAt)) + } + if m.Encoder != 0 { + n += 1 + sovTunnel(uint64(m.Encoder)) + } + return n +} + +func sovTunnel(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTunnel(x uint64) (n int) { + return sovTunnel(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Tunnel) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Tunnel: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Tunnel: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + } + m.Sequence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Route == nil { + m.Route = &types.Any{} + } + if err := m.Route.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeePayer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeePayer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalDeviations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SignalDeviations = append(m.SignalDeviations, SignalDeviation{}) + if err := m.SignalDeviations[len(m.SignalDeviations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) + } + m.Interval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Interval |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalDeposit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TotalDeposit = append(m.TotalDeposit, types1.Coin{}) + if err := m.TotalDeposit[len(m.TotalDeposit)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsActive = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) + } + m.CreatedAt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CreatedAt |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTunnel(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTunnel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LatestPrices) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LatestPrices: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LatestPrices: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelID", wireType) + } + m.TunnelID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TunnelID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prices = append(m.Prices, types2.Price{}) + if err := m.Prices[len(m.Prices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastInterval", wireType) + } + m.LastInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastInterval |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTunnel(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTunnel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TotalFees) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TotalFees: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TotalFees: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalBasePacketFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TotalBasePacketFee = append(m.TotalBasePacketFee, types1.Coin{}) + if err := m.TotalBasePacketFee[len(m.TotalBasePacketFee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTunnel(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTunnel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Packet) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Packet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Packet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelID", wireType) + } + m.TunnelID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TunnelID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + } + m.Sequence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prices = append(m.Prices, types2.Price{}) + if err := m.Prices[len(m.Prices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receipt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Receipt == nil { + m.Receipt = &types.Any{} + } + if err := m.Receipt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) + } + m.CreatedAt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CreatedAt |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTunnel(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTunnel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Deposit) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Deposit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Deposit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelID", wireType) + } + m.TunnelID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TunnelID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Depositor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Depositor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, types1.Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTunnel(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTunnel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SignalDeviation) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SignalDeviation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SignalDeviation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SignalID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SoftDeviationBPS", wireType) + } + m.SoftDeviationBPS = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SoftDeviationBPS |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HardDeviationBPS", wireType) + } + m.HardDeviationBPS = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HardDeviationBPS |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTunnel(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTunnel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TunnelSignatureOrder) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TunnelSignatureOrder: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TunnelSignatureOrder: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + } + m.Sequence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prices = append(m.Prices, types2.Price{}) + if err := m.Prices[len(m.Prices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) + } + m.CreatedAt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CreatedAt |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Encoder", wireType) + } + m.Encoder = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Encoder |= types2.Encoder(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTunnel(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTunnel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTunnel(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTunnel + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTunnel + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTunnel + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTunnel + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTunnel + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTunnel + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTunnel = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTunnel = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTunnel = fmt.Errorf("proto: unexpected end of group") +) diff --git a/internal/relayertest/mocks/band_chain_query.go b/internal/relayertest/mocks/band_chain_query.go new file mode 100644 index 0000000..d77f786 --- /dev/null +++ b/internal/relayertest/mocks/band_chain_query.go @@ -0,0 +1,124 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: relayer/band/query.go +// +// Generated by this command: +// +// mockgen -source=relayer/band/query.go -package mocks -destination internal/relayertest/mocks/band_chain_query.go +// + +// Package mocks is a generated GoMock package. +package mocks + +import ( + context "context" + reflect "reflect" + + types "github.com/bandprotocol/falcon/internal/bandchain/bandtss" + types0 "github.com/bandprotocol/falcon/internal/bandchain/tunnel" + gomock "go.uber.org/mock/gomock" + grpc "google.golang.org/grpc" +) + +// MockQueryClient is a mock of QueryClient interface. +type MockQueryClient struct { + ctrl *gomock.Controller + recorder *MockQueryClientMockRecorder + isgomock struct{} +} + +// MockQueryClientMockRecorder is the mock recorder for MockQueryClient. +type MockQueryClientMockRecorder struct { + mock *MockQueryClient +} + +// NewMockQueryClient creates a new mock instance. +func NewMockQueryClient(ctrl *gomock.Controller) *MockQueryClient { + mock := &MockQueryClient{ctrl: ctrl} + mock.recorder = &MockQueryClientMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockQueryClient) EXPECT() *MockQueryClientMockRecorder { + return m.recorder +} + +// Packet mocks base method. +func (m *MockQueryClient) Packet(ctx context.Context, in *types0.QueryPacketRequest, opts ...grpc.CallOption) (*types0.QueryPacketResponse, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "Packet", varargs...) + ret0, _ := ret[0].(*types0.QueryPacketResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Packet indicates an expected call of Packet. +func (mr *MockQueryClientMockRecorder) Packet(ctx, in any, opts ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, in}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Packet", reflect.TypeOf((*MockQueryClient)(nil).Packet), varargs...) +} + +// Signing mocks base method. +func (m *MockQueryClient) Signing(ctx context.Context, in *types.QuerySigningRequest, opts ...grpc.CallOption) (*types.QuerySigningResponse, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "Signing", varargs...) + ret0, _ := ret[0].(*types.QuerySigningResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Signing indicates an expected call of Signing. +func (mr *MockQueryClientMockRecorder) Signing(ctx, in any, opts ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, in}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Signing", reflect.TypeOf((*MockQueryClient)(nil).Signing), varargs...) +} + +// Tunnel mocks base method. +func (m *MockQueryClient) Tunnel(ctx context.Context, in *types0.QueryTunnelRequest, opts ...grpc.CallOption) (*types0.QueryTunnelResponse, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "Tunnel", varargs...) + ret0, _ := ret[0].(*types0.QueryTunnelResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Tunnel indicates an expected call of Tunnel. +func (mr *MockQueryClientMockRecorder) Tunnel(ctx, in any, opts ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, in}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tunnel", reflect.TypeOf((*MockQueryClient)(nil).Tunnel), varargs...) +} + +// Tunnels mocks base method. +func (m *MockQueryClient) Tunnels(ctx context.Context, in *types0.QueryTunnelsRequest, opts ...grpc.CallOption) (*types0.QueryTunnelsResponse, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "Tunnels", varargs...) + ret0, _ := ret[0].(*types0.QueryTunnelsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Tunnels indicates an expected call of Tunnels. +func (mr *MockQueryClientMockRecorder) Tunnels(ctx, in any, opts ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, in}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tunnels", reflect.TypeOf((*MockQueryClient)(nil).Tunnels), varargs...) +} diff --git a/internal/relayertest/mocks/bandtss_query_client.go b/internal/relayertest/mocks/bandtss_query_client.go deleted file mode 100644 index 6a3eee9..0000000 --- a/internal/relayertest/mocks/bandtss_query_client.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: github.com/bandprotocol/chain/v3/x/bandtss/types (interfaces: QueryClient) -// -// Generated by this command: -// -// mockgen -package mocks -mock_names QueryClient=MockBandtssQueryClient -destination internal/relayertest/mocks/bandtss_query_client.go github.com/bandprotocol/chain/v3/x/bandtss/types QueryClient -// - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - types "github.com/bandprotocol/chain/v3/x/bandtss/types" - gomock "go.uber.org/mock/gomock" - grpc "google.golang.org/grpc" -) - -// MockBandtssQueryClient is a mock of QueryClient interface. -type MockBandtssQueryClient struct { - ctrl *gomock.Controller - recorder *MockBandtssQueryClientMockRecorder - isgomock struct{} -} - -// MockBandtssQueryClientMockRecorder is the mock recorder for MockBandtssQueryClient. -type MockBandtssQueryClientMockRecorder struct { - mock *MockBandtssQueryClient -} - -// NewMockBandtssQueryClient creates a new mock instance. -func NewMockBandtssQueryClient(ctrl *gomock.Controller) *MockBandtssQueryClient { - mock := &MockBandtssQueryClient{ctrl: ctrl} - mock.recorder = &MockBandtssQueryClientMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockBandtssQueryClient) EXPECT() *MockBandtssQueryClientMockRecorder { - return m.recorder -} - -// Counts mocks base method. -func (m *MockBandtssQueryClient) Counts(ctx context.Context, in *types.QueryCountsRequest, opts ...grpc.CallOption) (*types.QueryCountsResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Counts", varargs...) - ret0, _ := ret[0].(*types.QueryCountsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Counts indicates an expected call of Counts. -func (mr *MockBandtssQueryClientMockRecorder) Counts(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Counts", reflect.TypeOf((*MockBandtssQueryClient)(nil).Counts), varargs...) -} - -// CurrentGroup mocks base method. -func (m *MockBandtssQueryClient) CurrentGroup(ctx context.Context, in *types.QueryCurrentGroupRequest, opts ...grpc.CallOption) (*types.QueryCurrentGroupResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "CurrentGroup", varargs...) - ret0, _ := ret[0].(*types.QueryCurrentGroupResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CurrentGroup indicates an expected call of CurrentGroup. -func (mr *MockBandtssQueryClientMockRecorder) CurrentGroup(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentGroup", reflect.TypeOf((*MockBandtssQueryClient)(nil).CurrentGroup), varargs...) -} - -// GroupTransition mocks base method. -func (m *MockBandtssQueryClient) GroupTransition(ctx context.Context, in *types.QueryGroupTransitionRequest, opts ...grpc.CallOption) (*types.QueryGroupTransitionResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GroupTransition", varargs...) - ret0, _ := ret[0].(*types.QueryGroupTransitionResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GroupTransition indicates an expected call of GroupTransition. -func (mr *MockBandtssQueryClientMockRecorder) GroupTransition(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupTransition", reflect.TypeOf((*MockBandtssQueryClient)(nil).GroupTransition), varargs...) -} - -// IncomingGroup mocks base method. -func (m *MockBandtssQueryClient) IncomingGroup(ctx context.Context, in *types.QueryIncomingGroupRequest, opts ...grpc.CallOption) (*types.QueryIncomingGroupResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "IncomingGroup", varargs...) - ret0, _ := ret[0].(*types.QueryIncomingGroupResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// IncomingGroup indicates an expected call of IncomingGroup. -func (mr *MockBandtssQueryClientMockRecorder) IncomingGroup(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncomingGroup", reflect.TypeOf((*MockBandtssQueryClient)(nil).IncomingGroup), varargs...) -} - -// Member mocks base method. -func (m *MockBandtssQueryClient) Member(ctx context.Context, in *types.QueryMemberRequest, opts ...grpc.CallOption) (*types.QueryMemberResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Member", varargs...) - ret0, _ := ret[0].(*types.QueryMemberResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Member indicates an expected call of Member. -func (mr *MockBandtssQueryClientMockRecorder) Member(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Member", reflect.TypeOf((*MockBandtssQueryClient)(nil).Member), varargs...) -} - -// Members mocks base method. -func (m *MockBandtssQueryClient) Members(ctx context.Context, in *types.QueryMembersRequest, opts ...grpc.CallOption) (*types.QueryMembersResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Members", varargs...) - ret0, _ := ret[0].(*types.QueryMembersResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Members indicates an expected call of Members. -func (mr *MockBandtssQueryClientMockRecorder) Members(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Members", reflect.TypeOf((*MockBandtssQueryClient)(nil).Members), varargs...) -} - -// Params mocks base method. -func (m *MockBandtssQueryClient) Params(ctx context.Context, in *types.QueryParamsRequest, opts ...grpc.CallOption) (*types.QueryParamsResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Params", varargs...) - ret0, _ := ret[0].(*types.QueryParamsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Params indicates an expected call of Params. -func (mr *MockBandtssQueryClientMockRecorder) Params(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Params", reflect.TypeOf((*MockBandtssQueryClient)(nil).Params), varargs...) -} - -// Signing mocks base method. -func (m *MockBandtssQueryClient) Signing(ctx context.Context, in *types.QuerySigningRequest, opts ...grpc.CallOption) (*types.QuerySigningResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Signing", varargs...) - ret0, _ := ret[0].(*types.QuerySigningResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Signing indicates an expected call of Signing. -func (mr *MockBandtssQueryClientMockRecorder) Signing(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Signing", reflect.TypeOf((*MockBandtssQueryClient)(nil).Signing), varargs...) -} diff --git a/internal/relayertest/mocks/tunnel_query_client.go b/internal/relayertest/mocks/tunnel_query_client.go deleted file mode 100644 index 9c4447d..0000000 --- a/internal/relayertest/mocks/tunnel_query_client.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: github.com/bandprotocol/chain/v3/x/tunnel/types (interfaces: QueryClient) -// -// Generated by this command: -// -// mockgen -package mocks -mock_names QueryClient=MockTunnelQueryClient -destination internal/relayertest/mocks/tunnel_query_client.go github.com/bandprotocol/chain/v3/x/tunnel/types QueryClient -// - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - types "github.com/bandprotocol/chain/v3/x/tunnel/types" - gomock "go.uber.org/mock/gomock" - grpc "google.golang.org/grpc" -) - -// MockTunnelQueryClient is a mock of QueryClient interface. -type MockTunnelQueryClient struct { - ctrl *gomock.Controller - recorder *MockTunnelQueryClientMockRecorder - isgomock struct{} -} - -// MockTunnelQueryClientMockRecorder is the mock recorder for MockTunnelQueryClient. -type MockTunnelQueryClientMockRecorder struct { - mock *MockTunnelQueryClient -} - -// NewMockTunnelQueryClient creates a new mock instance. -func NewMockTunnelQueryClient(ctrl *gomock.Controller) *MockTunnelQueryClient { - mock := &MockTunnelQueryClient{ctrl: ctrl} - mock.recorder = &MockTunnelQueryClientMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockTunnelQueryClient) EXPECT() *MockTunnelQueryClientMockRecorder { - return m.recorder -} - -// Deposit mocks base method. -func (m *MockTunnelQueryClient) Deposit(ctx context.Context, in *types.QueryDepositRequest, opts ...grpc.CallOption) (*types.QueryDepositResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Deposit", varargs...) - ret0, _ := ret[0].(*types.QueryDepositResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Deposit indicates an expected call of Deposit. -func (mr *MockTunnelQueryClientMockRecorder) Deposit(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deposit", reflect.TypeOf((*MockTunnelQueryClient)(nil).Deposit), varargs...) -} - -// Deposits mocks base method. -func (m *MockTunnelQueryClient) Deposits(ctx context.Context, in *types.QueryDepositsRequest, opts ...grpc.CallOption) (*types.QueryDepositsResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Deposits", varargs...) - ret0, _ := ret[0].(*types.QueryDepositsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Deposits indicates an expected call of Deposits. -func (mr *MockTunnelQueryClientMockRecorder) Deposits(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deposits", reflect.TypeOf((*MockTunnelQueryClient)(nil).Deposits), varargs...) -} - -// Packet mocks base method. -func (m *MockTunnelQueryClient) Packet(ctx context.Context, in *types.QueryPacketRequest, opts ...grpc.CallOption) (*types.QueryPacketResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Packet", varargs...) - ret0, _ := ret[0].(*types.QueryPacketResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Packet indicates an expected call of Packet. -func (mr *MockTunnelQueryClientMockRecorder) Packet(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Packet", reflect.TypeOf((*MockTunnelQueryClient)(nil).Packet), varargs...) -} - -// Packets mocks base method. -func (m *MockTunnelQueryClient) Packets(ctx context.Context, in *types.QueryPacketsRequest, opts ...grpc.CallOption) (*types.QueryPacketsResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Packets", varargs...) - ret0, _ := ret[0].(*types.QueryPacketsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Packets indicates an expected call of Packets. -func (mr *MockTunnelQueryClientMockRecorder) Packets(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Packets", reflect.TypeOf((*MockTunnelQueryClient)(nil).Packets), varargs...) -} - -// Params mocks base method. -func (m *MockTunnelQueryClient) Params(ctx context.Context, in *types.QueryParamsRequest, opts ...grpc.CallOption) (*types.QueryParamsResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Params", varargs...) - ret0, _ := ret[0].(*types.QueryParamsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Params indicates an expected call of Params. -func (mr *MockTunnelQueryClientMockRecorder) Params(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Params", reflect.TypeOf((*MockTunnelQueryClient)(nil).Params), varargs...) -} - -// TotalFees mocks base method. -func (m *MockTunnelQueryClient) TotalFees(ctx context.Context, in *types.QueryTotalFeesRequest, opts ...grpc.CallOption) (*types.QueryTotalFeesResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "TotalFees", varargs...) - ret0, _ := ret[0].(*types.QueryTotalFeesResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// TotalFees indicates an expected call of TotalFees. -func (mr *MockTunnelQueryClientMockRecorder) TotalFees(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TotalFees", reflect.TypeOf((*MockTunnelQueryClient)(nil).TotalFees), varargs...) -} - -// Tunnel mocks base method. -func (m *MockTunnelQueryClient) Tunnel(ctx context.Context, in *types.QueryTunnelRequest, opts ...grpc.CallOption) (*types.QueryTunnelResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Tunnel", varargs...) - ret0, _ := ret[0].(*types.QueryTunnelResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Tunnel indicates an expected call of Tunnel. -func (mr *MockTunnelQueryClientMockRecorder) Tunnel(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tunnel", reflect.TypeOf((*MockTunnelQueryClient)(nil).Tunnel), varargs...) -} - -// Tunnels mocks base method. -func (m *MockTunnelQueryClient) Tunnels(ctx context.Context, in *types.QueryTunnelsRequest, opts ...grpc.CallOption) (*types.QueryTunnelsResponse, error) { - m.ctrl.T.Helper() - varargs := []any{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Tunnels", varargs...) - ret0, _ := ret[0].(*types.QueryTunnelsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Tunnels indicates an expected call of Tunnels. -func (mr *MockTunnelQueryClientMockRecorder) Tunnels(ctx, in any, opts ...any) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]any{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tunnels", reflect.TypeOf((*MockTunnelQueryClient)(nil).Tunnels), varargs...) -} diff --git a/relayer/band/client.go b/relayer/band/client.go index 4ef7304..c842187 100644 --- a/relayer/band/client.go +++ b/relayer/band/client.go @@ -11,9 +11,8 @@ import ( querytypes "github.com/cosmos/cosmos-sdk/types/query" "go.uber.org/zap" - bandtsstypes "github.com/bandprotocol/chain/v3/x/bandtss/types" - tunneltypes "github.com/bandprotocol/chain/v3/x/tunnel/types" - + bandtsstypes "github.com/bandprotocol/falcon/internal/bandchain/bandtss" + tunneltypes "github.com/bandprotocol/falcon/internal/bandchain/tunnel" "github.com/bandprotocol/falcon/relayer/band/types" ) @@ -35,33 +34,16 @@ type Client interface { GetTunnels(ctx context.Context) ([]types.Tunnel, error) } -// QueryClient groups the gRPC clients for querying BandChain-specific data. -type QueryClient struct { - TunnelQueryClient tunneltypes.QueryClient - BandtssQueryClient bandtsstypes.QueryClient -} - -// NewQueryClient creates a new QueryClient instance. -func NewQueryClient( - tunnelQueryClient tunneltypes.QueryClient, - bandTssQueryClient bandtsstypes.QueryClient, -) *QueryClient { - return &QueryClient{ - TunnelQueryClient: tunnelQueryClient, - BandtssQueryClient: bandTssQueryClient, - } -} - // client is the BandChain client struct. type client struct { Context cosmosclient.Context - QueryClient *QueryClient + QueryClient QueryClient Log *zap.Logger Config *Config } // NewClient creates a new BandChain client instance. -func NewClient(queryClient *QueryClient, log *zap.Logger, bandChainCfg *Config) Client { +func NewClient(queryClient QueryClient, log *zap.Logger, bandChainCfg *Config) Client { encodingConfig := MakeEncodingConfig() ctx := cosmosclient.Context{}. WithCodec(encodingConfig.Marshaler). @@ -108,7 +90,7 @@ func (c *client) connect(timeout uint, onStartup bool) error { c.Context.Client = client c.Context.NodeURI = rpcEndpoint - c.QueryClient = NewQueryClient(tunneltypes.NewQueryClient(c.Context), bandtsstypes.NewQueryClient(c.Context)) + c.QueryClient = NewBandQueryClient(c.Context) c.Log.Info("Connected to BandChain", zap.String("endpoint", rpcEndpoint)) @@ -151,7 +133,7 @@ func (c *client) GetTunnel(ctx context.Context, tunnelID uint64) (*types.Tunnel, return nil, fmt.Errorf("cannot connect to bandchain") } - res, err := c.QueryClient.TunnelQueryClient.Tunnel(ctx, &tunneltypes.QueryTunnelRequest{ + res, err := c.QueryClient.Tunnel(ctx, &tunneltypes.QueryTunnelRequest{ TunnelId: tunnelID, }) if err != nil { @@ -187,7 +169,7 @@ func (c *client) GetTunnelPacket(ctx context.Context, tunnelID uint64, sequence } // Get packet information by given tunnel ID and sequence - resPacket, err := c.QueryClient.TunnelQueryClient.Packet(ctx, &tunneltypes.QueryPacketRequest{ + resPacket, err := c.QueryClient.Packet(ctx, &tunneltypes.QueryPacketRequest{ TunnelId: tunnelID, Sequence: sequence, }) @@ -218,7 +200,7 @@ func (c *client) GetTunnelPacket(ctx context.Context, tunnelID uint64, sequence signingID := uint64(tssPacketReceipt.SigningID) // Get tss signing information by given signing ID - resSigning, err := c.QueryClient.BandtssQueryClient.Signing(ctx, &bandtsstypes.QuerySigningRequest{ + resSigning, err := c.QueryClient.Signing(ctx, &bandtsstypes.QuerySigningRequest{ SigningId: signingID, }) if err != nil { @@ -248,7 +230,7 @@ func (c *client) GetTunnels(ctx context.Context) ([]types.Tunnel, error) { var nextKey []byte for { - res, err := c.QueryClient.TunnelQueryClient.Tunnels(ctx, &tunneltypes.QueryTunnelsRequest{ + res, err := c.QueryClient.Tunnels(ctx, &tunneltypes.QueryTunnelsRequest{ Pagination: &querytypes.PageRequest{ Key: nextKey, }, diff --git a/relayer/band/client_test.go b/relayer/band/client_test.go index 3c0ccbe..0af6f1f 100644 --- a/relayer/band/client_test.go +++ b/relayer/band/client_test.go @@ -16,11 +16,10 @@ import ( "go.uber.org/mock/gomock" "go.uber.org/zap" - bandtsstypes "github.com/bandprotocol/chain/v3/x/bandtss/types" - feedstypes "github.com/bandprotocol/chain/v3/x/feeds/types" - tsstypes "github.com/bandprotocol/chain/v3/x/tss/types" - tunneltypes "github.com/bandprotocol/chain/v3/x/tunnel/types" - + bandtsstypes "github.com/bandprotocol/falcon/internal/bandchain/bandtss" + feedstypes "github.com/bandprotocol/falcon/internal/bandchain/feeds" + tsstypes "github.com/bandprotocol/falcon/internal/bandchain/tss" + tunneltypes "github.com/bandprotocol/falcon/internal/bandchain/tunnel" "github.com/bandprotocol/falcon/internal/relayertest/mocks" "github.com/bandprotocol/falcon/relayer/band" bandclienttypes "github.com/bandprotocol/falcon/relayer/band/types" @@ -29,11 +28,10 @@ import ( type ClientTestSuite struct { suite.Suite - ctx context.Context - tunnelQueryClient *mocks.MockTunnelQueryClient - bandtssQueryClient *mocks.MockBandtssQueryClient - client band.Client - log *zap.Logger + ctx context.Context + bandQueryClient *mocks.MockQueryClient + client band.Client + log *zap.Logger } func TestClientTestSuite(t *testing.T) { @@ -46,10 +44,9 @@ func (s *ClientTestSuite) SetupTest() { // mock objects. s.log = zap.NewNop() - s.tunnelQueryClient = mocks.NewMockTunnelQueryClient(ctrl) - s.bandtssQueryClient = mocks.NewMockBandtssQueryClient(ctrl) + s.bandQueryClient = mocks.NewMockQueryClient(ctrl) s.client = band.NewClient( - band.NewQueryClient(s.tunnelQueryClient, s.bandtssQueryClient), + s.bandQueryClient, s.log, &band.Config{LivelinessCheckingInterval: 15 * time.Minute}, ) @@ -136,7 +133,7 @@ func (s *ClientTestSuite) TestGetTunnel() { in: 1, out: bandclienttypes.NewTunnel(1, 100, "0xe00F1f85abDB2aF6760759547d450da68CE66Bb1", "eth", false), preprocess: func(c context.Context) { - s.tunnelQueryClient.EXPECT().Tunnel(s.ctx, &tunneltypes.QueryTunnelRequest{ + s.bandQueryClient.EXPECT().Tunnel(s.ctx, &tunneltypes.QueryTunnelRequest{ TunnelId: uint64(1), }).Return(&tunneltypes.QueryTunnelResponse{Tunnel: tssTunnel}, nil) }, @@ -146,7 +143,7 @@ func (s *ClientTestSuite) TestGetTunnel() { in: 2, err: fmt.Errorf("unsupported route type"), preprocess: func(c context.Context) { - s.tunnelQueryClient.EXPECT().Tunnel(s.ctx, &tunneltypes.QueryTunnelRequest{ + s.bandQueryClient.EXPECT().Tunnel(s.ctx, &tunneltypes.QueryTunnelRequest{ TunnelId: uint64(2), }).Return(&tunneltypes.QueryTunnelResponse{Tunnel: ibcTunnel}, nil) }, @@ -214,11 +211,11 @@ func (s *ClientTestSuite) TestGetTSSTunnelPacket() { } // expect response from bandQueryClient - s.tunnelQueryClient.EXPECT().Packet(s.ctx, &tunneltypes.QueryPacketRequest{ + s.bandQueryClient.EXPECT().Packet(s.ctx, &tunneltypes.QueryPacketRequest{ TunnelId: uint64(1), Sequence: uint64(100), }).Return(queryPacketResponse, nil) - s.bandtssQueryClient.EXPECT().Signing(s.ctx, &bandtsstypes.QuerySigningRequest{ + s.bandQueryClient.EXPECT().Signing(s.ctx, &bandtsstypes.QuerySigningRequest{ SigningId: uint64(2), }).Return(querySigningResponse, nil) @@ -282,7 +279,7 @@ func (s *ClientTestSuite) TestGetOtherTunnelPacket() { } // expect response from bandQueryClient - s.tunnelQueryClient.EXPECT().Packet(s.ctx, &tunneltypes.QueryPacketRequest{ + s.bandQueryClient.EXPECT().Packet(s.ctx, &tunneltypes.QueryPacketRequest{ TunnelId: uint64(1), Sequence: uint64(100), }).Return(queryPacketResponse, nil) @@ -305,8 +302,8 @@ func (s *ClientTestSuite) TestGetTunnels() { // expected result from tssTunnels expectedRes := make([]bandclienttypes.Tunnel, 0, len(tssTunnels)) for _, tunnel := range tssTunnels { - routeI, err := tunnel.GetRouteValue() - s.Require().NoError(err) + routeI, ok := tunnel.Route.GetCachedValue().(tunneltypes.RouteI) + s.Require().True(ok) tssRoute, ok := routeI.(*tunneltypes.TSSRoute) s.Require().True(ok) @@ -334,7 +331,7 @@ func (s *ClientTestSuite) TestGetTunnels() { name: "success", preprocess: func(c context.Context) { // expect response from bandQueryClient - s.tunnelQueryClient.EXPECT().Tunnels(s.ctx, &tunneltypes.QueryTunnelsRequest{ + s.bandQueryClient.EXPECT().Tunnels(s.ctx, &tunneltypes.QueryTunnelsRequest{ Pagination: &querytypes.PageRequest{ Key: nil, }, @@ -345,7 +342,7 @@ func (s *ClientTestSuite) TestGetTunnels() { }, }, nil) - s.tunnelQueryClient.EXPECT().Tunnels(s.ctx, &tunneltypes.QueryTunnelsRequest{ + s.bandQueryClient.EXPECT().Tunnels(s.ctx, &tunneltypes.QueryTunnelsRequest{ Pagination: &querytypes.PageRequest{ Key: []byte("next-key"), }, @@ -361,7 +358,7 @@ func (s *ClientTestSuite) TestGetTunnels() { { name: "filter out unrelated tunnel", preprocess: func(c context.Context) { - s.tunnelQueryClient.EXPECT().Tunnels(s.ctx, &tunneltypes.QueryTunnelsRequest{ + s.bandQueryClient.EXPECT().Tunnels(s.ctx, &tunneltypes.QueryTunnelsRequest{ Pagination: &querytypes.PageRequest{ Key: nil, }, diff --git a/relayer/band/encoding.go b/relayer/band/encoding.go index a26a474..62b1a26 100644 --- a/relayer/band/encoding.go +++ b/relayer/band/encoding.go @@ -8,7 +8,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/gogoproto/proto" - tunneltypes "github.com/bandprotocol/chain/v3/x/tunnel/types" + tunneltypes "github.com/bandprotocol/falcon/internal/bandchain/tunnel" ) // EncodingConfig specifies the concrete encoding types to use for a given app. @@ -35,8 +35,7 @@ func MakeEncodingConfig() EncodingConfig { panic(err) } - // Register the interface types - tunneltypes.RegisterInterfaces(interfaceRegistry) + RegisterInterfaces(interfaceRegistry) cdc := codec.NewProtoCodec(interfaceRegistry) return EncodingConfig{ @@ -44,3 +43,20 @@ func MakeEncodingConfig() EncodingConfig { Marshaler: cdc, } } + +// RegisterInterfaces registers the interfaces types being used by the BandChain. +func RegisterInterfaces(registry codectypes.InterfaceRegistry) { + registry.RegisterInterface( + "tunnel.v1beta1.RouteI", + (*tunneltypes.RouteI)(nil), + &tunneltypes.TSSRoute{}, + &tunneltypes.IBCRoute{}, + ) + + registry.RegisterInterface( + "tunnel.v1beta1.PacketReceiptI", + (*tunneltypes.PacketReceiptI)(nil), + &tunneltypes.TSSPacketReceipt{}, + &tunneltypes.IBCPacketReceipt{}, + ) +} diff --git a/relayer/band/query.go b/relayer/band/query.go new file mode 100644 index 0000000..8561f71 --- /dev/null +++ b/relayer/band/query.go @@ -0,0 +1,99 @@ +package band + +import ( + "context" + + cosmosgrpc "github.com/cosmos/gogoproto/grpc" + "google.golang.org/grpc" + + bandtsstypes "github.com/bandprotocol/falcon/internal/bandchain/bandtss" + tunneltypes "github.com/bandprotocol/falcon/internal/bandchain/tunnel" +) + +var _ QueryClient = (*BandQueryClient)(nil) + +type QueryClient interface { + Tunnel( + ctx context.Context, + in *tunneltypes.QueryTunnelRequest, + opts ...grpc.CallOption, + ) (*tunneltypes.QueryTunnelResponse, error) + + Tunnels( + ctx context.Context, + in *tunneltypes.QueryTunnelsRequest, + opts ...grpc.CallOption, + ) (*tunneltypes.QueryTunnelsResponse, error) + + Packet( + ctx context.Context, + in *tunneltypes.QueryPacketRequest, + opts ...grpc.CallOption, + ) (*tunneltypes.QueryPacketResponse, error) + + Signing( + ctx context.Context, + in *bandtsstypes.QuerySigningRequest, + opts ...grpc.CallOption, + ) (*bandtsstypes.QuerySigningResponse, error) +} + +type BandQueryClient struct { + cc cosmosgrpc.ClientConn +} + +func NewBandQueryClient(cc cosmosgrpc.ClientConn) *BandQueryClient { + return &BandQueryClient{cc} +} + +func (c *BandQueryClient) Tunnel( + ctx context.Context, + in *tunneltypes.QueryTunnelRequest, + opts ...grpc.CallOption, +) (*tunneltypes.QueryTunnelResponse, error) { + out := new(tunneltypes.QueryTunnelResponse) + err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Tunnel", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *BandQueryClient) Tunnels( + ctx context.Context, + in *tunneltypes.QueryTunnelsRequest, + opts ...grpc.CallOption, +) (*tunneltypes.QueryTunnelsResponse, error) { + out := new(tunneltypes.QueryTunnelsResponse) + err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Tunnels", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *BandQueryClient) Packet( + ctx context.Context, + in *tunneltypes.QueryPacketRequest, + opts ...grpc.CallOption, +) (*tunneltypes.QueryPacketResponse, error) { + out := new(tunneltypes.QueryPacketResponse) + err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Packet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *BandQueryClient) Signing( + ctx context.Context, + in *bandtsstypes.QuerySigningRequest, + opts ...grpc.CallOption, +) (*bandtsstypes.QuerySigningResponse, error) { + out := new(bandtsstypes.QuerySigningResponse) + err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/Signing", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} diff --git a/relayer/band/types/signing.go b/relayer/band/types/signing.go index 0163157..2f40c71 100644 --- a/relayer/band/types/signing.go +++ b/relayer/band/types/signing.go @@ -3,7 +3,7 @@ package types import ( cmbytes "github.com/cometbft/cometbft/libs/bytes" - tsstypes "github.com/bandprotocol/chain/v3/x/tss/types" + tsstypes "github.com/bandprotocol/falcon/internal/bandchain/tss" ) // EVMSignature defines a signature in the EVM format. diff --git a/relayer/tunnel_relayer.go b/relayer/tunnel_relayer.go index 997ea31..81fb2f4 100644 --- a/relayer/tunnel_relayer.go +++ b/relayer/tunnel_relayer.go @@ -7,8 +7,7 @@ import ( "go.uber.org/zap" - tsstypes "github.com/bandprotocol/chain/v3/x/tss/types" - + tsstypes "github.com/bandprotocol/falcon/internal/bandchain/tss" "github.com/bandprotocol/falcon/relayer/band" "github.com/bandprotocol/falcon/relayer/chains" ) diff --git a/scripts/mockgen.sh b/scripts/mockgen.sh index e644941..0424f38 100755 --- a/scripts/mockgen.sh +++ b/scripts/mockgen.sh @@ -1,10 +1,9 @@ #!/usr/bin/env bash mockgen_cmd="mockgen" +$mockgen_cmd -source=relayer/band/query.go -package mocks -destination internal/relayertest/mocks/band_chain_query.go $mockgen_cmd -source=relayer/chains/config.go -package mocks -destination internal/relayertest/mocks/chain_provider_config.go $mockgen_cmd -source=relayer/chains/provider.go -package mocks -destination internal/relayertest/mocks/chain_provider.go $mockgen_cmd -source=relayer/chains/evm/client.go -mock_names Client=MockEVMClient -package mocks -destination internal/relayertest/mocks/chain_evm_client.go $mockgen_cmd -source=relayer/band/client.go -package mocks -destination internal/relayertest/mocks/band_client.go -$mockgen_cmd -package mocks -mock_names QueryClient=MockTunnelQueryClient -destination internal/relayertest/mocks/tunnel_query_client.go github.com/bandprotocol/chain/v3/x/tunnel/types QueryClient -$mockgen_cmd -package mocks -mock_names QueryClient=MockBandtssQueryClient -destination internal/relayertest/mocks/bandtss_query_client.go github.com/bandprotocol/chain/v3/x/bandtss/types QueryClient From 7429571a11038f0819565b9d638d2ed9242ce591 Mon Sep 17 00:00:00 2001 From: nkitlabs Date: Tue, 21 Jan 2025 18:07:14 +0700 Subject: [PATCH 02/14] remove unused --- go.mod | 2 +- internal/bandchain/bandtss/bandtss.go | 2 +- internal/bandchain/bandtss/bandtss.pb.go | 1964 +---- internal/bandchain/bandtss/params.pb.go | 888 -- internal/bandchain/bandtss/query.pb.go | 3908 +------- internal/bandchain/feeds/encoder.pb.go | 47 +- internal/bandchain/feeds/feeds.pb.go | 3547 +------- internal/bandchain/tss/error.go | 51 - internal/bandchain/tss/helpers.go | 20 - .../tss/schnorr/complaint_signature.go | 105 - internal/bandchain/tss/schnorr/error.go | 82 - internal/bandchain/tss/schnorr/signature.go | 110 - internal/bandchain/tss/tss.go | 727 +- internal/bandchain/tss/tss.pb.go | 7828 +---------------- internal/bandchain/tunnel/ibc_route.go | 42 - internal/bandchain/tunnel/packet_receipt.go | 8 - internal/bandchain/tunnel/params.pb.go | 637 -- internal/bandchain/tunnel/query.pb.go | 3423 +------ internal/bandchain/tunnel/route.go | 48 +- internal/bandchain/tunnel/route.pb.go | 1295 +-- internal/bandchain/tunnel/tss_route.go | 33 - internal/bandchain/tunnel/tunnel.pb.go | 2375 +---- 22 files changed, 405 insertions(+), 26737 deletions(-) delete mode 100644 internal/bandchain/bandtss/params.pb.go delete mode 100644 internal/bandchain/tss/error.go delete mode 100644 internal/bandchain/tss/helpers.go delete mode 100644 internal/bandchain/tss/schnorr/complaint_signature.go delete mode 100644 internal/bandchain/tss/schnorr/error.go delete mode 100644 internal/bandchain/tss/schnorr/signature.go delete mode 100644 internal/bandchain/tunnel/ibc_route.go delete mode 100644 internal/bandchain/tunnel/packet_receipt.go delete mode 100644 internal/bandchain/tunnel/params.pb.go delete mode 100644 internal/bandchain/tunnel/tss_route.go diff --git a/go.mod b/go.mod index b0ed7bf..29cbff7 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,6 @@ require ( github.com/cometbft/cometbft v0.38.12 github.com/cosmos/cosmos-sdk v0.50.11 github.com/cosmos/gogoproto v1.7.0 - github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 github.com/ethereum/go-ethereum v1.14.12 github.com/joho/godotenv v1.5.1 github.com/jsternberg/zap-logfmt v1.3.0 @@ -78,6 +77,7 @@ require ( github.com/danieljoos/wincred v1.1.2 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/deckarep/golang-set/v2 v2.6.0 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect github.com/dgraph-io/badger/v2 v2.2007.4 // indirect github.com/dgraph-io/ristretto v0.1.1 // indirect github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect diff --git a/internal/bandchain/bandtss/bandtss.go b/internal/bandchain/bandtss/bandtss.go index 6a6abd0..cacdd12 100644 --- a/internal/bandchain/bandtss/bandtss.go +++ b/internal/bandchain/bandtss/bandtss.go @@ -1,4 +1,4 @@ -package types +package bandtss // SigningID is the type-safe unique identifier type for bandtss signing info. type SigningID uint64 diff --git a/internal/bandchain/bandtss/bandtss.pb.go b/internal/bandchain/bandtss/bandtss.pb.go index aa036dd..e4887de 100644 --- a/internal/bandchain/bandtss/bandtss.pb.go +++ b/internal/bandchain/bandtss/bandtss.pb.go @@ -1,1975 +1,21 @@ -package types +package bandtss import ( - "bytes" - "fmt" - "io" - "math" - math_bits "math/bits" - "time" - - github_com_cometbft_cometbft_libs_bytes "github.com/cometbft/cometbft/libs/bytes" "github.com/cosmos/cosmos-sdk/types" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/gogoproto/proto" - github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" - - github_com_bandprotocol_chain_v3_pkg_tss "github.com/bandprotocol/falcon/internal/bandchain/tss" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// TransitionStatus is an enumeration of the possible statuses of a group transition process. -type TransitionStatus int32 -const ( - // TRANSITION_STATUS_UNSPECIFIED is the status of a group transition that has not been specified. - TRANSITION_STATUS_UNSPECIFIED TransitionStatus = 0 - // TRANSITION_STATUS_CREATING_GROUP is the status of a group transition that a new group - // is being created. - TRANSITION_STATUS_CREATING_GROUP TransitionStatus = 1 - // TRANSITION_STATUS_WAITING_SIGN is the status of a group transition that waits members in - // a current group to sign the transition message. - TRANSITION_STATUS_WAITING_SIGN TransitionStatus = 2 - // TRANSITION_STATUS_WAITING_EXECUTION is the status of a group transition that - // a transition process is completed, either from a forceTransition or having a current-group - // signature on a transition message, but waits for the execution time. - TRANSITION_STATUS_WAITING_EXECUTION TransitionStatus = 3 + tsstypes "github.com/bandprotocol/falcon/internal/bandchain/tss" ) -var TransitionStatus_name = map[int32]string{ - 0: "TRANSITION_STATUS_UNSPECIFIED", - 1: "TRANSITION_STATUS_CREATING_GROUP", - 2: "TRANSITION_STATUS_WAITING_SIGN", - 3: "TRANSITION_STATUS_WAITING_EXECUTION", -} - -var TransitionStatus_value = map[string]int32{ - "TRANSITION_STATUS_UNSPECIFIED": 0, - "TRANSITION_STATUS_CREATING_GROUP": 1, - "TRANSITION_STATUS_WAITING_SIGN": 2, - "TRANSITION_STATUS_WAITING_EXECUTION": 3, -} - -func (x TransitionStatus) String() string { - return proto.EnumName(TransitionStatus_name, int32(x)) -} - -func (TransitionStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2bc325518cc10c44, []int{0} -} - -// Member maintains member information for monitoring their liveness activity. -type Member struct { - // address is the address of the member. - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // group_id is the group ID that the member belongs to. - GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"group_id,omitempty"` - // is_active is a flag to indicate whether a member is active or not. - IsActive bool `protobuf:"varint,3,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` - // since is a block timestamp when a member status is changed (from active to inactive or vice versa). - Since time.Time `protobuf:"bytes,4,opt,name=since,proto3,stdtime" json:"since"` -} - -func (m *Member) Reset() { *m = Member{} } -func (m *Member) String() string { return proto.CompactTextString(m) } -func (*Member) ProtoMessage() {} -func (*Member) Descriptor() ([]byte, []int) { - return fileDescriptor_2bc325518cc10c44, []int{0} -} -func (m *Member) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Member.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Member) XXX_Merge(src proto.Message) { - xxx_messageInfo_Member.Merge(m, src) -} -func (m *Member) XXX_Size() int { - return m.Size() -} -func (m *Member) XXX_DiscardUnknown() { - xxx_messageInfo_Member.DiscardUnknown(m) -} - -var xxx_messageInfo_Member proto.InternalMessageInfo - -func (m *Member) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *Member) GetGroupID() github_com_bandprotocol_chain_v3_pkg_tss.GroupID { - if m != nil { - return m.GroupID - } - return 0 -} - -func (m *Member) GetIsActive() bool { - if m != nil { - return m.IsActive - } - return false -} - -func (m *Member) GetSince() time.Time { - if m != nil { - return m.Since - } - return time.Time{} -} - -// CuurentGroup is a bandtss current group information. -type CurrentGroup struct { - // group_id is the ID of the current group. - GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"group_id,omitempty"` - // active_time is the timestamp at which the group becomes the current group of the module. - ActiveTime time.Time `protobuf:"bytes,2,opt,name=active_time,json=activeTime,proto3,stdtime" json:"active_time"` -} - -func (m *CurrentGroup) Reset() { *m = CurrentGroup{} } -func (m *CurrentGroup) String() string { return proto.CompactTextString(m) } -func (*CurrentGroup) ProtoMessage() {} -func (*CurrentGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_2bc325518cc10c44, []int{1} -} -func (m *CurrentGroup) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CurrentGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CurrentGroup.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *CurrentGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_CurrentGroup.Merge(m, src) -} -func (m *CurrentGroup) XXX_Size() int { - return m.Size() -} -func (m *CurrentGroup) XXX_DiscardUnknown() { - xxx_messageInfo_CurrentGroup.DiscardUnknown(m) -} - -var xxx_messageInfo_CurrentGroup proto.InternalMessageInfo - -func (m *CurrentGroup) GetGroupID() github_com_bandprotocol_chain_v3_pkg_tss.GroupID { - if m != nil { - return m.GroupID - } - return 0 -} - -func (m *CurrentGroup) GetActiveTime() time.Time { - if m != nil { - return m.ActiveTime - } - return time.Time{} -} - // Signing is a bandtss signing information. type Signing struct { // id is the unique identifier of the bandtss signing. ID SigningID `protobuf:"varint,1,opt,name=id,proto3,casttype=SigningID" json:"id,omitempty"` // fee_per_signer is the tokens that will be paid per signer for this bandtss signing. - FeePerSigner github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=fee_per_signer,json=feePerSigner,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fee_per_signer"` + FeePerSigner types.Coins `protobuf:"bytes,2,rep,name=fee_per_signer,json=feePerSigner,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fee_per_signer"` // requester is the address who pays the Bandtss signing. Requester string `protobuf:"bytes,3,opt,name=requester,proto3" json:"requester,omitempty"` // current_group_signing_id is a tss signing ID of a current group. - CurrentGroupSigningID github_com_bandprotocol_chain_v3_pkg_tss.SigningID `protobuf:"varint,4,opt,name=current_group_signing_id,json=currentGroupSigningId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"current_group_signing_id,omitempty"` + CurrentGroupSigningID tsstypes.SigningID `protobuf:"varint,4,opt,name=current_group_signing_id,json=currentGroupSigningId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"current_group_signing_id,omitempty"` // incoming_group_signing_id is a tss signing ID of an incoming group, if any. - IncomingGroupSigningID github_com_bandprotocol_chain_v3_pkg_tss.SigningID `protobuf:"varint,5,opt,name=incoming_group_signing_id,json=incomingGroupSigningId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"incoming_group_signing_id,omitempty"` -} - -func (m *Signing) Reset() { *m = Signing{} } -func (m *Signing) String() string { return proto.CompactTextString(m) } -func (*Signing) ProtoMessage() {} -func (*Signing) Descriptor() ([]byte, []int) { - return fileDescriptor_2bc325518cc10c44, []int{2} -} -func (m *Signing) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Signing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Signing.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Signing) XXX_Merge(src proto.Message) { - xxx_messageInfo_Signing.Merge(m, src) -} -func (m *Signing) XXX_Size() int { - return m.Size() -} -func (m *Signing) XXX_DiscardUnknown() { - xxx_messageInfo_Signing.DiscardUnknown(m) -} - -var xxx_messageInfo_Signing proto.InternalMessageInfo - -func (m *Signing) GetID() SigningID { - if m != nil { - return m.ID - } - return 0 -} - -func (m *Signing) GetFeePerSigner() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.FeePerSigner - } - return nil -} - -func (m *Signing) GetRequester() string { - if m != nil { - return m.Requester - } - return "" -} - -func (m *Signing) GetCurrentGroupSigningID() github_com_bandprotocol_chain_v3_pkg_tss.SigningID { - if m != nil { - return m.CurrentGroupSigningID - } - return 0 -} - -func (m *Signing) GetIncomingGroupSigningID() github_com_bandprotocol_chain_v3_pkg_tss.SigningID { - if m != nil { - return m.IncomingGroupSigningID - } - return 0 -} - -// GroupTransition defines the group transition information of the current group and incoming group. -type GroupTransition struct { - // signing_id is a tss signing ID of group transition signing request. - SigningID github_com_bandprotocol_chain_v3_pkg_tss.SigningID `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"signing_id,omitempty"` - // current_group_id is the ID of the group that will be replaced. - CurrentGroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `protobuf:"varint,2,opt,name=current_group_id,json=currentGroupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"current_group_id,omitempty"` - // current_group_pub_key is the public key pair that used for sign & verify transition group msg. - CurrentGroupPubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `protobuf:"bytes,3,opt,name=current_group_pub_key,json=currentGroupPubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"current_group_pub_key,omitempty"` - // new_group_id is the ID of the new group that be a new key candidate. - IncomingGroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `protobuf:"varint,4,opt,name=incoming_group_id,json=incomingGroupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"incoming_group_id,omitempty"` - // incoming_group_pub_key is the public key of the group that will be the next key of this group - IncomingGroupPubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `protobuf:"bytes,5,opt,name=incoming_group_pub_key,json=incomingGroupPubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"incoming_group_pub_key,omitempty"` - // status is an enumeration of the possible statuses of a group transition process. - Status TransitionStatus `protobuf:"varint,6,opt,name=status,proto3,enum=band.bandtss.v1beta1.TransitionStatus" json:"status,omitempty"` - // exec_time is the time when the transition will be executed. - ExecTime time.Time `protobuf:"bytes,7,opt,name=exec_time,json=execTime,proto3,stdtime" json:"exec_time"` - // is_force_transition is a flag to indicate whether the current group signs the transition message - // before the transition is executed or not. - IsForceTransition bool `protobuf:"varint,8,opt,name=is_force_transition,json=isForceTransition,proto3" json:"is_force_transition,omitempty"` -} - -func (m *GroupTransition) Reset() { *m = GroupTransition{} } -func (m *GroupTransition) String() string { return proto.CompactTextString(m) } -func (*GroupTransition) ProtoMessage() {} -func (*GroupTransition) Descriptor() ([]byte, []int) { - return fileDescriptor_2bc325518cc10c44, []int{3} -} -func (m *GroupTransition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupTransition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupTransition.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GroupTransition) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupTransition.Merge(m, src) -} -func (m *GroupTransition) XXX_Size() int { - return m.Size() -} -func (m *GroupTransition) XXX_DiscardUnknown() { - xxx_messageInfo_GroupTransition.DiscardUnknown(m) -} - -var xxx_messageInfo_GroupTransition proto.InternalMessageInfo - -func (m *GroupTransition) GetSigningID() github_com_bandprotocol_chain_v3_pkg_tss.SigningID { - if m != nil { - return m.SigningID - } - return 0 -} - -func (m *GroupTransition) GetCurrentGroupID() github_com_bandprotocol_chain_v3_pkg_tss.GroupID { - if m != nil { - return m.CurrentGroupID - } - return 0 + IncomingGroupSigningID tsstypes.SigningID `protobuf:"varint,5,opt,name=incoming_group_signing_id,json=incomingGroupSigningId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"incoming_group_signing_id,omitempty"` } - -func (m *GroupTransition) GetCurrentGroupPubKey() github_com_bandprotocol_chain_v3_pkg_tss.Point { - if m != nil { - return m.CurrentGroupPubKey - } - return nil -} - -func (m *GroupTransition) GetIncomingGroupID() github_com_bandprotocol_chain_v3_pkg_tss.GroupID { - if m != nil { - return m.IncomingGroupID - } - return 0 -} - -func (m *GroupTransition) GetIncomingGroupPubKey() github_com_bandprotocol_chain_v3_pkg_tss.Point { - if m != nil { - return m.IncomingGroupPubKey - } - return nil -} - -func (m *GroupTransition) GetStatus() TransitionStatus { - if m != nil { - return m.Status - } - return TRANSITION_STATUS_UNSPECIFIED -} - -func (m *GroupTransition) GetExecTime() time.Time { - if m != nil { - return m.ExecTime - } - return time.Time{} -} - -func (m *GroupTransition) GetIsForceTransition() bool { - if m != nil { - return m.IsForceTransition - } - return false -} - -// GroupTransitionSignatureOrder defines a general signature order for group transition. -type GroupTransitionSignatureOrder struct { - // pub_key is the public key of new group that the current group needs to be signed. - PubKey github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"pub_key,omitempty"` - // transition_time is the timestamp at which the transition is executed and the public key is active. - TransitionTime time.Time `protobuf:"bytes,2,opt,name=transition_time,json=transitionTime,proto3,stdtime" json:"transition_time"` -} - -func (m *GroupTransitionSignatureOrder) Reset() { *m = GroupTransitionSignatureOrder{} } -func (m *GroupTransitionSignatureOrder) String() string { return proto.CompactTextString(m) } -func (*GroupTransitionSignatureOrder) ProtoMessage() {} -func (*GroupTransitionSignatureOrder) Descriptor() ([]byte, []int) { - return fileDescriptor_2bc325518cc10c44, []int{4} -} -func (m *GroupTransitionSignatureOrder) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupTransitionSignatureOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupTransitionSignatureOrder.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GroupTransitionSignatureOrder) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupTransitionSignatureOrder.Merge(m, src) -} -func (m *GroupTransitionSignatureOrder) XXX_Size() int { - return m.Size() -} -func (m *GroupTransitionSignatureOrder) XXX_DiscardUnknown() { - xxx_messageInfo_GroupTransitionSignatureOrder.DiscardUnknown(m) -} - -var xxx_messageInfo_GroupTransitionSignatureOrder proto.InternalMessageInfo - -func (m *GroupTransitionSignatureOrder) GetPubKey() github_com_cometbft_cometbft_libs_bytes.HexBytes { - if m != nil { - return m.PubKey - } - return nil -} - -func (m *GroupTransitionSignatureOrder) GetTransitionTime() time.Time { - if m != nil { - return m.TransitionTime - } - return time.Time{} -} - -func init() { - proto.RegisterEnum("band.bandtss.v1beta1.TransitionStatus", TransitionStatus_name, TransitionStatus_value) - proto.RegisterType((*Member)(nil), "band.bandtss.v1beta1.Member") - proto.RegisterType((*CurrentGroup)(nil), "band.bandtss.v1beta1.CurrentGroup") - proto.RegisterType((*Signing)(nil), "band.bandtss.v1beta1.Signing") - proto.RegisterType((*GroupTransition)(nil), "band.bandtss.v1beta1.GroupTransition") - proto.RegisterType((*GroupTransitionSignatureOrder)(nil), "band.bandtss.v1beta1.GroupTransitionSignatureOrder") -} - -func init() { - proto.RegisterFile("band/bandtss/v1beta1/bandtss.proto", fileDescriptor_2bc325518cc10c44) -} - -var fileDescriptor_2bc325518cc10c44 = []byte{ - // 957 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4d, 0x6f, 0xdb, 0x46, - 0x13, 0xd6, 0xca, 0x1f, 0x92, 0xd6, 0x86, 0xac, 0xac, 0x63, 0x43, 0xf6, 0xfb, 0x86, 0x54, 0x95, - 0xa2, 0x15, 0x0a, 0x84, 0x4c, 0x94, 0x9e, 0x7c, 0x68, 0x21, 0xc9, 0xb2, 0x4a, 0x14, 0x96, 0x05, - 0x4a, 0x46, 0x8b, 0x5c, 0x08, 0x7e, 0xac, 0x98, 0x85, 0x2d, 0xae, 0xc2, 0x5d, 0x19, 0xf6, 0x3f, - 0x08, 0xd0, 0x4b, 0x7e, 0x42, 0x81, 0x5e, 0x8a, 0x1e, 0x0a, 0x14, 0xe8, 0x8f, 0x08, 0x72, 0xca, - 0xb1, 0x97, 0xd2, 0x05, 0x7d, 0xe9, 0x6f, 0xf0, 0xa9, 0xe0, 0x92, 0xfa, 0xb4, 0x8b, 0x3a, 0x46, - 0x2e, 0xd2, 0xce, 0xce, 0xcc, 0xce, 0x3c, 0xcf, 0x33, 0x5c, 0x12, 0x96, 0x2d, 0xd3, 0x73, 0xd4, - 0xe8, 0x87, 0x33, 0xa6, 0x9e, 0x3d, 0xb3, 0x30, 0x37, 0x9f, 0x8d, 0x6d, 0x65, 0xe8, 0x53, 0x4e, - 0xd1, 0xc3, 0xc8, 0x54, 0xc6, 0x7b, 0x49, 0xcc, 0xee, 0x43, 0x97, 0xba, 0x54, 0x04, 0xa8, 0xd1, - 0x2a, 0x8e, 0xdd, 0x95, 0x5d, 0x4a, 0xdd, 0x53, 0xac, 0x0a, 0xcb, 0x1a, 0xf5, 0x55, 0x4e, 0x06, - 0x98, 0x71, 0x73, 0x30, 0x4c, 0x02, 0x24, 0x9b, 0xb2, 0x01, 0x65, 0xaa, 0x65, 0x32, 0x3c, 0xa9, - 0x67, 0x53, 0xe2, 0x25, 0xfe, 0x9d, 0xd8, 0x6f, 0xc4, 0x27, 0xc7, 0x46, 0xec, 0x2a, 0xff, 0x09, - 0xe0, 0xea, 0x21, 0x1e, 0x58, 0xd8, 0x47, 0x45, 0x98, 0x31, 0x1d, 0xc7, 0xc7, 0x8c, 0x15, 0x41, - 0x09, 0x54, 0x72, 0xfa, 0xd8, 0x44, 0x2f, 0x60, 0xd6, 0xf5, 0xe9, 0x68, 0x68, 0x10, 0xa7, 0x98, - 0x2e, 0x81, 0xca, 0x72, 0xfd, 0xeb, 0x30, 0x90, 0x33, 0xad, 0x68, 0x4f, 0xdb, 0xbf, 0x0e, 0xe4, - 0xa7, 0x2e, 0xe1, 0x2f, 0x47, 0x96, 0x62, 0xd3, 0x81, 0xc0, 0x29, 0xce, 0xb6, 0xe9, 0xa9, 0x6a, - 0xbf, 0x34, 0x89, 0xa7, 0x9e, 0x3d, 0x57, 0x87, 0x27, 0xae, 0x1a, 0x21, 0x4d, 0x72, 0xf4, 0x8c, - 0x38, 0x50, 0x73, 0xd0, 0xff, 0x60, 0x8e, 0x30, 0xc3, 0xb4, 0x39, 0x39, 0xc3, 0xc5, 0xa5, 0x12, - 0xa8, 0x64, 0xf5, 0x2c, 0x61, 0x35, 0x61, 0xa3, 0x3d, 0xb8, 0xc2, 0x88, 0x67, 0xe3, 0xe2, 0x72, - 0x09, 0x54, 0xd6, 0xaa, 0xbb, 0x4a, 0xcc, 0x84, 0x32, 0x66, 0x42, 0xe9, 0x8d, 0x99, 0xa8, 0x67, - 0xdf, 0x06, 0x72, 0xea, 0xcd, 0xa5, 0x0c, 0xf4, 0x38, 0x65, 0x6f, 0xf9, 0xef, 0x1f, 0x65, 0x50, - 0xfe, 0x0d, 0xc0, 0xf5, 0xc6, 0xc8, 0xf7, 0xb1, 0xc7, 0x45, 0xe9, 0x39, 0x2c, 0xe0, 0x23, 0x63, - 0x69, 0xc2, 0xb5, 0x18, 0x88, 0x11, 0x29, 0x24, 0xa8, 0xba, 0x6b, 0xd3, 0x30, 0x4e, 0x8c, 0x5c, - 0xe5, 0x60, 0x09, 0x66, 0xba, 0xc4, 0xf5, 0x88, 0xe7, 0xa2, 0xc7, 0x30, 0x3d, 0x69, 0x74, 0x33, - 0x0c, 0xe4, 0xb4, 0xe8, 0x31, 0x97, 0xb8, 0xb5, 0x7d, 0x3d, 0x4d, 0x1c, 0xf4, 0x0a, 0xe6, 0xfb, - 0x18, 0x1b, 0x43, 0xec, 0x1b, 0x8c, 0xb8, 0x1e, 0xf6, 0x8b, 0xe9, 0xd2, 0x52, 0x65, 0xad, 0xba, - 0xa3, 0x24, 0x5a, 0x47, 0x83, 0x31, 0x1e, 0x32, 0xa5, 0x41, 0x89, 0x57, 0x7f, 0x1a, 0x55, 0xfe, - 0xe5, 0x52, 0xae, 0xcc, 0xa0, 0x4d, 0xa6, 0x28, 0xfe, 0x7b, 0xc2, 0x9c, 0x13, 0x95, 0x5f, 0x0c, - 0x31, 0x13, 0x09, 0x4c, 0x5f, 0xef, 0x63, 0xdc, 0xc1, 0x7e, 0x57, 0x14, 0x40, 0xff, 0x87, 0x39, - 0x1f, 0xbf, 0x1a, 0x61, 0xc6, 0xb1, 0x2f, 0x64, 0xcb, 0xe9, 0xd3, 0x0d, 0xf4, 0x1a, 0xc0, 0xa2, - 0x1d, 0xb3, 0x6e, 0xc4, 0x6c, 0xb3, 0xb8, 0xe1, 0x88, 0xf5, 0x65, 0x01, 0xe6, 0x28, 0x0c, 0xe4, - 0xad, 0x59, 0x65, 0x26, 0x90, 0xae, 0x03, 0xb9, 0x7a, 0x67, 0x0d, 0xa6, 0x44, 0x6c, 0xd9, 0xb7, - 0x1c, 0xe6, 0xa0, 0x1f, 0x00, 0xdc, 0x21, 0x9e, 0x4d, 0x07, 0x51, 0xf5, 0x1b, 0xbd, 0xac, 0x88, - 0x5e, 0x3a, 0x61, 0x20, 0x6f, 0x6b, 0x49, 0xd0, 0x47, 0x69, 0x66, 0x9b, 0xdc, 0x76, 0x9a, 0x93, - 0x0c, 0xe5, 0xe5, 0x0a, 0xdc, 0x10, 0x8e, 0x9e, 0x6f, 0x7a, 0x8c, 0x70, 0x42, 0x3d, 0x64, 0x41, - 0x38, 0xd3, 0x57, 0x2c, 0x78, 0x23, 0x9c, 0x95, 0xfa, 0x9e, 0xad, 0xe4, 0xd8, 0x84, 0x8b, 0x21, - 0x2c, 0xcc, 0xab, 0x32, 0x79, 0x9e, 0x0f, 0xc2, 0x40, 0xce, 0xcf, 0xaa, 0x71, 0xcf, 0x47, 0x21, - 0x3f, 0x2b, 0x82, 0xe6, 0x20, 0x0c, 0xb7, 0xe6, 0x2b, 0x0e, 0x47, 0x96, 0x71, 0x82, 0x2f, 0xc4, - 0xc8, 0xac, 0xd7, 0xab, 0xd7, 0x81, 0xac, 0xdc, 0xb9, 0x48, 0x87, 0x12, 0x8f, 0xeb, 0x68, 0xb6, - 0x44, 0x67, 0x64, 0x7d, 0x8b, 0x2f, 0x10, 0x83, 0x0f, 0x16, 0x34, 0x9e, 0xcc, 0x59, 0x2b, 0x0c, - 0xe4, 0x8d, 0x39, 0x6d, 0xef, 0x09, 0x6d, 0x63, 0x4e, 0x52, 0xcd, 0x41, 0x2e, 0xdc, 0x5e, 0x28, - 0x3a, 0x06, 0xb7, 0x72, 0x6f, 0x70, 0x9b, 0x73, 0x45, 0x12, 0x74, 0x5f, 0xc1, 0x55, 0xc6, 0x4d, - 0x3e, 0x62, 0xc5, 0xd5, 0x12, 0xa8, 0xe4, 0xab, 0x9f, 0x29, 0xb7, 0xbd, 0x3c, 0x94, 0xe9, 0x30, - 0x75, 0x45, 0xb4, 0x9e, 0x64, 0xa1, 0x1a, 0xcc, 0xe1, 0x73, 0x6c, 0xc7, 0x97, 0x52, 0xe6, 0x03, - 0x2e, 0xa5, 0x6c, 0x94, 0x16, 0x39, 0x90, 0x02, 0x37, 0x09, 0x33, 0xfa, 0xd4, 0xb7, 0xb1, 0xc1, - 0x27, 0x75, 0x8a, 0x59, 0x71, 0x5f, 0x3f, 0x20, 0xec, 0x20, 0xf2, 0x4c, 0x1b, 0x28, 0xbf, 0x03, - 0xf0, 0xd1, 0xc2, 0x84, 0x47, 0x13, 0x69, 0xf2, 0x91, 0x8f, 0x8f, 0x7c, 0x07, 0xfb, 0xe8, 0x10, - 0x66, 0xc6, 0x74, 0x01, 0x41, 0xd7, 0x97, 0x0b, 0xaa, 0xd8, 0x74, 0x80, 0xb9, 0xd5, 0xe7, 0xd3, - 0xc5, 0x29, 0xb1, 0x98, 0x6a, 0x5d, 0x70, 0xcc, 0x94, 0x6f, 0xf0, 0x79, 0x3d, 0x5a, 0xe8, 0xab, - 0xc3, 0x98, 0xa3, 0x43, 0xb8, 0x31, 0xed, 0xeb, 0xc3, 0xaf, 0xdf, 0xfc, 0x34, 0x39, 0x72, 0xef, - 0xad, 0xbd, 0xfb, 0xfd, 0x49, 0xa6, 0x41, 0x3d, 0x8e, 0x3d, 0xfe, 0xc5, 0xaf, 0x00, 0x16, 0x16, - 0xc9, 0x45, 0x9f, 0xc0, 0x47, 0x3d, 0xbd, 0xd6, 0xee, 0x6a, 0x3d, 0xed, 0xa8, 0x6d, 0x74, 0x7b, - 0xb5, 0xde, 0x71, 0xd7, 0x38, 0x6e, 0x77, 0x3b, 0xcd, 0x86, 0x76, 0xa0, 0x35, 0xf7, 0x0b, 0x29, - 0xf4, 0x29, 0x2c, 0xdd, 0x0c, 0x69, 0xe8, 0xcd, 0x5a, 0x4f, 0x6b, 0xb7, 0x8c, 0x96, 0x7e, 0x74, - 0xdc, 0x29, 0x00, 0x54, 0x86, 0xd2, 0xcd, 0xa8, 0xef, 0x6a, 0x9a, 0x08, 0xea, 0x6a, 0xad, 0x76, - 0x21, 0x8d, 0x3e, 0x87, 0x8f, 0xff, 0x3d, 0xa6, 0xf9, 0x7d, 0xb3, 0x71, 0x1c, 0x39, 0x0a, 0x4b, - 0xbb, 0xcb, 0xaf, 0x7f, 0x92, 0x52, 0xf5, 0xf6, 0xcf, 0xa1, 0x04, 0xde, 0x86, 0x12, 0x78, 0x1f, - 0x4a, 0xe0, 0xaf, 0x50, 0x02, 0x6f, 0xae, 0xa4, 0xd4, 0xfb, 0x2b, 0x29, 0xf5, 0xc7, 0x95, 0x94, - 0x7a, 0xf1, 0xdf, 0xa3, 0x7f, 0x3e, 0xf9, 0x78, 0x11, 0x2f, 0x00, 0x6b, 0x55, 0x84, 0x3c, 0xff, - 0x27, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x1b, 0x02, 0x05, 0xd9, 0x08, 0x00, 0x00, -} - -func (this *Member) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Member) - if !ok { - that2, ok := that.(Member) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Address != that1.Address { - return false - } - if this.GroupID != that1.GroupID { - return false - } - if this.IsActive != that1.IsActive { - return false - } - if !this.Since.Equal(that1.Since) { - return false - } - return true -} -func (this *CurrentGroup) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*CurrentGroup) - if !ok { - that2, ok := that.(CurrentGroup) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.GroupID != that1.GroupID { - return false - } - if !this.ActiveTime.Equal(that1.ActiveTime) { - return false - } - return true -} -func (this *Signing) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Signing) - if !ok { - that2, ok := that.(Signing) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ID != that1.ID { - return false - } - if len(this.FeePerSigner) != len(that1.FeePerSigner) { - return false - } - for i := range this.FeePerSigner { - if !this.FeePerSigner[i].Equal(&that1.FeePerSigner[i]) { - return false - } - } - if this.Requester != that1.Requester { - return false - } - if this.CurrentGroupSigningID != that1.CurrentGroupSigningID { - return false - } - if this.IncomingGroupSigningID != that1.IncomingGroupSigningID { - return false - } - return true -} -func (this *GroupTransition) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GroupTransition) - if !ok { - that2, ok := that.(GroupTransition) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.SigningID != that1.SigningID { - return false - } - if this.CurrentGroupID != that1.CurrentGroupID { - return false - } - if !bytes.Equal(this.CurrentGroupPubKey, that1.CurrentGroupPubKey) { - return false - } - if this.IncomingGroupID != that1.IncomingGroupID { - return false - } - if !bytes.Equal(this.IncomingGroupPubKey, that1.IncomingGroupPubKey) { - return false - } - if this.Status != that1.Status { - return false - } - if !this.ExecTime.Equal(that1.ExecTime) { - return false - } - if this.IsForceTransition != that1.IsForceTransition { - return false - } - return true -} -func (this *GroupTransitionSignatureOrder) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GroupTransitionSignatureOrder) - if !ok { - that2, ok := that.(GroupTransitionSignatureOrder) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.PubKey, that1.PubKey) { - return false - } - if !this.TransitionTime.Equal(that1.TransitionTime) { - return false - } - return true -} -func (m *Member) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Member) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo( - m.Since, - dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Since):], - ) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintBandtss(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x22 - if m.IsActive { - i-- - if m.IsActive { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.GroupID != 0 { - i = encodeVarintBandtss(dAtA, i, uint64(m.GroupID)) - i-- - dAtA[i] = 0x10 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintBandtss(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CurrentGroup) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CurrentGroup) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CurrentGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo( - m.ActiveTime, - dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ActiveTime):], - ) - if err2 != nil { - return 0, err2 - } - i -= n2 - i = encodeVarintBandtss(dAtA, i, uint64(n2)) - i-- - dAtA[i] = 0x12 - if m.GroupID != 0 { - i = encodeVarintBandtss(dAtA, i, uint64(m.GroupID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Signing) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Signing) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Signing) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IncomingGroupSigningID != 0 { - i = encodeVarintBandtss(dAtA, i, uint64(m.IncomingGroupSigningID)) - i-- - dAtA[i] = 0x28 - } - if m.CurrentGroupSigningID != 0 { - i = encodeVarintBandtss(dAtA, i, uint64(m.CurrentGroupSigningID)) - i-- - dAtA[i] = 0x20 - } - if len(m.Requester) > 0 { - i -= len(m.Requester) - copy(dAtA[i:], m.Requester) - i = encodeVarintBandtss(dAtA, i, uint64(len(m.Requester))) - i-- - dAtA[i] = 0x1a - } - if len(m.FeePerSigner) > 0 { - for iNdEx := len(m.FeePerSigner) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.FeePerSigner[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBandtss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.ID != 0 { - i = encodeVarintBandtss(dAtA, i, uint64(m.ID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GroupTransition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupTransition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupTransition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsForceTransition { - i-- - if m.IsForceTransition { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo( - m.ExecTime, - dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExecTime):], - ) - if err3 != nil { - return 0, err3 - } - i -= n3 - i = encodeVarintBandtss(dAtA, i, uint64(n3)) - i-- - dAtA[i] = 0x3a - if m.Status != 0 { - i = encodeVarintBandtss(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x30 - } - if len(m.IncomingGroupPubKey) > 0 { - i -= len(m.IncomingGroupPubKey) - copy(dAtA[i:], m.IncomingGroupPubKey) - i = encodeVarintBandtss(dAtA, i, uint64(len(m.IncomingGroupPubKey))) - i-- - dAtA[i] = 0x2a - } - if m.IncomingGroupID != 0 { - i = encodeVarintBandtss(dAtA, i, uint64(m.IncomingGroupID)) - i-- - dAtA[i] = 0x20 - } - if len(m.CurrentGroupPubKey) > 0 { - i -= len(m.CurrentGroupPubKey) - copy(dAtA[i:], m.CurrentGroupPubKey) - i = encodeVarintBandtss(dAtA, i, uint64(len(m.CurrentGroupPubKey))) - i-- - dAtA[i] = 0x1a - } - if m.CurrentGroupID != 0 { - i = encodeVarintBandtss(dAtA, i, uint64(m.CurrentGroupID)) - i-- - dAtA[i] = 0x10 - } - if m.SigningID != 0 { - i = encodeVarintBandtss(dAtA, i, uint64(m.SigningID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GroupTransitionSignatureOrder) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupTransitionSignatureOrder) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupTransitionSignatureOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo( - m.TransitionTime, - dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.TransitionTime):], - ) - if err4 != nil { - return 0, err4 - } - i -= n4 - i = encodeVarintBandtss(dAtA, i, uint64(n4)) - i-- - dAtA[i] = 0x12 - if len(m.PubKey) > 0 { - i -= len(m.PubKey) - copy(dAtA[i:], m.PubKey) - i = encodeVarintBandtss(dAtA, i, uint64(len(m.PubKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintBandtss(dAtA []byte, offset int, v uint64) int { - offset -= sovBandtss(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Member) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovBandtss(uint64(l)) - } - if m.GroupID != 0 { - n += 1 + sovBandtss(uint64(m.GroupID)) - } - if m.IsActive { - n += 2 - } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Since) - n += 1 + l + sovBandtss(uint64(l)) - return n -} - -func (m *CurrentGroup) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GroupID != 0 { - n += 1 + sovBandtss(uint64(m.GroupID)) - } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ActiveTime) - n += 1 + l + sovBandtss(uint64(l)) - return n -} - -func (m *Signing) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ID != 0 { - n += 1 + sovBandtss(uint64(m.ID)) - } - if len(m.FeePerSigner) > 0 { - for _, e := range m.FeePerSigner { - l = e.Size() - n += 1 + l + sovBandtss(uint64(l)) - } - } - l = len(m.Requester) - if l > 0 { - n += 1 + l + sovBandtss(uint64(l)) - } - if m.CurrentGroupSigningID != 0 { - n += 1 + sovBandtss(uint64(m.CurrentGroupSigningID)) - } - if m.IncomingGroupSigningID != 0 { - n += 1 + sovBandtss(uint64(m.IncomingGroupSigningID)) - } - return n -} - -func (m *GroupTransition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SigningID != 0 { - n += 1 + sovBandtss(uint64(m.SigningID)) - } - if m.CurrentGroupID != 0 { - n += 1 + sovBandtss(uint64(m.CurrentGroupID)) - } - l = len(m.CurrentGroupPubKey) - if l > 0 { - n += 1 + l + sovBandtss(uint64(l)) - } - if m.IncomingGroupID != 0 { - n += 1 + sovBandtss(uint64(m.IncomingGroupID)) - } - l = len(m.IncomingGroupPubKey) - if l > 0 { - n += 1 + l + sovBandtss(uint64(l)) - } - if m.Status != 0 { - n += 1 + sovBandtss(uint64(m.Status)) - } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExecTime) - n += 1 + l + sovBandtss(uint64(l)) - if m.IsForceTransition { - n += 2 - } - return n -} - -func (m *GroupTransitionSignatureOrder) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PubKey) - if l > 0 { - n += 1 + l + sovBandtss(uint64(l)) - } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.TransitionTime) - n += 1 + l + sovBandtss(uint64(l)) - return n -} - -func sovBandtss(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozBandtss(x uint64) (n int) { - return sovBandtss(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Member) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Member: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBandtss - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBandtss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType) - } - m.GroupID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupID |= github_com_bandprotocol_chain_v3_pkg_tss.GroupID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsActive = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Since", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBandtss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBandtss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Since, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBandtss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBandtss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CurrentGroup) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CurrentGroup: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CurrentGroup: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType) - } - m.GroupID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupID |= github_com_bandprotocol_chain_v3_pkg_tss.GroupID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBandtss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBandtss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ActiveTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBandtss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBandtss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Signing) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Signing: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Signing: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - m.ID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ID |= SigningID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FeePerSigner", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBandtss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBandtss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FeePerSigner = append(m.FeePerSigner, types.Coin{}) - if err := m.FeePerSigner[len(m.FeePerSigner)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requester", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBandtss - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBandtss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Requester = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentGroupSigningID", wireType) - } - m.CurrentGroupSigningID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentGroupSigningID |= github_com_bandprotocol_chain_v3_pkg_tss.SigningID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncomingGroupSigningID", wireType) - } - m.IncomingGroupSigningID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.IncomingGroupSigningID |= github_com_bandprotocol_chain_v3_pkg_tss.SigningID(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipBandtss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBandtss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupTransition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupTransition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupTransition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SigningID", wireType) - } - m.SigningID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SigningID |= github_com_bandprotocol_chain_v3_pkg_tss.SigningID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentGroupID", wireType) - } - m.CurrentGroupID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentGroupID |= github_com_bandprotocol_chain_v3_pkg_tss.GroupID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentGroupPubKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthBandtss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBandtss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentGroupPubKey = append(m.CurrentGroupPubKey[:0], dAtA[iNdEx:postIndex]...) - if m.CurrentGroupPubKey == nil { - m.CurrentGroupPubKey = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncomingGroupID", wireType) - } - m.IncomingGroupID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.IncomingGroupID |= github_com_bandprotocol_chain_v3_pkg_tss.GroupID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IncomingGroupPubKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthBandtss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBandtss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IncomingGroupPubKey = append(m.IncomingGroupPubKey[:0], dAtA[iNdEx:postIndex]...) - if m.IncomingGroupPubKey == nil { - m.IncomingGroupPubKey = []byte{} - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= TransitionStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBandtss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBandtss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExecTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsForceTransition", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsForceTransition = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipBandtss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBandtss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupTransitionSignatureOrder) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupTransitionSignatureOrder: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupTransitionSignatureOrder: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthBandtss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBandtss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...) - if m.PubKey == nil { - m.PubKey = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBandtss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBandtss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBandtss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.TransitionTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBandtss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBandtss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipBandtss(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBandtss - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBandtss - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBandtss - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthBandtss - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupBandtss - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthBandtss - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthBandtss = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBandtss = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupBandtss = fmt.Errorf("proto: unexpected end of group") -) diff --git a/internal/bandchain/bandtss/params.pb.go b/internal/bandchain/bandtss/params.pb.go deleted file mode 100644 index 9e77dc5..0000000 --- a/internal/bandchain/bandtss/params.pb.go +++ /dev/null @@ -1,888 +0,0 @@ -package types - -import ( - "fmt" - "io" - "math" - math_bits "math/bits" - "time" - - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/gogoproto/proto" - github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// GenesisState defines the bandtss module's genesis state. -type GenesisState struct { - // params defines all the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - // members is an array containing members information. - Members []Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members"` - // current_group is the current group information. - CurrentGroup CurrentGroup `protobuf:"bytes,3,opt,name=current_group,json=currentGroup,proto3" json:"current_group"` -} - -func (m *GenesisState) Reset() { *m = GenesisState{} } -func (m *GenesisState) String() string { return proto.CompactTextString(m) } -func (*GenesisState) ProtoMessage() {} -func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_3fe6a4345855d3c9, []int{0} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func (m *GenesisState) GetMembers() []Member { - if m != nil { - return m.Members - } - return nil -} - -func (m *GenesisState) GetCurrentGroup() CurrentGroup { - if m != nil { - return m.CurrentGroup - } - return CurrentGroup{} -} - -// Params defines the set of module parameters. -type Params struct { - // reward_percentage is the percentage of block rewards allocated to active TSS members. - // The reward proportion is calculated after being allocated to oracle rewards. - RewardPercentage uint64 `protobuf:"varint,1,opt,name=reward_percentage,json=rewardPercentage,proto3" json:"reward_percentage,omitempty"` - // inactive_penalty_duration is the duration where a member cannot activate back after being set to inactive. - InactivePenaltyDuration time.Duration `protobuf:"bytes,2,opt,name=inactive_penalty_duration,json=inactivePenaltyDuration,proto3,stdduration" json:"inactive_penalty_duration"` - // min_transition_duration is the minimum duration that the transition process waits before execution. - MinTransitionDuration time.Duration `protobuf:"bytes,3,opt,name=min_transition_duration,json=minTransitionDuration,proto3,stdduration" json:"min_transition_duration"` - // max_transition_duration is the maximum duration that the transition process waits before execution. - MaxTransitionDuration time.Duration `protobuf:"bytes,4,opt,name=max_transition_duration,json=maxTransitionDuration,proto3,stdduration" json:"max_transition_duration"` - // fee_per_signer is the tokens that will be paid per signer. - FeePerSigner github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=fee_per_signer,json=feePerSigner,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fee_per_signer"` -} - -func (m *Params) Reset() { *m = Params{} } -func (m *Params) String() string { return proto.CompactTextString(m) } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_3fe6a4345855d3c9, []int{1} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func (m *Params) GetRewardPercentage() uint64 { - if m != nil { - return m.RewardPercentage - } - return 0 -} - -func (m *Params) GetInactivePenaltyDuration() time.Duration { - if m != nil { - return m.InactivePenaltyDuration - } - return 0 -} - -func (m *Params) GetMinTransitionDuration() time.Duration { - if m != nil { - return m.MinTransitionDuration - } - return 0 -} - -func (m *Params) GetMaxTransitionDuration() time.Duration { - if m != nil { - return m.MaxTransitionDuration - } - return 0 -} - -func (m *Params) GetFeePerSigner() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.FeePerSigner - } - return nil -} - -func init() { - proto.RegisterType((*GenesisState)(nil), "band.bandtss.v1beta1.GenesisState") - proto.RegisterType((*Params)(nil), "band.bandtss.v1beta1.Params") -} - -func init() { - proto.RegisterFile("band/bandtss/v1beta1/genesis.proto", fileDescriptor_3fe6a4345855d3c9) -} - -var fileDescriptor_3fe6a4345855d3c9 = []byte{ - // 505 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xcf, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0xe3, 0x26, 0x04, 0xb4, 0x04, 0x54, 0xac, 0xa0, 0x26, 0x15, 0xb2, 0xab, 0x9c, 0x7a, - 0x61, 0xb7, 0xa5, 0xb7, 0x8a, 0x0b, 0x06, 0xa9, 0x12, 0x52, 0xa5, 0xc8, 0xe5, 0x04, 0x07, 0x6b, - 0xed, 0x4c, 0xdc, 0x15, 0xf1, 0xae, 0xd9, 0x5d, 0x87, 0xf4, 0x2d, 0x38, 0x72, 0xe4, 0xcc, 0x93, - 0xf4, 0xd8, 0x1b, 0x9c, 0x1a, 0x94, 0x5c, 0x78, 0x0c, 0xb4, 0x6b, 0x3b, 0x2d, 0xc8, 0x48, 0x70, - 0xf1, 0x9f, 0x99, 0x6f, 0x7e, 0xf3, 0xad, 0x67, 0x8c, 0x46, 0x31, 0xe5, 0x13, 0x62, 0x2e, 0x5a, - 0x29, 0x32, 0x3f, 0x8c, 0x41, 0xd3, 0x43, 0x92, 0x02, 0x07, 0xc5, 0x14, 0xce, 0xa5, 0xd0, 0xc2, - 0xed, 0x9b, 0x34, 0xae, 0x34, 0xb8, 0xd2, 0xec, 0xf6, 0x53, 0x91, 0x0a, 0x2b, 0x20, 0xe6, 0xa9, - 0xd4, 0xee, 0x7a, 0xa9, 0x10, 0xe9, 0x0c, 0x88, 0x7d, 0x8b, 0x8b, 0x29, 0x99, 0x14, 0x92, 0x6a, - 0x26, 0x78, 0x9d, 0x4f, 0x84, 0xca, 0x84, 0x22, 0x31, 0x55, 0xb0, 0x69, 0x97, 0x08, 0x56, 0xe7, - 0x9b, 0xfd, 0xd4, 0xbd, 0xad, 0x66, 0xf4, 0xcd, 0x41, 0xbd, 0x93, 0xd2, 0xe1, 0x99, 0xa6, 0x1a, - 0xdc, 0x63, 0xd4, 0xcd, 0xa9, 0xa4, 0x99, 0x1a, 0x38, 0x7b, 0xce, 0xfe, 0xfd, 0x67, 0x4f, 0x70, - 0x93, 0x63, 0x3c, 0xb6, 0x9a, 0xa0, 0x73, 0x79, 0xed, 0xb7, 0xc2, 0xaa, 0xc2, 0x7d, 0x8e, 0xee, - 0x66, 0x90, 0xc5, 0x20, 0xd5, 0x60, 0x6b, 0xaf, 0xfd, 0xf7, 0xe2, 0x53, 0x2b, 0xaa, 0x8a, 0xeb, - 0x12, 0xf7, 0x14, 0x3d, 0x48, 0x0a, 0x29, 0x81, 0xeb, 0x28, 0x95, 0xa2, 0xc8, 0x07, 0x6d, 0x6b, - 0x60, 0xd4, 0xcc, 0x78, 0x59, 0x4a, 0x4f, 0x8c, 0xb2, 0x22, 0xf5, 0x92, 0x5b, 0xb1, 0xd1, 0xb2, - 0x8d, 0xba, 0xa5, 0x4b, 0xf7, 0x05, 0x7a, 0x24, 0xe1, 0x23, 0x95, 0x93, 0x28, 0x07, 0x99, 0x00, - 0xd7, 0x34, 0x05, 0x7b, 0xbc, 0x4e, 0xd0, 0x5f, 0x5d, 0xfb, 0xdb, 0xa1, 0x4d, 0x8e, 0x37, 0xb9, - 0x70, 0x5b, 0xfe, 0x11, 0x71, 0x23, 0x34, 0x64, 0x9c, 0x26, 0x9a, 0xcd, 0x21, 0xca, 0x81, 0xd3, - 0x99, 0xbe, 0x88, 0xea, 0x71, 0x0c, 0xb6, 0xac, 0xd1, 0x21, 0x2e, 0xe7, 0x85, 0xeb, 0x79, 0xe1, - 0x57, 0x95, 0x20, 0xb8, 0x67, 0xfc, 0x7d, 0x5e, 0xfa, 0x4e, 0xb8, 0x53, 0x53, 0xc6, 0x25, 0xa4, - 0x96, 0xb8, 0xef, 0xd0, 0x4e, 0xc6, 0x78, 0xa4, 0x25, 0xe5, 0x8a, 0x99, 0xc8, 0x0d, 0xbe, 0xfd, - 0xef, 0xf8, 0xc7, 0x19, 0xe3, 0x6f, 0x36, 0x88, 0xdf, 0xe0, 0x74, 0xd1, 0x08, 0xef, 0xfc, 0x0f, - 0x9c, 0x2e, 0x1a, 0xe0, 0x1f, 0xd0, 0xc3, 0x29, 0x98, 0xaf, 0x22, 0x23, 0xc5, 0x52, 0x0e, 0x72, - 0x70, 0xc7, 0x0e, 0x7f, 0x88, 0xcb, 0xfd, 0xc4, 0x66, 0x3f, 0x6f, 0xe6, 0x26, 0x18, 0x0f, 0x0e, - 0x0c, 0xf3, 0xeb, 0xd2, 0xdf, 0x4f, 0x99, 0x3e, 0x2f, 0x62, 0x9c, 0x88, 0x8c, 0x54, 0xcb, 0x5c, - 0xde, 0x9e, 0xaa, 0xc9, 0x7b, 0xa2, 0x2f, 0x72, 0x50, 0xb6, 0x40, 0x85, 0xbd, 0x29, 0xc0, 0x18, - 0xe4, 0x99, 0x6d, 0x70, 0xdc, 0xf9, 0xf9, 0xc5, 0x77, 0x82, 0xd7, 0x97, 0x2b, 0xcf, 0xb9, 0x5a, - 0x79, 0xce, 0x8f, 0x95, 0xe7, 0x7c, 0x5a, 0x7b, 0xad, 0xab, 0xb5, 0xd7, 0xfa, 0xbe, 0xf6, 0x5a, - 0x6f, 0x0f, 0x6e, 0x71, 0xcd, 0xe2, 0xd8, 0x53, 0x25, 0x62, 0x46, 0x92, 0x73, 0xca, 0x38, 0x99, - 0x1f, 0x91, 0xc5, 0xe6, 0xbf, 0xb0, 0x5d, 0xe2, 0xae, 0x95, 0x1c, 0xfd, 0x0a, 0x00, 0x00, 0xff, - 0xff, 0xe9, 0x4e, 0xb2, 0x50, 0xc4, 0x03, 0x00, 0x00, -} - -func (this *Params) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Params) - if !ok { - that2, ok := that.(Params) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.RewardPercentage != that1.RewardPercentage { - return false - } - if this.InactivePenaltyDuration != that1.InactivePenaltyDuration { - return false - } - if this.MinTransitionDuration != that1.MinTransitionDuration { - return false - } - if this.MaxTransitionDuration != that1.MaxTransitionDuration { - return false - } - if len(this.FeePerSigner) != len(that1.FeePerSigner) { - return false - } - for i := range this.FeePerSigner { - if !this.FeePerSigner[i].Equal(&that1.FeePerSigner[i]) { - return false - } - } - return true -} -func (m *GenesisState) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.CurrentGroup.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Members) > 0 { - for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Params) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.FeePerSigner) > 0 { - for iNdEx := len(m.FeePerSigner) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.FeePerSigner[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - n3, err3 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo( - m.MaxTransitionDuration, - dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.MaxTransitionDuration):], - ) - if err3 != nil { - return 0, err3 - } - i -= n3 - i = encodeVarintGenesis(dAtA, i, uint64(n3)) - i-- - dAtA[i] = 0x22 - n4, err4 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo( - m.MinTransitionDuration, - dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.MinTransitionDuration):], - ) - if err4 != nil { - return 0, err4 - } - i -= n4 - i = encodeVarintGenesis(dAtA, i, uint64(n4)) - i-- - dAtA[i] = 0x1a - n5, err5 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo( - m.InactivePenaltyDuration, - dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.InactivePenaltyDuration):], - ) - if err5 != nil { - return 0, err5 - } - i -= n5 - i = encodeVarintGenesis(dAtA, i, uint64(n5)) - i-- - dAtA[i] = 0x12 - if m.RewardPercentage != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.RewardPercentage)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - if len(m.Members) > 0 { - for _, e := range m.Members { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - l = m.CurrentGroup.Size() - n += 1 + l + sovGenesis(uint64(l)) - return n -} - -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RewardPercentage != 0 { - n += 1 + sovGenesis(uint64(m.RewardPercentage)) - } - l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.InactivePenaltyDuration) - n += 1 + l + sovGenesis(uint64(l)) - l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.MinTransitionDuration) - n += 1 + l + sovGenesis(uint64(l)) - l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.MaxTransitionDuration) - n += 1 + l + sovGenesis(uint64(l)) - if len(m.FeePerSigner) > 0 { - for _, e := range m.FeePerSigner { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GenesisState) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Members = append(m.Members, Member{}) - if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentGroup", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CurrentGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Params) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RewardPercentage", wireType) - } - m.RewardPercentage = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RewardPercentage |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InactivePenaltyDuration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.InactivePenaltyDuration, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MinTransitionDuration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.MinTransitionDuration, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxTransitionDuration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.MaxTransitionDuration, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FeePerSigner", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FeePerSigner = append(m.FeePerSigner, types.Coin{}) - if err := m.FeePerSigner[len(m.FeePerSigner)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/internal/bandchain/bandtss/query.pb.go b/internal/bandchain/bandtss/query.pb.go index 4ad6966..1941126 100644 --- a/internal/bandchain/bandtss/query.pb.go +++ b/internal/bandchain/bandtss/query.pb.go @@ -1,622 +1,12 @@ -package types +package bandtss import ( - "context" - "fmt" - "io" - "math" - math_bits "math/bits" - "time" - - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types1 "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - grpc1 "github.com/cosmos/gogoproto/grpc" + "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/gogoproto/proto" - github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - github_com_bandprotocol_chain_v3_pkg_tss "github.com/bandprotocol/falcon/internal/bandchain/tss" - types "github.com/bandprotocol/falcon/internal/bandchain/tss" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// MemberStatusFilter defines the query options for filtering members by their active status. -type MemberStatusFilter int32 - -const ( - // MEMBER_STATUS_FILTER_UNSPECIFIED defines a filter for unspecified active status. - MEMBER_STATUS_FILTER_UNSPECIFIED MemberStatusFilter = 0 - // MEMBER_STATUS_FILTER_ACTIVE defines a filter for active status. - MEMBER_STATUS_FILTER_ACTIVE MemberStatusFilter = 1 - // MEMBER_STATUS_FILTER_INACTIVE defines a filter for inactive status. - MEMBER_STATUS_FILTER_INACTIVE MemberStatusFilter = 2 + tsstypes "github.com/bandprotocol/falcon/internal/bandchain/tss" ) -var MemberStatusFilter_name = map[int32]string{ - 0: "MEMBER_STATUS_FILTER_UNSPECIFIED", - 1: "MEMBER_STATUS_FILTER_ACTIVE", - 2: "MEMBER_STATUS_FILTER_INACTIVE", -} - -var MemberStatusFilter_value = map[string]int32{ - "MEMBER_STATUS_FILTER_UNSPECIFIED": 0, - "MEMBER_STATUS_FILTER_ACTIVE": 1, - "MEMBER_STATUS_FILTER_INACTIVE": 2, -} - -func (x MemberStatusFilter) String() string { - return proto.EnumName(MemberStatusFilter_name, int32(x)) -} - -func (MemberStatusFilter) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{0} -} - -// QueryCountsRequest is request type for the Query/Count RPC method. -type QueryCountsRequest struct { -} - -func (m *QueryCountsRequest) Reset() { *m = QueryCountsRequest{} } -func (m *QueryCountsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryCountsRequest) ProtoMessage() {} -func (*QueryCountsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{0} -} -func (m *QueryCountsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryCountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryCountsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryCountsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCountsRequest.Merge(m, src) -} -func (m *QueryCountsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryCountsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCountsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryCountsRequest proto.InternalMessageInfo - -// QueryCountsResponse is response type for the Query/Count RPC method. -type QueryCountsResponse struct { - // signing_count is total number of signing request submitted to bandtss module - SigningCount uint64 `protobuf:"varint,1,opt,name=signing_count,json=signingCount,proto3" json:"signing_count,omitempty"` -} - -func (m *QueryCountsResponse) Reset() { *m = QueryCountsResponse{} } -func (m *QueryCountsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryCountsResponse) ProtoMessage() {} -func (*QueryCountsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{1} -} -func (m *QueryCountsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryCountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryCountsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryCountsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCountsResponse.Merge(m, src) -} -func (m *QueryCountsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryCountsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCountsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryCountsResponse proto.InternalMessageInfo - -func (m *QueryCountsResponse) GetSigningCount() uint64 { - if m != nil { - return m.SigningCount - } - return 0 -} - -// QueryMembersRequest is the request type for the Query/Members RPC method. -type QueryMembersRequest struct { - // status define type of filter on member's status. - Status MemberStatusFilter `protobuf:"varint,1,opt,name=status,proto3,enum=band.bandtss.v1beta1.MemberStatusFilter" json:"status,omitempty"` - // is_incoming_group is a flag to indicate whether user query members in the incoming group - // or the current group. - IsIncomingGroup bool `protobuf:"varint,2,opt,name=is_incoming_group,json=isIncomingGroup,proto3" json:"is_incoming_group,omitempty"` - // pagination defines pagination settings for the request. - Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryMembersRequest) Reset() { *m = QueryMembersRequest{} } -func (m *QueryMembersRequest) String() string { return proto.CompactTextString(m) } -func (*QueryMembersRequest) ProtoMessage() {} -func (*QueryMembersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{2} -} -func (m *QueryMembersRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryMembersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryMembersRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryMembersRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryMembersRequest.Merge(m, src) -} -func (m *QueryMembersRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryMembersRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryMembersRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryMembersRequest proto.InternalMessageInfo - -func (m *QueryMembersRequest) GetStatus() MemberStatusFilter { - if m != nil { - return m.Status - } - return MEMBER_STATUS_FILTER_UNSPECIFIED -} - -func (m *QueryMembersRequest) GetIsIncomingGroup() bool { - if m != nil { - return m.IsIncomingGroup - } - return false -} - -func (m *QueryMembersRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - -// QueryMembersResponse is the response type for the Query/Members RPC method. -type QueryMembersResponse struct { - // members are those individuals who correspond to the provided is_active status. - Members []*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` - // pagination defines the pagination in the response. - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryMembersResponse) Reset() { *m = QueryMembersResponse{} } -func (m *QueryMembersResponse) String() string { return proto.CompactTextString(m) } -func (*QueryMembersResponse) ProtoMessage() {} -func (*QueryMembersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{3} -} -func (m *QueryMembersResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryMembersResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryMembersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryMembersResponse.Merge(m, src) -} -func (m *QueryMembersResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryMembersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryMembersResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryMembersResponse proto.InternalMessageInfo - -func (m *QueryMembersResponse) GetMembers() []*Member { - if m != nil { - return m.Members - } - return nil -} - -func (m *QueryMembersResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - -// QueryMemberRequest is the request type for the Query/Member RPC method. -type QueryMemberRequest struct { - // address is the member address. - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *QueryMemberRequest) Reset() { *m = QueryMemberRequest{} } -func (m *QueryMemberRequest) String() string { return proto.CompactTextString(m) } -func (*QueryMemberRequest) ProtoMessage() {} -func (*QueryMemberRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{4} -} -func (m *QueryMemberRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryMemberRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryMemberRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryMemberRequest.Merge(m, src) -} -func (m *QueryMemberRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryMemberRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryMemberRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryMemberRequest proto.InternalMessageInfo - -func (m *QueryMemberRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -// QueryMemberResponse is the response type for the Query/Member RPC method. -type QueryMemberResponse struct { - // current_group_member is the member detail. - CurrentGroupMember Member `protobuf:"bytes,1,opt,name=current_group_member,json=currentGroupMember,proto3" json:"current_group_member"` - // incoming_group_member is the member detail. - IncomingGroupMember Member `protobuf:"bytes,2,opt,name=incoming_group_member,json=incomingGroupMember,proto3" json:"incoming_group_member"` -} - -func (m *QueryMemberResponse) Reset() { *m = QueryMemberResponse{} } -func (m *QueryMemberResponse) String() string { return proto.CompactTextString(m) } -func (*QueryMemberResponse) ProtoMessage() {} -func (*QueryMemberResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{5} -} -func (m *QueryMemberResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryMemberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryMemberResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryMemberResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryMemberResponse.Merge(m, src) -} -func (m *QueryMemberResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryMemberResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryMemberResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryMemberResponse proto.InternalMessageInfo - -func (m *QueryMemberResponse) GetCurrentGroupMember() Member { - if m != nil { - return m.CurrentGroupMember - } - return Member{} -} - -func (m *QueryMemberResponse) GetIncomingGroupMember() Member { - if m != nil { - return m.IncomingGroupMember - } - return Member{} -} - -// QueryCurrentGroupRequest is the request type for the Query/CurrentGroup RPC method. -type QueryCurrentGroupRequest struct { -} - -func (m *QueryCurrentGroupRequest) Reset() { *m = QueryCurrentGroupRequest{} } -func (m *QueryCurrentGroupRequest) String() string { return proto.CompactTextString(m) } -func (*QueryCurrentGroupRequest) ProtoMessage() {} -func (*QueryCurrentGroupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{6} -} -func (m *QueryCurrentGroupRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryCurrentGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryCurrentGroupRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryCurrentGroupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCurrentGroupRequest.Merge(m, src) -} -func (m *QueryCurrentGroupRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryCurrentGroupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCurrentGroupRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryCurrentGroupRequest proto.InternalMessageInfo - -// QueryCurrentGroupResponse is the response type for the Query/CurrentGroup RPC method. -type QueryCurrentGroupResponse struct { - // group_id is the ID of the current group. - GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"group_id,omitempty"` - // size is the number of members in the group. - Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - // threshold is the minimum number of members needed to generate a valid signature. - Threshold uint64 `protobuf:"varint,3,opt,name=threshold,proto3" json:"threshold,omitempty"` - // pub_key is the public key generated by the group. - PubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `protobuf:"bytes,4,opt,name=pub_key,json=pubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_key,omitempty"` - // status is the status of the current group. - Status types.GroupStatus `protobuf:"varint,5,opt,name=status,proto3,enum=band.tss.v1beta1.GroupStatus" json:"status,omitempty"` - // active_time is the timestamp at which the group becomes the current group of the module. - ActiveTime time.Time `protobuf:"bytes,6,opt,name=active_time,json=activeTime,proto3,stdtime" json:"active_time"` -} - -func (m *QueryCurrentGroupResponse) Reset() { *m = QueryCurrentGroupResponse{} } -func (m *QueryCurrentGroupResponse) String() string { return proto.CompactTextString(m) } -func (*QueryCurrentGroupResponse) ProtoMessage() {} -func (*QueryCurrentGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{7} -} -func (m *QueryCurrentGroupResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryCurrentGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryCurrentGroupResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryCurrentGroupResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCurrentGroupResponse.Merge(m, src) -} -func (m *QueryCurrentGroupResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryCurrentGroupResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCurrentGroupResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryCurrentGroupResponse proto.InternalMessageInfo - -func (m *QueryCurrentGroupResponse) GetGroupID() github_com_bandprotocol_chain_v3_pkg_tss.GroupID { - if m != nil { - return m.GroupID - } - return 0 -} - -func (m *QueryCurrentGroupResponse) GetSize_() uint64 { - if m != nil { - return m.Size_ - } - return 0 -} - -func (m *QueryCurrentGroupResponse) GetThreshold() uint64 { - if m != nil { - return m.Threshold - } - return 0 -} - -func (m *QueryCurrentGroupResponse) GetPubKey() github_com_bandprotocol_chain_v3_pkg_tss.Point { - if m != nil { - return m.PubKey - } - return nil -} - -func (m *QueryCurrentGroupResponse) GetStatus() types.GroupStatus { - if m != nil { - return m.Status - } - return types.GROUP_STATUS_UNSPECIFIED -} - -func (m *QueryCurrentGroupResponse) GetActiveTime() time.Time { - if m != nil { - return m.ActiveTime - } - return time.Time{} -} - -// QueryIncomingGroupRequest is the request type for the Query/IncomingGroup RPC method. -type QueryIncomingGroupRequest struct { -} - -func (m *QueryIncomingGroupRequest) Reset() { *m = QueryIncomingGroupRequest{} } -func (m *QueryIncomingGroupRequest) String() string { return proto.CompactTextString(m) } -func (*QueryIncomingGroupRequest) ProtoMessage() {} -func (*QueryIncomingGroupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{8} -} -func (m *QueryIncomingGroupRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryIncomingGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryIncomingGroupRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryIncomingGroupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryIncomingGroupRequest.Merge(m, src) -} -func (m *QueryIncomingGroupRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryIncomingGroupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryIncomingGroupRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryIncomingGroupRequest proto.InternalMessageInfo - -// QueryIncomingGroupResponse is the response type for the Query/IncomingGroup RPC method. -type QueryIncomingGroupResponse struct { - // group_id is the ID of the incoming group. - GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"group_id,omitempty"` - // size is the number of members in the group. - Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - // threshold is the minimum number of members needed to generate a valid signature. - Threshold uint64 `protobuf:"varint,3,opt,name=threshold,proto3" json:"threshold,omitempty"` - // pub_key is the public key generated by the group. - PubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `protobuf:"bytes,4,opt,name=pub_key,json=pubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_key,omitempty"` - // status is the status of the incoming group. - Status types.GroupStatus `protobuf:"varint,5,opt,name=status,proto3,enum=band.tss.v1beta1.GroupStatus" json:"status,omitempty"` -} - -func (m *QueryIncomingGroupResponse) Reset() { *m = QueryIncomingGroupResponse{} } -func (m *QueryIncomingGroupResponse) String() string { return proto.CompactTextString(m) } -func (*QueryIncomingGroupResponse) ProtoMessage() {} -func (*QueryIncomingGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{9} -} -func (m *QueryIncomingGroupResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryIncomingGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryIncomingGroupResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryIncomingGroupResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryIncomingGroupResponse.Merge(m, src) -} -func (m *QueryIncomingGroupResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryIncomingGroupResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryIncomingGroupResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryIncomingGroupResponse proto.InternalMessageInfo - -func (m *QueryIncomingGroupResponse) GetGroupID() github_com_bandprotocol_chain_v3_pkg_tss.GroupID { - if m != nil { - return m.GroupID - } - return 0 -} - -func (m *QueryIncomingGroupResponse) GetSize_() uint64 { - if m != nil { - return m.Size_ - } - return 0 -} - -func (m *QueryIncomingGroupResponse) GetThreshold() uint64 { - if m != nil { - return m.Threshold - } - return 0 -} - -func (m *QueryIncomingGroupResponse) GetPubKey() github_com_bandprotocol_chain_v3_pkg_tss.Point { - if m != nil { - return m.PubKey - } - return nil -} - -func (m *QueryIncomingGroupResponse) GetStatus() types.GroupStatus { - if m != nil { - return m.Status - } - return types.GROUP_STATUS_UNSPECIFIED -} - // QuerySingingRequest is the request type for the Query/Signing RPC method. type QuerySigningRequest struct { // signing_id is the ID of the signing request. @@ -626,3305 +16,19 @@ type QuerySigningRequest struct { func (m *QuerySigningRequest) Reset() { *m = QuerySigningRequest{} } func (m *QuerySigningRequest) String() string { return proto.CompactTextString(m) } func (*QuerySigningRequest) ProtoMessage() {} -func (*QuerySigningRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{10} -} -func (m *QuerySigningRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QuerySigningRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QuerySigningRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QuerySigningRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QuerySigningRequest.Merge(m, src) -} -func (m *QuerySigningRequest) XXX_Size() int { - return m.Size() -} -func (m *QuerySigningRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QuerySigningRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QuerySigningRequest proto.InternalMessageInfo - -func (m *QuerySigningRequest) GetSigningId() uint64 { - if m != nil { - return m.SigningId - } - return 0 -} // QuerySigningResponse is the response type for the Query/Signing RPC method. type QuerySigningResponse struct { // fee_per_signer is the tokens that will be paid per signer for this bandtss signing. - FeePerSigner github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=fee_per_signer,json=feePerSigner,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fee_per_signer"` + FeePerSigner types.Coins `protobuf:"bytes,1,rep,name=fee_per_signer,json=feePerSigner,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fee_per_signer"` // requester is the address of requester who paid for bandtss signing. Requester string `protobuf:"bytes,2,opt,name=requester,proto3" json:"requester,omitempty"` // current_group_signing_result is the signing result from the current group. - CurrentGroupSigningResult *types.SigningResult `protobuf:"bytes,3,opt,name=current_group_signing_result,json=currentGroupSigningResult,proto3" json:"current_group_signing_result,omitempty"` + CurrentGroupSigningResult *tsstypes.SigningResult `protobuf:"bytes,3,opt,name=current_group_signing_result,json=currentGroupSigningResult,proto3" json:"current_group_signing_result,omitempty"` // incoming_group_signing_result is the signing result from the incoming group. - IncomingGroupSigningResult *types.SigningResult `protobuf:"bytes,4,opt,name=incoming_group_signing_result,json=incomingGroupSigningResult,proto3" json:"incoming_group_signing_result,omitempty"` + IncomingGroupSigningResult *tsstypes.SigningResult `protobuf:"bytes,4,opt,name=incoming_group_signing_result,json=incomingGroupSigningResult,proto3" json:"incoming_group_signing_result,omitempty"` } func (m *QuerySigningResponse) Reset() { *m = QuerySigningResponse{} } func (m *QuerySigningResponse) String() string { return proto.CompactTextString(m) } func (*QuerySigningResponse) ProtoMessage() {} -func (*QuerySigningResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{11} -} -func (m *QuerySigningResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QuerySigningResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QuerySigningResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QuerySigningResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QuerySigningResponse.Merge(m, src) -} -func (m *QuerySigningResponse) XXX_Size() int { - return m.Size() -} -func (m *QuerySigningResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QuerySigningResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QuerySigningResponse proto.InternalMessageInfo - -func (m *QuerySigningResponse) GetFeePerSigner() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.FeePerSigner - } - return nil -} - -func (m *QuerySigningResponse) GetRequester() string { - if m != nil { - return m.Requester - } - return "" -} - -func (m *QuerySigningResponse) GetCurrentGroupSigningResult() *types.SigningResult { - if m != nil { - return m.CurrentGroupSigningResult - } - return nil -} - -func (m *QuerySigningResponse) GetIncomingGroupSigningResult() *types.SigningResult { - if m != nil { - return m.IncomingGroupSigningResult - } - return nil -} - -// QueryGroupTransitionRequest is the request type for the Query/GroupTransition RPC method. -type QueryGroupTransitionRequest struct { -} - -func (m *QueryGroupTransitionRequest) Reset() { *m = QueryGroupTransitionRequest{} } -func (m *QueryGroupTransitionRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGroupTransitionRequest) ProtoMessage() {} -func (*QueryGroupTransitionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{12} -} -func (m *QueryGroupTransitionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGroupTransitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGroupTransitionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGroupTransitionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGroupTransitionRequest.Merge(m, src) -} -func (m *QueryGroupTransitionRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGroupTransitionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGroupTransitionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGroupTransitionRequest proto.InternalMessageInfo - -// QueryGroupTransitionResponse is the response type for the Query/GroupTransition RPC method. -type QueryGroupTransitionResponse struct { - // group_transition is the group transition information. - GroupTransition *GroupTransition `protobuf:"bytes,1,opt,name=group_transition,json=groupTransition,proto3" json:"group_transition,omitempty"` -} - -func (m *QueryGroupTransitionResponse) Reset() { *m = QueryGroupTransitionResponse{} } -func (m *QueryGroupTransitionResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGroupTransitionResponse) ProtoMessage() {} -func (*QueryGroupTransitionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{13} -} -func (m *QueryGroupTransitionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGroupTransitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGroupTransitionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGroupTransitionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGroupTransitionResponse.Merge(m, src) -} -func (m *QueryGroupTransitionResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGroupTransitionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGroupTransitionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGroupTransitionResponse proto.InternalMessageInfo - -func (m *QueryGroupTransitionResponse) GetGroupTransition() *GroupTransition { - if m != nil { - return m.GroupTransition - } - return nil -} - -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { -} - -func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } -func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryParamsRequest) ProtoMessage() {} -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{14} -} -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) -} -func (m *QueryParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo - -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { - // Params is the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` -} - -func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } -func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryParamsResponse) ProtoMessage() {} -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d619290a87c09054, []int{15} -} -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) -} -func (m *QueryParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo - -func (m *QueryParamsResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func init() { - proto.RegisterEnum("band.bandtss.v1beta1.MemberStatusFilter", MemberStatusFilter_name, MemberStatusFilter_value) - proto.RegisterType((*QueryCountsRequest)(nil), "band.bandtss.v1beta1.QueryCountsRequest") - proto.RegisterType((*QueryCountsResponse)(nil), "band.bandtss.v1beta1.QueryCountsResponse") - proto.RegisterType((*QueryMembersRequest)(nil), "band.bandtss.v1beta1.QueryMembersRequest") - proto.RegisterType((*QueryMembersResponse)(nil), "band.bandtss.v1beta1.QueryMembersResponse") - proto.RegisterType((*QueryMemberRequest)(nil), "band.bandtss.v1beta1.QueryMemberRequest") - proto.RegisterType((*QueryMemberResponse)(nil), "band.bandtss.v1beta1.QueryMemberResponse") - proto.RegisterType((*QueryCurrentGroupRequest)(nil), "band.bandtss.v1beta1.QueryCurrentGroupRequest") - proto.RegisterType((*QueryCurrentGroupResponse)(nil), "band.bandtss.v1beta1.QueryCurrentGroupResponse") - proto.RegisterType((*QueryIncomingGroupRequest)(nil), "band.bandtss.v1beta1.QueryIncomingGroupRequest") - proto.RegisterType((*QueryIncomingGroupResponse)(nil), "band.bandtss.v1beta1.QueryIncomingGroupResponse") - proto.RegisterType((*QuerySigningRequest)(nil), "band.bandtss.v1beta1.QuerySigningRequest") - proto.RegisterType((*QuerySigningResponse)(nil), "band.bandtss.v1beta1.QuerySigningResponse") - proto.RegisterType((*QueryGroupTransitionRequest)(nil), "band.bandtss.v1beta1.QueryGroupTransitionRequest") - proto.RegisterType((*QueryGroupTransitionResponse)(nil), "band.bandtss.v1beta1.QueryGroupTransitionResponse") - proto.RegisterType((*QueryParamsRequest)(nil), "band.bandtss.v1beta1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "band.bandtss.v1beta1.QueryParamsResponse") -} - -func init() { proto.RegisterFile("band/bandtss/v1beta1/query.proto", fileDescriptor_d619290a87c09054) } - -var fileDescriptor_d619290a87c09054 = []byte{ - // 1268 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xb1, 0x6f, 0xdb, 0x56, - 0x13, 0x17, 0x15, 0x45, 0x8a, 0x9f, 0x9d, 0xd8, 0xdf, 0x8b, 0x3f, 0x54, 0xa6, 0x6d, 0x51, 0x66, - 0x52, 0x47, 0x31, 0x50, 0xd2, 0x56, 0xda, 0x0e, 0x59, 0xda, 0xc8, 0x91, 0x03, 0x35, 0x75, 0xa0, - 0x50, 0x4a, 0x86, 0x2c, 0x2a, 0x25, 0x3d, 0xd3, 0x84, 0x25, 0x92, 0xe6, 0x23, 0x8d, 0xba, 0x41, - 0x3a, 0x04, 0x1d, 0x9a, 0xcd, 0x40, 0x87, 0x0c, 0x1d, 0xb3, 0x75, 0xe8, 0x3f, 0xd1, 0x25, 0x40, - 0x97, 0x00, 0x5d, 0x3a, 0x39, 0x85, 0xdd, 0xb5, 0x5b, 0xa7, 0x4c, 0x05, 0xdf, 0x3b, 0xca, 0xa2, - 0xc4, 0xd0, 0xea, 0xde, 0xc5, 0x96, 0xde, 0xdd, 0xbd, 0xfb, 0xdd, 0xdd, 0xbb, 0xdf, 0x9d, 0x50, - 0xb1, 0xad, 0x5b, 0x5d, 0x35, 0xf8, 0xe3, 0x51, 0xaa, 0x1e, 0x6c, 0xb4, 0x89, 0xa7, 0x6f, 0xa8, - 0xfb, 0x3e, 0x71, 0x0f, 0x15, 0xc7, 0xb5, 0x3d, 0x1b, 0xcf, 0x07, 0x42, 0x05, 0x34, 0x14, 0xd0, - 0x10, 0xe7, 0x0d, 0xdb, 0xb0, 0x99, 0x82, 0x1a, 0x7c, 0xe2, 0xba, 0xa2, 0x64, 0xd8, 0xb6, 0xd1, - 0x23, 0x2a, 0xfb, 0xd6, 0xf6, 0x77, 0x54, 0xcf, 0xec, 0x13, 0xea, 0xe9, 0x7d, 0x07, 0x14, 0xd6, - 0x3a, 0x36, 0xed, 0xdb, 0x54, 0x6d, 0xeb, 0x94, 0x70, 0x2f, 0x03, 0x9f, 0x8e, 0x6e, 0x98, 0x96, - 0xee, 0x99, 0xb6, 0x05, 0xba, 0x85, 0x61, 0xdd, 0x50, 0xab, 0x63, 0x9b, 0xa1, 0x7c, 0x09, 0x9c, - 0xe9, 0x8e, 0xa9, 0xea, 0x96, 0x65, 0x7b, 0xcc, 0x98, 0x82, 0x54, 0x64, 0x81, 0x0d, 0x07, 0x15, - 0xc0, 0xe7, 0x32, 0x39, 0x36, 0xe8, 0x30, 0xc4, 0x24, 0x1d, 0x83, 0x58, 0x84, 0x9a, 0xa0, 0x23, - 0xcf, 0x23, 0xfc, 0x30, 0x88, 0x61, 0xd3, 0xf6, 0x2d, 0x8f, 0x6a, 0x64, 0xdf, 0x27, 0xd4, 0x93, - 0x6f, 0xa3, 0xab, 0x91, 0x53, 0xea, 0xd8, 0x16, 0x25, 0xf8, 0x1a, 0xba, 0x4c, 0x4d, 0xc3, 0x32, - 0x2d, 0xa3, 0xd5, 0x09, 0x24, 0x79, 0xa1, 0x28, 0x94, 0x32, 0xda, 0x0c, 0x1c, 0x32, 0x6d, 0xf9, - 0x57, 0x01, 0x8c, 0xb7, 0x49, 0xbf, 0x4d, 0xdc, 0xf0, 0x4e, 0xfc, 0x39, 0xca, 0x52, 0x4f, 0xf7, - 0x7c, 0xca, 0xac, 0xae, 0x94, 0x4b, 0x4a, 0x5c, 0x55, 0x14, 0x6e, 0xd5, 0x60, 0x9a, 0x5b, 0x66, - 0xcf, 0x23, 0xae, 0x06, 0x76, 0x78, 0x0d, 0xfd, 0xcf, 0xa4, 0x2d, 0xd3, 0xea, 0xd8, 0xfd, 0x00, - 0x82, 0xe1, 0xda, 0xbe, 0x93, 0x4f, 0x17, 0x85, 0xd2, 0x25, 0x6d, 0xd6, 0xa4, 0x35, 0x38, 0xbf, - 0x17, 0x1c, 0xe3, 0x2d, 0x84, 0xce, 0xaa, 0x91, 0xbf, 0x50, 0x14, 0x4a, 0xd3, 0xe5, 0x55, 0x85, - 0x97, 0x43, 0x09, 0xca, 0xa1, 0xf0, 0x07, 0x12, 0xba, 0xad, 0xeb, 0x06, 0x01, 0xa4, 0xda, 0x90, - 0xa5, 0xfc, 0x52, 0x40, 0xf3, 0xd1, 0x68, 0x20, 0x17, 0x9f, 0xa2, 0x5c, 0x9f, 0x1f, 0xe5, 0x85, - 0xe2, 0x85, 0xd2, 0x74, 0x79, 0x29, 0x29, 0x1e, 0x2d, 0x54, 0xc6, 0xf7, 0x22, 0xc0, 0xd2, 0x0c, - 0xd8, 0x8d, 0x73, 0x81, 0x71, 0xa7, 0x11, 0x64, 0x0a, 0x54, 0x0e, 0x1c, 0x40, 0x96, 0xf3, 0x28, - 0xa7, 0x77, 0xbb, 0x2e, 0xa1, 0x3c, 0xcd, 0x53, 0x5a, 0xf8, 0x55, 0xfe, 0x25, 0x5a, 0x97, 0x41, - 0x20, 0x4d, 0x34, 0xdf, 0xf1, 0x5d, 0x97, 0x58, 0x1e, 0xcf, 0x68, 0x8b, 0x23, 0x65, 0xe6, 0xe7, - 0x44, 0x55, 0xc9, 0xbc, 0x3e, 0x96, 0x52, 0x1a, 0x06, 0x7b, 0x96, 0x79, 0x2e, 0xc1, 0x8f, 0xd1, - 0xff, 0xa3, 0x85, 0x0a, 0xaf, 0x4d, 0x4f, 0x7c, 0xed, 0x55, 0x73, 0xb8, 0xa2, 0x5c, 0x24, 0x8b, - 0x28, 0xcf, 0x5f, 0xe6, 0x90, 0xcb, 0xf0, 0xd5, 0xfe, 0x9d, 0x46, 0x0b, 0x31, 0x42, 0x88, 0xf3, - 0x09, 0xba, 0xc4, 0x81, 0x98, 0x5d, 0xfe, 0x6e, 0x2b, 0x9f, 0x9d, 0x1c, 0x4b, 0x39, 0xa6, 0x54, - 0xbb, 0xfb, 0xee, 0x58, 0x5a, 0x37, 0x4c, 0x6f, 0xd7, 0x6f, 0x2b, 0x1d, 0xbb, 0xcf, 0x9a, 0x86, - 0x35, 0x48, 0xc7, 0xee, 0xa9, 0x9d, 0x5d, 0xdd, 0xb4, 0xd4, 0x83, 0x5b, 0xaa, 0xb3, 0x67, 0xb0, - 0x16, 0x04, 0x1b, 0x2d, 0xc7, 0x2e, 0xac, 0x75, 0x31, 0x46, 0x19, 0x6a, 0x7e, 0x43, 0x58, 0x70, - 0x19, 0x8d, 0x7d, 0xc6, 0x4b, 0x68, 0xca, 0xdb, 0x75, 0x09, 0xdd, 0xb5, 0x7b, 0x5d, 0xf6, 0x00, - 0x33, 0xda, 0xd9, 0x01, 0xbe, 0x8f, 0x72, 0x8e, 0xdf, 0x6e, 0xed, 0x91, 0xc3, 0x7c, 0xa6, 0x28, - 0x94, 0x66, 0x2a, 0xe5, 0x77, 0xc7, 0x92, 0x32, 0x31, 0x82, 0xba, 0x6d, 0x5a, 0x9e, 0x96, 0x75, - 0xfc, 0xf6, 0x7d, 0x72, 0x88, 0x3f, 0x19, 0xb4, 0xd6, 0x45, 0xd6, 0x5a, 0xcb, 0x3c, 0xbb, 0xc3, - 0x99, 0x65, 0x90, 0x79, 0x57, 0x0d, 0xfa, 0xa9, 0x8a, 0xa6, 0xf5, 0x8e, 0x67, 0x1e, 0x90, 0x56, - 0xc0, 0x71, 0xf9, 0x2c, 0xab, 0x8c, 0xa8, 0x70, 0x4e, 0x52, 0x42, 0x02, 0x54, 0x9a, 0x21, 0x01, - 0x56, 0x2e, 0x05, 0x75, 0x39, 0x7a, 0x2b, 0x09, 0x1a, 0xe2, 0x86, 0x81, 0x48, 0x5e, 0x84, 0xac, - 0x47, 0x1a, 0x30, 0xac, 0xc9, 0xcf, 0x69, 0x24, 0xc6, 0x49, 0xff, 0x2b, 0x4a, 0x7c, 0x51, 0xe4, - 0x8f, 0xa1, 0x4b, 0x1b, 0x9c, 0x53, 0xc3, 0xbe, 0x5e, 0x46, 0x28, 0xa4, 0xde, 0x30, 0x55, 0xda, - 0x14, 0x9c, 0xd4, 0xba, 0xf2, 0x5f, 0x69, 0xa0, 0xa9, 0x81, 0x19, 0x24, 0x78, 0x1f, 0x5d, 0xd9, - 0x21, 0xa4, 0xe5, 0x10, 0xb7, 0x15, 0x68, 0xb3, 0xbe, 0x0e, 0xd8, 0x6a, 0x21, 0x42, 0x39, 0x21, - 0xa0, 0x4d, 0xdb, 0xb4, 0x2a, 0xeb, 0x41, 0x95, 0x7f, 0x7a, 0x2b, 0x95, 0x86, 0x02, 0x87, 0x39, - 0xc6, 0xff, 0x7d, 0x44, 0xbb, 0x7b, 0xaa, 0x77, 0xe8, 0x10, 0xca, 0x0c, 0xa8, 0x36, 0xb3, 0x43, - 0x48, 0x9d, 0xb8, 0x0d, 0xe6, 0x20, 0xc8, 0xb1, 0xcb, 0x51, 0x43, 0xbb, 0x4f, 0x69, 0x67, 0x07, - 0xf8, 0x2b, 0xb4, 0x14, 0xa5, 0x9b, 0x30, 0x2c, 0x97, 0x50, 0xbf, 0xe7, 0x01, 0x55, 0x4b, 0xe3, - 0xc9, 0x3a, 0x8b, 0xcc, 0xef, 0x79, 0xda, 0xc2, 0x30, 0xe7, 0x44, 0x44, 0xb8, 0x8d, 0x96, 0x47, - 0xa8, 0x67, 0xc4, 0x45, 0x66, 0x32, 0x17, 0x62, 0x84, 0x7f, 0x22, 0x32, 0x79, 0x19, 0x2d, 0xb2, - 0x74, 0x33, 0x51, 0xd3, 0xd5, 0x2d, 0x6a, 0x06, 0xa4, 0x1c, 0xbe, 0x7a, 0x07, 0x2d, 0xc5, 0x8b, - 0xa1, 0x2a, 0x75, 0x34, 0xc7, 0x91, 0x79, 0x03, 0x19, 0xf0, 0xed, 0x87, 0xf1, 0xc4, 0x38, 0x7a, - 0xd1, 0xac, 0x11, 0x3d, 0x18, 0xcc, 0xf1, 0xba, 0xee, 0xea, 0xfd, 0xc1, 0x1c, 0x7f, 0x08, 0x8f, - 0x29, 0x3c, 0x05, 0xf7, 0xb7, 0x51, 0xd6, 0x61, 0x27, 0xc9, 0x24, 0xcf, 0xad, 0x80, 0x8d, 0xc1, - 0x62, 0xed, 0x3b, 0x01, 0xe1, 0xf1, 0x19, 0x8d, 0xaf, 0xa3, 0xe2, 0x76, 0x75, 0xbb, 0x52, 0xd5, - 0x5a, 0x8d, 0xe6, 0x9d, 0xe6, 0xa3, 0x46, 0x6b, 0xab, 0xf6, 0x65, 0xb3, 0xaa, 0xb5, 0x1e, 0x3d, - 0x68, 0xd4, 0xab, 0x9b, 0xb5, 0xad, 0x5a, 0xf5, 0xee, 0x5c, 0x0a, 0x4b, 0x68, 0x31, 0x56, 0xeb, - 0xce, 0x66, 0xb3, 0xf6, 0xb8, 0x3a, 0x27, 0xe0, 0x15, 0xb4, 0x1c, 0xab, 0x50, 0x7b, 0x00, 0x2a, - 0x69, 0x31, 0xf3, 0xfd, 0xab, 0x42, 0xaa, 0xfc, 0x62, 0x0a, 0x5d, 0x64, 0xa1, 0xe1, 0x6f, 0x51, - 0x96, 0xaf, 0x29, 0xf8, 0x3d, 0x1b, 0xc5, 0xf8, 0x7e, 0x23, 0xde, 0x9c, 0x40, 0x93, 0xe7, 0x4a, - 0x96, 0x9e, 0xff, 0xf6, 0xe7, 0x0f, 0xe9, 0x05, 0xfc, 0xc1, 0xd8, 0x22, 0xd5, 0xe1, 0x5e, 0x9f, - 0x0b, 0x28, 0x07, 0xcb, 0x01, 0x4e, 0xba, 0x37, 0xba, 0x0e, 0x89, 0x6b, 0x93, 0xa8, 0x02, 0x86, - 0x22, 0xc3, 0x20, 0xe2, 0xfc, 0x18, 0x86, 0x70, 0xab, 0x78, 0x21, 0xa0, 0x2c, 0x4c, 0xde, 0xd2, - 0xb9, 0x17, 0x4f, 0x92, 0x85, 0xe8, 0x92, 0x20, 0xaf, 0x31, 0x04, 0xd7, 0xb1, 0xfc, 0x3e, 0x04, - 0xea, 0x53, 0xd8, 0x33, 0x9e, 0xe1, 0x97, 0x02, 0x9a, 0x19, 0x9e, 0xc0, 0x58, 0x49, 0xca, 0xf6, - 0xf8, 0x1c, 0x17, 0xd5, 0x89, 0xf5, 0x01, 0xdd, 0x2a, 0x43, 0x57, 0xc4, 0x85, 0xf1, 0x1a, 0x0d, - 0x53, 0x0d, 0xfe, 0x51, 0x40, 0x97, 0xa3, 0x6b, 0x62, 0x92, 0xab, 0xb8, 0x79, 0x26, 0xae, 0x4f, - 0x6e, 0x00, 0xe0, 0x6e, 0x30, 0x70, 0x2b, 0x58, 0x1a, 0x03, 0x17, 0x65, 0x29, 0x7c, 0x24, 0xa0, - 0x1c, 0xb0, 0x4c, 0xe2, 0x43, 0x8a, 0x4e, 0x86, 0xc4, 0x87, 0x34, 0x32, 0x0d, 0x64, 0x85, 0x61, - 0x29, 0xe1, 0xd5, 0x31, 0x2c, 0x40, 0x91, 0x54, 0x7d, 0x7a, 0x36, 0x66, 0x9e, 0xe1, 0x57, 0x02, - 0x9a, 0x1d, 0xa1, 0x1e, 0xbc, 0x91, 0xe0, 0x2f, 0x9e, 0x0e, 0xc5, 0xf2, 0xbf, 0x31, 0x01, 0xa8, - 0x37, 0x19, 0xd4, 0x6b, 0x78, 0x65, 0xfc, 0x07, 0xcc, 0x08, 0x73, 0x06, 0x0c, 0xc0, 0xa9, 0x2a, - 0xf1, 0xed, 0x47, 0x98, 0x31, 0xf1, 0xed, 0x47, 0xd9, 0x32, 0x81, 0x01, 0x38, 0x25, 0x56, 0xbe, - 0x78, 0x7d, 0x52, 0x10, 0xde, 0x9c, 0x14, 0x84, 0x3f, 0x4e, 0x0a, 0xc2, 0xd1, 0x69, 0x21, 0xf5, - 0xe6, 0xb4, 0x90, 0xfa, 0xfd, 0xb4, 0x90, 0x7a, 0x72, 0xfe, 0xf6, 0xf2, 0xf5, 0xe0, 0x52, 0x36, - 0x50, 0xdb, 0x59, 0xa6, 0x72, 0xeb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x08, 0x2c, 0x11, 0xcf, - 0xd5, 0x0e, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // Counts queries the number of existing signing. - Counts(ctx context.Context, in *QueryCountsRequest, opts ...grpc.CallOption) (*QueryCountsResponse, error) - // Members queries all members. - Members(ctx context.Context, in *QueryMembersRequest, opts ...grpc.CallOption) (*QueryMembersResponse, error) - // Member queries the member information of the given address. - Member(ctx context.Context, in *QueryMemberRequest, opts ...grpc.CallOption) (*QueryMemberResponse, error) - // CurrentGroup queries the current group information. - CurrentGroup( - ctx context.Context, - in *QueryCurrentGroupRequest, - opts ...grpc.CallOption, - ) (*QueryCurrentGroupResponse, error) - // IncomingGroup queries the incoming group information. - IncomingGroup( - ctx context.Context, - in *QueryIncomingGroupRequest, - opts ...grpc.CallOption, - ) (*QueryIncomingGroupResponse, error) - // Signing queries the signing result of the given signing request ID. - Signing(ctx context.Context, in *QuerySigningRequest, opts ...grpc.CallOption) (*QuerySigningResponse, error) - // GroupTransition queries the group transition information. - GroupTransition( - ctx context.Context, - in *QueryGroupTransitionRequest, - opts ...grpc.CallOption, - ) (*QueryGroupTransitionResponse, error) - // Params queries parameters of bandtss module - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Counts( - ctx context.Context, - in *QueryCountsRequest, - opts ...grpc.CallOption, -) (*QueryCountsResponse, error) { - out := new(QueryCountsResponse) - err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/Counts", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Members( - ctx context.Context, - in *QueryMembersRequest, - opts ...grpc.CallOption, -) (*QueryMembersResponse, error) { - out := new(QueryMembersResponse) - err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/Members", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Member( - ctx context.Context, - in *QueryMemberRequest, - opts ...grpc.CallOption, -) (*QueryMemberResponse, error) { - out := new(QueryMemberResponse) - err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/Member", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) CurrentGroup( - ctx context.Context, - in *QueryCurrentGroupRequest, - opts ...grpc.CallOption, -) (*QueryCurrentGroupResponse, error) { - out := new(QueryCurrentGroupResponse) - err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/CurrentGroup", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) IncomingGroup( - ctx context.Context, - in *QueryIncomingGroupRequest, - opts ...grpc.CallOption, -) (*QueryIncomingGroupResponse, error) { - out := new(QueryIncomingGroupResponse) - err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/IncomingGroup", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Signing( - ctx context.Context, - in *QuerySigningRequest, - opts ...grpc.CallOption, -) (*QuerySigningResponse, error) { - out := new(QuerySigningResponse) - err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/Signing", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GroupTransition( - ctx context.Context, - in *QueryGroupTransitionRequest, - opts ...grpc.CallOption, -) (*QueryGroupTransitionResponse, error) { - out := new(QueryGroupTransitionResponse) - err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/GroupTransition", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Params( - ctx context.Context, - in *QueryParamsRequest, - opts ...grpc.CallOption, -) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/band.bandtss.v1beta1.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - // Counts queries the number of existing signing. - Counts(context.Context, *QueryCountsRequest) (*QueryCountsResponse, error) - // Members queries all members. - Members(context.Context, *QueryMembersRequest) (*QueryMembersResponse, error) - // Member queries the member information of the given address. - Member(context.Context, *QueryMemberRequest) (*QueryMemberResponse, error) - // CurrentGroup queries the current group information. - CurrentGroup(context.Context, *QueryCurrentGroupRequest) (*QueryCurrentGroupResponse, error) - // IncomingGroup queries the incoming group information. - IncomingGroup(context.Context, *QueryIncomingGroupRequest) (*QueryIncomingGroupResponse, error) - // Signing queries the signing result of the given signing request ID. - Signing(context.Context, *QuerySigningRequest) (*QuerySigningResponse, error) - // GroupTransition queries the group transition information. - GroupTransition(context.Context, *QueryGroupTransitionRequest) (*QueryGroupTransitionResponse, error) - // Params queries parameters of bandtss module - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) Counts(ctx context.Context, req *QueryCountsRequest) (*QueryCountsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Counts not implemented") -} - -func (*UnimplementedQueryServer) Members( - ctx context.Context, - req *QueryMembersRequest, -) (*QueryMembersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Members not implemented") -} -func (*UnimplementedQueryServer) Member(ctx context.Context, req *QueryMemberRequest) (*QueryMemberResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Member not implemented") -} - -func (*UnimplementedQueryServer) CurrentGroup( - ctx context.Context, - req *QueryCurrentGroupRequest, -) (*QueryCurrentGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CurrentGroup not implemented") -} - -func (*UnimplementedQueryServer) IncomingGroup( - ctx context.Context, - req *QueryIncomingGroupRequest, -) (*QueryIncomingGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IncomingGroup not implemented") -} - -func (*UnimplementedQueryServer) Signing( - ctx context.Context, - req *QuerySigningRequest, -) (*QuerySigningResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Signing not implemented") -} - -func (*UnimplementedQueryServer) GroupTransition( - ctx context.Context, - req *QueryGroupTransitionRequest, -) (*QueryGroupTransitionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GroupTransition not implemented") -} -func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_Counts_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryCountsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Counts(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.bandtss.v1beta1.Query/Counts", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Counts(ctx, req.(*QueryCountsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Members_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryMembersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Members(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.bandtss.v1beta1.Query/Members", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Members(ctx, req.(*QueryMembersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Member_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryMemberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Member(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.bandtss.v1beta1.Query/Member", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Member(ctx, req.(*QueryMemberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_CurrentGroup_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryCurrentGroupRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).CurrentGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.bandtss.v1beta1.Query/CurrentGroup", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).CurrentGroup(ctx, req.(*QueryCurrentGroupRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_IncomingGroup_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryIncomingGroupRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).IncomingGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.bandtss.v1beta1.Query/IncomingGroup", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).IncomingGroup(ctx, req.(*QueryIncomingGroupRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Signing_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QuerySigningRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Signing(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.bandtss.v1beta1.Query/Signing", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Signing(ctx, req.(*QuerySigningRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GroupTransition_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryGroupTransitionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GroupTransition(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.bandtss.v1beta1.Query/GroupTransition", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GroupTransition(ctx, req.(*QueryGroupTransitionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Params_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.bandtss.v1beta1.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "band.bandtss.v1beta1.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Counts", - Handler: _Query_Counts_Handler, - }, - { - MethodName: "Members", - Handler: _Query_Members_Handler, - }, - { - MethodName: "Member", - Handler: _Query_Member_Handler, - }, - { - MethodName: "CurrentGroup", - Handler: _Query_CurrentGroup_Handler, - }, - { - MethodName: "IncomingGroup", - Handler: _Query_IncomingGroup_Handler, - }, - { - MethodName: "Signing", - Handler: _Query_Signing_Handler, - }, - { - MethodName: "GroupTransition", - Handler: _Query_GroupTransition_Handler, - }, - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "band/bandtss/v1beta1/query.proto", -} - -func (m *QueryCountsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryCountsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryCountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryCountsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryCountsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryCountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SigningCount != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.SigningCount)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryMembersRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryMembersRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.IsIncomingGroup { - i-- - if m.IsIncomingGroup { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.Status != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryMembersResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryMembersResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Members) > 0 { - for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryMemberRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryMemberRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryMemberRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryMemberResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryMemberResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryMemberResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.IncomingGroupMember.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.CurrentGroupMember.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryCurrentGroupRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryCurrentGroupRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryCurrentGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryCurrentGroupResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryCurrentGroupResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryCurrentGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - n5, err5 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo( - m.ActiveTime, - dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ActiveTime):], - ) - if err5 != nil { - return 0, err5 - } - i -= n5 - i = encodeVarintQuery(dAtA, i, uint64(n5)) - i-- - dAtA[i] = 0x32 - if m.Status != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x28 - } - if len(m.PubKey) > 0 { - i -= len(m.PubKey) - copy(dAtA[i:], m.PubKey) - i = encodeVarintQuery(dAtA, i, uint64(len(m.PubKey))) - i-- - dAtA[i] = 0x22 - } - if m.Threshold != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Threshold)) - i-- - dAtA[i] = 0x18 - } - if m.Size_ != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Size_)) - i-- - dAtA[i] = 0x10 - } - if m.GroupID != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.GroupID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryIncomingGroupRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryIncomingGroupRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryIncomingGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryIncomingGroupResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryIncomingGroupResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryIncomingGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Status != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x28 - } - if len(m.PubKey) > 0 { - i -= len(m.PubKey) - copy(dAtA[i:], m.PubKey) - i = encodeVarintQuery(dAtA, i, uint64(len(m.PubKey))) - i-- - dAtA[i] = 0x22 - } - if m.Threshold != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Threshold)) - i-- - dAtA[i] = 0x18 - } - if m.Size_ != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Size_)) - i-- - dAtA[i] = 0x10 - } - if m.GroupID != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.GroupID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QuerySigningRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QuerySigningRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QuerySigningRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SigningId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.SigningId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QuerySigningResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QuerySigningResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QuerySigningResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IncomingGroupSigningResult != nil { - { - size, err := m.IncomingGroupSigningResult.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.CurrentGroupSigningResult != nil { - { - size, err := m.CurrentGroupSigningResult.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Requester) > 0 { - i -= len(m.Requester) - copy(dAtA[i:], m.Requester) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Requester))) - i-- - dAtA[i] = 0x12 - } - if len(m.FeePerSigner) > 0 { - for iNdEx := len(m.FeePerSigner) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.FeePerSigner[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryGroupTransitionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGroupTransitionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGroupTransitionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryGroupTransitionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGroupTransitionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGroupTransitionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.GroupTransition != nil { - { - size, err := m.GroupTransition.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryCountsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryCountsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SigningCount != 0 { - n += 1 + sovQuery(uint64(m.SigningCount)) - } - return n -} - -func (m *QueryMembersRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Status != 0 { - n += 1 + sovQuery(uint64(m.Status)) - } - if m.IsIncomingGroup { - n += 2 - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryMembersResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Members) > 0 { - for _, e := range m.Members { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryMemberRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryMemberResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.CurrentGroupMember.Size() - n += 1 + l + sovQuery(uint64(l)) - l = m.IncomingGroupMember.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryCurrentGroupRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryCurrentGroupResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GroupID != 0 { - n += 1 + sovQuery(uint64(m.GroupID)) - } - if m.Size_ != 0 { - n += 1 + sovQuery(uint64(m.Size_)) - } - if m.Threshold != 0 { - n += 1 + sovQuery(uint64(m.Threshold)) - } - l = len(m.PubKey) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Status != 0 { - n += 1 + sovQuery(uint64(m.Status)) - } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ActiveTime) - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryIncomingGroupRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryIncomingGroupResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GroupID != 0 { - n += 1 + sovQuery(uint64(m.GroupID)) - } - if m.Size_ != 0 { - n += 1 + sovQuery(uint64(m.Size_)) - } - if m.Threshold != 0 { - n += 1 + sovQuery(uint64(m.Threshold)) - } - l = len(m.PubKey) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Status != 0 { - n += 1 + sovQuery(uint64(m.Status)) - } - return n -} - -func (m *QuerySigningRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SigningId != 0 { - n += 1 + sovQuery(uint64(m.SigningId)) - } - return n -} - -func (m *QuerySigningResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.FeePerSigner) > 0 { - for _, e := range m.FeePerSigner { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - l = len(m.Requester) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.CurrentGroupSigningResult != nil { - l = m.CurrentGroupSigningResult.Size() - n += 1 + l + sovQuery(uint64(l)) - } - if m.IncomingGroupSigningResult != nil { - l = m.IncomingGroupSigningResult.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGroupTransitionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryGroupTransitionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GroupTransition != nil { - l = m.GroupTransition.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryCountsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryCountsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCountsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryCountsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryCountsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCountsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SigningCount", wireType) - } - m.SigningCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SigningCount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryMembersRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryMembersRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryMembersRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= MemberStatusFilter(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsIncomingGroup", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsIncomingGroup = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryMembersResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryMembersResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryMembersResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Members = append(m.Members, &Member{}) - if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryMemberRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryMemberRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryMemberRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryMemberResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryMemberResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryMemberResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentGroupMember", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CurrentGroupMember.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IncomingGroupMember", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.IncomingGroupMember.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryCurrentGroupRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryCurrentGroupRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCurrentGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryCurrentGroupResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryCurrentGroupResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCurrentGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType) - } - m.GroupID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupID |= github_com_bandprotocol_chain_v3_pkg_tss.GroupID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) - } - m.Size_ = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Size_ |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Threshold", wireType) - } - m.Threshold = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Threshold |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...) - if m.PubKey == nil { - m.PubKey = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= types.GroupStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ActiveTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryIncomingGroupRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryIncomingGroupRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryIncomingGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryIncomingGroupResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryIncomingGroupResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryIncomingGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType) - } - m.GroupID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupID |= github_com_bandprotocol_chain_v3_pkg_tss.GroupID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) - } - m.Size_ = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Size_ |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Threshold", wireType) - } - m.Threshold = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Threshold |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...) - if m.PubKey == nil { - m.PubKey = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= types.GroupStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QuerySigningRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QuerySigningRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QuerySigningRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SigningId", wireType) - } - m.SigningId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SigningId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QuerySigningResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QuerySigningResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QuerySigningResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FeePerSigner", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FeePerSigner = append(m.FeePerSigner, types1.Coin{}) - if err := m.FeePerSigner[len(m.FeePerSigner)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requester", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Requester = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentGroupSigningResult", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CurrentGroupSigningResult == nil { - m.CurrentGroupSigningResult = &types.SigningResult{} - } - if err := m.CurrentGroupSigningResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IncomingGroupSigningResult", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IncomingGroupSigningResult == nil { - m.IncomingGroupSigningResult = &types.SigningResult{} - } - if err := m.IncomingGroupSigningResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGroupTransitionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGroupTransitionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGroupTransitionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGroupTransitionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGroupTransitionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGroupTransitionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupTransition", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GroupTransition == nil { - m.GroupTransition = &GroupTransition{} - } - if err := m.GroupTransition.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/internal/bandchain/feeds/encoder.pb.go b/internal/bandchain/feeds/encoder.pb.go index f28b5d6..7049a9c 100644 --- a/internal/bandchain/feeds/encoder.pb.go +++ b/internal/bandchain/feeds/encoder.pb.go @@ -1,22 +1,6 @@ package types -import ( - "fmt" - "math" - - "github.com/cosmos/gogoproto/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +import "github.com/cosmos/gogoproto/proto" // Encoder is an enumerator that defines the mode of encoding message in tss module. type Encoder int32 @@ -45,32 +29,3 @@ var Encoder_value = map[string]int32{ func (x Encoder) String() string { return proto.EnumName(Encoder_name, int32(x)) } - -func (Encoder) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ac3e992b65436f01, []int{0} -} - -func init() { - proto.RegisterEnum("band.feeds.v1beta1.Encoder", Encoder_name, Encoder_value) -} - -func init() { proto.RegisterFile("band/feeds/v1beta1/encoder.proto", fileDescriptor_ac3e992b65436f01) } - -var fileDescriptor_ac3e992b65436f01 = []byte{ - // 226 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0x4a, 0xcc, 0x4b, - 0xd1, 0x4f, 0x4b, 0x4d, 0x4d, 0x29, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x4f, - 0xcd, 0x4b, 0xce, 0x4f, 0x49, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x02, 0xa9, - 0xd0, 0x03, 0xab, 0xd0, 0x83, 0xaa, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x4b, 0xeb, 0x83, - 0x58, 0x10, 0x95, 0x5a, 0xd1, 0x5c, 0xec, 0xae, 0x10, 0xad, 0x42, 0xe2, 0x5c, 0xc2, 0xae, 0x7e, - 0xce, 0xfe, 0x2e, 0xae, 0x41, 0xf1, 0xa1, 0x7e, 0xc1, 0x01, 0xae, 0xce, 0x9e, 0x6e, 0x9e, 0xae, - 0x2e, 0x02, 0x0c, 0x42, 0xd2, 0x5c, 0xe2, 0x30, 0x09, 0x37, 0xcf, 0x08, 0x57, 0x97, 0xf8, 0x00, - 0x7f, 0x4f, 0xbf, 0x90, 0x78, 0x47, 0x27, 0x4f, 0x01, 0x46, 0x21, 0x11, 0x2e, 0x01, 0x98, 0x64, - 0x88, 0xa7, 0xb3, 0x37, 0x58, 0x94, 0x49, 0x8a, 0xa5, 0x63, 0xb1, 0x1c, 0x83, 0x93, 0xc7, 0x89, - 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, - 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xe9, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, - 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x83, 0xdc, 0x0a, 0x76, 0x4c, 0x72, 0x7e, 0x8e, 0x7e, 0x72, 0x46, - 0x62, 0x66, 0x9e, 0x7e, 0x99, 0xb1, 0x7e, 0x05, 0xd4, 0x83, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, - 0x6c, 0x60, 0x05, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xef, 0x0d, 0x10, 0xc0, 0xfb, 0x00, - 0x00, 0x00, -} diff --git a/internal/bandchain/feeds/feeds.pb.go b/internal/bandchain/feeds/feeds.pb.go index a9ba266..f2b6100 100644 --- a/internal/bandchain/feeds/feeds.pb.go +++ b/internal/bandchain/feeds/feeds.pb.go @@ -1,24 +1,6 @@ -package types +package feeds -import ( - "fmt" - "io" - "math" - math_bits "math/bits" - - "github.com/cosmos/gogoproto/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +import "github.com/cosmos/gogoproto/proto" // PriceStatus is a structure that defines the price status of a price. type PriceStatus int32 @@ -56,422 +38,6 @@ func (x PriceStatus) String() string { return proto.EnumName(PriceStatus_name, int32(x)) } -func (PriceStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_fc3afe81d3b13674, []int{0} -} - -// SignalPriceStatus is a structure that defines the price status of a signal id. -type SignalPriceStatus int32 - -const ( - // SIGNAL_PRICE_STATUS_UNSPECIFIED is an unspecified signal price status. - SIGNAL_PRICE_STATUS_UNSPECIFIED SignalPriceStatus = 0 - // SIGNAL_PRICE_STATUS_UNSUPPORTED is an unsupported signal price status. - SIGNAL_PRICE_STATUS_UNSUPPORTED SignalPriceStatus = 1 - // SIGNAL_PRICE_STATUS_UNAVAILABLE is an unavailable signal price status. - SIGNAL_PRICE_STATUS_UNAVAILABLE SignalPriceStatus = 2 - // SIGNAL_PRICE_STATUS_AVAILABLE is an available signal price status. - SIGNAL_PRICE_STATUS_AVAILABLE SignalPriceStatus = 3 -) - -var SignalPriceStatus_name = map[int32]string{ - 0: "SIGNAL_PRICE_STATUS_UNSPECIFIED", - 1: "SIGNAL_PRICE_STATUS_UNSUPPORTED", - 2: "SIGNAL_PRICE_STATUS_UNAVAILABLE", - 3: "SIGNAL_PRICE_STATUS_AVAILABLE", -} - -var SignalPriceStatus_value = map[string]int32{ - "SIGNAL_PRICE_STATUS_UNSPECIFIED": 0, - "SIGNAL_PRICE_STATUS_UNSUPPORTED": 1, - "SIGNAL_PRICE_STATUS_UNAVAILABLE": 2, - "SIGNAL_PRICE_STATUS_AVAILABLE": 3, -} - -func (x SignalPriceStatus) String() string { - return proto.EnumName(SignalPriceStatus_name, int32(x)) -} - -func (SignalPriceStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_fc3afe81d3b13674, []int{1} -} - -// Signal is the data structure that contains signal id and power of that signal. -type Signal struct { - // id is the id of the signal. - ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // power is the power of the corresponding signal id. - Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` -} - -func (m *Signal) Reset() { *m = Signal{} } -func (m *Signal) String() string { return proto.CompactTextString(m) } -func (*Signal) ProtoMessage() {} -func (*Signal) Descriptor() ([]byte, []int) { - return fileDescriptor_fc3afe81d3b13674, []int{0} -} -func (m *Signal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Signal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Signal.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Signal) XXX_Merge(src proto.Message) { - xxx_messageInfo_Signal.Merge(m, src) -} -func (m *Signal) XXX_Size() int { - return m.Size() -} -func (m *Signal) XXX_DiscardUnknown() { - xxx_messageInfo_Signal.DiscardUnknown(m) -} - -var xxx_messageInfo_Signal proto.InternalMessageInfo - -func (m *Signal) GetID() string { - if m != nil { - return m.ID - } - return "" -} - -func (m *Signal) GetPower() int64 { - if m != nil { - return m.Power - } - return 0 -} - -// Vote is the data structure that contains array of signals of a voter. -type Vote struct { - // voter is the address of the voter of this signals. - Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"` - // signals is a list of signals submit by the voter. - Signals []Signal `protobuf:"bytes,2,rep,name=signals,proto3" json:"signals"` -} - -func (m *Vote) Reset() { *m = Vote{} } -func (m *Vote) String() string { return proto.CompactTextString(m) } -func (*Vote) ProtoMessage() {} -func (*Vote) Descriptor() ([]byte, []int) { - return fileDescriptor_fc3afe81d3b13674, []int{1} -} -func (m *Vote) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Vote.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Vote) XXX_Merge(src proto.Message) { - xxx_messageInfo_Vote.Merge(m, src) -} -func (m *Vote) XXX_Size() int { - return m.Size() -} -func (m *Vote) XXX_DiscardUnknown() { - xxx_messageInfo_Vote.DiscardUnknown(m) -} - -var xxx_messageInfo_Vote proto.InternalMessageInfo - -func (m *Vote) GetVoter() string { - if m != nil { - return m.Voter - } - return "" -} - -func (m *Vote) GetSignals() []Signal { - if m != nil { - return m.Signals - } - return nil -} - -// Feed is a structure that holds a signal id, its total power, and its calculated interval. -type Feed struct { - // signal_id is the unique string that identifies the unit of feed. - SignalID string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` - // power is the power of the corresponding signal id. - Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` - // interval is the interval of the price feed. - Interval int64 `protobuf:"varint,3,opt,name=interval,proto3" json:"interval,omitempty"` -} - -func (m *Feed) Reset() { *m = Feed{} } -func (m *Feed) String() string { return proto.CompactTextString(m) } -func (*Feed) ProtoMessage() {} -func (*Feed) Descriptor() ([]byte, []int) { - return fileDescriptor_fc3afe81d3b13674, []int{2} -} -func (m *Feed) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Feed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Feed.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Feed) XXX_Merge(src proto.Message) { - xxx_messageInfo_Feed.Merge(m, src) -} -func (m *Feed) XXX_Size() int { - return m.Size() -} -func (m *Feed) XXX_DiscardUnknown() { - xxx_messageInfo_Feed.DiscardUnknown(m) -} - -var xxx_messageInfo_Feed proto.InternalMessageInfo - -func (m *Feed) GetSignalID() string { - if m != nil { - return m.SignalID - } - return "" -} - -func (m *Feed) GetPower() int64 { - if m != nil { - return m.Power - } - return 0 -} - -func (m *Feed) GetInterval() int64 { - if m != nil { - return m.Interval - } - return 0 -} - -// FeedWithDeviation is a structure that holds a signal id, its total power, and its calculated interval and deviation. -type FeedWithDeviation struct { - // signal_id is the unique string that identifies the unit of feed. - SignalID string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` - // power is the power of the corresponding signal id. - Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` - // interval is the interval of the price feed. - Interval int64 `protobuf:"varint,3,opt,name=interval,proto3" json:"interval,omitempty"` - // deviation_basis_point is the maximum deviation value the feed can tolerate, expressed in basis points. - DeviationBasisPoint int64 `protobuf:"varint,4,opt,name=deviation_basis_point,json=deviationBasisPoint,proto3" json:"deviation_basis_point,omitempty"` -} - -func (m *FeedWithDeviation) Reset() { *m = FeedWithDeviation{} } -func (m *FeedWithDeviation) String() string { return proto.CompactTextString(m) } -func (*FeedWithDeviation) ProtoMessage() {} -func (*FeedWithDeviation) Descriptor() ([]byte, []int) { - return fileDescriptor_fc3afe81d3b13674, []int{3} -} -func (m *FeedWithDeviation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FeedWithDeviation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FeedWithDeviation.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *FeedWithDeviation) XXX_Merge(src proto.Message) { - xxx_messageInfo_FeedWithDeviation.Merge(m, src) -} -func (m *FeedWithDeviation) XXX_Size() int { - return m.Size() -} -func (m *FeedWithDeviation) XXX_DiscardUnknown() { - xxx_messageInfo_FeedWithDeviation.DiscardUnknown(m) -} - -var xxx_messageInfo_FeedWithDeviation proto.InternalMessageInfo - -func (m *FeedWithDeviation) GetSignalID() string { - if m != nil { - return m.SignalID - } - return "" -} - -func (m *FeedWithDeviation) GetPower() int64 { - if m != nil { - return m.Power - } - return 0 -} - -func (m *FeedWithDeviation) GetInterval() int64 { - if m != nil { - return m.Interval - } - return 0 -} - -func (m *FeedWithDeviation) GetDeviationBasisPoint() int64 { - if m != nil { - return m.DeviationBasisPoint - } - return 0 -} - -// CurrentFeeds is a structure that holds a list of currently supported feeds, and its last update time and block. -type CurrentFeeds struct { - // feeds is a list of currently supported feeds. - Feeds []Feed `protobuf:"bytes,1,rep,name=feeds,proto3" json:"feeds"` - // last_update_timestamp is the timestamp of the last time supported feeds list is updated. - LastUpdateTimestamp int64 `protobuf:"varint,2,opt,name=last_update_timestamp,json=lastUpdateTimestamp,proto3" json:"last_update_timestamp,omitempty"` - // last_update_block is the number of blocks of the last time supported feeds list is updated. - LastUpdateBlock int64 `protobuf:"varint,3,opt,name=last_update_block,json=lastUpdateBlock,proto3" json:"last_update_block,omitempty"` -} - -func (m *CurrentFeeds) Reset() { *m = CurrentFeeds{} } -func (m *CurrentFeeds) String() string { return proto.CompactTextString(m) } -func (*CurrentFeeds) ProtoMessage() {} -func (*CurrentFeeds) Descriptor() ([]byte, []int) { - return fileDescriptor_fc3afe81d3b13674, []int{4} -} -func (m *CurrentFeeds) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CurrentFeeds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CurrentFeeds.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *CurrentFeeds) XXX_Merge(src proto.Message) { - xxx_messageInfo_CurrentFeeds.Merge(m, src) -} -func (m *CurrentFeeds) XXX_Size() int { - return m.Size() -} -func (m *CurrentFeeds) XXX_DiscardUnknown() { - xxx_messageInfo_CurrentFeeds.DiscardUnknown(m) -} - -var xxx_messageInfo_CurrentFeeds proto.InternalMessageInfo - -func (m *CurrentFeeds) GetFeeds() []Feed { - if m != nil { - return m.Feeds - } - return nil -} - -func (m *CurrentFeeds) GetLastUpdateTimestamp() int64 { - if m != nil { - return m.LastUpdateTimestamp - } - return 0 -} - -func (m *CurrentFeeds) GetLastUpdateBlock() int64 { - if m != nil { - return m.LastUpdateBlock - } - return 0 -} - -// CurrentFeedWithDeviations is a structure that holds a list of currently supported feed-with-deviations, and its -// last update time and block. -type CurrentFeedWithDeviations struct { - // feeds is a list of currently supported feed-with-deviations. - Feeds []FeedWithDeviation `protobuf:"bytes,1,rep,name=feeds,proto3" json:"feeds"` - // last_update_timestamp is the timestamp of the last time supported feeds list is updated. - LastUpdateTimestamp int64 `protobuf:"varint,2,opt,name=last_update_timestamp,json=lastUpdateTimestamp,proto3" json:"last_update_timestamp,omitempty"` - // last_update_block is the number of blocks of the last time supported feeds list is updated. - LastUpdateBlock int64 `protobuf:"varint,3,opt,name=last_update_block,json=lastUpdateBlock,proto3" json:"last_update_block,omitempty"` -} - -func (m *CurrentFeedWithDeviations) Reset() { *m = CurrentFeedWithDeviations{} } -func (m *CurrentFeedWithDeviations) String() string { return proto.CompactTextString(m) } -func (*CurrentFeedWithDeviations) ProtoMessage() {} -func (*CurrentFeedWithDeviations) Descriptor() ([]byte, []int) { - return fileDescriptor_fc3afe81d3b13674, []int{5} -} -func (m *CurrentFeedWithDeviations) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CurrentFeedWithDeviations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CurrentFeedWithDeviations.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *CurrentFeedWithDeviations) XXX_Merge(src proto.Message) { - xxx_messageInfo_CurrentFeedWithDeviations.Merge(m, src) -} -func (m *CurrentFeedWithDeviations) XXX_Size() int { - return m.Size() -} -func (m *CurrentFeedWithDeviations) XXX_DiscardUnknown() { - xxx_messageInfo_CurrentFeedWithDeviations.DiscardUnknown(m) -} - -var xxx_messageInfo_CurrentFeedWithDeviations proto.InternalMessageInfo - -func (m *CurrentFeedWithDeviations) GetFeeds() []FeedWithDeviation { - if m != nil { - return m.Feeds - } - return nil -} - -func (m *CurrentFeedWithDeviations) GetLastUpdateTimestamp() int64 { - if m != nil { - return m.LastUpdateTimestamp - } - return 0 -} - -func (m *CurrentFeedWithDeviations) GetLastUpdateBlock() int64 { - if m != nil { - return m.LastUpdateBlock - } - return 0 -} - // Price is a structure that defines the price of a signal id. type Price struct { // status is the status of a the price. @@ -487,3112 +53,3 @@ type Price struct { func (m *Price) Reset() { *m = Price{} } func (m *Price) String() string { return proto.CompactTextString(m) } func (*Price) ProtoMessage() {} -func (*Price) Descriptor() ([]byte, []int) { - return fileDescriptor_fc3afe81d3b13674, []int{6} -} -func (m *Price) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Price) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Price.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Price) XXX_Merge(src proto.Message) { - xxx_messageInfo_Price.Merge(m, src) -} -func (m *Price) XXX_Size() int { - return m.Size() -} -func (m *Price) XXX_DiscardUnknown() { - xxx_messageInfo_Price.DiscardUnknown(m) -} - -var xxx_messageInfo_Price proto.InternalMessageInfo - -func (m *Price) GetStatus() PriceStatus { - if m != nil { - return m.Status - } - return PRICE_STATUS_UNSPECIFIED -} - -func (m *Price) GetSignalID() string { - if m != nil { - return m.SignalID - } - return "" -} - -func (m *Price) GetPrice() uint64 { - if m != nil { - return m.Price - } - return 0 -} - -func (m *Price) GetTimestamp() int64 { - if m != nil { - return m.Timestamp - } - return 0 -} - -// SignalPrice is a structure that defines the signaled price of a signal id. -type SignalPrice struct { - // status is the status of the signal price. - Status SignalPriceStatus `protobuf:"varint,1,opt,name=status,proto3,enum=band.feeds.v1beta1.SignalPriceStatus" json:"status,omitempty"` - // signal_id is the signal id of the price. - SignalID string `protobuf:"bytes,2,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` - // price is the price submitted by the validator. - Price uint64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` -} - -func (m *SignalPrice) Reset() { *m = SignalPrice{} } -func (m *SignalPrice) String() string { return proto.CompactTextString(m) } -func (*SignalPrice) ProtoMessage() {} -func (*SignalPrice) Descriptor() ([]byte, []int) { - return fileDescriptor_fc3afe81d3b13674, []int{7} -} -func (m *SignalPrice) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SignalPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SignalPrice.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SignalPrice) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalPrice.Merge(m, src) -} -func (m *SignalPrice) XXX_Size() int { - return m.Size() -} -func (m *SignalPrice) XXX_DiscardUnknown() { - xxx_messageInfo_SignalPrice.DiscardUnknown(m) -} - -var xxx_messageInfo_SignalPrice proto.InternalMessageInfo - -func (m *SignalPrice) GetStatus() SignalPriceStatus { - if m != nil { - return m.Status - } - return SIGNAL_PRICE_STATUS_UNSPECIFIED -} - -func (m *SignalPrice) GetSignalID() string { - if m != nil { - return m.SignalID - } - return "" -} - -func (m *SignalPrice) GetPrice() uint64 { - if m != nil { - return m.Price - } - return 0 -} - -// ValidatorPrice is a structure that defines the price submitted by a validator for a signal id. -type ValidatorPrice struct { - // signal_price_status is the status of a signal price submitted. - SignalPriceStatus SignalPriceStatus `protobuf:"varint,1,opt,name=signal_price_status,json=signalPriceStatus,proto3,enum=band.feeds.v1beta1.SignalPriceStatus" json:"signal_price_status,omitempty"` - // signal_id is the signal id of the price. - SignalID string `protobuf:"bytes,2,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` - // price is the price submitted by the validator. - Price uint64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` - // timestamp is the timestamp at which the price was submitted. - Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - // block_height is the block height at which the price was submitted. - BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` -} - -func (m *ValidatorPrice) Reset() { *m = ValidatorPrice{} } -func (m *ValidatorPrice) String() string { return proto.CompactTextString(m) } -func (*ValidatorPrice) ProtoMessage() {} -func (*ValidatorPrice) Descriptor() ([]byte, []int) { - return fileDescriptor_fc3afe81d3b13674, []int{8} -} -func (m *ValidatorPrice) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatorPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValidatorPrice.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ValidatorPrice) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorPrice.Merge(m, src) -} -func (m *ValidatorPrice) XXX_Size() int { - return m.Size() -} -func (m *ValidatorPrice) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorPrice.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatorPrice proto.InternalMessageInfo - -func (m *ValidatorPrice) GetSignalPriceStatus() SignalPriceStatus { - if m != nil { - return m.SignalPriceStatus - } - return SIGNAL_PRICE_STATUS_UNSPECIFIED -} - -func (m *ValidatorPrice) GetSignalID() string { - if m != nil { - return m.SignalID - } - return "" -} - -func (m *ValidatorPrice) GetPrice() uint64 { - if m != nil { - return m.Price - } - return 0 -} - -func (m *ValidatorPrice) GetTimestamp() int64 { - if m != nil { - return m.Timestamp - } - return 0 -} - -func (m *ValidatorPrice) GetBlockHeight() int64 { - if m != nil { - return m.BlockHeight - } - return 0 -} - -// ValidatorPriceList is a structure that holds a list of validator prices of -// a validator and its address. -type ValidatorPriceList struct { - // validator is the validator address. - Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` - // validators_prices is a list of validator prices. - ValidatorPrices []ValidatorPrice `protobuf:"bytes,2,rep,name=validator_prices,json=validatorPrices,proto3" json:"validator_prices"` -} - -func (m *ValidatorPriceList) Reset() { *m = ValidatorPriceList{} } -func (m *ValidatorPriceList) String() string { return proto.CompactTextString(m) } -func (*ValidatorPriceList) ProtoMessage() {} -func (*ValidatorPriceList) Descriptor() ([]byte, []int) { - return fileDescriptor_fc3afe81d3b13674, []int{9} -} -func (m *ValidatorPriceList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatorPriceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValidatorPriceList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ValidatorPriceList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorPriceList.Merge(m, src) -} -func (m *ValidatorPriceList) XXX_Size() int { - return m.Size() -} -func (m *ValidatorPriceList) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorPriceList.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatorPriceList proto.InternalMessageInfo - -func (m *ValidatorPriceList) GetValidator() string { - if m != nil { - return m.Validator - } - return "" -} - -func (m *ValidatorPriceList) GetValidatorPrices() []ValidatorPrice { - if m != nil { - return m.ValidatorPrices - } - return nil -} - -// ReferenceSourceConfig is a structure that defines the information of reference price source. -type ReferenceSourceConfig struct { - // registry_ipfs_hash is the hash of the reference registry. - RegistryIPFSHash string `protobuf:"bytes,1,opt,name=registry_ipfs_hash,json=registryIpfsHash,proto3" json:"registry_ipfs_hash,omitempty"` - // registry_version is the version of the reference registry. - RegistryVersion string `protobuf:"bytes,2,opt,name=registry_version,json=registryVersion,proto3" json:"registry_version,omitempty"` -} - -func (m *ReferenceSourceConfig) Reset() { *m = ReferenceSourceConfig{} } -func (m *ReferenceSourceConfig) String() string { return proto.CompactTextString(m) } -func (*ReferenceSourceConfig) ProtoMessage() {} -func (*ReferenceSourceConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_fc3afe81d3b13674, []int{10} -} -func (m *ReferenceSourceConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReferenceSourceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReferenceSourceConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ReferenceSourceConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReferenceSourceConfig.Merge(m, src) -} -func (m *ReferenceSourceConfig) XXX_Size() int { - return m.Size() -} -func (m *ReferenceSourceConfig) XXX_DiscardUnknown() { - xxx_messageInfo_ReferenceSourceConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_ReferenceSourceConfig proto.InternalMessageInfo - -func (m *ReferenceSourceConfig) GetRegistryIPFSHash() string { - if m != nil { - return m.RegistryIPFSHash - } - return "" -} - -func (m *ReferenceSourceConfig) GetRegistryVersion() string { - if m != nil { - return m.RegistryVersion - } - return "" -} - -// FeedsSignatureOrder defines a general signature order for feed data. -type FeedsSignatureOrder struct { - // signal_ids is the list of signal ids that require signatures. - SignalIDs []string `protobuf:"bytes,1,rep,name=signal_ids,json=signalIds,proto3" json:"signal_ids,omitempty"` - // encoder is the mode of encoding feeds signature order. - Encoder Encoder `protobuf:"varint,2,opt,name=encoder,proto3,enum=band.feeds.v1beta1.Encoder" json:"encoder,omitempty"` -} - -func (m *FeedsSignatureOrder) Reset() { *m = FeedsSignatureOrder{} } -func (m *FeedsSignatureOrder) String() string { return proto.CompactTextString(m) } -func (*FeedsSignatureOrder) ProtoMessage() {} -func (*FeedsSignatureOrder) Descriptor() ([]byte, []int) { - return fileDescriptor_fc3afe81d3b13674, []int{11} -} -func (m *FeedsSignatureOrder) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FeedsSignatureOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FeedsSignatureOrder.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *FeedsSignatureOrder) XXX_Merge(src proto.Message) { - xxx_messageInfo_FeedsSignatureOrder.Merge(m, src) -} -func (m *FeedsSignatureOrder) XXX_Size() int { - return m.Size() -} -func (m *FeedsSignatureOrder) XXX_DiscardUnknown() { - xxx_messageInfo_FeedsSignatureOrder.DiscardUnknown(m) -} - -var xxx_messageInfo_FeedsSignatureOrder proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("band.feeds.v1beta1.PriceStatus", PriceStatus_name, PriceStatus_value) - proto.RegisterEnum("band.feeds.v1beta1.SignalPriceStatus", SignalPriceStatus_name, SignalPriceStatus_value) - proto.RegisterType((*Signal)(nil), "band.feeds.v1beta1.Signal") - proto.RegisterType((*Vote)(nil), "band.feeds.v1beta1.Vote") - proto.RegisterType((*Feed)(nil), "band.feeds.v1beta1.Feed") - proto.RegisterType((*FeedWithDeviation)(nil), "band.feeds.v1beta1.FeedWithDeviation") - proto.RegisterType((*CurrentFeeds)(nil), "band.feeds.v1beta1.CurrentFeeds") - proto.RegisterType((*CurrentFeedWithDeviations)(nil), "band.feeds.v1beta1.CurrentFeedWithDeviations") - proto.RegisterType((*Price)(nil), "band.feeds.v1beta1.Price") - proto.RegisterType((*SignalPrice)(nil), "band.feeds.v1beta1.SignalPrice") - proto.RegisterType((*ValidatorPrice)(nil), "band.feeds.v1beta1.ValidatorPrice") - proto.RegisterType((*ValidatorPriceList)(nil), "band.feeds.v1beta1.ValidatorPriceList") - proto.RegisterType((*ReferenceSourceConfig)(nil), "band.feeds.v1beta1.ReferenceSourceConfig") - proto.RegisterType((*FeedsSignatureOrder)(nil), "band.feeds.v1beta1.FeedsSignatureOrder") -} - -func init() { proto.RegisterFile("band/feeds/v1beta1/feeds.proto", fileDescriptor_fc3afe81d3b13674) } - -var fileDescriptor_fc3afe81d3b13674 = []byte{ - // 989 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x41, 0x6f, 0x1a, 0x47, - 0x14, 0x66, 0x31, 0x76, 0xcc, 0xb3, 0x6b, 0xe3, 0xb1, 0x13, 0x6d, 0x68, 0x02, 0xb6, 0x2b, 0x4b, - 0x8e, 0xd5, 0x80, 0xe2, 0xb4, 0xaa, 0x64, 0xb5, 0xaa, 0xc0, 0xac, 0xeb, 0x55, 0x2d, 0x8c, 0x76, - 0xc1, 0x51, 0x7b, 0x59, 0x2d, 0xec, 0x00, 0xa3, 0xe2, 0x5d, 0x34, 0x33, 0xd0, 0xe4, 0xd6, 0x63, - 0x0e, 0x3d, 0x54, 0xea, 0x1f, 0x88, 0x54, 0xf5, 0xd2, 0x5e, 0x7a, 0xf0, 0x4f, 0xe8, 0x21, 0xc7, - 0x28, 0xa7, 0x9e, 0x50, 0x85, 0x2f, 0xbd, 0xf5, 0x2f, 0x54, 0x3b, 0x33, 0x0b, 0xc6, 0x86, 0x56, - 0xaa, 0x64, 0xe5, 0xc6, 0x7c, 0xdf, 0xf7, 0xf6, 0x7d, 0xef, 0xcd, 0xdb, 0xc7, 0x42, 0xa6, 0xee, - 0xfa, 0x5e, 0xbe, 0x89, 0xb1, 0xc7, 0xf2, 0xfd, 0x27, 0x75, 0xcc, 0xdd, 0x27, 0xf2, 0x94, 0xeb, - 0xd2, 0x80, 0x07, 0x08, 0x85, 0x7c, 0x4e, 0x22, 0x8a, 0x4f, 0xdf, 0x6f, 0x04, 0xec, 0x3c, 0x60, - 0x8e, 0x50, 0xe4, 0xe5, 0x41, 0xca, 0xd3, 0x1b, 0xad, 0xa0, 0x15, 0x48, 0x3c, 0xfc, 0xa5, 0xd0, - 0xcd, 0x29, 0x49, 0xb0, 0xdf, 0x08, 0x3c, 0x4c, 0xa5, 0x62, 0xfb, 0x53, 0x58, 0xb0, 0x49, 0xcb, - 0x77, 0x3b, 0xe8, 0x1e, 0xc4, 0x89, 0xa7, 0x6b, 0x9b, 0xda, 0x6e, 0xb2, 0xb8, 0x30, 0x1c, 0x64, - 0xe3, 0x66, 0xc9, 0x8a, 0x13, 0x0f, 0x6d, 0xc0, 0x7c, 0x37, 0xf8, 0x16, 0x53, 0x3d, 0xbe, 0xa9, - 0xed, 0xce, 0x59, 0xf2, 0x70, 0x90, 0xf8, 0xeb, 0x55, 0x56, 0xdb, 0x7e, 0x0e, 0x89, 0xb3, 0x80, - 0x63, 0x94, 0x83, 0xf9, 0x7e, 0xc0, 0x31, 0x55, 0xe1, 0xfa, 0xdb, 0x8b, 0xc7, 0x1b, 0xca, 0x5e, - 0xc1, 0xf3, 0x28, 0x66, 0xcc, 0xe6, 0x94, 0xf8, 0x2d, 0x4b, 0xca, 0xd0, 0x01, 0xdc, 0x61, 0x22, - 0x2b, 0xd3, 0xe3, 0x9b, 0x73, 0xbb, 0x4b, 0xfb, 0xe9, 0xdc, 0xcd, 0x72, 0x73, 0xd2, 0x58, 0x31, - 0xf1, 0x7a, 0x90, 0x8d, 0x59, 0x51, 0x80, 0xca, 0x4c, 0x20, 0x71, 0x84, 0xb1, 0x87, 0x1e, 0x41, - 0x52, 0x12, 0xce, 0xc8, 0xfc, 0xf2, 0x70, 0x90, 0x5d, 0x94, 0xb1, 0x66, 0xc9, 0x5a, 0x94, 0xb4, - 0x39, 0xa3, 0x10, 0x94, 0x86, 0x45, 0xe2, 0x73, 0x4c, 0xfb, 0x6e, 0x47, 0x9f, 0x13, 0xc4, 0xe8, - 0xac, 0x52, 0xfd, 0xa2, 0xc1, 0x5a, 0x98, 0xeb, 0x19, 0xe1, 0xed, 0x12, 0xee, 0x13, 0x97, 0x93, - 0xc0, 0xbf, 0xd5, 0xc4, 0x68, 0x1f, 0xee, 0x7a, 0x51, 0x26, 0xa7, 0xee, 0x32, 0xc2, 0x9c, 0x6e, - 0x40, 0x7c, 0xae, 0x27, 0x84, 0x70, 0x7d, 0x44, 0x16, 0x43, 0xae, 0x12, 0x52, 0x63, 0xb3, 0xcb, - 0x87, 0x3d, 0x4a, 0xb1, 0xcf, 0x43, 0xcf, 0x0c, 0x7d, 0x04, 0xf3, 0xa2, 0xab, 0xba, 0x26, 0x1a, - 0xad, 0x4f, 0x6b, 0x74, 0xa8, 0x54, 0x6d, 0x96, 0xe2, 0xd0, 0x40, 0xc7, 0x65, 0xdc, 0xe9, 0x75, - 0x3d, 0x97, 0x63, 0x87, 0x93, 0x73, 0xcc, 0xb8, 0x7b, 0xde, 0x55, 0x25, 0xac, 0x87, 0x64, 0x4d, - 0x70, 0xd5, 0x88, 0x42, 0x7b, 0xb0, 0x76, 0x35, 0xa6, 0xde, 0x09, 0x1a, 0xdf, 0xa8, 0xca, 0x56, - 0xc7, 0xfa, 0x62, 0x08, 0x2b, 0xb3, 0xbf, 0x6b, 0x70, 0xff, 0x8a, 0xd9, 0x89, 0x06, 0x33, 0x54, - 0x98, 0x74, 0xbe, 0x33, 0xcb, 0xf9, 0x44, 0xd8, 0xbb, 0x28, 0xe3, 0x67, 0x0d, 0xe6, 0x2b, 0x94, - 0x34, 0x30, 0xfa, 0x04, 0x16, 0x18, 0x77, 0x79, 0x8f, 0x89, 0x89, 0x58, 0xd9, 0xcf, 0x4e, 0xf3, - 0x2c, 0xa4, 0xb6, 0x90, 0x59, 0x4a, 0x3e, 0x39, 0x4d, 0xf1, 0xff, 0x9c, 0xa6, 0xf0, 0x09, 0xc2, - 0x53, 0xc2, 0x92, 0x07, 0xf4, 0x00, 0x92, 0xe3, 0xea, 0xe4, 0x94, 0x8c, 0x01, 0xe5, 0xf3, 0x47, - 0x0d, 0x96, 0xe4, 0x03, 0xa5, 0xdb, 0xcf, 0xae, 0xb9, 0xdd, 0x99, 0xfd, 0x12, 0xde, 0x86, 0x67, - 0xe5, 0xea, 0x6f, 0x0d, 0x56, 0xce, 0xdc, 0x0e, 0xf1, 0x5c, 0x1e, 0x50, 0x69, 0xac, 0x06, 0xeb, - 0xea, 0xc9, 0x42, 0xe8, 0xfc, 0x1f, 0x97, 0x6b, 0xec, 0x3a, 0x74, 0xcb, 0x4d, 0x46, 0x5b, 0xb0, - 0x2c, 0x86, 0xc5, 0x69, 0x63, 0xd2, 0x6a, 0x73, 0x7d, 0x5e, 0x08, 0x96, 0x04, 0x76, 0x2c, 0x20, - 0x55, 0xf1, 0x6f, 0x1a, 0xa0, 0xc9, 0x8a, 0x4f, 0x08, 0xe3, 0xe8, 0x73, 0x48, 0xf6, 0x23, 0x54, - 0x6d, 0x94, 0xad, 0xb7, 0x17, 0x8f, 0x1f, 0xaa, 0x45, 0x3a, 0x8a, 0x98, 0xdc, 0xa8, 0xe3, 0x18, - 0x64, 0x43, 0x6a, 0x74, 0x90, 0x9d, 0x8b, 0xd6, 0xeb, 0xf6, 0xb4, 0x9e, 0x4d, 0x5a, 0x50, 0x2f, - 0xce, 0x6a, 0x7f, 0x02, 0x8d, 0xd6, 0xed, 0xf7, 0x1a, 0xdc, 0xb5, 0x70, 0x13, 0x53, 0xec, 0x37, - 0xb0, 0x1d, 0xf4, 0x68, 0x03, 0x1f, 0x06, 0x7e, 0x93, 0xb4, 0x50, 0x11, 0x10, 0xc5, 0x2d, 0xc2, - 0x38, 0x7d, 0xe1, 0x90, 0x6e, 0x93, 0x39, 0x6d, 0x97, 0xb5, 0x95, 0xfd, 0x8d, 0xe1, 0x20, 0x9b, - 0xb2, 0x14, 0x6b, 0x56, 0x8e, 0xec, 0x63, 0x97, 0xb5, 0xad, 0x54, 0xa4, 0x37, 0xbb, 0x4d, 0x16, - 0x22, 0xe8, 0x11, 0x8c, 0x30, 0xa7, 0x8f, 0x29, 0x23, 0x81, 0x2f, 0xef, 0xc7, 0x5a, 0x8d, 0xf0, - 0x33, 0x09, 0x2b, 0x3b, 0xdf, 0x69, 0xb0, 0x2e, 0xd6, 0x9b, 0xb8, 0x3a, 0xde, 0xa3, 0xf8, 0x94, - 0x7a, 0x98, 0xa2, 0x0f, 0x01, 0x46, 0x37, 0x2c, 0xf7, 0x46, 0xb2, 0xf8, 0xde, 0x70, 0x90, 0x4d, - 0x46, 0x57, 0xcc, 0xac, 0x64, 0x74, 0xc7, 0x0c, 0x7d, 0x0c, 0x77, 0xd4, 0x9f, 0xa1, 0xc8, 0xb6, - 0xb2, 0xff, 0xfe, 0xb4, 0x36, 0x19, 0x52, 0x62, 0x45, 0xda, 0x83, 0xc4, 0xcb, 0x57, 0xd9, 0xd8, - 0xde, 0x85, 0x06, 0x4b, 0x57, 0x87, 0xeb, 0x01, 0xe8, 0x15, 0xcb, 0x3c, 0x34, 0x1c, 0xbb, 0x5a, - 0xa8, 0xd6, 0x6c, 0xa7, 0x56, 0xb6, 0x2b, 0xc6, 0xa1, 0x79, 0x64, 0x1a, 0xa5, 0x54, 0x0c, 0x6d, - 0x43, 0xe6, 0x1a, 0xfb, 0x65, 0xf9, 0xf4, 0x59, 0xd9, 0xb1, 0xcd, 0x2f, 0xca, 0x85, 0x13, 0xc7, - 0x2c, 0xa5, 0x34, 0x94, 0x86, 0x7b, 0x13, 0x9a, 0xf2, 0x69, 0xd5, 0xb1, 0x8c, 0x42, 0xe9, 0xab, - 0x54, 0xfc, 0x06, 0x57, 0x38, 0x2b, 0x98, 0x27, 0x85, 0xe2, 0x89, 0x91, 0x9a, 0x43, 0x3b, 0xb0, - 0x75, 0x23, 0xce, 0x2c, 0x3b, 0x87, 0x35, 0xcb, 0x32, 0xca, 0x55, 0xe7, 0xc8, 0x30, 0x4a, 0x76, - 0x2a, 0x91, 0x4e, 0xbc, 0xfc, 0x29, 0x13, 0xdb, 0xfb, 0x55, 0x83, 0xb5, 0x1b, 0x2f, 0x0b, 0xfa, - 0x00, 0xb2, 0xca, 0xc9, 0xbf, 0xd4, 0x30, 0x5b, 0x54, 0xab, 0x54, 0x4e, 0xad, 0xaa, 0x11, 0x16, - 0x31, 0x53, 0x34, 0x76, 0x1c, 0x47, 0x5b, 0xf0, 0x70, 0x9a, 0xe8, 0x4a, 0x51, 0xd2, 0x6d, 0xf1, - 0xf8, 0xf5, 0x30, 0xa3, 0xbd, 0x19, 0x66, 0xb4, 0x3f, 0x87, 0x19, 0xed, 0x87, 0xcb, 0x4c, 0xec, - 0xcd, 0x65, 0x26, 0xf6, 0xc7, 0x65, 0x26, 0xf6, 0x75, 0xae, 0x45, 0x78, 0xbb, 0x57, 0xcf, 0x35, - 0x82, 0xf3, 0x7c, 0x78, 0x69, 0xe2, 0x6b, 0xa6, 0x11, 0x74, 0xf2, 0x8d, 0xb6, 0x4b, 0xfc, 0x7c, - 0xff, 0x69, 0xfe, 0xb9, 0xfa, 0xee, 0xe1, 0x2f, 0xba, 0x98, 0xd5, 0x17, 0x84, 0xe0, 0xe9, 0x3f, - 0x01, 0x00, 0x00, 0xff, 0xff, 0x4a, 0x51, 0x26, 0xa8, 0x77, 0x09, 0x00, 0x00, -} - -func (this *Signal) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Signal) - if !ok { - that2, ok := that.(Signal) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ID != that1.ID { - return false - } - if this.Power != that1.Power { - return false - } - return true -} -func (this *Vote) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Vote) - if !ok { - that2, ok := that.(Vote) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Voter != that1.Voter { - return false - } - if len(this.Signals) != len(that1.Signals) { - return false - } - for i := range this.Signals { - if !this.Signals[i].Equal(&that1.Signals[i]) { - return false - } - } - return true -} -func (this *Feed) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Feed) - if !ok { - that2, ok := that.(Feed) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.SignalID != that1.SignalID { - return false - } - if this.Power != that1.Power { - return false - } - if this.Interval != that1.Interval { - return false - } - return true -} -func (this *FeedWithDeviation) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*FeedWithDeviation) - if !ok { - that2, ok := that.(FeedWithDeviation) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.SignalID != that1.SignalID { - return false - } - if this.Power != that1.Power { - return false - } - if this.Interval != that1.Interval { - return false - } - if this.DeviationBasisPoint != that1.DeviationBasisPoint { - return false - } - return true -} -func (this *CurrentFeeds) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*CurrentFeeds) - if !ok { - that2, ok := that.(CurrentFeeds) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Feeds) != len(that1.Feeds) { - return false - } - for i := range this.Feeds { - if !this.Feeds[i].Equal(&that1.Feeds[i]) { - return false - } - } - if this.LastUpdateTimestamp != that1.LastUpdateTimestamp { - return false - } - if this.LastUpdateBlock != that1.LastUpdateBlock { - return false - } - return true -} -func (this *CurrentFeedWithDeviations) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*CurrentFeedWithDeviations) - if !ok { - that2, ok := that.(CurrentFeedWithDeviations) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Feeds) != len(that1.Feeds) { - return false - } - for i := range this.Feeds { - if !this.Feeds[i].Equal(&that1.Feeds[i]) { - return false - } - } - if this.LastUpdateTimestamp != that1.LastUpdateTimestamp { - return false - } - if this.LastUpdateBlock != that1.LastUpdateBlock { - return false - } - return true -} -func (this *Price) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Price) - if !ok { - that2, ok := that.(Price) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Status != that1.Status { - return false - } - if this.SignalID != that1.SignalID { - return false - } - if this.Price != that1.Price { - return false - } - if this.Timestamp != that1.Timestamp { - return false - } - return true -} -func (this *SignalPrice) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SignalPrice) - if !ok { - that2, ok := that.(SignalPrice) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Status != that1.Status { - return false - } - if this.SignalID != that1.SignalID { - return false - } - if this.Price != that1.Price { - return false - } - return true -} -func (this *ValidatorPrice) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ValidatorPrice) - if !ok { - that2, ok := that.(ValidatorPrice) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.SignalPriceStatus != that1.SignalPriceStatus { - return false - } - if this.SignalID != that1.SignalID { - return false - } - if this.Price != that1.Price { - return false - } - if this.Timestamp != that1.Timestamp { - return false - } - if this.BlockHeight != that1.BlockHeight { - return false - } - return true -} -func (this *ValidatorPriceList) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ValidatorPriceList) - if !ok { - that2, ok := that.(ValidatorPriceList) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Validator != that1.Validator { - return false - } - if len(this.ValidatorPrices) != len(that1.ValidatorPrices) { - return false - } - for i := range this.ValidatorPrices { - if !this.ValidatorPrices[i].Equal(&that1.ValidatorPrices[i]) { - return false - } - } - return true -} -func (this *ReferenceSourceConfig) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ReferenceSourceConfig) - if !ok { - that2, ok := that.(ReferenceSourceConfig) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.RegistryIPFSHash != that1.RegistryIPFSHash { - return false - } - if this.RegistryVersion != that1.RegistryVersion { - return false - } - return true -} -func (m *Signal) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Signal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Signal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Power != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.Power)) - i-- - dAtA[i] = 0x10 - } - if len(m.ID) > 0 { - i -= len(m.ID) - copy(dAtA[i:], m.ID) - i = encodeVarintFeeds(dAtA, i, uint64(len(m.ID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Vote) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Vote) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Signals) > 0 { - for iNdEx := len(m.Signals) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Signals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintFeeds(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Voter) > 0 { - i -= len(m.Voter) - copy(dAtA[i:], m.Voter) - i = encodeVarintFeeds(dAtA, i, uint64(len(m.Voter))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Feed) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Feed) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Feed) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Interval != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.Interval)) - i-- - dAtA[i] = 0x18 - } - if m.Power != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.Power)) - i-- - dAtA[i] = 0x10 - } - if len(m.SignalID) > 0 { - i -= len(m.SignalID) - copy(dAtA[i:], m.SignalID) - i = encodeVarintFeeds(dAtA, i, uint64(len(m.SignalID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *FeedWithDeviation) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FeedWithDeviation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FeedWithDeviation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DeviationBasisPoint != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.DeviationBasisPoint)) - i-- - dAtA[i] = 0x20 - } - if m.Interval != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.Interval)) - i-- - dAtA[i] = 0x18 - } - if m.Power != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.Power)) - i-- - dAtA[i] = 0x10 - } - if len(m.SignalID) > 0 { - i -= len(m.SignalID) - copy(dAtA[i:], m.SignalID) - i = encodeVarintFeeds(dAtA, i, uint64(len(m.SignalID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CurrentFeeds) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CurrentFeeds) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CurrentFeeds) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LastUpdateBlock != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.LastUpdateBlock)) - i-- - dAtA[i] = 0x18 - } - if m.LastUpdateTimestamp != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.LastUpdateTimestamp)) - i-- - dAtA[i] = 0x10 - } - if len(m.Feeds) > 0 { - for iNdEx := len(m.Feeds) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Feeds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintFeeds(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *CurrentFeedWithDeviations) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CurrentFeedWithDeviations) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CurrentFeedWithDeviations) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LastUpdateBlock != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.LastUpdateBlock)) - i-- - dAtA[i] = 0x18 - } - if m.LastUpdateTimestamp != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.LastUpdateTimestamp)) - i-- - dAtA[i] = 0x10 - } - if len(m.Feeds) > 0 { - for iNdEx := len(m.Feeds) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Feeds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintFeeds(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Price) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Price) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Price) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Timestamp != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x20 - } - if m.Price != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.Price)) - i-- - dAtA[i] = 0x18 - } - if len(m.SignalID) > 0 { - i -= len(m.SignalID) - copy(dAtA[i:], m.SignalID) - i = encodeVarintFeeds(dAtA, i, uint64(len(m.SignalID))) - i-- - dAtA[i] = 0x12 - } - if m.Status != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *SignalPrice) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignalPrice) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignalPrice) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Price != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.Price)) - i-- - dAtA[i] = 0x18 - } - if len(m.SignalID) > 0 { - i -= len(m.SignalID) - copy(dAtA[i:], m.SignalID) - i = encodeVarintFeeds(dAtA, i, uint64(len(m.SignalID))) - i-- - dAtA[i] = 0x12 - } - if m.Status != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ValidatorPrice) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatorPrice) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatorPrice) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.BlockHeight != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.BlockHeight)) - i-- - dAtA[i] = 0x28 - } - if m.Timestamp != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x20 - } - if m.Price != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.Price)) - i-- - dAtA[i] = 0x18 - } - if len(m.SignalID) > 0 { - i -= len(m.SignalID) - copy(dAtA[i:], m.SignalID) - i = encodeVarintFeeds(dAtA, i, uint64(len(m.SignalID))) - i-- - dAtA[i] = 0x12 - } - if m.SignalPriceStatus != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.SignalPriceStatus)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ValidatorPriceList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatorPriceList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatorPriceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ValidatorPrices) > 0 { - for iNdEx := len(m.ValidatorPrices) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ValidatorPrices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintFeeds(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Validator) > 0 { - i -= len(m.Validator) - copy(dAtA[i:], m.Validator) - i = encodeVarintFeeds(dAtA, i, uint64(len(m.Validator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReferenceSourceConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReferenceSourceConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReferenceSourceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RegistryVersion) > 0 { - i -= len(m.RegistryVersion) - copy(dAtA[i:], m.RegistryVersion) - i = encodeVarintFeeds(dAtA, i, uint64(len(m.RegistryVersion))) - i-- - dAtA[i] = 0x12 - } - if len(m.RegistryIPFSHash) > 0 { - i -= len(m.RegistryIPFSHash) - copy(dAtA[i:], m.RegistryIPFSHash) - i = encodeVarintFeeds(dAtA, i, uint64(len(m.RegistryIPFSHash))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *FeedsSignatureOrder) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FeedsSignatureOrder) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FeedsSignatureOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Encoder != 0 { - i = encodeVarintFeeds(dAtA, i, uint64(m.Encoder)) - i-- - dAtA[i] = 0x10 - } - if len(m.SignalIDs) > 0 { - for iNdEx := len(m.SignalIDs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.SignalIDs[iNdEx]) - copy(dAtA[i:], m.SignalIDs[iNdEx]) - i = encodeVarintFeeds(dAtA, i, uint64(len(m.SignalIDs[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintFeeds(dAtA []byte, offset int, v uint64) int { - offset -= sovFeeds(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Signal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ID) - if l > 0 { - n += 1 + l + sovFeeds(uint64(l)) - } - if m.Power != 0 { - n += 1 + sovFeeds(uint64(m.Power)) - } - return n -} - -func (m *Vote) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Voter) - if l > 0 { - n += 1 + l + sovFeeds(uint64(l)) - } - if len(m.Signals) > 0 { - for _, e := range m.Signals { - l = e.Size() - n += 1 + l + sovFeeds(uint64(l)) - } - } - return n -} - -func (m *Feed) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SignalID) - if l > 0 { - n += 1 + l + sovFeeds(uint64(l)) - } - if m.Power != 0 { - n += 1 + sovFeeds(uint64(m.Power)) - } - if m.Interval != 0 { - n += 1 + sovFeeds(uint64(m.Interval)) - } - return n -} - -func (m *FeedWithDeviation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SignalID) - if l > 0 { - n += 1 + l + sovFeeds(uint64(l)) - } - if m.Power != 0 { - n += 1 + sovFeeds(uint64(m.Power)) - } - if m.Interval != 0 { - n += 1 + sovFeeds(uint64(m.Interval)) - } - if m.DeviationBasisPoint != 0 { - n += 1 + sovFeeds(uint64(m.DeviationBasisPoint)) - } - return n -} - -func (m *CurrentFeeds) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Feeds) > 0 { - for _, e := range m.Feeds { - l = e.Size() - n += 1 + l + sovFeeds(uint64(l)) - } - } - if m.LastUpdateTimestamp != 0 { - n += 1 + sovFeeds(uint64(m.LastUpdateTimestamp)) - } - if m.LastUpdateBlock != 0 { - n += 1 + sovFeeds(uint64(m.LastUpdateBlock)) - } - return n -} - -func (m *CurrentFeedWithDeviations) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Feeds) > 0 { - for _, e := range m.Feeds { - l = e.Size() - n += 1 + l + sovFeeds(uint64(l)) - } - } - if m.LastUpdateTimestamp != 0 { - n += 1 + sovFeeds(uint64(m.LastUpdateTimestamp)) - } - if m.LastUpdateBlock != 0 { - n += 1 + sovFeeds(uint64(m.LastUpdateBlock)) - } - return n -} - -func (m *Price) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Status != 0 { - n += 1 + sovFeeds(uint64(m.Status)) - } - l = len(m.SignalID) - if l > 0 { - n += 1 + l + sovFeeds(uint64(l)) - } - if m.Price != 0 { - n += 1 + sovFeeds(uint64(m.Price)) - } - if m.Timestamp != 0 { - n += 1 + sovFeeds(uint64(m.Timestamp)) - } - return n -} - -func (m *SignalPrice) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Status != 0 { - n += 1 + sovFeeds(uint64(m.Status)) - } - l = len(m.SignalID) - if l > 0 { - n += 1 + l + sovFeeds(uint64(l)) - } - if m.Price != 0 { - n += 1 + sovFeeds(uint64(m.Price)) - } - return n -} - -func (m *ValidatorPrice) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SignalPriceStatus != 0 { - n += 1 + sovFeeds(uint64(m.SignalPriceStatus)) - } - l = len(m.SignalID) - if l > 0 { - n += 1 + l + sovFeeds(uint64(l)) - } - if m.Price != 0 { - n += 1 + sovFeeds(uint64(m.Price)) - } - if m.Timestamp != 0 { - n += 1 + sovFeeds(uint64(m.Timestamp)) - } - if m.BlockHeight != 0 { - n += 1 + sovFeeds(uint64(m.BlockHeight)) - } - return n -} - -func (m *ValidatorPriceList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Validator) - if l > 0 { - n += 1 + l + sovFeeds(uint64(l)) - } - if len(m.ValidatorPrices) > 0 { - for _, e := range m.ValidatorPrices { - l = e.Size() - n += 1 + l + sovFeeds(uint64(l)) - } - } - return n -} - -func (m *ReferenceSourceConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RegistryIPFSHash) - if l > 0 { - n += 1 + l + sovFeeds(uint64(l)) - } - l = len(m.RegistryVersion) - if l > 0 { - n += 1 + l + sovFeeds(uint64(l)) - } - return n -} - -func (m *FeedsSignatureOrder) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.SignalIDs) > 0 { - for _, s := range m.SignalIDs { - l = len(s) - n += 1 + l + sovFeeds(uint64(l)) - } - } - if m.Encoder != 0 { - n += 1 + sovFeeds(uint64(m.Encoder)) - } - return n -} - -func sovFeeds(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozFeeds(x uint64) (n int) { - return sovFeeds(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Signal) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Signal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Signal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) - } - m.Power = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Power |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipFeeds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthFeeds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Vote) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Vote: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Vote: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Voter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signals", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Signals = append(m.Signals, Signal{}) - if err := m.Signals[len(m.Signals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipFeeds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthFeeds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Feed) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Feed: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Feed: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignalID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) - } - m.Power = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Power |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) - } - m.Interval = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Interval |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipFeeds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthFeeds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FeedWithDeviation) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FeedWithDeviation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FeedWithDeviation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignalID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) - } - m.Power = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Power |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) - } - m.Interval = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Interval |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeviationBasisPoint", wireType) - } - m.DeviationBasisPoint = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DeviationBasisPoint |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipFeeds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthFeeds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CurrentFeeds) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CurrentFeeds: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CurrentFeeds: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Feeds", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Feeds = append(m.Feeds, Feed{}) - if err := m.Feeds[len(m.Feeds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTimestamp", wireType) - } - m.LastUpdateTimestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastUpdateTimestamp |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateBlock", wireType) - } - m.LastUpdateBlock = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastUpdateBlock |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipFeeds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthFeeds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CurrentFeedWithDeviations) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CurrentFeedWithDeviations: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CurrentFeedWithDeviations: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Feeds", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Feeds = append(m.Feeds, FeedWithDeviation{}) - if err := m.Feeds[len(m.Feeds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTimestamp", wireType) - } - m.LastUpdateTimestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastUpdateTimestamp |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateBlock", wireType) - } - m.LastUpdateBlock = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastUpdateBlock |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipFeeds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthFeeds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Price) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Price: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Price: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= PriceStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignalID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) - } - m.Price = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Price |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - m.Timestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Timestamp |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipFeeds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthFeeds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalPrice) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalPrice: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalPrice: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= SignalPriceStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignalID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) - } - m.Price = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Price |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipFeeds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthFeeds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatorPrice) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatorPrice: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorPrice: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalPriceStatus", wireType) - } - m.SignalPriceStatus = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SignalPriceStatus |= SignalPriceStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignalID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) - } - m.Price = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Price |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - m.Timestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Timestamp |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) - } - m.BlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BlockHeight |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipFeeds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthFeeds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatorPriceList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatorPriceList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorPriceList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Validator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValidatorPrices", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ValidatorPrices = append(m.ValidatorPrices, ValidatorPrice{}) - if err := m.ValidatorPrices[len(m.ValidatorPrices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipFeeds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthFeeds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReferenceSourceConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReferenceSourceConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReferenceSourceConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RegistryIPFSHash", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RegistryIPFSHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RegistryVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RegistryVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipFeeds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthFeeds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FeedsSignatureOrder) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FeedsSignatureOrder: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FeedsSignatureOrder: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalIDs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFeeds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFeeds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignalIDs = append(m.SignalIDs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Encoder", wireType) - } - m.Encoder = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFeeds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Encoder |= Encoder(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipFeeds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthFeeds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipFeeds(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowFeeds - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowFeeds - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowFeeds - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthFeeds - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupFeeds - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthFeeds - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthFeeds = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowFeeds = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupFeeds = fmt.Errorf("proto: unexpected end of group") -) diff --git a/internal/bandchain/tss/error.go b/internal/bandchain/tss/error.go deleted file mode 100644 index a978649..0000000 --- a/internal/bandchain/tss/error.go +++ /dev/null @@ -1,51 +0,0 @@ -package types - -import "fmt" - -// Error represents a TSS error. -type Error struct { - err error - desc string -} - -// NewError creates a new TSS error with the given wrapped error and description. -func NewError(err error, format string, args ...interface{}) *Error { - return &Error{ - err: err, - desc: fmt.Sprintf(format, args...), - } -} - -// Unwrap returns the underlying wrapped error. -func (e *Error) Unwrap() error { - return e.err -} - -// Error returns the string representation of the error. -func (e *Error) Error() string { - return fmt.Sprintf("%s: %s", e.desc, e.err) -} - -// ErrorKind represents a specific kind of TSS error. -type ErrorKind string - -// Error returns the string representation of the ErrorKind. -func (e ErrorKind) Error() string { - return string(e) -} - -// Predefined error kinds -var ( - ErrParseError = ErrorKind("parse error") - ErrInvalidLength = ErrorKind("invalid length") - ErrInvalidOrder = ErrorKind("invalid order") - ErrGenerateKeyPairFailed = ErrorKind("generate key pair failed") - ErrPrivateKeyZero = ErrorKind("private key zero") - ErrNotOnCurve = ErrorKind("not on curve") - ErrInvalidSecretShare = ErrorKind("invalid secret share") - ErrValidSecretShare = ErrorKind("valid secret share") - ErrInvalidSignature = ErrorKind("invalid signature") - ErrNotInOrder = ErrorKind("not in order") - ErrInvalidPubkeyFormat = ErrorKind("invalid pubkey format") - ErrRandomError = ErrorKind("random error") -) diff --git a/internal/bandchain/tss/helpers.go b/internal/bandchain/tss/helpers.go deleted file mode 100644 index 060642a..0000000 --- a/internal/bandchain/tss/helpers.go +++ /dev/null @@ -1,20 +0,0 @@ -package types - -import "github.com/ethereum/go-ethereum/crypto" - -// PaddingBytes pads a byte slice with zero bytes to a specified length. -func PaddingBytes(data []byte, length int) []byte { - if len(data) >= length { - return data - } - - padding := make([]byte, length-len(data)) - return append(padding, data...) -} - -// H(m) -// Hash calculates the Keccak-256 hash of the given data. -// It returns the hash value as a byte slice. -func Hash(data ...[]byte) []byte { - return crypto.Keccak256(data...) -} diff --git a/internal/bandchain/tss/schnorr/complaint_signature.go b/internal/bandchain/tss/schnorr/complaint_signature.go deleted file mode 100644 index a20e3a4..0000000 --- a/internal/bandchain/tss/schnorr/complaint_signature.go +++ /dev/null @@ -1,105 +0,0 @@ -package schnorr - -import ( - "fmt" - - "github.com/decred/dcrd/dcrec/secp256k1/v4" -) - -const ( - // ComplaintSignatureSize is the size of an encoded complaint signature. - ComplaintSignatureSize = 98 -) - -// ComplaintSignature is a type representing a complaint signature. -type ComplaintSignature struct { - A1 secp256k1.JacobianPoint - A2 secp256k1.JacobianPoint - Z secp256k1.ModNScalar -} - -// NewComplaintSignature instantiates a new complaint signature given some a1, a2 and z values. -func NewComplaintSignature( - a1 *secp256k1.JacobianPoint, - a2 *secp256k1.JacobianPoint, - z *secp256k1.ModNScalar, -) *ComplaintSignature { - var signature ComplaintSignature - signature.A1.Set(a1) - signature.A2.Set(a2) - signature.Z.Set(z) - return &signature -} - -// Serialize returns the complaint signature in the more strict format. -// -// The signatures are encoded as: -// -// bytes at 0-32 jacobian point R with z as 1 (A1), encoded by SerializeCompressed of secp256k1.PublicKey -// bytes at 33-65 jacobian point R with z as 1 (A2), encoded by SerializeCompressed of secp256k1.PublicKey -// bytes at 66-97 s, encoded also as big-endian uint256 (Z) -func (signature ComplaintSignature) Serialize() []byte { - // Total length of returned signature is the length of a1, a2 and z. - var b [ComplaintSignatureSize]byte - // Make z = 1 - signature.A1.ToAffine() - signature.A2.ToAffine() - // Copy compressed bytes of A1 to first 33 bytes - bytes := secp256k1.NewPublicKey(&signature.A1.X, &signature.A1.Y).SerializeCompressed() - copy(b[0:33], bytes) - // Copy compressed bytes of A2 to next 33 bytes - bytes = secp256k1.NewPublicKey(&signature.A2.X, &signature.A2.Y).SerializeCompressed() - copy(b[33:66], bytes) - // Copy bytes of S 32 bytes after - signature.Z.PutBytesUnchecked(b[66:98]) - return b[:] -} - -// ParseComplaintSignature parses a signature from bytes -// -// - The a1 component must be in the valid range for secp256k1 field elements -// - The a2 component must be in the valid range for secp256k1 field elements -// - The s component must be in the valid range for secp256k1 scalars -func ParseComplaintSignature(signature []byte) (*ComplaintSignature, error) { - // The signature must be the correct length. - sigLen := len(signature) - if sigLen < ComplaintSignatureSize { - str := fmt.Sprintf("malformed complaint signature: too short: %d < %d", sigLen, - ComplaintSignatureSize) - return nil, signatureError(ErrSigTooShort, str) - } - if sigLen > ComplaintSignatureSize { - str := fmt.Sprintf("malformed complaint signature: too long: %d > %d", sigLen, - ComplaintSignatureSize) - return nil, signatureError(ErrSigTooLong, str) - } - - // The signature is validly encoded at this point, however, enforce - // additional restrictions to ensure a1 and a2 are the valid jacobian point, and z is in - // the range [0, n-1] since valid complaint signatures are required to be in - // that range per spec. - var a1 secp256k1.JacobianPoint - pubKey, err := secp256k1.ParsePubKey(signature[0:33]) - if err != nil { - str := fmt.Sprintf("invalid complaint signature: a1 is not valid: %s", err.Error()) - return nil, signatureError(ErrSigA1TooBig, str) - } - pubKey.AsJacobian(&a1) - - var a2 secp256k1.JacobianPoint - pubKey, err = secp256k1.ParsePubKey(signature[33:66]) - if err != nil { - str := fmt.Sprintf("invalid complaint signature: a2 is not valid: %s", err.Error()) - return nil, signatureError(ErrSigA2TooBig, str) - } - pubKey.AsJacobian(&a2) - - var z secp256k1.ModNScalar - if overflow := z.SetByteSlice(signature[66:98]); overflow { - str := "invalid complaint signature: z >= group order" - return nil, signatureError(ErrSigZTooBig, str) - } - - // Return the complaint signature. - return NewComplaintSignature(&a1, &a2, &z), nil -} diff --git a/internal/bandchain/tss/schnorr/error.go b/internal/bandchain/tss/schnorr/error.go deleted file mode 100644 index 83a4447..0000000 --- a/internal/bandchain/tss/schnorr/error.go +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) 2014 Conformal Systems LLC. -// Copyright (c) 2015-2020 The Decred developers -// Use of this source code is governed by an ISC -// license that can be found in the LICENSE file. - -package schnorr - -// ErrorKind identifies a kind of error. It has full support for errors.Is -// and errors.As, so the caller can directly check against an error kind -// when determining the reason for an error. -type ErrorKind string - -// These constants are used to identify a specific RuleError. -const ( - // ErrSigTooShort is returned when a signature that should be a Schnorr - // signature is too short. - ErrSigTooShort = ErrorKind("ErrSigTooShort") - - // ErrSigTooLong is returned when a signature that should be a Schnorr - // signature is too long. - ErrSigTooLong = ErrorKind("ErrSigTooLong") - - // ErrSigRTooBig is returned when a signature has r with a value that is - // greater than or equal to the prime of the field underlying the group. - ErrSigRTooBig = ErrorKind("ErrSigRTooBig") - - // ErrSigSTooBig is returned when a signature has s with a value that is - // greater than or equal to the group order. - ErrSigSTooBig = ErrorKind("ErrSigSTooBig") - - // ErrSigA1TooBig is returned when a complaint signature has a1 with a value that is - // greater than or equal to the prime of the field underlying the group. - ErrSigA1TooBig = ErrorKind("ErrSigA1TooBig") - - // ErrSigA2TooBig is returned when a complaint signature has a2 with a value that is - // greater than or equal to the prime of the field underlying the group. - ErrSigA2TooBig = ErrorKind("ErrSigA2TooBig") - - // ErrSigZTooBig is returned when a complaint signature has s with a value that is - // greater than or equal to the group order. - ErrSigZTooBig = ErrorKind("ErrSigZTooBig") - - // ErrPrivateKeyZero is returned when a private key is zero. - ErrPrivateKeyZero = ErrorKind("ErrPrivateKeyZero") - - // ErrNotOnCurve is returned when a public key is not on curve. - ErrNotOnCurve = ErrorKind("ErrNotOnCurve") - - // ErrRInfinity is returned when a calculated R is at infinity. - ErrRInfinity = ErrorKind("ErrRInfinity") - - // ErrIncorrectR is returned when a calculated R is not given R. - ErrIncorrectR = ErrorKind("ErrIncorrectR") -) - -// Error satisfies the error interface and prints human-readable errors. -func (e ErrorKind) Error() string { - return string(e) -} - -// Error identifies an error related to a schnorr signature. It has full -// support for errors.Is and errors.As, so the caller can ascertain the -// specific reason for the error by checking the underlying error. -type Error struct { - Err error - Description string -} - -// Error satisfies the error interface and prints human-readable errors. -func (e Error) Error() string { - return e.Description -} - -// Unwrap returns the underlying wrapped error. -func (e Error) Unwrap() error { - return e.Err -} - -// signatureError creates an Error given a set of arguments. -func signatureError(kind ErrorKind, desc string) Error { - return Error{Err: kind, Description: desc} -} diff --git a/internal/bandchain/tss/schnorr/signature.go b/internal/bandchain/tss/schnorr/signature.go deleted file mode 100644 index 88f820a..0000000 --- a/internal/bandchain/tss/schnorr/signature.go +++ /dev/null @@ -1,110 +0,0 @@ -package schnorr - -import ( - "fmt" - - "github.com/decred/dcrd/dcrec/secp256k1/v4" -) - -const ( - // SignatureSize is the size of an encoded Schnorr signature. - SignatureSize = 65 -) - -// RFC6979ExtraDataV0 is the extra data to feed to RFC6979 when generating -// the deterministic nonce for the EC-Schnorr-DCRv0 scheme. This ensures -// the same nonce is not generated for the same message and key as for other -// signing algorithms such as ECDSA. -// -// It is equal to BLAKE-256([]byte("EC-Schnorr-DCRv0")). -var RFC6979ExtraDataV0 = [32]byte{ - 0x0b, 0x75, 0xf9, 0x7b, 0x60, 0xe8, 0xa5, 0x76, - 0x28, 0x76, 0xc0, 0x04, 0x82, 0x9e, 0xe9, 0xb9, - 0x26, 0xfa, 0x6f, 0x0d, 0x2e, 0xea, 0xec, 0x3a, - 0x4f, 0xd1, 0x44, 0x6a, 0x76, 0x83, 0x31, 0xcb, -} - -// Signature is a type representing a Schnorr signature. -type Signature struct { - R secp256k1.JacobianPoint - S secp256k1.ModNScalar -} - -// NewSignature instantiates a new signature given some r and s values. -func NewSignature(r *secp256k1.JacobianPoint, s *secp256k1.ModNScalar) *Signature { - var signature Signature - signature.R.Set(r) - signature.S.Set(s) - return &signature -} - -// Serialize returns the Schnorr signature in the more strict format. -// -// The signatures are encoded as: -// -// bytes at 0-32 jacobian point R with z as 1, encoded by SerializeCompressed of secp256k1.PublicKey -// bytes at 33-64 s, encoded also as big-endian uint256 -func (signature Signature) Serialize() []byte { - // Total length of returned signature is the length of r and s. - var b [SignatureSize]byte - // Make z = 1 - signature.R.ToAffine() - // Copy compressed bytes of R to first 33 bytes - pubKey := secp256k1.NewPublicKey(&signature.R.X, &signature.R.Y).SerializeCompressed() - copy(b[0:33], pubKey) - // Copy bytes of S 32 bytes after - signature.S.PutBytesUnchecked(b[33:65]) - return b[:] -} - -// ParseSignature parses a signature according to the EC-Schnorr-DCRv0 -// specification and enforces the following additional restrictions specific to -// secp256k1: -// -// - The r component must be in the valid range for secp256k1 field elements -// - The s component must be in the valid range for secp256k1 scalars -func ParseSignature(signature []byte) (*Signature, error) { - // The signature must be the correct length. - sigLen := len(signature) - if sigLen < SignatureSize { - str := fmt.Sprintf("malformed signature: too short: %d < %d", sigLen, - SignatureSize) - return nil, signatureError(ErrSigTooShort, str) - } - if sigLen > SignatureSize { - str := fmt.Sprintf("malformed signature: too long: %d > %d", sigLen, - SignatureSize) - return nil, signatureError(ErrSigTooLong, str) - } - - // The signature is validly encoded at this point, however, enforce - // additional restrictions to ensure r is the valid jacobian point, and s is in - // the range [0, n-1] since valid Schnorr signatures are required to be in - // that range per spec. - var r secp256k1.JacobianPoint - pubKey, err := secp256k1.ParsePubKey(signature[0:33]) - if err != nil { - str := fmt.Sprintf("invalid signature: r is not valid: %s", err.Error()) - return nil, signatureError(ErrSigRTooBig, str) - } - pubKey.AsJacobian(&r) - - var s secp256k1.ModNScalar - if overflow := s.SetByteSlice(signature[33:65]); overflow { - str := "invalid signature: s >= group order" - return nil, signatureError(ErrSigSTooBig, str) - } - - // Return the signature. - return NewSignature(&r, &s), nil -} - -// IsEqual compares this Signature instance to the one passed, returning true -// if both Signatures are equivalent. A signature is equivalent to another, if -// they both have the same scalar value for R and S. -// Note: Both R must be affine coordinate. -func (signature Signature) IsEqual(otherSignature *Signature) bool { - return signature.R.X.Equals(&otherSignature.R.X) && signature.R.Y.Equals(&otherSignature.R.Y) && - signature.R.Z.Equals(&otherSignature.R.Z) && - signature.S.Equals(&otherSignature.S) -} diff --git a/internal/bandchain/tss/tss.go b/internal/bandchain/tss/tss.go index 291e121..b3f090b 100644 --- a/internal/bandchain/tss/tss.go +++ b/internal/bandchain/tss/tss.go @@ -1,16 +1,4 @@ -package types - -import ( - "crypto/rand" - "encoding/hex" - "fmt" - "sort" - "strings" - - "github.com/decred/dcrd/dcrec/secp256k1/v4" - - "github.com/bandprotocol/falcon/internal/bandchain/tss/schnorr" -) +package tss // GroupID represents the ID of a group. type GroupID uint64 @@ -26,723 +14,10 @@ type SigningID uint64 // It uses secp256k1.ModNScalar and secp256k1.PrivateKey as a base implementation for serialization and parsing. type Scalar []byte -// NewScalar constructs a Scalar from bytes. -func NewScalar(bytes []byte) (Scalar, error) { - // Create a Scalar from the provided bytes. - scalar := Scalar(bytes) - - // Check the validity of the scalar value. - if err := scalar.Validate(); err != nil { - return nil, NewError(err, "check valid") - } - - return scalar, nil -} - -// NewScalarFromModNScalar parses a secp256k1.ModNScalar into a Scalar. -func NewScalarFromModNScalar(scalar *secp256k1.ModNScalar) Scalar { - bytes := scalar.Bytes() - return bytes[:] -} - -// NewScalarFromPrivateKey parses a secp256k1.PrivateKey into a Scalar. -func NewScalarFromPrivateKey(privKey *secp256k1.PrivateKey) Scalar { - return privKey.Serialize() -} - -// Marshal needed for protobuf compatibility -func (s Scalar) Marshal() ([]byte, error) { - return s, nil -} - -// Unmarshal needed for protobuf compatibility -func (s *Scalar) Unmarshal(data []byte) error { - *s = data - return nil -} - -// MarshalJSON converts the Scalar to its JSON representation. -func (s Scalar) MarshalJSON() ([]byte, error) { - str := strings.ToUpper(hex.EncodeToString(s)) - jbz := make([]byte, len(str)+2) - jbz[0] = '"' - copy(jbz[1:], str) - jbz[len(jbz)-1] = '"' - return jbz, nil -} - -// UnmarshalJSON parses a JSON string into a Scalar. -func (s *Scalar) UnmarshalJSON(data []byte) error { - if len(data) < 2 || data[0] != '"' || data[len(data)-1] != '"' { - return fmt.Errorf("invalid hex string: %s", data) - } - bz2, err := hex.DecodeString(string(data[1 : len(data)-1])) - if err != nil { - return err - } - *s = bz2 - return nil -} - -// Bytes returns the underlying byte slice of the Scalar. -func (s Scalar) Bytes() []byte { - return s -} - -// String returns the hexadecimal representation of the Scalar in uppercase. -func (s Scalar) String() string { - return strings.ToUpper(hex.EncodeToString(s)) -} - -// Validate returns an error if the scalar value is invalid. -func (s Scalar) Validate() error { - // Check the length of the Scalar value. - if len(s) != 32 { - return NewError(ErrInvalidLength, "length: %d != 32", len(s)) - } - - // Set the byte slice value of the Scalar. - var scalar secp256k1.ModNScalar - overflow := scalar.SetByteSlice(s) - - // Check if the Scalar is zero or if there was an overflow. - if scalar.IsZero() || overflow { - return NewError(ErrInvalidOrder, "set bytes") - } - - return nil -} - -// Point converts a Scalar to a Point. -func (s Scalar) Point() Point { - point := s.jacobianPoint() - return NewPointFromJacobianPoint(point) -} - -// modNScalar converts a Scalar back to a secp256k1.ModNScalar. -func (s Scalar) modNScalar() *secp256k1.ModNScalar { - var scalar secp256k1.ModNScalar - scalar.SetByteSlice(s) - - return &scalar -} - -// privateKey converts a Scalar back to a secp256k1.PrivateKey. -func (s Scalar) privateKey() *secp256k1.PrivateKey { - scalar := s.modNScalar() - return secp256k1.NewPrivateKey(scalar) -} - -// publicKey converts a Scalar back to a secp256k1.PublicKey. -func (s Scalar) publicKey() *secp256k1.PublicKey { - return s.privateKey().PubKey() -} - -// jacobianPoint converts a Scalar to a secp256k1.JacobianPoint. -func (s Scalar) jacobianPoint() *secp256k1.JacobianPoint { - // Convert the Scalar to a ModNScalar. - scalar := s.modNScalar() - - // Create a new JacobianPoint by performing scalar base multiplication. - var point secp256k1.JacobianPoint - secp256k1.ScalarBaseMultNonConst(scalar, &point) - point.ToAffine() - - return &point -} - -// Scalars represents a slice of Scalar values. -type Scalars []Scalar - -// modNScalars converts a slice of Scalars into a slice of secp256k1.ModNScalar. -func (ss Scalars) modNScalars() []*secp256k1.ModNScalar { - var scalars []*secp256k1.ModNScalar - for _, s := range ss { - scalar := s.modNScalar() - scalars = append(scalars, scalar) - } - - return scalars -} - -// jacobianPoints converts a slice of Scalars into a slice of secp256k1.JacobianPoint. -func (ss Scalars) jacobianPoints() []*secp256k1.JacobianPoint { - var points []*secp256k1.JacobianPoint - for _, s := range ss { - point := s.jacobianPoint() - points = append(points, point) - } - - return points -} - // Point represents a point (x, y, z) stored as bytes. // It uses secp256k1.JacobianPoint and secp256k1.PublicKey as base implementations for serialization and parsing. type Point []byte -// NewPoint constructs a Point from bytes. -func NewPoint(bytes []byte) (Point, error) { - // Create a Point from the provided bytes. - point := Point(bytes) - - // Check the validity of the point value. - if err := point.Validate(); err != nil { - return nil, NewError(err, "check valid") - } - - return point, nil -} - -// NewPointFromJacobianPoint parses a secp256k1.JacobianPoint into a Point. -func NewPointFromJacobianPoint(point *secp256k1.JacobianPoint) Point { - // Convert the JacobianPoint to affine coordinates. - affinePoint := *point - affinePoint.ToAffine() - - // Serialize the affine coordinates into bytes and create a Point from it. - bytes := secp256k1.NewPublicKey(&affinePoint.X, &affinePoint.Y).SerializeCompressed() - return Point(bytes) -} - -// NewPointFromPublicKey parses a secp256k1.PublicKey into a Point. -func NewPointFromPublicKey(pubKey *secp256k1.PublicKey) Point { - // Serialize the PublicKey into bytes and create a Point from it. - bytes := pubKey.SerializeCompressed() - return Point(bytes) -} - -// Marshal needed for protobuf compatibility -func (p Point) Marshal() ([]byte, error) { - return p, nil -} - -// Unmarshal needed for protobuf compatibility -func (p *Point) Unmarshal(data []byte) error { - *p = data - return nil -} - -// MarshalJSON converts the Point to its JSON representation. -func (p Point) MarshalJSON() ([]byte, error) { - str := strings.ToUpper(hex.EncodeToString(p)) - jbz := make([]byte, len(str)+2) - jbz[0] = '"' - copy(jbz[1:], str) - jbz[len(jbz)-1] = '"' - return jbz, nil -} - -// UnmarshalJSON parses a JSON string into a Point. -func (p *Point) UnmarshalJSON(data []byte) error { - if len(data) < 2 || data[0] != '"' || data[len(data)-1] != '"' { - return fmt.Errorf("invalid hex string: %s", data) - } - bz2, err := hex.DecodeString(string(data[1 : len(data)-1])) - if err != nil { - return err - } - *p = bz2 - return nil -} - -// Bytes returns the underlying byte slice of the Point. -func (p Point) Bytes() []byte { - return p -} - -// String returns the hexadecimal representation of the Point in uppercase. -func (p Point) String() string { - return strings.ToUpper(hex.EncodeToString(p)) -} - -// Validate returns an error if the value is invalid. -func (p Point) Validate() error { - if _, err := p.publicKey(); err != nil { - return NewError(err, "check valid") - } - - return nil -} - -// Address returns an ethereum address of the point -func (p Point) Address() ([]byte, error) { - pubKey, err := p.publicKey() - if err != nil { - return nil, err - } - - paddedPx := PaddingBytes(pubKey.X().Bytes(), 32) - paddedPy := PaddingBytes(pubKey.Y().Bytes(), 32) - return Hash(paddedPx, paddedPy)[12:], nil -} - -// publicKey converts a Point back to a secp256k1.PublicKey. -func (p Point) publicKey() (*secp256k1.PublicKey, error) { - pubKey, err := secp256k1.ParsePubKey(p) - if err != nil { - return nil, NewError(ErrParseError, "%s", err.Error()) - } - - return pubKey, nil -} - -// jacobianPoint converts a Point back to a secp256k1.JacobianPoint. -func (p Point) jacobianPoint() (*secp256k1.JacobianPoint, error) { - pubKey, err := p.publicKey() - if err != nil { - return nil, NewError(err, "parse public key") - } - - var point secp256k1.JacobianPoint - pubKey.AsJacobian(&point) - - return &point, nil -} - -// Points represents a slice of Point values. -type Points []Point - -// jacobianPoints converts a slice of Points into a slice of secp256k1.JacobianPoint. -func (ps Points) jacobianPoints() ([]*secp256k1.JacobianPoint, error) { - var points []*secp256k1.JacobianPoint - for idx, p := range ps { - point, err := p.jacobianPoint() - if err != nil { - return nil, NewError(err, "parse index: %d", idx) - } - - points = append(points, point) - } - - return points, nil -} - // Signature represents a signature (r, s) stored as bytes. // It uses schnorr.Signature as a base implementation for serialization and parsing. type Signature []byte - -// Signatures represents a slice of Signature values. -type Signatures []Signature - -// NewSignature constructs a Signature from bytes. -func NewSignature(bytes []byte) (Signature, error) { - signature := Signature(bytes) - if err := signature.Validate(); err != nil { - return nil, NewError(err, "check valid") - } - - return signature, nil -} - -// NewSignatureFromComponents generates a signature from Point (R) and Scalar (S). -// It returns a Signature and an error, if any. -func NewSignatureFromComponents(rawR Point, rawS Scalar) (Signature, error) { - r, err := rawR.jacobianPoint() - if err != nil { - return nil, NewError(err, "parse r") - } - - s := rawS.modNScalar() - - return NewSignatureFromType(schnorr.NewSignature(r, s)), nil -} - -// NewSignatureFromType parses a schnorr.Signature into a Signature. -func NewSignatureFromType(signature *schnorr.Signature) Signature { - return signature.Serialize() -} - -// Marshal needed for protobuf compatibility -func (s Signature) Marshal() ([]byte, error) { - return s, nil -} - -// Unmarshal needed for protobuf compatibility -func (s *Signature) Unmarshal(data []byte) error { - *s = data - return nil -} - -// MarshalJSON converts the Signature to its JSON representation. -func (s Signature) MarshalJSON() ([]byte, error) { - str := strings.ToUpper(hex.EncodeToString(s)) - jbz := make([]byte, len(str)+2) - jbz[0] = '"' - copy(jbz[1:], str) - jbz[len(jbz)-1] = '"' - return jbz, nil -} - -// UnmarshalJSON parses a JSON string into a Signature. -func (s *Signature) UnmarshalJSON(data []byte) error { - if len(data) < 2 || data[0] != '"' || data[len(data)-1] != '"' { - return fmt.Errorf("invalid hex string: %s", data) - } - bz2, err := hex.DecodeString(string(data[1 : len(data)-1])) - if err != nil { - return err - } - *s = bz2 - return nil -} - -// Bytes returns the underlying byte slice of the Signature. -func (s Signature) Bytes() []byte { - return s -} - -// String returns the hexadecimal representation of the Signature in uppercase. -func (s Signature) String() string { - return strings.ToUpper(hex.EncodeToString(s)) -} - -// Validate returns an error if the value is invalid. -func (s Signature) Validate() error { - if _, err := s.signature(); err != nil { - return err - } - - return nil -} - -// signature converts a Signature to a schnorr.Signature. -func (s Signature) signature() (*schnorr.Signature, error) { - signature, err := schnorr.ParseSignature(s) - if err != nil { - return nil, NewError(ErrParseError, "%s", err.Error()) - } - - return signature, nil -} - -// R returns the R part of the signature. -func (s Signature) R() Point { - if len(s) < 33 { - return []byte{} - } - return Point(s[0:33]) -} - -// S returns the S part of the signature. -func (s Signature) S() Scalar { - if len(s) < 65 { - return []byte{} - } - return Scalar(s[33:65]) -} - -// ComplaintSignature represents a signature (a1, a2, z) stored as bytes. -// It uses schnorr.ComplaintSignature as a base implementation for serialization and parsing. -type ComplaintSignature []byte - -// ComplaintSignatures represents a slice of ComplaintSignature values. -type ComplaintSignatures []ComplaintSignature - -// NewComplaintSignature constructs a ComplaintSignature from bytes. -func NewComplaintSignature(bytes []byte) (ComplaintSignature, error) { - comSignature := ComplaintSignature(bytes) - if err := comSignature.Validate(); err != nil { - return nil, NewError(err, "invalid") - } - - return comSignature, nil -} - -// NewComplaintSignatureFromComponents generates a complaint signature from 2 Points (A1, A2) and Scalar (Z). -// It returns a ComplaintSignature and an error, if any. -func NewComplaintSignatureFromComponents(rawA1 Point, rawA2 Point, rawZ Scalar) (ComplaintSignature, error) { - a1, err := rawA1.jacobianPoint() - if err != nil { - return nil, NewError(err, "parse A1") - } - - a2, err := rawA2.jacobianPoint() - if err != nil { - return nil, NewError(err, "parse A2") - } - - z := rawZ.modNScalar() - - return NewComplaintSignatureFromType(schnorr.NewComplaintSignature(a1, a2, z)), nil -} - -// NewComplaintSignatureFromType parses a schnorr.ComplaintSignature into a ComplaintSignature. -func NewComplaintSignatureFromType(signature *schnorr.ComplaintSignature) ComplaintSignature { - return signature.Serialize() -} - -// Marshal needed for protobuf compatibility -func (cs ComplaintSignature) Marshal() ([]byte, error) { - return cs, nil -} - -// Unmarshal needed for protobuf compatibility -func (cs *ComplaintSignature) Unmarshal(data []byte) error { - *cs = data - return nil -} - -// MarshalJSON converts the ComplaintSignature to its JSON representation. -func (cs ComplaintSignature) MarshalJSON() ([]byte, error) { - str := strings.ToUpper(hex.EncodeToString(cs)) - jbz := make([]byte, len(str)+2) - jbz[0] = '"' - copy(jbz[1:], str) - jbz[len(jbz)-1] = '"' - return jbz, nil -} - -// UnmarshalJSON parses a JSON string into a ComplaintSignature. -func (cs *ComplaintSignature) UnmarshalJSON(data []byte) error { - if len(data) < 2 || data[0] != '"' || data[len(data)-1] != '"' { - return fmt.Errorf("invalid hex string: %s", data) - } - bz2, err := hex.DecodeString(string(data[1 : len(data)-1])) - if err != nil { - return err - } - *cs = bz2 - return nil -} - -// Bytes returns the underlying byte slice of the ComplaintSignature. -func (cs ComplaintSignature) Bytes() []byte { - return cs -} - -// String returns the hexadecimal representation of the ComplaintSignature in uppercase. -func (cs ComplaintSignature) String() string { - return strings.ToUpper(hex.EncodeToString(cs)) -} - -// Validate returns an error if the value is invalid. -func (cs ComplaintSignature) Validate() error { - if _, err := cs.complaintSignature(); err != nil { - return err - } - - return nil -} - -// complaintSignature converts a ComplaintSignature to a schnorr.ComplaintSignature. -func (cs ComplaintSignature) complaintSignature() (*schnorr.ComplaintSignature, error) { - // No need to check error as the caller should validate it first. - signature, err := schnorr.ParseComplaintSignature(cs) - if err != nil { - return nil, NewError(ErrParseError, "%s", err.Error()) - } - - return signature, nil -} - -// A1 returns the A1 part of the complaint signature. -func (cs ComplaintSignature) A1() Point { - if len(cs) < 33 { - return []byte{} - } - return Point(cs[0:33]) -} - -// A2 returns the A2 part of the complaint signature. -func (cs ComplaintSignature) A2() Point { - if len(cs) < 66 { - return []byte{} - } - return Point(cs[33:66]) -} - -// Z returns the Z part of the complaint signature. -func (cs ComplaintSignature) Z() Scalar { - if len(cs) < 98 { - return []byte{} - } - return Scalar(cs[66:98]) -} - -// KeyPair represents a key pair consisting of a private key and a public key. -type KeyPair struct { - PrivKey Scalar - PubKey Point -} - -// KeyPairs represents a slice of KeyPair values. -type KeyPairs []KeyPair - -// CommitmentIDE represents a commitment issued by a participant in the signing process -// -// Fields: -// - ID: A NonZeroScalar identifier for the participant (uint64) -// - D: The hiding nonce commitment is represented by the type Point -// - E: The binding nonce commitment is represented by the type Point -type CommitmentIDE struct { - ID MemberID - D Point - E Point -} - -// CommitmentIDEList is a slice of CommitmentIDE structs. -// -// This type represents a list of commitments issued by each participant in the signing process. -// Each element in the list indicates an identifier and two commitment PublicKey values as a tuple -// . -// -// Please note that this list must be sorted in ascending order by identifier -type CommitmentIDEList []CommitmentIDE - -// Len returns the number of elements in the CommitmentIDEList. -func (b CommitmentIDEList) Len() int { - return len(b) -} - -// Sort sorts the CommitmentIDEList in ascending order by the identifier (ID) of each CommitmentIDE. -// It also checks for repeated elements and returns an error if any are found. -func (b CommitmentIDEList) Sort() error { - sort.Slice(b, func(i, j int) bool { - return b[i].ID < b[j].ID - }) - - for i := 0; i < len(b)-1; i++ { - if b[i].ID == b[i+1].ID { - return fmt.Errorf("CommitmentIDEList: sorting fail because repeated element found at ID = %v", b[i].ID) - } - } - - return nil -} - -// EncSecretShare represents a structure for storing an encrypted secret share. -// It contains the encrypted value `Value` and the corresponding nonce `Nonce` -// used in the Elgamal encryption process. The `Value` field holds the encrypted -// data, and `Nonce` is used to ensure the security and uniqueness of the encryption. -type EncSecretShare []byte - -func NewEncSecretShare(value []byte, nonce []byte) (EncSecretShare, error) { - enc := EncSecretShare(append(value, nonce...)) - if err := enc.Validate(); err != nil { - return nil, err - } - - return enc, nil -} - -// Value return the value part of EncSecretShare -func (e EncSecretShare) Value() []byte { - return e[0:32] -} - -// Nonce return the nonce part of EncSecretShare -func (e EncSecretShare) Nonce() []byte { - return e[32:48] -} - -// Clone creates a deep copy of the EncSecretShare instance. -func (e EncSecretShare) Clone() EncSecretShare { - bz := make([]byte, len(e)) - copy(bz, e) - return bz -} - -// Marshal needed for protobuf compatibility -func (e EncSecretShare) Marshal() ([]byte, error) { - return e, nil -} - -// Unmarshal needed for protobuf compatibility -func (e *EncSecretShare) Unmarshal(data []byte) error { - *e = data - return nil -} - -// MarshalJSON converts the EncSecretShare to its JSON representation. -func (e EncSecretShare) MarshalJSON() ([]byte, error) { - str := strings.ToUpper(hex.EncodeToString(e)) - jbz := make([]byte, len(str)+2) - jbz[0] = '"' - copy(jbz[1:], str) - jbz[len(jbz)-1] = '"' - return jbz, nil -} - -// UnmarshalJSON parses a JSON string into a EncSecretShare. -func (e *EncSecretShare) UnmarshalJSON(data []byte) error { - if len(data) < 2 || data[0] != '"' || data[len(data)-1] != '"' { - return fmt.Errorf("invalid hex string: %s", data) - } - bz2, err := hex.DecodeString(string(data[1 : len(data)-1])) - if err != nil { - return err - } - *e = bz2 - return nil -} - -// Bytes returns the underlying byte slice of the EncSecretShare. -func (e EncSecretShare) Bytes() []byte { - return e -} - -// String returns the hexadecimal representation of the EncSecretShare in uppercase. -func (e EncSecretShare) String() string { - return strings.ToUpper(hex.EncodeToString(e)) -} - -// Validate checks the integrity and validity of the EncSecretShare instance. -// It ensures that the encrypted value and nonce have the correct expected sizes. -func (e EncSecretShare) Validate() error { - if len(e) != 48 { - return fmt.Errorf("EncSecretShare: invalid size") - } - return nil -} - -// EncSecretShares is a slice of EncSecretShare. It's used for storing multiple -// encrypted secret shares. This type is particularly useful when dealing with -// scenarios where multiple pieces of data need to be encrypted, such as in -// threshold cryptography or secure multiparty computations, where each participant -// might have their own encrypted share of a secret. -type EncSecretShares []EncSecretShare - -// Clone creates a deep copy of the EncSecretShares slice. -// It iterates through the slice, cloning each EncSecretShare to ensure -// that modifications to the cloned slice do not affect the original EncSecretShares. -func (es EncSecretShares) Clone() EncSecretShares { - copied := make([]EncSecretShare, len(es)) - for i, e := range es { - copied[i] = e.Clone() - } - return copied -} - -// Validate iterates through each EncSecretShare in the EncSecretShares slice, -// performing validation checks on each EncSecretShare. -func (es EncSecretShares) Validate() error { - var err error - for i, e := range es { - err = e.Validate() - if err != nil { - return NewError(err, "index %d error", i) - } - } - return err -} - -// INonce16Generator defines an interface for generating a 16-byte nonce. -type INonce16Generator interface { - RandBytes16() ([]byte, error) -} - -// DefaultNonce16Generator is a struct that implements the INonce16Generator interface. -// It provides a default mechanism to generate a slice of 16 random bytes. -type DefaultNonce16Generator struct{} - -// RandBytes16 generates a 16-byte random nonce. -// It returns a slice of 16 cryptographically secure random bytes and an error if the random byte -// generation fails. This method satisfies the INonce16Generator interface. -func (dng DefaultNonce16Generator) RandBytes16() ([]byte, error) { - b := make([]byte, 16) - _, err := rand.Read(b) - if err != nil { - return nil, NewError(err, "rand nonce bytes16") - } - return b, nil -} diff --git a/internal/bandchain/tss/tss.pb.go b/internal/bandchain/tss/tss.pb.go index 2006aee..4883506 100644 --- a/internal/bandchain/tss/tss.pb.go +++ b/internal/bandchain/tss/tss.pb.go @@ -1,30 +1,12 @@ -package types +package tss import ( - "bytes" - "fmt" - "io" - "math" - math_bits "math/bits" "time" - github_com_cometbft_cometbft_libs_bytes "github.com/cometbft/cometbft/libs/bytes" + bftbytes "github.com/cometbft/cometbft/libs/bytes" "github.com/cosmos/gogoproto/proto" - github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - // SigningStatus is an enumeration of the possible statuses of a signing. type SigningStatus int32 @@ -57,537 +39,6 @@ func (x SigningStatus) String() string { return proto.EnumName(SigningStatus_name, int32(x)) } -func (SigningStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{0} -} - -// GroupStatus is an enumeration of the possible statuses of a group. -type GroupStatus int32 - -const ( - // GROUP_STATUS_UNSPECIFIED is the status of a group that has not been specified. - GROUP_STATUS_UNSPECIFIED GroupStatus = 0 - // GROUP_STATUS_ROUND_1 is the status of a group that is in the first round of the protocol. - GROUP_STATUS_ROUND_1 GroupStatus = 1 - // GROUP_STATUS_ROUND_2 is the status of a group that is in the second round of the protocol. - GROUP_STATUS_ROUND_2 GroupStatus = 2 - // GROUP_STATUS_ROUND_3 is the status of a group that is in the third round of the protocol. - GROUP_STATUS_ROUND_3 GroupStatus = 3 - // GROUP_STATUS_ACTIVE is the status of a group that is actively participating in the protocol. - GROUP_STATUS_ACTIVE GroupStatus = 4 - // GROUP_STATUS_EXPIRED is the status of a group that has expired in the protocol. - GROUP_STATUS_EXPIRED GroupStatus = 5 - // GROUP_STATUS_FALLEN is the status of a group that has fallen out of the protocol. - GROUP_STATUS_FALLEN GroupStatus = 6 -) - -var GroupStatus_name = map[int32]string{ - 0: "GROUP_STATUS_UNSPECIFIED", - 1: "GROUP_STATUS_ROUND_1", - 2: "GROUP_STATUS_ROUND_2", - 3: "GROUP_STATUS_ROUND_3", - 4: "GROUP_STATUS_ACTIVE", - 5: "GROUP_STATUS_EXPIRED", - 6: "GROUP_STATUS_FALLEN", -} - -var GroupStatus_value = map[string]int32{ - "GROUP_STATUS_UNSPECIFIED": 0, - "GROUP_STATUS_ROUND_1": 1, - "GROUP_STATUS_ROUND_2": 2, - "GROUP_STATUS_ROUND_3": 3, - "GROUP_STATUS_ACTIVE": 4, - "GROUP_STATUS_EXPIRED": 5, - "GROUP_STATUS_FALLEN": 6, -} - -func (x GroupStatus) String() string { - return proto.EnumName(GroupStatus_name, int32(x)) -} - -func (GroupStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{1} -} - -// ComplaintStatus represents the status of a complaint. -type ComplaintStatus int32 - -const ( - // COMPLAINT_STATUS_UNSPECIFIED represents an undefined status of the complaint. - COMPLAINT_STATUS_UNSPECIFIED ComplaintStatus = 0 - // COMPLAINT_STATUS_SUCCESS represents a successful complaint. - COMPLAINT_STATUS_SUCCESS ComplaintStatus = 1 - // COMPLAINT_STATUS_FAILED represents a failed complaint. - COMPLAINT_STATUS_FAILED ComplaintStatus = 2 -) - -var ComplaintStatus_name = map[int32]string{ - 0: "COMPLAINT_STATUS_UNSPECIFIED", - 1: "COMPLAINT_STATUS_SUCCESS", - 2: "COMPLAINT_STATUS_FAILED", -} - -var ComplaintStatus_value = map[string]int32{ - "COMPLAINT_STATUS_UNSPECIFIED": 0, - "COMPLAINT_STATUS_SUCCESS": 1, - "COMPLAINT_STATUS_FAILED": 2, -} - -func (x ComplaintStatus) String() string { - return proto.EnumName(ComplaintStatus_name, int32(x)) -} - -func (ComplaintStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{2} -} - -// Group is a type representing a participant group in a Distributed Key Generation or signing process. -type Group struct { - // id is the unique identifier of the group. - ID GroupID `protobuf:"varint,1,opt,name=id,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"id,omitempty"` - // size is the number of members in the group. - Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - // threshold is the minimum number of members needed to generate a valid signature. - Threshold uint64 `protobuf:"varint,3,opt,name=threshold,proto3" json:"threshold,omitempty"` - // pub_key is the public key generated by the group after successful completion of the DKG process. - PubKey Point `protobuf:"bytes,4,opt,name=pub_key,json=pubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_key,omitempty"` - // status represents the current stage of the group in the DKG or signing process. - Status GroupStatus `protobuf:"varint,5,opt,name=status,proto3,enum=band.tss.v1beta1.GroupStatus" json:"status,omitempty"` - // created_height is the block height when the group was created. - CreatedHeight uint64 `protobuf:"varint,6,opt,name=created_height,json=createdHeight,proto3" json:"created_height,omitempty"` - // module_owner is the module that creates this group. - ModuleOwner string `protobuf:"bytes,7,opt,name=module_owner,json=moduleOwner,proto3" json:"module_owner,omitempty"` -} - -func (m *Group) Reset() { *m = Group{} } -func (m *Group) String() string { return proto.CompactTextString(m) } -func (*Group) ProtoMessage() {} -func (*Group) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{0} -} -func (m *Group) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Group.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Group) XXX_Merge(src proto.Message) { - xxx_messageInfo_Group.Merge(m, src) -} -func (m *Group) XXX_Size() int { - return m.Size() -} -func (m *Group) XXX_DiscardUnknown() { - xxx_messageInfo_Group.DiscardUnknown(m) -} - -var xxx_messageInfo_Group proto.InternalMessageInfo - -func (m *Group) GetID() GroupID { - if m != nil { - return m.ID - } - return 0 -} - -func (m *Group) GetSize_() uint64 { - if m != nil { - return m.Size_ - } - return 0 -} - -func (m *Group) GetThreshold() uint64 { - if m != nil { - return m.Threshold - } - return 0 -} - -func (m *Group) GetPubKey() Point { - if m != nil { - return m.PubKey - } - return nil -} - -func (m *Group) GetStatus() GroupStatus { - if m != nil { - return m.Status - } - return GROUP_STATUS_UNSPECIFIED -} - -func (m *Group) GetCreatedHeight() uint64 { - if m != nil { - return m.CreatedHeight - } - return 0 -} - -func (m *Group) GetModuleOwner() string { - if m != nil { - return m.ModuleOwner - } - return "" -} - -// GroupResult is a tss group result from querying tss group information. -type GroupResult struct { - // group defines the group object containing group information. - Group Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group"` - // dkg_context defines the DKG context data. - DKGContext github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,2,opt,name=dkg_context,json=dkgContext,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"dkg_context,omitempty"` - // members is the list of members in the group. - Members []Member `protobuf:"bytes,3,rep,name=members,proto3" json:"members"` - // round1_infos is the list of Round 1 information. - Round1Infos []Round1Info `protobuf:"bytes,4,rep,name=round1_infos,json=round1Infos,proto3" json:"round1_infos"` - // round2_infos is the list of Round 2 information. - Round2Infos []Round2Info `protobuf:"bytes,5,rep,name=round2_infos,json=round2Infos,proto3" json:"round2_infos"` - // complaints_with_status is the list of complaints with status. - ComplaintsWithStatus []ComplaintsWithStatus `protobuf:"bytes,6,rep,name=complaints_with_status,json=complaintsWithStatus,proto3" json:"complaints_with_status"` - // confirms is the list of confirms. - Confirms []Confirm `protobuf:"bytes,7,rep,name=confirms,proto3" json:"confirms"` -} - -func (m *GroupResult) Reset() { *m = GroupResult{} } -func (m *GroupResult) String() string { return proto.CompactTextString(m) } -func (*GroupResult) ProtoMessage() {} -func (*GroupResult) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{1} -} -func (m *GroupResult) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupResult.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GroupResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupResult.Merge(m, src) -} -func (m *GroupResult) XXX_Size() int { - return m.Size() -} -func (m *GroupResult) XXX_DiscardUnknown() { - xxx_messageInfo_GroupResult.DiscardUnknown(m) -} - -var xxx_messageInfo_GroupResult proto.InternalMessageInfo - -func (m *GroupResult) GetGroup() Group { - if m != nil { - return m.Group - } - return Group{} -} - -func (m *GroupResult) GetDKGContext() github_com_cometbft_cometbft_libs_bytes.HexBytes { - if m != nil { - return m.DKGContext - } - return nil -} - -func (m *GroupResult) GetMembers() []Member { - if m != nil { - return m.Members - } - return nil -} - -func (m *GroupResult) GetRound1Infos() []Round1Info { - if m != nil { - return m.Round1Infos - } - return nil -} - -func (m *GroupResult) GetRound2Infos() []Round2Info { - if m != nil { - return m.Round2Infos - } - return nil -} - -func (m *GroupResult) GetComplaintsWithStatus() []ComplaintsWithStatus { - if m != nil { - return m.ComplaintsWithStatus - } - return nil -} - -func (m *GroupResult) GetConfirms() []Confirm { - if m != nil { - return m.Confirms - } - return nil -} - -// Round1Info contains all necessary information for handling round 1 of the DKG process. -type Round1Info struct { - // member_id is the unique identifier of a group member. - MemberID MemberID `protobuf:"varint,1,opt,name=member_id,json=memberId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"member_id,omitempty"` - // coefficients_commits is a list of commitments to the coefficients of the member's secret polynomial. - CoefficientCommits Points `protobuf:"bytes,2,rep,name=coefficient_commits,json=coefficientCommits,proto3,castrepeated=github.com/bandprotocol/falcon/internal/bandchain/tss.Points" json:"coefficient_commits,omitempty"` - // one_time_pub_key is the one-time public key used by the member to encrypt secret shares. - OneTimePubKey Point `protobuf:"bytes,3,opt,name=one_time_pub_key,json=oneTimePubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"one_time_pub_key,omitempty"` - // a0_signature is the member's signature on the first coefficient of its secret polynomial. - A0Signature Signature `protobuf:"bytes,4,opt,name=a0_signature,json=a0Signature,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Signature" json:"a0_signature,omitempty"` - // one_time_signature is the member's signature on its one-time public key. - OneTimeSignature Signature `protobuf:"bytes,5,opt,name=one_time_signature,json=oneTimeSignature,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Signature" json:"one_time_signature,omitempty"` -} - -func (m *Round1Info) Reset() { *m = Round1Info{} } -func (m *Round1Info) String() string { return proto.CompactTextString(m) } -func (*Round1Info) ProtoMessage() {} -func (*Round1Info) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{2} -} -func (m *Round1Info) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Round1Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Round1Info.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Round1Info) XXX_Merge(src proto.Message) { - xxx_messageInfo_Round1Info.Merge(m, src) -} -func (m *Round1Info) XXX_Size() int { - return m.Size() -} -func (m *Round1Info) XXX_DiscardUnknown() { - xxx_messageInfo_Round1Info.DiscardUnknown(m) -} - -var xxx_messageInfo_Round1Info proto.InternalMessageInfo - -func (m *Round1Info) GetMemberID() MemberID { - if m != nil { - return m.MemberID - } - return 0 -} - -func (m *Round1Info) GetCoefficientCommits() Points { - if m != nil { - return m.CoefficientCommits - } - return nil -} - -func (m *Round1Info) GetOneTimePubKey() Point { - if m != nil { - return m.OneTimePubKey - } - return nil -} - -func (m *Round1Info) GetA0Signature() Signature { - if m != nil { - return m.A0Signature - } - return nil -} - -func (m *Round1Info) GetOneTimeSignature() Signature { - if m != nil { - return m.OneTimeSignature - } - return nil -} - -// Round2Info contains all necessary information for handling round 2 of the DKG process. -type Round2Info struct { - // member_id is the unique identifier of a group member. - MemberID MemberID `protobuf:"varint,1,opt,name=member_id,json=memberId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"member_id,omitempty"` - // encrypted_secret_shares is a list of secret shares encrypted under the public keys of other members. - EncryptedSecretShares EncSecretShares `protobuf:"bytes,2,rep,name=encrypted_secret_shares,json=encryptedSecretShares,proto3,castrepeated=github.com/bandprotocol/falcon/internal/bandchain/tss.EncSecretShares" json:"encrypted_secret_shares,omitempty"` -} - -func (m *Round2Info) Reset() { *m = Round2Info{} } -func (m *Round2Info) String() string { return proto.CompactTextString(m) } -func (*Round2Info) ProtoMessage() {} -func (*Round2Info) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{3} -} -func (m *Round2Info) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Round2Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Round2Info.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Round2Info) XXX_Merge(src proto.Message) { - xxx_messageInfo_Round2Info.Merge(m, src) -} -func (m *Round2Info) XXX_Size() int { - return m.Size() -} -func (m *Round2Info) XXX_DiscardUnknown() { - xxx_messageInfo_Round2Info.DiscardUnknown(m) -} - -var xxx_messageInfo_Round2Info proto.InternalMessageInfo - -func (m *Round2Info) GetMemberID() MemberID { - if m != nil { - return m.MemberID - } - return 0 -} - -func (m *Round2Info) GetEncryptedSecretShares() EncSecretShares { - if m != nil { - return m.EncryptedSecretShares - } - return nil -} - -// DE contains the public parts of a member's decryption and encryption keys. -type DE struct { - // pub_d is the public value of own commitment (D). - PubD Point `protobuf:"bytes,1,opt,name=pub_d,json=pubD,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_d,omitempty"` - // pub_e is the public value of own commitment (E). - PubE Point `protobuf:"bytes,2,opt,name=pub_e,json=pubE,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_e,omitempty"` -} - -func (m *DE) Reset() { *m = DE{} } -func (m *DE) String() string { return proto.CompactTextString(m) } -func (*DE) ProtoMessage() {} -func (*DE) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{4} -} -func (m *DE) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DE) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DE.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DE) XXX_Merge(src proto.Message) { - xxx_messageInfo_DE.Merge(m, src) -} -func (m *DE) XXX_Size() int { - return m.Size() -} -func (m *DE) XXX_DiscardUnknown() { - xxx_messageInfo_DE.DiscardUnknown(m) -} - -var xxx_messageInfo_DE proto.InternalMessageInfo - -func (m *DE) GetPubD() Point { - if m != nil { - return m.PubD - } - return nil -} - -func (m *DE) GetPubE() Point { - if m != nil { - return m.PubE - } - return nil -} - -// DEQueue is a simple queue data structure contains index of existing DE objects of each member. -type DEQueue struct { - // head is the current index of the first element in the queue. - Head uint64 `protobuf:"varint,1,opt,name=head,proto3" json:"head,omitempty"` - // tail is the current index of the last element in the queue. - Tail uint64 `protobuf:"varint,2,opt,name=tail,proto3" json:"tail,omitempty"` -} - -func (m *DEQueue) Reset() { *m = DEQueue{} } -func (m *DEQueue) String() string { return proto.CompactTextString(m) } -func (*DEQueue) ProtoMessage() {} -func (*DEQueue) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{5} -} -func (m *DEQueue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DEQueue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DEQueue.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DEQueue) XXX_Merge(src proto.Message) { - xxx_messageInfo_DEQueue.Merge(m, src) -} -func (m *DEQueue) XXX_Size() int { - return m.Size() -} -func (m *DEQueue) XXX_DiscardUnknown() { - xxx_messageInfo_DEQueue.DiscardUnknown(m) -} - -var xxx_messageInfo_DEQueue proto.InternalMessageInfo - -func (m *DEQueue) GetHead() uint64 { - if m != nil { - return m.Head - } - return 0 -} - -func (m *DEQueue) GetTail() uint64 { - if m != nil { - return m.Tail - } - return 0 -} - // Signing contains all necessary information for handling a signing request. type Signing struct { // id is the unique identifier of the signing. @@ -599,7 +50,7 @@ type Signing struct { // group_pub_key is the public key of the group that sign this message. GroupPubKey Point `protobuf:"bytes,4,opt,name=group_pub_key,json=groupPubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"group_pub_key,omitempty"` // message is the message to be signed. - Message github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,5,opt,name=message,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"message,omitempty"` + Message bftbytes.HexBytes `protobuf:"bytes,5,opt,name=message,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"message,omitempty"` // group_pub_nonce is the public nonce generated by the group for this signing process. GroupPubNonce Point `protobuf:"bytes,6,opt,name=group_pub_nonce,json=groupPubNonce,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"group_pub_nonce,omitempty"` // signature is the group's signature on the message. @@ -612,109 +63,6 @@ type Signing struct { CreatedTimestamp time.Time `protobuf:"bytes,10,opt,name=created_timestamp,json=createdTimestamp,proto3,stdtime" json:"created_timestamp"` } -func (m *Signing) Reset() { *m = Signing{} } -func (m *Signing) String() string { return proto.CompactTextString(m) } -func (*Signing) ProtoMessage() {} -func (*Signing) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{6} -} -func (m *Signing) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Signing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Signing.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Signing) XXX_Merge(src proto.Message) { - xxx_messageInfo_Signing.Merge(m, src) -} -func (m *Signing) XXX_Size() int { - return m.Size() -} -func (m *Signing) XXX_DiscardUnknown() { - xxx_messageInfo_Signing.DiscardUnknown(m) -} - -var xxx_messageInfo_Signing proto.InternalMessageInfo - -func (m *Signing) GetID() SigningID { - if m != nil { - return m.ID - } - return 0 -} - -func (m *Signing) GetCurrentAttempt() uint64 { - if m != nil { - return m.CurrentAttempt - } - return 0 -} - -func (m *Signing) GetGroupID() GroupID { - if m != nil { - return m.GroupID - } - return 0 -} - -func (m *Signing) GetGroupPubKey() Point { - if m != nil { - return m.GroupPubKey - } - return nil -} - -func (m *Signing) GetMessage() github_com_cometbft_cometbft_libs_bytes.HexBytes { - if m != nil { - return m.Message - } - return nil -} - -func (m *Signing) GetGroupPubNonce() Point { - if m != nil { - return m.GroupPubNonce - } - return nil -} - -func (m *Signing) GetSignature() Signature { - if m != nil { - return m.Signature - } - return nil -} - -func (m *Signing) GetStatus() SigningStatus { - if m != nil { - return m.Status - } - return SIGNING_STATUS_UNSPECIFIED -} - -func (m *Signing) GetCreatedHeight() uint64 { - if m != nil { - return m.CreatedHeight - } - return 0 -} - -func (m *Signing) GetCreatedTimestamp() time.Time { - if m != nil { - return m.CreatedTimestamp - } - return time.Time{} -} - // SigningAttempt contains a member that has been assigned to and expiration block height of // the specific attempt. type SigningAttempt struct { @@ -728,67 +76,6 @@ type SigningAttempt struct { AssignedMembers []AssignedMember `protobuf:"bytes,4,rep,name=assigned_members,json=assignedMembers,proto3" json:"assigned_members"` } -func (m *SigningAttempt) Reset() { *m = SigningAttempt{} } -func (m *SigningAttempt) String() string { return proto.CompactTextString(m) } -func (*SigningAttempt) ProtoMessage() {} -func (*SigningAttempt) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{7} -} -func (m *SigningAttempt) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SigningAttempt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SigningAttempt.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SigningAttempt) XXX_Merge(src proto.Message) { - xxx_messageInfo_SigningAttempt.Merge(m, src) -} -func (m *SigningAttempt) XXX_Size() int { - return m.Size() -} -func (m *SigningAttempt) XXX_DiscardUnknown() { - xxx_messageInfo_SigningAttempt.DiscardUnknown(m) -} - -var xxx_messageInfo_SigningAttempt proto.InternalMessageInfo - -func (m *SigningAttempt) GetSigningID() SigningID { - if m != nil { - return m.SigningID - } - return 0 -} - -func (m *SigningAttempt) GetAttempt() uint64 { - if m != nil { - return m.Attempt - } - return 0 -} - -func (m *SigningAttempt) GetExpiredHeight() uint64 { - if m != nil { - return m.ExpiredHeight - } - return 0 -} - -func (m *SigningAttempt) GetAssignedMembers() []AssignedMember { - if m != nil { - return m.AssignedMembers - } - return nil -} - // AssignedMember is a type representing a member that has been assigned to a signing process. type AssignedMember struct { // member_id is the unique identifier of the member. @@ -807,7091 +94,34 @@ type AssignedMember struct { PubNonce Point `protobuf:"bytes,7,opt,name=pub_nonce,json=pubNonce,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_nonce,omitempty"` } -func (m *AssignedMember) Reset() { *m = AssignedMember{} } -func (m *AssignedMember) String() string { return proto.CompactTextString(m) } -func (*AssignedMember) ProtoMessage() {} -func (*AssignedMember) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{8} -} -func (m *AssignedMember) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AssignedMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AssignedMember.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AssignedMember) XXX_Merge(src proto.Message) { - xxx_messageInfo_AssignedMember.Merge(m, src) -} -func (m *AssignedMember) XXX_Size() int { - return m.Size() -} -func (m *AssignedMember) XXX_DiscardUnknown() { - xxx_messageInfo_AssignedMember.DiscardUnknown(m) -} - -var xxx_messageInfo_AssignedMember proto.InternalMessageInfo - -func (m *AssignedMember) GetMemberID() MemberID { - if m != nil { - return m.MemberID - } - return 0 -} - -func (m *AssignedMember) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *AssignedMember) GetPubKey() Point { - if m != nil { - return m.PubKey - } - return nil -} - -func (m *AssignedMember) GetPubD() Point { - if m != nil { - return m.PubD - } - return nil -} - -func (m *AssignedMember) GetPubE() Point { - if m != nil { - return m.PubE - } - return nil -} - -func (m *AssignedMember) GetBindingFactor() Scalar { - if m != nil { - return m.BindingFactor - } - return nil -} - -func (m *AssignedMember) GetPubNonce() Point { - if m != nil { - return m.PubNonce - } - return nil -} - -// PendingSignings is a list of all signing processes that are currently pending. -type PendingSignings struct { - // signing_ids is a list of identifiers for the signing processes. - SigningIds []uint64 `protobuf:"varint,1,rep,packed,name=signing_ids,json=signingIds,proto3" json:"signing_ids,omitempty"` -} - -func (m *PendingSignings) Reset() { *m = PendingSignings{} } -func (m *PendingSignings) String() string { return proto.CompactTextString(m) } -func (*PendingSignings) ProtoMessage() {} -func (*PendingSignings) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{9} -} -func (m *PendingSignings) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PendingSignings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PendingSignings.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PendingSignings) XXX_Merge(src proto.Message) { - xxx_messageInfo_PendingSignings.Merge(m, src) -} -func (m *PendingSignings) XXX_Size() int { - return m.Size() -} -func (m *PendingSignings) XXX_DiscardUnknown() { - xxx_messageInfo_PendingSignings.DiscardUnknown(m) -} - -var xxx_messageInfo_PendingSignings proto.InternalMessageInfo - -func (m *PendingSignings) GetSigningIds() []uint64 { - if m != nil { - return m.SigningIds - } - return nil -} - -// Member is a type representing a member of the group. -type Member struct { - // id is the unique identifier of a member. - ID MemberID `protobuf:"varint,1,opt,name=id,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"id,omitempty"` - // group_id is the group id of this member. - GroupID GroupID `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"group_id,omitempty"` - // address is the address of the member. - Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` - // pub_key is the public key of the member. - PubKey Point `protobuf:"bytes,4,opt,name=pub_key,json=pubKey,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"pub_key,omitempty"` - // is_malicious is a boolean flag indicating whether the member is considered malicious. - IsMalicious bool `protobuf:"varint,5,opt,name=is_malicious,json=isMalicious,proto3" json:"is_malicious,omitempty"` - // is_active is a boolean flag indicating whether the member is currently active in the protocol. - IsActive bool `protobuf:"varint,6,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` -} - -func (m *Member) Reset() { *m = Member{} } -func (m *Member) String() string { return proto.CompactTextString(m) } -func (*Member) ProtoMessage() {} -func (*Member) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{10} -} -func (m *Member) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Member.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Member) XXX_Merge(src proto.Message) { - xxx_messageInfo_Member.Merge(m, src) -} -func (m *Member) XXX_Size() int { - return m.Size() -} -func (m *Member) XXX_DiscardUnknown() { - xxx_messageInfo_Member.DiscardUnknown(m) -} - -var xxx_messageInfo_Member proto.InternalMessageInfo - -func (m *Member) GetID() MemberID { - if m != nil { - return m.ID - } - return 0 -} - -func (m *Member) GetGroupID() GroupID { - if m != nil { - return m.GroupID - } - return 0 -} - -func (m *Member) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *Member) GetPubKey() Point { - if m != nil { - return m.PubKey - } - return nil +// PartialSignature contains information about a member's partial signature. +type PartialSignature struct { + // signing_id is the unique identifier of the signing. + SigningID SigningID `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"signing_id,omitempty"` + // signing_attempt is the number of attempts for this signing. + SigningAttempt uint64 `protobuf:"varint,2,opt,name=signing_attempt,json=signingAttempt,proto3" json:"signing_attempt,omitempty"` + // member_id is the identifier of the member providing the partial signature. + MemberID MemberID `protobuf:"varint,3,opt,name=member_id,json=memberId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"member_id,omitempty"` + // signature is the partial signature provided by this member. + Signature Signature `protobuf:"bytes,4,opt,name=signature,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Signature" json:"signature,omitempty"` } -func (m *Member) GetIsMalicious() bool { - if m != nil { - return m.IsMalicious - } - return false +// EVMSignature defines a signature in the EVM format. +type EVMSignature struct { + // r_address is the address of the nonce for using in the contract. + RAddress bftbytes.HexBytes `protobuf:"bytes,1,opt,name=r_address,json=rAddress,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"r_address,omitempty"` + // signature is the signature part for using in the contract. + Signature bftbytes.HexBytes `protobuf:"bytes,2,opt,name=signature,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"signature,omitempty"` } -func (m *Member) GetIsActive() bool { - if m != nil { - return m.IsActive - } - return false +// SigningResult is a tss signing result from querying tss signing information. +type SigningResult struct { + // signing is the tss signing result. + Signing Signing `protobuf:"bytes,1,opt,name=signing,proto3" json:"signing"` + // current_signing_attempt is the current attempt information of the signing. + CurrentSigningAttempt *SigningAttempt `protobuf:"bytes,2,opt,name=current_signing_attempt,json=currentSigningAttempt,proto3" json:"current_signing_attempt,omitempty"` + // evm_signature is the signature in the format that can use directly in EVM. + EVMSignature *EVMSignature `protobuf:"bytes,3,opt,name=evm_signature,json=evmSignature,proto3" json:"evm_signature,omitempty"` + // received_partial_signatures is a list of received partial signatures. + ReceivedPartialSignatures []PartialSignature `protobuf:"bytes,4,rep,name=received_partial_signatures,json=receivedPartialSignatures,proto3" json:"received_partial_signatures"` } - -// Confirm is a message type used to confirm participation in the protocol. -type Confirm struct { - // member_id is the unique identifier of a group member. - MemberID MemberID `protobuf:"varint,1,opt,name=member_id,json=memberId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"member_id,omitempty"` - // own_pub_key_sig is a signature over the member's own public key. - OwnPubKeySig Signature `protobuf:"bytes,2,opt,name=own_pub_key_sig,json=ownPubKeySig,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Signature" json:"own_pub_key_sig,omitempty"` -} - -func (m *Confirm) Reset() { *m = Confirm{} } -func (m *Confirm) String() string { return proto.CompactTextString(m) } -func (*Confirm) ProtoMessage() {} -func (*Confirm) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{11} -} -func (m *Confirm) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Confirm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Confirm.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Confirm) XXX_Merge(src proto.Message) { - xxx_messageInfo_Confirm.Merge(m, src) -} -func (m *Confirm) XXX_Size() int { - return m.Size() -} -func (m *Confirm) XXX_DiscardUnknown() { - xxx_messageInfo_Confirm.DiscardUnknown(m) -} - -var xxx_messageInfo_Confirm proto.InternalMessageInfo - -func (m *Confirm) GetMemberID() MemberID { - if m != nil { - return m.MemberID - } - return 0 -} - -func (m *Confirm) GetOwnPubKeySig() Signature { - if m != nil { - return m.OwnPubKeySig - } - return nil -} - -// Complaint is a message type used to issue a complaint against a member. -type Complaint struct { - // complainant is the member issuing the complaint. - Complainant MemberID `protobuf:"varint,1,opt,name=complainant,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"complainant,omitempty"` - // respondent is the member against whom the complaint is issued. - Respondent MemberID `protobuf:"varint,2,opt,name=respondent,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"respondent,omitempty"` - // key_sym is a symmetric key between respondent's private key and respondent's public key. - KeySym Point `protobuf:"bytes,3,opt,name=key_sym,json=keySym,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Point" json:"key_sym,omitempty"` - // signature is the complaint signature that can do a symmetric key validation and complaint verification. - Signature ComplaintSignature `protobuf:"bytes,4,opt,name=signature,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.ComplaintSignature" json:"signature,omitempty"` -} - -func (m *Complaint) Reset() { *m = Complaint{} } -func (m *Complaint) String() string { return proto.CompactTextString(m) } -func (*Complaint) ProtoMessage() {} -func (*Complaint) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{12} -} -func (m *Complaint) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Complaint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Complaint.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Complaint) XXX_Merge(src proto.Message) { - xxx_messageInfo_Complaint.Merge(m, src) -} -func (m *Complaint) XXX_Size() int { - return m.Size() -} -func (m *Complaint) XXX_DiscardUnknown() { - xxx_messageInfo_Complaint.DiscardUnknown(m) -} - -var xxx_messageInfo_Complaint proto.InternalMessageInfo - -func (m *Complaint) GetComplainant() MemberID { - if m != nil { - return m.Complainant - } - return 0 -} - -func (m *Complaint) GetRespondent() MemberID { - if m != nil { - return m.Respondent - } - return 0 -} - -func (m *Complaint) GetKeySym() Point { - if m != nil { - return m.KeySym - } - return nil -} - -func (m *Complaint) GetSignature() ComplaintSignature { - if m != nil { - return m.Signature - } - return nil -} - -// ComplaintWithStatus contains information about a complaint with its status. -type ComplaintWithStatus struct { - // complaint is the information about the complaint. - Complaint Complaint `protobuf:"bytes,1,opt,name=complaint,proto3" json:"complaint"` - // complaint_status is the status of the complaint. - ComplaintStatus ComplaintStatus `protobuf:"varint,2,opt,name=complaint_status,json=complaintStatus,proto3,enum=band.tss.v1beta1.ComplaintStatus" json:"complaint_status,omitempty"` -} - -func (m *ComplaintWithStatus) Reset() { *m = ComplaintWithStatus{} } -func (m *ComplaintWithStatus) String() string { return proto.CompactTextString(m) } -func (*ComplaintWithStatus) ProtoMessage() {} -func (*ComplaintWithStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{13} -} -func (m *ComplaintWithStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ComplaintWithStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ComplaintWithStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ComplaintWithStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ComplaintWithStatus.Merge(m, src) -} -func (m *ComplaintWithStatus) XXX_Size() int { - return m.Size() -} -func (m *ComplaintWithStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ComplaintWithStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ComplaintWithStatus proto.InternalMessageInfo - -func (m *ComplaintWithStatus) GetComplaint() Complaint { - if m != nil { - return m.Complaint - } - return Complaint{} -} - -func (m *ComplaintWithStatus) GetComplaintStatus() ComplaintStatus { - if m != nil { - return m.ComplaintStatus - } - return COMPLAINT_STATUS_UNSPECIFIED -} - -// ComplaintsWithStatus contains information about multiple complaints and their status from a single member. -type ComplaintsWithStatus struct { - // member_id is the identifier of the member filing the complaints. - MemberID MemberID `protobuf:"varint,1,opt,name=member_id,json=memberId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"member_id,omitempty"` - // complaints_with_status is the list of complaints with their status from this member. - ComplaintsWithStatus []ComplaintWithStatus `protobuf:"bytes,2,rep,name=complaints_with_status,json=complaintsWithStatus,proto3" json:"complaints_with_status"` -} - -func (m *ComplaintsWithStatus) Reset() { *m = ComplaintsWithStatus{} } -func (m *ComplaintsWithStatus) String() string { return proto.CompactTextString(m) } -func (*ComplaintsWithStatus) ProtoMessage() {} -func (*ComplaintsWithStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{14} -} -func (m *ComplaintsWithStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ComplaintsWithStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ComplaintsWithStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ComplaintsWithStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ComplaintsWithStatus.Merge(m, src) -} -func (m *ComplaintsWithStatus) XXX_Size() int { - return m.Size() -} -func (m *ComplaintsWithStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ComplaintsWithStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ComplaintsWithStatus proto.InternalMessageInfo - -func (m *ComplaintsWithStatus) GetMemberID() MemberID { - if m != nil { - return m.MemberID - } - return 0 -} - -func (m *ComplaintsWithStatus) GetComplaintsWithStatus() []ComplaintWithStatus { - if m != nil { - return m.ComplaintsWithStatus - } - return nil -} - -// PendingProcessGroups is a list of groups that are waiting to be processed. -type PendingProcessGroups struct { - // group_ids is a list of group IDs. - GroupIDs []GroupID `protobuf:"varint,1,rep,packed,name=group_ids,json=groupIds,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.GroupID" json:"group_ids,omitempty"` -} - -func (m *PendingProcessGroups) Reset() { *m = PendingProcessGroups{} } -func (m *PendingProcessGroups) String() string { return proto.CompactTextString(m) } -func (*PendingProcessGroups) ProtoMessage() {} -func (*PendingProcessGroups) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{15} -} -func (m *PendingProcessGroups) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PendingProcessGroups) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PendingProcessGroups.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PendingProcessGroups) XXX_Merge(src proto.Message) { - xxx_messageInfo_PendingProcessGroups.Merge(m, src) -} -func (m *PendingProcessGroups) XXX_Size() int { - return m.Size() -} -func (m *PendingProcessGroups) XXX_DiscardUnknown() { - xxx_messageInfo_PendingProcessGroups.DiscardUnknown(m) -} - -var xxx_messageInfo_PendingProcessGroups proto.InternalMessageInfo - -func (m *PendingProcessGroups) GetGroupIDs() []GroupID { - if m != nil { - return m.GroupIDs - } - return nil -} - -// PendingProcessSignigns is a list of signings that are waiting to be processed. -type PendingProcessSignings struct { - // signing_ids is a list of signing IDs. - SigningIDs []SigningID `protobuf:"varint,1,rep,packed,name=signing_ids,json=signingIds,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"signing_ids,omitempty"` -} - -func (m *PendingProcessSignings) Reset() { *m = PendingProcessSignings{} } -func (m *PendingProcessSignings) String() string { return proto.CompactTextString(m) } -func (*PendingProcessSignings) ProtoMessage() {} -func (*PendingProcessSignings) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{16} -} -func (m *PendingProcessSignings) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PendingProcessSignings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PendingProcessSignings.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PendingProcessSignings) XXX_Merge(src proto.Message) { - xxx_messageInfo_PendingProcessSignings.Merge(m, src) -} -func (m *PendingProcessSignings) XXX_Size() int { - return m.Size() -} -func (m *PendingProcessSignings) XXX_DiscardUnknown() { - xxx_messageInfo_PendingProcessSignings.DiscardUnknown(m) -} - -var xxx_messageInfo_PendingProcessSignings proto.InternalMessageInfo - -func (m *PendingProcessSignings) GetSigningIDs() []SigningID { - if m != nil { - return m.SigningIDs - } - return nil -} - -// PartialSignature contains information about a member's partial signature. -type PartialSignature struct { - // signing_id is the unique identifier of the signing. - SigningID SigningID `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"signing_id,omitempty"` - // signing_attempt is the number of attempts for this signing. - SigningAttempt uint64 `protobuf:"varint,2,opt,name=signing_attempt,json=signingAttempt,proto3" json:"signing_attempt,omitempty"` - // member_id is the identifier of the member providing the partial signature. - MemberID MemberID `protobuf:"varint,3,opt,name=member_id,json=memberId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.MemberID" json:"member_id,omitempty"` - // signature is the partial signature provided by this member. - Signature Signature `protobuf:"bytes,4,opt,name=signature,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.Signature" json:"signature,omitempty"` -} - -func (m *PartialSignature) Reset() { *m = PartialSignature{} } -func (m *PartialSignature) String() string { return proto.CompactTextString(m) } -func (*PartialSignature) ProtoMessage() {} -func (*PartialSignature) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{17} -} -func (m *PartialSignature) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PartialSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PartialSignature.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PartialSignature) XXX_Merge(src proto.Message) { - xxx_messageInfo_PartialSignature.Merge(m, src) -} -func (m *PartialSignature) XXX_Size() int { - return m.Size() -} -func (m *PartialSignature) XXX_DiscardUnknown() { - xxx_messageInfo_PartialSignature.DiscardUnknown(m) -} - -var xxx_messageInfo_PartialSignature proto.InternalMessageInfo - -func (m *PartialSignature) GetSigningID() SigningID { - if m != nil { - return m.SigningID - } - return 0 -} - -func (m *PartialSignature) GetSigningAttempt() uint64 { - if m != nil { - return m.SigningAttempt - } - return 0 -} - -func (m *PartialSignature) GetMemberID() MemberID { - if m != nil { - return m.MemberID - } - return 0 -} - -func (m *PartialSignature) GetSignature() Signature { - if m != nil { - return m.Signature - } - return nil -} - -// TextSignatureOrder defines a general text signature order. -type TextSignatureOrder struct { - // message is the data that needs to be signed. - Message github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,1,opt,name=message,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"message,omitempty"` -} - -func (m *TextSignatureOrder) Reset() { *m = TextSignatureOrder{} } -func (m *TextSignatureOrder) String() string { return proto.CompactTextString(m) } -func (*TextSignatureOrder) ProtoMessage() {} -func (*TextSignatureOrder) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{18} -} -func (m *TextSignatureOrder) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TextSignatureOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TextSignatureOrder.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *TextSignatureOrder) XXX_Merge(src proto.Message) { - xxx_messageInfo_TextSignatureOrder.Merge(m, src) -} -func (m *TextSignatureOrder) XXX_Size() int { - return m.Size() -} -func (m *TextSignatureOrder) XXX_DiscardUnknown() { - xxx_messageInfo_TextSignatureOrder.DiscardUnknown(m) -} - -var xxx_messageInfo_TextSignatureOrder proto.InternalMessageInfo - -func (m *TextSignatureOrder) GetMessage() github_com_cometbft_cometbft_libs_bytes.HexBytes { - if m != nil { - return m.Message - } - return nil -} - -// EVMSignature defines a signature in the EVM format. -type EVMSignature struct { - // r_address is the address of the nonce for using in the contract. - RAddress github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,1,opt,name=r_address,json=rAddress,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"r_address,omitempty"` - // signature is the signature part for using in the contract. - Signature github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,2,opt,name=signature,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"signature,omitempty"` -} - -func (m *EVMSignature) Reset() { *m = EVMSignature{} } -func (m *EVMSignature) String() string { return proto.CompactTextString(m) } -func (*EVMSignature) ProtoMessage() {} -func (*EVMSignature) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{19} -} -func (m *EVMSignature) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EVMSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EVMSignature.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *EVMSignature) XXX_Merge(src proto.Message) { - xxx_messageInfo_EVMSignature.Merge(m, src) -} -func (m *EVMSignature) XXX_Size() int { - return m.Size() -} -func (m *EVMSignature) XXX_DiscardUnknown() { - xxx_messageInfo_EVMSignature.DiscardUnknown(m) -} - -var xxx_messageInfo_EVMSignature proto.InternalMessageInfo - -func (m *EVMSignature) GetRAddress() github_com_cometbft_cometbft_libs_bytes.HexBytes { - if m != nil { - return m.RAddress - } - return nil -} - -func (m *EVMSignature) GetSignature() github_com_cometbft_cometbft_libs_bytes.HexBytes { - if m != nil { - return m.Signature - } - return nil -} - -// SigningResult is a tss signing result from querying tss signing information. -type SigningResult struct { - // signing is the tss signing result. - Signing Signing `protobuf:"bytes,1,opt,name=signing,proto3" json:"signing"` - // current_signing_attempt is the current attempt information of the signing. - CurrentSigningAttempt *SigningAttempt `protobuf:"bytes,2,opt,name=current_signing_attempt,json=currentSigningAttempt,proto3" json:"current_signing_attempt,omitempty"` - // evm_signature is the signature in the format that can use directly in EVM. - EVMSignature *EVMSignature `protobuf:"bytes,3,opt,name=evm_signature,json=evmSignature,proto3" json:"evm_signature,omitempty"` - // received_partial_signatures is a list of received partial signatures. - ReceivedPartialSignatures []PartialSignature `protobuf:"bytes,4,rep,name=received_partial_signatures,json=receivedPartialSignatures,proto3" json:"received_partial_signatures"` -} - -func (m *SigningResult) Reset() { *m = SigningResult{} } -func (m *SigningResult) String() string { return proto.CompactTextString(m) } -func (*SigningResult) ProtoMessage() {} -func (*SigningResult) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{20} -} -func (m *SigningResult) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SigningResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SigningResult.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SigningResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_SigningResult.Merge(m, src) -} -func (m *SigningResult) XXX_Size() int { - return m.Size() -} -func (m *SigningResult) XXX_DiscardUnknown() { - xxx_messageInfo_SigningResult.DiscardUnknown(m) -} - -var xxx_messageInfo_SigningResult proto.InternalMessageInfo - -func (m *SigningResult) GetSigning() Signing { - if m != nil { - return m.Signing - } - return Signing{} -} - -func (m *SigningResult) GetCurrentSigningAttempt() *SigningAttempt { - if m != nil { - return m.CurrentSigningAttempt - } - return nil -} - -func (m *SigningResult) GetEVMSignature() *EVMSignature { - if m != nil { - return m.EVMSignature - } - return nil -} - -func (m *SigningResult) GetReceivedPartialSignatures() []PartialSignature { - if m != nil { - return m.ReceivedPartialSignatures - } - return nil -} - -// SigningExpiration defines the expiration time of the signing. -type SigningExpiration struct { - // signing_id is the id of the signing. - SigningID SigningID `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/tss.SigningID" json:"signing_id,omitempty"` - // signing_attempt is the number of attempts of the signing. - SigningAttempt uint64 `protobuf:"varint,2,opt,name=signing_attempt,json=signingAttempt,proto3" json:"signing_attempt,omitempty"` -} - -func (m *SigningExpiration) Reset() { *m = SigningExpiration{} } -func (m *SigningExpiration) String() string { return proto.CompactTextString(m) } -func (*SigningExpiration) ProtoMessage() {} -func (*SigningExpiration) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{21} -} -func (m *SigningExpiration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SigningExpiration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SigningExpiration.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SigningExpiration) XXX_Merge(src proto.Message) { - xxx_messageInfo_SigningExpiration.Merge(m, src) -} -func (m *SigningExpiration) XXX_Size() int { - return m.Size() -} -func (m *SigningExpiration) XXX_DiscardUnknown() { - xxx_messageInfo_SigningExpiration.DiscardUnknown(m) -} - -var xxx_messageInfo_SigningExpiration proto.InternalMessageInfo - -func (m *SigningExpiration) GetSigningID() SigningID { - if m != nil { - return m.SigningID - } - return 0 -} - -func (m *SigningExpiration) GetSigningAttempt() uint64 { - if m != nil { - return m.SigningAttempt - } - return 0 -} - -// SigningExpirations is a list of signing expiration information that are waiting in the queue. -type SigningExpirations struct { - // signing_expirations is a list of SigningExpiration object. - SigningExpirations []SigningExpiration `protobuf:"bytes,1,rep,name=signing_expirations,json=signingExpirations,proto3" json:"signing_expirations"` -} - -func (m *SigningExpirations) Reset() { *m = SigningExpirations{} } -func (m *SigningExpirations) String() string { return proto.CompactTextString(m) } -func (*SigningExpirations) ProtoMessage() {} -func (*SigningExpirations) Descriptor() ([]byte, []int) { - return fileDescriptor_26231ff63bcc8f4b, []int{22} -} -func (m *SigningExpirations) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SigningExpirations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SigningExpirations.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SigningExpirations) XXX_Merge(src proto.Message) { - xxx_messageInfo_SigningExpirations.Merge(m, src) -} -func (m *SigningExpirations) XXX_Size() int { - return m.Size() -} -func (m *SigningExpirations) XXX_DiscardUnknown() { - xxx_messageInfo_SigningExpirations.DiscardUnknown(m) -} - -var xxx_messageInfo_SigningExpirations proto.InternalMessageInfo - -func (m *SigningExpirations) GetSigningExpirations() []SigningExpiration { - if m != nil { - return m.SigningExpirations - } - return nil -} - -func init() { - proto.RegisterEnum("band.tss.v1beta1.SigningStatus", SigningStatus_name, SigningStatus_value) - proto.RegisterEnum("band.tss.v1beta1.GroupStatus", GroupStatus_name, GroupStatus_value) - proto.RegisterEnum("band.tss.v1beta1.ComplaintStatus", ComplaintStatus_name, ComplaintStatus_value) - proto.RegisterType((*Group)(nil), "band.tss.v1beta1.Group") - proto.RegisterType((*GroupResult)(nil), "band.tss.v1beta1.GroupResult") - proto.RegisterType((*Round1Info)(nil), "band.tss.v1beta1.Round1Info") - proto.RegisterType((*Round2Info)(nil), "band.tss.v1beta1.Round2Info") - proto.RegisterType((*DE)(nil), "band.tss.v1beta1.DE") - proto.RegisterType((*DEQueue)(nil), "band.tss.v1beta1.DEQueue") - proto.RegisterType((*Signing)(nil), "band.tss.v1beta1.Signing") - proto.RegisterType((*SigningAttempt)(nil), "band.tss.v1beta1.SigningAttempt") - proto.RegisterType((*AssignedMember)(nil), "band.tss.v1beta1.AssignedMember") - proto.RegisterType((*PendingSignings)(nil), "band.tss.v1beta1.PendingSignings") - proto.RegisterType((*Member)(nil), "band.tss.v1beta1.Member") - proto.RegisterType((*Confirm)(nil), "band.tss.v1beta1.Confirm") - proto.RegisterType((*Complaint)(nil), "band.tss.v1beta1.Complaint") - proto.RegisterType((*ComplaintWithStatus)(nil), "band.tss.v1beta1.ComplaintWithStatus") - proto.RegisterType((*ComplaintsWithStatus)(nil), "band.tss.v1beta1.ComplaintsWithStatus") - proto.RegisterType((*PendingProcessGroups)(nil), "band.tss.v1beta1.PendingProcessGroups") - proto.RegisterType((*PendingProcessSignings)(nil), "band.tss.v1beta1.PendingProcessSignings") - proto.RegisterType((*PartialSignature)(nil), "band.tss.v1beta1.PartialSignature") - proto.RegisterType((*TextSignatureOrder)(nil), "band.tss.v1beta1.TextSignatureOrder") - proto.RegisterType((*EVMSignature)(nil), "band.tss.v1beta1.EVMSignature") - proto.RegisterType((*SigningResult)(nil), "band.tss.v1beta1.SigningResult") - proto.RegisterType((*SigningExpiration)(nil), "band.tss.v1beta1.SigningExpiration") - proto.RegisterType((*SigningExpirations)(nil), "band.tss.v1beta1.SigningExpirations") -} - -func init() { proto.RegisterFile("band/tss/v1beta1/tss.proto", fileDescriptor_26231ff63bcc8f4b) } - -var fileDescriptor_26231ff63bcc8f4b = []byte{ - // 2007 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0x4f, 0x6f, 0xdb, 0xc8, - 0x15, 0x37, 0x25, 0xd9, 0x92, 0x9e, 0x64, 0x5b, 0x3b, 0x71, 0x62, 0xd9, 0x71, 0x25, 0x87, 0xc5, - 0x76, 0x8d, 0x45, 0x6b, 0xc5, 0x72, 0xb7, 0xdd, 0x6e, 0x16, 0x48, 0x25, 0x4b, 0xf1, 0x6a, 0xe3, - 0xd8, 0x0e, 0x25, 0x27, 0x5b, 0x17, 0x5b, 0x82, 0x22, 0xc7, 0x12, 0x61, 0x91, 0x54, 0x39, 0x23, - 0xc7, 0xee, 0xa5, 0xd7, 0x1c, 0x73, 0xda, 0x73, 0x81, 0xf6, 0x50, 0xec, 0xb9, 0xfd, 0x0e, 0x41, - 0x7b, 0x59, 0xa0, 0x28, 0xb0, 0xbd, 0x28, 0x85, 0x82, 0xa2, 0xe8, 0xad, 0x67, 0x9f, 0x0a, 0x0e, - 0x87, 0xa4, 0x64, 0xc9, 0x59, 0x47, 0x4a, 0x82, 0xde, 0x38, 0xef, 0xbd, 0xf9, 0xcd, 0x9b, 0x37, - 0xef, 0xaf, 0x04, 0xcb, 0x75, 0xc5, 0xd4, 0x72, 0x94, 0x90, 0xdc, 0xc9, 0x46, 0x1d, 0x53, 0x65, - 0xc3, 0xf9, 0x5e, 0x6f, 0xdb, 0x16, 0xb5, 0x50, 0xca, 0xe1, 0xad, 0x3b, 0x6b, 0xce, 0x5b, 0x5e, - 0x68, 0x58, 0x0d, 0x8b, 0x31, 0x73, 0xce, 0x97, 0x2b, 0xb7, 0xbc, 0xa4, 0x5a, 0xc4, 0xb0, 0x88, - 0xec, 0x32, 0xdc, 0x05, 0x67, 0x65, 0x1b, 0x96, 0xd5, 0x68, 0xe1, 0x1c, 0x5b, 0xd5, 0x3b, 0x47, - 0x39, 0xaa, 0x1b, 0x98, 0x50, 0xc5, 0x68, 0xbb, 0x02, 0xe2, 0xdf, 0x42, 0x30, 0xbd, 0x6d, 0x5b, - 0x9d, 0x36, 0xfa, 0x1c, 0x42, 0xba, 0x96, 0x16, 0x56, 0x85, 0xb5, 0x48, 0xf1, 0x93, 0x5e, 0x37, - 0x1b, 0xaa, 0x94, 0xce, 0xbb, 0xd9, 0xdb, 0x0d, 0x9d, 0x36, 0x3b, 0xf5, 0x75, 0xd5, 0x32, 0x72, - 0x8e, 0x3a, 0x6c, 0x97, 0x6a, 0xb5, 0x72, 0x6a, 0x53, 0xd1, 0xcd, 0xdc, 0xc9, 0x66, 0xae, 0x7d, - 0xdc, 0x60, 0x3a, 0x33, 0x94, 0x4a, 0x49, 0x0a, 0xe9, 0x1a, 0x42, 0x10, 0x21, 0xfa, 0x6f, 0x70, - 0x3a, 0xe4, 0xa0, 0x49, 0xec, 0x1b, 0xad, 0x40, 0x9c, 0x36, 0x6d, 0x4c, 0x9a, 0x56, 0x4b, 0x4b, - 0x87, 0x19, 0x23, 0x20, 0xa0, 0xfb, 0x10, 0x6d, 0x77, 0xea, 0xf2, 0x31, 0x3e, 0x4b, 0x47, 0x56, - 0x85, 0xb5, 0x64, 0x31, 0x7f, 0xde, 0xcd, 0xae, 0x5f, 0xf9, 0xf0, 0x7d, 0x4b, 0x37, 0xa9, 0x34, - 0xd3, 0xee, 0xd4, 0xef, 0xe3, 0x33, 0xf4, 0x11, 0xcc, 0x10, 0xaa, 0xd0, 0x0e, 0x49, 0x4f, 0xaf, - 0x0a, 0x6b, 0x73, 0xf9, 0xef, 0xad, 0x5f, 0xb4, 0xa4, 0xab, 0x6d, 0x95, 0x09, 0x49, 0x5c, 0x18, - 0xbd, 0x0f, 0x73, 0xaa, 0x8d, 0x15, 0x8a, 0x35, 0xb9, 0x89, 0xf5, 0x46, 0x93, 0xa6, 0x67, 0x98, - 0x9a, 0xb3, 0x9c, 0xfa, 0x19, 0x23, 0xa2, 0x5b, 0x90, 0x34, 0x2c, 0xad, 0xd3, 0xc2, 0xb2, 0xf5, - 0xc4, 0xc4, 0x76, 0x3a, 0xba, 0x2a, 0xac, 0xc5, 0xa5, 0x84, 0x4b, 0xdb, 0x73, 0x48, 0xe2, 0xb3, - 0x08, 0x24, 0xd8, 0x09, 0x12, 0x26, 0x9d, 0x16, 0x45, 0x9b, 0x30, 0xdd, 0x70, 0x96, 0xcc, 0xbc, - 0x89, 0xfc, 0xe2, 0x25, 0xfa, 0x14, 0x23, 0xcf, 0xbb, 0xd9, 0x29, 0xc9, 0x95, 0x45, 0x2a, 0x24, - 0xb4, 0xe3, 0x86, 0xac, 0x5a, 0x26, 0xc5, 0xa7, 0x94, 0xd9, 0x32, 0x59, 0x2c, 0xf6, 0xba, 0x59, - 0x28, 0xdd, 0xdf, 0xde, 0x72, 0xa9, 0x17, 0x5e, 0x48, 0xb5, 0x0c, 0x4c, 0xeb, 0x47, 0x34, 0xf8, - 0x68, 0xe9, 0x75, 0x92, 0xab, 0x9f, 0x51, 0x4c, 0xd6, 0x3f, 0xc3, 0xa7, 0x45, 0xe7, 0x43, 0x02, - 0xed, 0xb8, 0xc1, 0xf7, 0xa3, 0x8f, 0x21, 0x6a, 0x60, 0xa3, 0x8e, 0x6d, 0x92, 0x0e, 0xaf, 0x86, - 0xd7, 0x12, 0xf9, 0xf4, 0xb0, 0x6e, 0x0f, 0x98, 0x00, 0x57, 0xce, 0x13, 0x47, 0x65, 0x48, 0xda, - 0x56, 0xc7, 0xd4, 0x36, 0x64, 0xdd, 0x3c, 0xb2, 0x48, 0x3a, 0xc2, 0xb6, 0xaf, 0x0c, 0x6f, 0x97, - 0x98, 0x54, 0xc5, 0x3c, 0xb2, 0x38, 0x44, 0xc2, 0xf6, 0x29, 0x01, 0x4c, 0x9e, 0xc3, 0x4c, 0xbf, - 0x12, 0x26, 0x3f, 0x04, 0x93, 0x77, 0x61, 0xea, 0x70, 0x43, 0xb5, 0x8c, 0x76, 0x4b, 0xd1, 0x4d, - 0x4a, 0xe4, 0x27, 0x3a, 0x6d, 0xca, 0xdc, 0x05, 0x66, 0x18, 0xe0, 0x0f, 0x86, 0x01, 0xb7, 0x7c, - 0xf9, 0xc7, 0x3a, 0x6d, 0xba, 0xbe, 0xc0, 0xa1, 0x17, 0xd4, 0x11, 0x3c, 0x74, 0x07, 0x62, 0xaa, - 0x65, 0x1e, 0xe9, 0xb6, 0x41, 0xd2, 0x51, 0x86, 0xba, 0x34, 0x0a, 0x95, 0x49, 0x70, 0x20, 0x7f, - 0x83, 0xf8, 0xdf, 0x30, 0x40, 0x60, 0x09, 0xf4, 0x2b, 0x88, 0xbb, 0x86, 0x94, 0xfd, 0xa0, 0x2b, - 0xf4, 0xba, 0xd9, 0x98, 0x6b, 0x6b, 0x16, 0x7a, 0x1b, 0x57, 0xf6, 0x7e, 0x6f, 0x93, 0x14, 0x73, - 0x31, 0x2b, 0x1a, 0xd2, 0xe0, 0x9a, 0x6a, 0xe1, 0xa3, 0x23, 0x5d, 0xd5, 0xb1, 0x49, 0x65, 0xd5, - 0x32, 0x0c, 0x9d, 0x92, 0x74, 0x68, 0x35, 0xbc, 0x96, 0x2c, 0x6e, 0x7e, 0xfd, 0x22, 0x9b, 0x7b, - 0xbd, 0xd8, 0x22, 0x12, 0xea, 0xc3, 0xdb, 0x72, 0xe1, 0xd0, 0x2f, 0x21, 0x65, 0x99, 0x58, 0x76, - 0x92, 0x8a, 0xec, 0x85, 0x6f, 0x78, 0xec, 0xf0, 0x9d, 0xb5, 0x4c, 0x5c, 0xd3, 0x0d, 0xbc, 0xef, - 0x46, 0xf1, 0x2f, 0x20, 0xa9, 0xdc, 0x96, 0x89, 0xde, 0x30, 0x15, 0xda, 0xb1, 0x31, 0xcf, 0x0b, - 0x3f, 0x39, 0xef, 0x66, 0xf3, 0x57, 0x06, 0xae, 0x7a, 0xbb, 0xa5, 0x84, 0x72, 0xdb, 0x5f, 0x20, - 0x0d, 0x90, 0xaf, 0x77, 0x70, 0xc0, 0xf4, 0x44, 0x07, 0xa4, 0xb8, 0xf6, 0x3e, 0x45, 0xec, 0x09, - 0xfc, 0xc9, 0xf3, 0xef, 0xe4, 0xc9, 0x29, 0x2c, 0x62, 0x53, 0xb5, 0xcf, 0xda, 0x4e, 0x02, 0x23, - 0x58, 0xb5, 0x31, 0x95, 0x49, 0x53, 0xb1, 0xb1, 0xf7, 0xec, 0x9f, 0x7e, 0xfd, 0x22, 0xfb, 0xf1, - 0x95, 0x4f, 0x28, 0x9b, 0x6a, 0x95, 0x81, 0x54, 0x19, 0x86, 0x74, 0xdd, 0x07, 0xef, 0x27, 0x8b, - 0x5f, 0x09, 0x10, 0x2a, 0x95, 0xd1, 0x36, 0x4c, 0x3b, 0x0e, 0xe0, 0x5e, 0x6c, 0xbc, 0xe7, 0x8f, - 0xb4, 0x3b, 0xf5, 0x92, 0x07, 0x84, 0x79, 0xbe, 0x1b, 0x17, 0xa8, 0x2c, 0x6e, 0x40, 0xb4, 0x54, - 0x7e, 0xd8, 0xc1, 0x1d, 0xec, 0x94, 0xa3, 0x26, 0x56, 0xb8, 0xd1, 0x25, 0xf6, 0xed, 0xd0, 0xa8, - 0xa2, 0xb7, 0xbc, 0x12, 0xe5, 0x7c, 0x8b, 0xff, 0x99, 0x86, 0xa8, 0xf3, 0x7c, 0xba, 0xd9, 0x40, - 0x3b, 0x7d, 0xe5, 0xf0, 0x53, 0xbf, 0x1c, 0xbe, 0x9e, 0x63, 0xe8, 0x66, 0x83, 0x17, 0xc4, 0x0f, - 0x60, 0x5e, 0xed, 0xd8, 0xb6, 0x13, 0x8a, 0x0a, 0xa5, 0xd8, 0x68, 0x53, 0x7e, 0xf0, 0x1c, 0x27, - 0x17, 0x5c, 0x2a, 0x3a, 0x84, 0x18, 0xcb, 0xfe, 0x8e, 0x8f, 0xb0, 0x22, 0x59, 0xbc, 0xdb, 0xeb, - 0x66, 0xa3, 0xbc, 0xb8, 0x8e, 0x55, 0x90, 0xa3, 0x0c, 0xb0, 0xa2, 0xa1, 0x47, 0x30, 0xeb, 0x62, - 0x4f, 0x5e, 0x69, 0x13, 0x0c, 0x88, 0x07, 0xea, 0xae, 0x53, 0x43, 0x08, 0x51, 0x1a, 0x5e, 0x08, - 0xfd, 0x78, 0xac, 0xb2, 0xe4, 0x81, 0xa0, 0x43, 0x98, 0x0f, 0xf4, 0x34, 0x2d, 0x53, 0xc5, 0xac, - 0x10, 0x8f, 0x99, 0x54, 0x3c, 0x4d, 0x77, 0x1d, 0x20, 0x54, 0x83, 0x78, 0x10, 0xf0, 0xd1, 0x89, - 0x02, 0x3e, 0x00, 0x42, 0x3f, 0xf5, 0x1b, 0x8e, 0x18, 0x6b, 0x38, 0xb2, 0xc3, 0x75, 0x81, 0xfb, - 0xc3, 0x77, 0xb6, 0x1c, 0xf1, 0x51, 0x2d, 0xc7, 0x43, 0x78, 0xcf, 0x13, 0xf3, 0x1b, 0xb8, 0x34, - 0xb0, 0x5e, 0x62, 0x79, 0xdd, 0x6d, 0xf1, 0xd6, 0xbd, 0x16, 0x6f, 0xbd, 0xe6, 0x49, 0x14, 0x63, - 0x4e, 0x0d, 0x7a, 0xf6, 0x22, 0x2b, 0x48, 0x29, 0xbe, 0xdd, 0xe7, 0x89, 0x4f, 0x43, 0x30, 0xc7, - 0x75, 0xf2, 0x7c, 0xaf, 0x0e, 0x40, 0x5c, 0x4a, 0x90, 0xa1, 0xb6, 0x7a, 0xdd, 0x6c, 0xdc, 0xf7, - 0xe5, 0x31, 0x23, 0x20, 0xce, 0x61, 0x2b, 0x1a, 0x4a, 0x43, 0x74, 0x30, 0x00, 0xbc, 0xa5, 0x63, - 0x0a, 0x7c, 0xda, 0xd6, 0xed, 0xc0, 0x14, 0x6e, 0x93, 0x38, 0xcb, 0xa9, 0xbe, 0x29, 0x52, 0x0a, - 0x71, 0xf0, 0xb0, 0x26, 0x7b, 0x9d, 0x8b, 0xdb, 0x7a, 0xac, 0x0e, 0x1b, 0xbd, 0xc0, 0x25, 0x07, - 0x3a, 0x98, 0x79, 0x65, 0x80, 0x4a, 0xc4, 0xaf, 0x22, 0x30, 0x37, 0x28, 0xf9, 0xd6, 0x73, 0xb5, - 0x63, 0x06, 0x4d, 0xb3, 0x31, 0x21, 0xcc, 0x0c, 0x71, 0xc9, 0x5b, 0xf6, 0x37, 0xc2, 0xe1, 0x89, - 0x1b, 0x61, 0x3f, 0x2b, 0x47, 0xde, 0x54, 0x56, 0x9e, 0x9e, 0x2c, 0x2b, 0xa3, 0x43, 0x98, 0xab, - 0xeb, 0xa6, 0xe6, 0xf8, 0xd8, 0x91, 0xa2, 0x52, 0xcb, 0xe6, 0xa1, 0xbd, 0x79, 0xde, 0x7d, 0x8d, - 0x96, 0xa4, 0xaa, 0x2a, 0x2d, 0xc5, 0x96, 0x66, 0x39, 0xd4, 0x3d, 0x86, 0x84, 0xf6, 0x20, 0x1e, - 0x64, 0x8c, 0xe8, 0xd8, 0x8a, 0xc6, 0xda, 0x3c, 0x59, 0x88, 0x79, 0x98, 0xdf, 0xc7, 0xec, 0x04, - 0xee, 0xcb, 0x04, 0x65, 0x21, 0x11, 0xc4, 0x08, 0x49, 0x0b, 0xab, 0xe1, 0xb5, 0x88, 0x04, 0xbe, - 0x7f, 0x13, 0xf1, 0xdb, 0x10, 0xcc, 0x70, 0x27, 0xba, 0xdf, 0x57, 0x42, 0xee, 0xf8, 0x25, 0x64, - 0x0c, 0xbf, 0x71, 0x2a, 0x48, 0x7f, 0x61, 0x08, 0xbd, 0xe1, 0xc2, 0xd0, 0xe7, 0x8d, 0xe1, 0x4b, - 0xbd, 0x71, 0xf2, 0xb1, 0xec, 0x16, 0x24, 0x75, 0x22, 0x1b, 0x4a, 0x4b, 0x57, 0x75, 0x8b, 0x0f, - 0x67, 0x31, 0x29, 0xa1, 0x93, 0x07, 0x1e, 0x09, 0xdd, 0x84, 0xb8, 0x4e, 0x64, 0x45, 0xa5, 0xfa, - 0x89, 0x9b, 0xf4, 0x63, 0x52, 0x4c, 0x27, 0x05, 0xb6, 0x16, 0x9f, 0x0b, 0x10, 0xe5, 0xed, 0xf5, - 0x5b, 0x0f, 0xd0, 0x2f, 0x61, 0xde, 0x7a, 0x62, 0x7a, 0x95, 0xd2, 0x69, 0x12, 0x79, 0x43, 0x32, - 0x6e, 0xb5, 0x48, 0x5a, 0x4f, 0x4c, 0xb7, 0x5e, 0x56, 0xf5, 0x86, 0xf8, 0xef, 0x10, 0xc4, 0xfd, - 0xf9, 0x03, 0x3d, 0x86, 0x84, 0x37, 0x70, 0x28, 0x26, 0xe5, 0xd7, 0xf9, 0x68, 0xbc, 0x2b, 0xf4, - 0x23, 0xa1, 0x03, 0x00, 0x1b, 0x93, 0xb6, 0x65, 0x6a, 0xd8, 0xe4, 0x09, 0x77, 0x5c, 0xdc, 0x3e, - 0x20, 0xc7, 0x2b, 0x98, 0x51, 0xce, 0x8c, 0x49, 0x72, 0xd4, 0x31, 0x3e, 0xab, 0x9e, 0x19, 0xe8, - 0xcb, 0xfe, 0x8a, 0xec, 0x3a, 0xd9, 0xdd, 0xf3, 0x6e, 0xf6, 0xce, 0x95, 0xe1, 0x7c, 0x3b, 0x8e, - 0x2a, 0xcd, 0xe2, 0x1f, 0x04, 0xb8, 0xe6, 0x4b, 0xf4, 0x0d, 0x73, 0x77, 0x21, 0xee, 0x0f, 0x79, - 0x7c, 0x2c, 0xbf, 0xf9, 0x8a, 0x19, 0x91, 0xd7, 0x8e, 0x60, 0x0f, 0xda, 0x81, 0x94, 0xbf, 0xf0, - 0x66, 0xcd, 0x10, 0xab, 0xfe, 0xb7, 0x5e, 0x81, 0xc3, 0xeb, 0xff, 0xbc, 0x3a, 0x48, 0x10, 0xff, - 0x21, 0xc0, 0xc2, 0xa8, 0x81, 0xf4, 0xad, 0x3b, 0xba, 0x72, 0xe9, 0xe0, 0x1c, 0x62, 0x55, 0xf5, - 0xfd, 0x57, 0x5c, 0xe6, 0x6a, 0x73, 0xb3, 0xd8, 0x81, 0x05, 0x9e, 0x46, 0xf7, 0x6d, 0x4b, 0xc5, - 0x84, 0xb0, 0x04, 0x44, 0x9c, 0x97, 0xf7, 0x52, 0x1a, 0xcf, 0xa4, 0xc5, 0x9f, 0x3b, 0x57, 0xe3, - 0xf9, 0x89, 0x8c, 0x95, 0xd4, 0x62, 0x3c, 0xa9, 0x11, 0xf1, 0xb7, 0x70, 0x63, 0xf0, 0x58, 0x3f, - 0x89, 0xe3, 0x11, 0x49, 0xbc, 0x58, 0xea, 0x75, 0xb3, 0xe0, 0xf7, 0x2c, 0x64, 0xcc, 0x56, 0xa7, - 0xbf, 0x14, 0xfc, 0x3d, 0x04, 0xa9, 0x7d, 0xc5, 0xa6, 0xba, 0xd2, 0x0a, 0x46, 0xcf, 0x77, 0xd1, - 0x64, 0x7d, 0x00, 0xf3, 0xde, 0x19, 0x17, 0xa6, 0x0d, 0x32, 0xd8, 0xf1, 0x0d, 0x38, 0x57, 0xf8, - 0xcd, 0x3b, 0x57, 0x6d, 0x38, 0xb6, 0x27, 0xef, 0xb6, 0xc5, 0x5f, 0x03, 0xaa, 0xe1, 0xd3, 0x20, - 0xdc, 0xf7, 0x6c, 0x0d, 0xdb, 0xfd, 0x53, 0x88, 0xf0, 0x06, 0xa6, 0x90, 0x4f, 0x12, 0x7f, 0xf9, - 0xd3, 0x8f, 0xa2, 0xec, 0x67, 0x32, 0x93, 0x8a, 0x7f, 0x16, 0x20, 0x59, 0x7e, 0xf4, 0x20, 0x78, - 0xc6, 0x87, 0x10, 0xb7, 0x65, 0xaf, 0x68, 0x4e, 0x72, 0x5e, 0xcc, 0x2e, 0xf0, 0x5a, 0x2b, 0xf5, - 0x1b, 0x2b, 0x34, 0x01, 0x64, 0x9f, 0xa9, 0xfe, 0x15, 0x82, 0x59, 0xee, 0x22, 0xfc, 0xa7, 0xc8, - 0x9f, 0x41, 0x94, 0x3b, 0x01, 0xcf, 0x7a, 0x4b, 0x97, 0xce, 0x2a, 0xde, 0x2f, 0x7e, 0x5c, 0x1e, - 0x7d, 0x01, 0x8b, 0xde, 0x10, 0x3b, 0xca, 0xbd, 0x46, 0x76, 0xe0, 0x83, 0x23, 0x86, 0x74, 0x9d, - 0x03, 0x5c, 0x98, 0x3c, 0x0e, 0x60, 0x16, 0x9f, 0x18, 0x7d, 0x3f, 0xc5, 0x84, 0x19, 0x5e, 0x66, - 0x18, 0xaf, 0xff, 0x11, 0x8a, 0xa9, 0x5e, 0x37, 0x3b, 0xf0, 0x2c, 0x52, 0x12, 0x9f, 0x18, 0xc1, - 0x23, 0x35, 0xe1, 0xa6, 0x8d, 0x55, 0xac, 0x9f, 0x60, 0x4d, 0x6e, 0xbb, 0x81, 0x18, 0x9c, 0xe1, - 0x8d, 0x0d, 0xe2, 0xf0, 0x21, 0x17, 0x83, 0x96, 0x1b, 0x62, 0xc9, 0x03, 0xbb, 0xc8, 0x27, 0xe2, - 0xef, 0x04, 0x78, 0x8f, 0xdf, 0xa9, 0xec, 0x8c, 0x2b, 0x0a, 0xd5, 0x2d, 0xf3, 0xff, 0x2a, 0xd6, - 0xc5, 0x36, 0xa0, 0x21, 0x0d, 0x09, 0x3a, 0x84, 0x6b, 0xde, 0x76, 0x1c, 0x90, 0x59, 0x4a, 0x4c, - 0xe4, 0xbf, 0x7f, 0xe9, 0x7b, 0x06, 0x10, 0xdc, 0x36, 0x88, 0x0c, 0x61, 0x7f, 0xf8, 0x54, 0xf0, - 0x9d, 0x8f, 0x17, 0xb3, 0x0c, 0x2c, 0x57, 0x2b, 0xdb, 0xbb, 0x95, 0xdd, 0x6d, 0xb9, 0x5a, 0x2b, - 0xd4, 0x0e, 0xaa, 0xf2, 0xc1, 0x6e, 0x75, 0xbf, 0xbc, 0x55, 0xb9, 0x57, 0x29, 0x97, 0x52, 0x53, - 0x68, 0x19, 0x6e, 0x5c, 0xe0, 0x3f, 0x2e, 0x54, 0x6a, 0x95, 0xdd, 0xed, 0x94, 0x30, 0x82, 0x57, - 0x3d, 0xd8, 0xda, 0x2a, 0x57, 0xab, 0xa9, 0x10, 0x5a, 0x82, 0xeb, 0x17, 0x78, 0xf7, 0x0a, 0x3b, - 0x3b, 0xe5, 0xdd, 0x54, 0x78, 0x39, 0xf2, 0xf4, 0xf7, 0x99, 0xa9, 0x0f, 0xff, 0x2a, 0xf0, 0x1f, - 0xe4, 0xb9, 0x22, 0x2b, 0x90, 0xde, 0x96, 0xf6, 0x0e, 0xf6, 0x47, 0xab, 0x91, 0x86, 0x85, 0x01, - 0xae, 0xb4, 0x77, 0xb0, 0x5b, 0x92, 0x37, 0x52, 0xc2, 0x25, 0x9c, 0x7c, 0x2a, 0x74, 0x09, 0x67, - 0x33, 0x15, 0x46, 0x8b, 0x70, 0x6d, 0x80, 0x53, 0xd8, 0xaa, 0x55, 0x1e, 0x95, 0x53, 0x91, 0xa1, - 0x2d, 0xe5, 0x2f, 0xf6, 0x2b, 0x52, 0xb9, 0x94, 0x9a, 0x1e, 0xda, 0xc2, 0x6f, 0x33, 0xc3, 0x6f, - 0x43, 0x61, 0xfe, 0x42, 0x43, 0x81, 0x56, 0x61, 0x65, 0x6b, 0xef, 0xc1, 0xfe, 0x4e, 0xa1, 0xb2, - 0x5b, 0x1b, 0x7d, 0xa9, 0x15, 0x48, 0x0f, 0x49, 0x78, 0x16, 0x14, 0xd0, 0x4d, 0x58, 0x1c, 0xe2, - 0xde, 0x2b, 0x54, 0x76, 0xca, 0xa5, 0x54, 0xc8, 0x3d, 0xb5, 0xf8, 0xf9, 0x1f, 0x7b, 0x19, 0xe1, - 0x79, 0x2f, 0x23, 0x7c, 0xd3, 0xcb, 0x08, 0xff, 0xec, 0x65, 0x84, 0x67, 0x2f, 0x33, 0x53, 0xdf, - 0xbc, 0xcc, 0x4c, 0x7d, 0xfb, 0x32, 0x33, 0x75, 0xf8, 0xc3, 0xef, 0x74, 0xe3, 0x53, 0xf6, 0x37, - 0x17, 0x3d, 0x6b, 0x63, 0x52, 0x9f, 0x61, 0xec, 0xcd, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x55, - 0x02, 0x06, 0x92, 0xff, 0x1a, 0x00, 0x00, -} - -func (this *Group) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Group) - if !ok { - that2, ok := that.(Group) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ID != that1.ID { - return false - } - if this.Size_ != that1.Size_ { - return false - } - if this.Threshold != that1.Threshold { - return false - } - if !bytes.Equal(this.PubKey, that1.PubKey) { - return false - } - if this.Status != that1.Status { - return false - } - if this.CreatedHeight != that1.CreatedHeight { - return false - } - if this.ModuleOwner != that1.ModuleOwner { - return false - } - return true -} -func (this *GroupResult) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GroupResult) - if !ok { - that2, ok := that.(GroupResult) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Group.Equal(&that1.Group) { - return false - } - if !bytes.Equal(this.DKGContext, that1.DKGContext) { - return false - } - if len(this.Members) != len(that1.Members) { - return false - } - for i := range this.Members { - if !this.Members[i].Equal(&that1.Members[i]) { - return false - } - } - if len(this.Round1Infos) != len(that1.Round1Infos) { - return false - } - for i := range this.Round1Infos { - if !this.Round1Infos[i].Equal(&that1.Round1Infos[i]) { - return false - } - } - if len(this.Round2Infos) != len(that1.Round2Infos) { - return false - } - for i := range this.Round2Infos { - if !this.Round2Infos[i].Equal(&that1.Round2Infos[i]) { - return false - } - } - if len(this.ComplaintsWithStatus) != len(that1.ComplaintsWithStatus) { - return false - } - for i := range this.ComplaintsWithStatus { - if !this.ComplaintsWithStatus[i].Equal(&that1.ComplaintsWithStatus[i]) { - return false - } - } - if len(this.Confirms) != len(that1.Confirms) { - return false - } - for i := range this.Confirms { - if !this.Confirms[i].Equal(&that1.Confirms[i]) { - return false - } - } - return true -} -func (this *Round1Info) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Round1Info) - if !ok { - that2, ok := that.(Round1Info) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.MemberID != that1.MemberID { - return false - } - if len(this.CoefficientCommits) != len(that1.CoefficientCommits) { - return false - } - for i := range this.CoefficientCommits { - if !bytes.Equal(this.CoefficientCommits[i], that1.CoefficientCommits[i]) { - return false - } - } - if !bytes.Equal(this.OneTimePubKey, that1.OneTimePubKey) { - return false - } - if !bytes.Equal(this.A0Signature, that1.A0Signature) { - return false - } - if !bytes.Equal(this.OneTimeSignature, that1.OneTimeSignature) { - return false - } - return true -} -func (this *Round2Info) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Round2Info) - if !ok { - that2, ok := that.(Round2Info) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.MemberID != that1.MemberID { - return false - } - if len(this.EncryptedSecretShares) != len(that1.EncryptedSecretShares) { - return false - } - for i := range this.EncryptedSecretShares { - if !bytes.Equal(this.EncryptedSecretShares[i], that1.EncryptedSecretShares[i]) { - return false - } - } - return true -} -func (this *DE) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DE) - if !ok { - that2, ok := that.(DE) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.PubD, that1.PubD) { - return false - } - if !bytes.Equal(this.PubE, that1.PubE) { - return false - } - return true -} -func (this *DEQueue) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DEQueue) - if !ok { - that2, ok := that.(DEQueue) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Head != that1.Head { - return false - } - if this.Tail != that1.Tail { - return false - } - return true -} -func (this *Signing) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Signing) - if !ok { - that2, ok := that.(Signing) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ID != that1.ID { - return false - } - if this.CurrentAttempt != that1.CurrentAttempt { - return false - } - if this.GroupID != that1.GroupID { - return false - } - if !bytes.Equal(this.GroupPubKey, that1.GroupPubKey) { - return false - } - if !bytes.Equal(this.Message, that1.Message) { - return false - } - if !bytes.Equal(this.GroupPubNonce, that1.GroupPubNonce) { - return false - } - if !bytes.Equal(this.Signature, that1.Signature) { - return false - } - if this.Status != that1.Status { - return false - } - if this.CreatedHeight != that1.CreatedHeight { - return false - } - if !this.CreatedTimestamp.Equal(that1.CreatedTimestamp) { - return false - } - return true -} -func (this *SigningAttempt) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SigningAttempt) - if !ok { - that2, ok := that.(SigningAttempt) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.SigningID != that1.SigningID { - return false - } - if this.Attempt != that1.Attempt { - return false - } - if this.ExpiredHeight != that1.ExpiredHeight { - return false - } - if len(this.AssignedMembers) != len(that1.AssignedMembers) { - return false - } - for i := range this.AssignedMembers { - if !this.AssignedMembers[i].Equal(&that1.AssignedMembers[i]) { - return false - } - } - return true -} -func (this *AssignedMember) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*AssignedMember) - if !ok { - that2, ok := that.(AssignedMember) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.MemberID != that1.MemberID { - return false - } - if this.Address != that1.Address { - return false - } - if !bytes.Equal(this.PubKey, that1.PubKey) { - return false - } - if !bytes.Equal(this.PubD, that1.PubD) { - return false - } - if !bytes.Equal(this.PubE, that1.PubE) { - return false - } - if !bytes.Equal(this.BindingFactor, that1.BindingFactor) { - return false - } - if !bytes.Equal(this.PubNonce, that1.PubNonce) { - return false - } - return true -} -func (this *PendingSignings) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PendingSignings) - if !ok { - that2, ok := that.(PendingSignings) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.SigningIds) != len(that1.SigningIds) { - return false - } - for i := range this.SigningIds { - if this.SigningIds[i] != that1.SigningIds[i] { - return false - } - } - return true -} -func (this *Member) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Member) - if !ok { - that2, ok := that.(Member) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ID != that1.ID { - return false - } - if this.GroupID != that1.GroupID { - return false - } - if this.Address != that1.Address { - return false - } - if !bytes.Equal(this.PubKey, that1.PubKey) { - return false - } - if this.IsMalicious != that1.IsMalicious { - return false - } - if this.IsActive != that1.IsActive { - return false - } - return true -} -func (this *Confirm) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Confirm) - if !ok { - that2, ok := that.(Confirm) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.MemberID != that1.MemberID { - return false - } - if !bytes.Equal(this.OwnPubKeySig, that1.OwnPubKeySig) { - return false - } - return true -} -func (this *Complaint) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Complaint) - if !ok { - that2, ok := that.(Complaint) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Complainant != that1.Complainant { - return false - } - if this.Respondent != that1.Respondent { - return false - } - if !bytes.Equal(this.KeySym, that1.KeySym) { - return false - } - if !bytes.Equal(this.Signature, that1.Signature) { - return false - } - return true -} -func (this *ComplaintWithStatus) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ComplaintWithStatus) - if !ok { - that2, ok := that.(ComplaintWithStatus) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Complaint.Equal(&that1.Complaint) { - return false - } - if this.ComplaintStatus != that1.ComplaintStatus { - return false - } - return true -} -func (this *ComplaintsWithStatus) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ComplaintsWithStatus) - if !ok { - that2, ok := that.(ComplaintsWithStatus) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.MemberID != that1.MemberID { - return false - } - if len(this.ComplaintsWithStatus) != len(that1.ComplaintsWithStatus) { - return false - } - for i := range this.ComplaintsWithStatus { - if !this.ComplaintsWithStatus[i].Equal(&that1.ComplaintsWithStatus[i]) { - return false - } - } - return true -} -func (this *PendingProcessGroups) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PendingProcessGroups) - if !ok { - that2, ok := that.(PendingProcessGroups) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.GroupIDs) != len(that1.GroupIDs) { - return false - } - for i := range this.GroupIDs { - if this.GroupIDs[i] != that1.GroupIDs[i] { - return false - } - } - return true -} -func (this *PendingProcessSignings) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PendingProcessSignings) - if !ok { - that2, ok := that.(PendingProcessSignings) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.SigningIDs) != len(that1.SigningIDs) { - return false - } - for i := range this.SigningIDs { - if this.SigningIDs[i] != that1.SigningIDs[i] { - return false - } - } - return true -} -func (this *PartialSignature) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PartialSignature) - if !ok { - that2, ok := that.(PartialSignature) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.SigningID != that1.SigningID { - return false - } - if this.SigningAttempt != that1.SigningAttempt { - return false - } - if this.MemberID != that1.MemberID { - return false - } - if !bytes.Equal(this.Signature, that1.Signature) { - return false - } - return true -} -func (this *TextSignatureOrder) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*TextSignatureOrder) - if !ok { - that2, ok := that.(TextSignatureOrder) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.Message, that1.Message) { - return false - } - return true -} -func (this *EVMSignature) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*EVMSignature) - if !ok { - that2, ok := that.(EVMSignature) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.RAddress, that1.RAddress) { - return false - } - if !bytes.Equal(this.Signature, that1.Signature) { - return false - } - return true -} -func (this *SigningResult) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SigningResult) - if !ok { - that2, ok := that.(SigningResult) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Signing.Equal(&that1.Signing) { - return false - } - if !this.CurrentSigningAttempt.Equal(that1.CurrentSigningAttempt) { - return false - } - if !this.EVMSignature.Equal(that1.EVMSignature) { - return false - } - if len(this.ReceivedPartialSignatures) != len(that1.ReceivedPartialSignatures) { - return false - } - for i := range this.ReceivedPartialSignatures { - if !this.ReceivedPartialSignatures[i].Equal(&that1.ReceivedPartialSignatures[i]) { - return false - } - } - return true -} -func (this *SigningExpiration) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SigningExpiration) - if !ok { - that2, ok := that.(SigningExpiration) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.SigningID != that1.SigningID { - return false - } - if this.SigningAttempt != that1.SigningAttempt { - return false - } - return true -} -func (this *SigningExpirations) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SigningExpirations) - if !ok { - that2, ok := that.(SigningExpirations) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.SigningExpirations) != len(that1.SigningExpirations) { - return false - } - for i := range this.SigningExpirations { - if !this.SigningExpirations[i].Equal(&that1.SigningExpirations[i]) { - return false - } - } - return true -} -func (m *Group) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Group) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Group) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ModuleOwner) > 0 { - i -= len(m.ModuleOwner) - copy(dAtA[i:], m.ModuleOwner) - i = encodeVarintTss(dAtA, i, uint64(len(m.ModuleOwner))) - i-- - dAtA[i] = 0x3a - } - if m.CreatedHeight != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.CreatedHeight)) - i-- - dAtA[i] = 0x30 - } - if m.Status != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x28 - } - if len(m.PubKey) > 0 { - i -= len(m.PubKey) - copy(dAtA[i:], m.PubKey) - i = encodeVarintTss(dAtA, i, uint64(len(m.PubKey))) - i-- - dAtA[i] = 0x22 - } - if m.Threshold != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.Threshold)) - i-- - dAtA[i] = 0x18 - } - if m.Size_ != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.Size_)) - i-- - dAtA[i] = 0x10 - } - if m.ID != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.ID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GroupResult) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Confirms) > 0 { - for iNdEx := len(m.Confirms) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Confirms[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - if len(m.ComplaintsWithStatus) > 0 { - for iNdEx := len(m.ComplaintsWithStatus) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ComplaintsWithStatus[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if len(m.Round2Infos) > 0 { - for iNdEx := len(m.Round2Infos) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Round2Infos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.Round1Infos) > 0 { - for iNdEx := len(m.Round1Infos) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Round1Infos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.Members) > 0 { - for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.DKGContext) > 0 { - i -= len(m.DKGContext) - copy(dAtA[i:], m.DKGContext) - i = encodeVarintTss(dAtA, i, uint64(len(m.DKGContext))) - i-- - dAtA[i] = 0x12 - } - { - size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Round1Info) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Round1Info) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Round1Info) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.OneTimeSignature) > 0 { - i -= len(m.OneTimeSignature) - copy(dAtA[i:], m.OneTimeSignature) - i = encodeVarintTss(dAtA, i, uint64(len(m.OneTimeSignature))) - i-- - dAtA[i] = 0x2a - } - if len(m.A0Signature) > 0 { - i -= len(m.A0Signature) - copy(dAtA[i:], m.A0Signature) - i = encodeVarintTss(dAtA, i, uint64(len(m.A0Signature))) - i-- - dAtA[i] = 0x22 - } - if len(m.OneTimePubKey) > 0 { - i -= len(m.OneTimePubKey) - copy(dAtA[i:], m.OneTimePubKey) - i = encodeVarintTss(dAtA, i, uint64(len(m.OneTimePubKey))) - i-- - dAtA[i] = 0x1a - } - if len(m.CoefficientCommits) > 0 { - for iNdEx := len(m.CoefficientCommits) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.CoefficientCommits[iNdEx]) - copy(dAtA[i:], m.CoefficientCommits[iNdEx]) - i = encodeVarintTss(dAtA, i, uint64(len(m.CoefficientCommits[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if m.MemberID != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.MemberID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Round2Info) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Round2Info) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Round2Info) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EncryptedSecretShares) > 0 { - for iNdEx := len(m.EncryptedSecretShares) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.EncryptedSecretShares[iNdEx]) - copy(dAtA[i:], m.EncryptedSecretShares[iNdEx]) - i = encodeVarintTss(dAtA, i, uint64(len(m.EncryptedSecretShares[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if m.MemberID != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.MemberID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DE) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DE) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DE) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PubE) > 0 { - i -= len(m.PubE) - copy(dAtA[i:], m.PubE) - i = encodeVarintTss(dAtA, i, uint64(len(m.PubE))) - i-- - dAtA[i] = 0x12 - } - if len(m.PubD) > 0 { - i -= len(m.PubD) - copy(dAtA[i:], m.PubD) - i = encodeVarintTss(dAtA, i, uint64(len(m.PubD))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DEQueue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DEQueue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DEQueue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Tail != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.Tail)) - i-- - dAtA[i] = 0x10 - } - if m.Head != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.Head)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Signing) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Signing) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Signing) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo( - m.CreatedTimestamp, - dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CreatedTimestamp):], - ) - if err2 != nil { - return 0, err2 - } - i -= n2 - i = encodeVarintTss(dAtA, i, uint64(n2)) - i-- - dAtA[i] = 0x52 - if m.CreatedHeight != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.CreatedHeight)) - i-- - dAtA[i] = 0x48 - } - if m.Status != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x40 - } - if len(m.Signature) > 0 { - i -= len(m.Signature) - copy(dAtA[i:], m.Signature) - i = encodeVarintTss(dAtA, i, uint64(len(m.Signature))) - i-- - dAtA[i] = 0x3a - } - if len(m.GroupPubNonce) > 0 { - i -= len(m.GroupPubNonce) - copy(dAtA[i:], m.GroupPubNonce) - i = encodeVarintTss(dAtA, i, uint64(len(m.GroupPubNonce))) - i-- - dAtA[i] = 0x32 - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintTss(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - } - if len(m.GroupPubKey) > 0 { - i -= len(m.GroupPubKey) - copy(dAtA[i:], m.GroupPubKey) - i = encodeVarintTss(dAtA, i, uint64(len(m.GroupPubKey))) - i-- - dAtA[i] = 0x22 - } - if m.GroupID != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.GroupID)) - i-- - dAtA[i] = 0x18 - } - if m.CurrentAttempt != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.CurrentAttempt)) - i-- - dAtA[i] = 0x10 - } - if m.ID != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.ID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *SigningAttempt) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SigningAttempt) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SigningAttempt) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AssignedMembers) > 0 { - for iNdEx := len(m.AssignedMembers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AssignedMembers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if m.ExpiredHeight != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.ExpiredHeight)) - i-- - dAtA[i] = 0x18 - } - if m.Attempt != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x10 - } - if m.SigningID != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.SigningID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *AssignedMember) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AssignedMember) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AssignedMember) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PubNonce) > 0 { - i -= len(m.PubNonce) - copy(dAtA[i:], m.PubNonce) - i = encodeVarintTss(dAtA, i, uint64(len(m.PubNonce))) - i-- - dAtA[i] = 0x3a - } - if len(m.BindingFactor) > 0 { - i -= len(m.BindingFactor) - copy(dAtA[i:], m.BindingFactor) - i = encodeVarintTss(dAtA, i, uint64(len(m.BindingFactor))) - i-- - dAtA[i] = 0x32 - } - if len(m.PubE) > 0 { - i -= len(m.PubE) - copy(dAtA[i:], m.PubE) - i = encodeVarintTss(dAtA, i, uint64(len(m.PubE))) - i-- - dAtA[i] = 0x2a - } - if len(m.PubD) > 0 { - i -= len(m.PubD) - copy(dAtA[i:], m.PubD) - i = encodeVarintTss(dAtA, i, uint64(len(m.PubD))) - i-- - dAtA[i] = 0x22 - } - if len(m.PubKey) > 0 { - i -= len(m.PubKey) - copy(dAtA[i:], m.PubKey) - i = encodeVarintTss(dAtA, i, uint64(len(m.PubKey))) - i-- - dAtA[i] = 0x1a - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintTss(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if m.MemberID != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.MemberID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *PendingSignings) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PendingSignings) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PendingSignings) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SigningIds) > 0 { - dAtA4 := make([]byte, len(m.SigningIds)*10) - var j3 int - for _, num := range m.SigningIds { - for num >= 1<<7 { - dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j3++ - } - dAtA4[j3] = uint8(num) - j3++ - } - i -= j3 - copy(dAtA[i:], dAtA4[:j3]) - i = encodeVarintTss(dAtA, i, uint64(j3)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Member) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Member) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsActive { - i-- - if m.IsActive { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.IsMalicious { - i-- - if m.IsMalicious { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if len(m.PubKey) > 0 { - i -= len(m.PubKey) - copy(dAtA[i:], m.PubKey) - i = encodeVarintTss(dAtA, i, uint64(len(m.PubKey))) - i-- - dAtA[i] = 0x22 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintTss(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x1a - } - if m.GroupID != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.GroupID)) - i-- - dAtA[i] = 0x10 - } - if m.ID != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.ID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Confirm) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Confirm) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Confirm) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.OwnPubKeySig) > 0 { - i -= len(m.OwnPubKeySig) - copy(dAtA[i:], m.OwnPubKeySig) - i = encodeVarintTss(dAtA, i, uint64(len(m.OwnPubKeySig))) - i-- - dAtA[i] = 0x12 - } - if m.MemberID != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.MemberID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Complaint) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Complaint) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Complaint) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Signature) > 0 { - i -= len(m.Signature) - copy(dAtA[i:], m.Signature) - i = encodeVarintTss(dAtA, i, uint64(len(m.Signature))) - i-- - dAtA[i] = 0x22 - } - if len(m.KeySym) > 0 { - i -= len(m.KeySym) - copy(dAtA[i:], m.KeySym) - i = encodeVarintTss(dAtA, i, uint64(len(m.KeySym))) - i-- - dAtA[i] = 0x1a - } - if m.Respondent != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.Respondent)) - i-- - dAtA[i] = 0x10 - } - if m.Complainant != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.Complainant)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ComplaintWithStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ComplaintWithStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ComplaintWithStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ComplaintStatus != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.ComplaintStatus)) - i-- - dAtA[i] = 0x10 - } - { - size, err := m.Complaint.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ComplaintsWithStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ComplaintsWithStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ComplaintsWithStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ComplaintsWithStatus) > 0 { - for iNdEx := len(m.ComplaintsWithStatus) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ComplaintsWithStatus[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.MemberID != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.MemberID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *PendingProcessGroups) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PendingProcessGroups) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PendingProcessGroups) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.GroupIDs) > 0 { - dAtA7 := make([]byte, len(m.GroupIDs)*10) - var j6 int - for _, num := range m.GroupIDs { - for num >= 1<<7 { - dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j6++ - } - dAtA7[j6] = uint8(num) - j6++ - } - i -= j6 - copy(dAtA[i:], dAtA7[:j6]) - i = encodeVarintTss(dAtA, i, uint64(j6)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PendingProcessSignings) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PendingProcessSignings) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PendingProcessSignings) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SigningIDs) > 0 { - dAtA9 := make([]byte, len(m.SigningIDs)*10) - var j8 int - for _, num := range m.SigningIDs { - for num >= 1<<7 { - dAtA9[j8] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j8++ - } - dAtA9[j8] = uint8(num) - j8++ - } - i -= j8 - copy(dAtA[i:], dAtA9[:j8]) - i = encodeVarintTss(dAtA, i, uint64(j8)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PartialSignature) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PartialSignature) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PartialSignature) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Signature) > 0 { - i -= len(m.Signature) - copy(dAtA[i:], m.Signature) - i = encodeVarintTss(dAtA, i, uint64(len(m.Signature))) - i-- - dAtA[i] = 0x22 - } - if m.MemberID != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.MemberID)) - i-- - dAtA[i] = 0x18 - } - if m.SigningAttempt != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.SigningAttempt)) - i-- - dAtA[i] = 0x10 - } - if m.SigningID != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.SigningID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *TextSignatureOrder) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TextSignatureOrder) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TextSignatureOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintTss(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EVMSignature) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EVMSignature) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EVMSignature) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Signature) > 0 { - i -= len(m.Signature) - copy(dAtA[i:], m.Signature) - i = encodeVarintTss(dAtA, i, uint64(len(m.Signature))) - i-- - dAtA[i] = 0x12 - } - if len(m.RAddress) > 0 { - i -= len(m.RAddress) - copy(dAtA[i:], m.RAddress) - i = encodeVarintTss(dAtA, i, uint64(len(m.RAddress))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SigningResult) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SigningResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SigningResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ReceivedPartialSignatures) > 0 { - for iNdEx := len(m.ReceivedPartialSignatures) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ReceivedPartialSignatures[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if m.EVMSignature != nil { - { - size, err := m.EVMSignature.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.CurrentSigningAttempt != nil { - { - size, err := m.CurrentSigningAttempt.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - { - size, err := m.Signing.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SigningExpiration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SigningExpiration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SigningExpiration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SigningAttempt != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.SigningAttempt)) - i-- - dAtA[i] = 0x10 - } - if m.SigningID != 0 { - i = encodeVarintTss(dAtA, i, uint64(m.SigningID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *SigningExpirations) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SigningExpirations) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SigningExpirations) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SigningExpirations) > 0 { - for iNdEx := len(m.SigningExpirations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SigningExpirations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTss(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintTss(dAtA []byte, offset int, v uint64) int { - offset -= sovTss(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Group) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ID != 0 { - n += 1 + sovTss(uint64(m.ID)) - } - if m.Size_ != 0 { - n += 1 + sovTss(uint64(m.Size_)) - } - if m.Threshold != 0 { - n += 1 + sovTss(uint64(m.Threshold)) - } - l = len(m.PubKey) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - if m.Status != 0 { - n += 1 + sovTss(uint64(m.Status)) - } - if m.CreatedHeight != 0 { - n += 1 + sovTss(uint64(m.CreatedHeight)) - } - l = len(m.ModuleOwner) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - return n -} - -func (m *GroupResult) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Group.Size() - n += 1 + l + sovTss(uint64(l)) - l = len(m.DKGContext) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - if len(m.Members) > 0 { - for _, e := range m.Members { - l = e.Size() - n += 1 + l + sovTss(uint64(l)) - } - } - if len(m.Round1Infos) > 0 { - for _, e := range m.Round1Infos { - l = e.Size() - n += 1 + l + sovTss(uint64(l)) - } - } - if len(m.Round2Infos) > 0 { - for _, e := range m.Round2Infos { - l = e.Size() - n += 1 + l + sovTss(uint64(l)) - } - } - if len(m.ComplaintsWithStatus) > 0 { - for _, e := range m.ComplaintsWithStatus { - l = e.Size() - n += 1 + l + sovTss(uint64(l)) - } - } - if len(m.Confirms) > 0 { - for _, e := range m.Confirms { - l = e.Size() - n += 1 + l + sovTss(uint64(l)) - } - } - return n -} - -func (m *Round1Info) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MemberID != 0 { - n += 1 + sovTss(uint64(m.MemberID)) - } - if len(m.CoefficientCommits) > 0 { - for _, b := range m.CoefficientCommits { - l = len(b) - n += 1 + l + sovTss(uint64(l)) - } - } - l = len(m.OneTimePubKey) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - l = len(m.A0Signature) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - l = len(m.OneTimeSignature) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - return n -} - -func (m *Round2Info) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MemberID != 0 { - n += 1 + sovTss(uint64(m.MemberID)) - } - if len(m.EncryptedSecretShares) > 0 { - for _, b := range m.EncryptedSecretShares { - l = len(b) - n += 1 + l + sovTss(uint64(l)) - } - } - return n -} - -func (m *DE) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PubD) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - l = len(m.PubE) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - return n -} - -func (m *DEQueue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Head != 0 { - n += 1 + sovTss(uint64(m.Head)) - } - if m.Tail != 0 { - n += 1 + sovTss(uint64(m.Tail)) - } - return n -} - -func (m *Signing) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ID != 0 { - n += 1 + sovTss(uint64(m.ID)) - } - if m.CurrentAttempt != 0 { - n += 1 + sovTss(uint64(m.CurrentAttempt)) - } - if m.GroupID != 0 { - n += 1 + sovTss(uint64(m.GroupID)) - } - l = len(m.GroupPubKey) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - l = len(m.GroupPubNonce) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - l = len(m.Signature) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - if m.Status != 0 { - n += 1 + sovTss(uint64(m.Status)) - } - if m.CreatedHeight != 0 { - n += 1 + sovTss(uint64(m.CreatedHeight)) - } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CreatedTimestamp) - n += 1 + l + sovTss(uint64(l)) - return n -} - -func (m *SigningAttempt) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SigningID != 0 { - n += 1 + sovTss(uint64(m.SigningID)) - } - if m.Attempt != 0 { - n += 1 + sovTss(uint64(m.Attempt)) - } - if m.ExpiredHeight != 0 { - n += 1 + sovTss(uint64(m.ExpiredHeight)) - } - if len(m.AssignedMembers) > 0 { - for _, e := range m.AssignedMembers { - l = e.Size() - n += 1 + l + sovTss(uint64(l)) - } - } - return n -} - -func (m *AssignedMember) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MemberID != 0 { - n += 1 + sovTss(uint64(m.MemberID)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - l = len(m.PubKey) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - l = len(m.PubD) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - l = len(m.PubE) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - l = len(m.BindingFactor) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - l = len(m.PubNonce) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - return n -} - -func (m *PendingSignings) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.SigningIds) > 0 { - l = 0 - for _, e := range m.SigningIds { - l += sovTss(uint64(e)) - } - n += 1 + sovTss(uint64(l)) + l - } - return n -} - -func (m *Member) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ID != 0 { - n += 1 + sovTss(uint64(m.ID)) - } - if m.GroupID != 0 { - n += 1 + sovTss(uint64(m.GroupID)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - l = len(m.PubKey) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - if m.IsMalicious { - n += 2 - } - if m.IsActive { - n += 2 - } - return n -} - -func (m *Confirm) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MemberID != 0 { - n += 1 + sovTss(uint64(m.MemberID)) - } - l = len(m.OwnPubKeySig) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - return n -} - -func (m *Complaint) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Complainant != 0 { - n += 1 + sovTss(uint64(m.Complainant)) - } - if m.Respondent != 0 { - n += 1 + sovTss(uint64(m.Respondent)) - } - l = len(m.KeySym) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - l = len(m.Signature) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - return n -} - -func (m *ComplaintWithStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Complaint.Size() - n += 1 + l + sovTss(uint64(l)) - if m.ComplaintStatus != 0 { - n += 1 + sovTss(uint64(m.ComplaintStatus)) - } - return n -} - -func (m *ComplaintsWithStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MemberID != 0 { - n += 1 + sovTss(uint64(m.MemberID)) - } - if len(m.ComplaintsWithStatus) > 0 { - for _, e := range m.ComplaintsWithStatus { - l = e.Size() - n += 1 + l + sovTss(uint64(l)) - } - } - return n -} - -func (m *PendingProcessGroups) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.GroupIDs) > 0 { - l = 0 - for _, e := range m.GroupIDs { - l += sovTss(uint64(e)) - } - n += 1 + sovTss(uint64(l)) + l - } - return n -} - -func (m *PendingProcessSignings) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.SigningIDs) > 0 { - l = 0 - for _, e := range m.SigningIDs { - l += sovTss(uint64(e)) - } - n += 1 + sovTss(uint64(l)) + l - } - return n -} - -func (m *PartialSignature) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SigningID != 0 { - n += 1 + sovTss(uint64(m.SigningID)) - } - if m.SigningAttempt != 0 { - n += 1 + sovTss(uint64(m.SigningAttempt)) - } - if m.MemberID != 0 { - n += 1 + sovTss(uint64(m.MemberID)) - } - l = len(m.Signature) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - return n -} - -func (m *TextSignatureOrder) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Message) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - return n -} - -func (m *EVMSignature) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RAddress) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - l = len(m.Signature) - if l > 0 { - n += 1 + l + sovTss(uint64(l)) - } - return n -} - -func (m *SigningResult) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Signing.Size() - n += 1 + l + sovTss(uint64(l)) - if m.CurrentSigningAttempt != nil { - l = m.CurrentSigningAttempt.Size() - n += 1 + l + sovTss(uint64(l)) - } - if m.EVMSignature != nil { - l = m.EVMSignature.Size() - n += 1 + l + sovTss(uint64(l)) - } - if len(m.ReceivedPartialSignatures) > 0 { - for _, e := range m.ReceivedPartialSignatures { - l = e.Size() - n += 1 + l + sovTss(uint64(l)) - } - } - return n -} - -func (m *SigningExpiration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SigningID != 0 { - n += 1 + sovTss(uint64(m.SigningID)) - } - if m.SigningAttempt != 0 { - n += 1 + sovTss(uint64(m.SigningAttempt)) - } - return n -} - -func (m *SigningExpirations) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.SigningExpirations) > 0 { - for _, e := range m.SigningExpirations { - l = e.Size() - n += 1 + l + sovTss(uint64(l)) - } - } - return n -} - -func sovTss(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTss(x uint64) (n int) { - return sovTss(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Group) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Group: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Group: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - m.ID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ID |= GroupID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) - } - m.Size_ = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Size_ |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Threshold", wireType) - } - m.Threshold = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Threshold |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...) - if m.PubKey == nil { - m.PubKey = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= GroupStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedHeight", wireType) - } - m.CreatedHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CreatedHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModuleOwner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ModuleOwner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupResult) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupResult: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupResult: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DKGContext", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DKGContext = append(m.DKGContext[:0], dAtA[iNdEx:postIndex]...) - if m.DKGContext == nil { - m.DKGContext = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Members = append(m.Members, Member{}) - if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Round1Infos", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Round1Infos = append(m.Round1Infos, Round1Info{}) - if err := m.Round1Infos[len(m.Round1Infos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Round2Infos", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Round2Infos = append(m.Round2Infos, Round2Info{}) - if err := m.Round2Infos[len(m.Round2Infos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ComplaintsWithStatus", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ComplaintsWithStatus = append(m.ComplaintsWithStatus, ComplaintsWithStatus{}) - if err := m.ComplaintsWithStatus[len(m.ComplaintsWithStatus)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Confirms", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Confirms = append(m.Confirms, Confirm{}) - if err := m.Confirms[len(m.Confirms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Round1Info) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Round1Info: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Round1Info: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) - } - m.MemberID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MemberID |= MemberID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CoefficientCommits", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CoefficientCommits = append(m.CoefficientCommits, make([]byte, postIndex-iNdEx)) - copy(m.CoefficientCommits[len(m.CoefficientCommits)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OneTimePubKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OneTimePubKey = append(m.OneTimePubKey[:0], dAtA[iNdEx:postIndex]...) - if m.OneTimePubKey == nil { - m.OneTimePubKey = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field A0Signature", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.A0Signature = append(m.A0Signature[:0], dAtA[iNdEx:postIndex]...) - if m.A0Signature == nil { - m.A0Signature = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OneTimeSignature", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OneTimeSignature = append(m.OneTimeSignature[:0], dAtA[iNdEx:postIndex]...) - if m.OneTimeSignature == nil { - m.OneTimeSignature = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Round2Info) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Round2Info: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Round2Info: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) - } - m.MemberID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MemberID |= MemberID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedSecretShares", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EncryptedSecretShares = append(m.EncryptedSecretShares, make([]byte, postIndex-iNdEx)) - copy(m.EncryptedSecretShares[len(m.EncryptedSecretShares)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DE) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DE: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DE: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PubD", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PubD = append(m.PubD[:0], dAtA[iNdEx:postIndex]...) - if m.PubD == nil { - m.PubD = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PubE", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PubE = append(m.PubE[:0], dAtA[iNdEx:postIndex]...) - if m.PubE == nil { - m.PubE = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DEQueue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DEQueue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DEQueue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Head", wireType) - } - m.Head = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Head |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Tail", wireType) - } - m.Tail = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Tail |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Signing) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Signing: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Signing: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - m.ID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ID |= SigningID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentAttempt", wireType) - } - m.CurrentAttempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentAttempt |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType) - } - m.GroupID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupID |= GroupID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPubKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPubKey = append(m.GroupPubKey[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPubKey == nil { - m.GroupPubKey = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = append(m.Message[:0], dAtA[iNdEx:postIndex]...) - if m.Message == nil { - m.Message = []byte{} - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPubNonce", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPubNonce = append(m.GroupPubNonce[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPubNonce == nil { - m.GroupPubNonce = []byte{} - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) - if m.Signature == nil { - m.Signature = []byte{} - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= SigningStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedHeight", wireType) - } - m.CreatedHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CreatedHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedTimestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.CreatedTimestamp, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SigningAttempt) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SigningAttempt: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SigningAttempt: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SigningID", wireType) - } - m.SigningID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SigningID |= SigningID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpiredHeight", wireType) - } - m.ExpiredHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExpiredHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssignedMembers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AssignedMembers = append(m.AssignedMembers, AssignedMember{}) - if err := m.AssignedMembers[len(m.AssignedMembers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AssignedMember) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AssignedMember: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AssignedMember: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) - } - m.MemberID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MemberID |= MemberID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...) - if m.PubKey == nil { - m.PubKey = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PubD", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PubD = append(m.PubD[:0], dAtA[iNdEx:postIndex]...) - if m.PubD == nil { - m.PubD = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PubE", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PubE = append(m.PubE[:0], dAtA[iNdEx:postIndex]...) - if m.PubE == nil { - m.PubE = []byte{} - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BindingFactor", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BindingFactor = append(m.BindingFactor[:0], dAtA[iNdEx:postIndex]...) - if m.BindingFactor == nil { - m.BindingFactor = []byte{} - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PubNonce", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PubNonce = append(m.PubNonce[:0], dAtA[iNdEx:postIndex]...) - if m.PubNonce == nil { - m.PubNonce = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PendingSignings) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PendingSignings: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PendingSignings: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SigningIds = append(m.SigningIds, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.SigningIds) == 0 { - m.SigningIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SigningIds = append(m.SigningIds, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field SigningIds", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Member) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Member: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - m.ID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ID |= MemberID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType) - } - m.GroupID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupID |= GroupID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...) - if m.PubKey == nil { - m.PubKey = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsMalicious", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsMalicious = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsActive = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Confirm) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Confirm: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Confirm: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) - } - m.MemberID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MemberID |= MemberID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnPubKeySig", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OwnPubKeySig = append(m.OwnPubKeySig[:0], dAtA[iNdEx:postIndex]...) - if m.OwnPubKeySig == nil { - m.OwnPubKeySig = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Complaint) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Complaint: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Complaint: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Complainant", wireType) - } - m.Complainant = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Complainant |= MemberID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Respondent", wireType) - } - m.Respondent = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Respondent |= MemberID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeySym", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KeySym = append(m.KeySym[:0], dAtA[iNdEx:postIndex]...) - if m.KeySym == nil { - m.KeySym = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) - if m.Signature == nil { - m.Signature = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ComplaintWithStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ComplaintWithStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ComplaintWithStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Complaint", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Complaint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ComplaintStatus", wireType) - } - m.ComplaintStatus = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ComplaintStatus |= ComplaintStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ComplaintsWithStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ComplaintsWithStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ComplaintsWithStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) - } - m.MemberID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MemberID |= MemberID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ComplaintsWithStatus", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ComplaintsWithStatus = append(m.ComplaintsWithStatus, ComplaintWithStatus{}) - if err := m.ComplaintsWithStatus[len(m.ComplaintsWithStatus)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PendingProcessGroups) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PendingProcessGroups: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PendingProcessGroups: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v GroupID - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= GroupID(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.GroupIDs = append(m.GroupIDs, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.GroupIDs) == 0 { - m.GroupIDs = make([]GroupID, 0, elementCount) - } - for iNdEx < postIndex { - var v GroupID - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= GroupID(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.GroupIDs = append(m.GroupIDs, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field GroupIDs", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PendingProcessSignings) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PendingProcessSignings: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PendingProcessSignings: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v SigningID - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= SigningID(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SigningIDs = append(m.SigningIDs, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.SigningIDs) == 0 { - m.SigningIDs = make([]SigningID, 0, elementCount) - } - for iNdEx < postIndex { - var v SigningID - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= SigningID(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SigningIDs = append(m.SigningIDs, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field SigningIDs", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PartialSignature) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PartialSignature: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PartialSignature: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SigningID", wireType) - } - m.SigningID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SigningID |= SigningID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SigningAttempt", wireType) - } - m.SigningAttempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SigningAttempt |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) - } - m.MemberID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MemberID |= MemberID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) - if m.Signature == nil { - m.Signature = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TextSignatureOrder) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TextSignatureOrder: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TextSignatureOrder: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = append(m.Message[:0], dAtA[iNdEx:postIndex]...) - if m.Message == nil { - m.Message = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EVMSignature) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EVMSignature: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EVMSignature: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RAddress", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RAddress = append(m.RAddress[:0], dAtA[iNdEx:postIndex]...) - if m.RAddress == nil { - m.RAddress = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) - if m.Signature == nil { - m.Signature = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SigningResult) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SigningResult: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SigningResult: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signing", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Signing.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentSigningAttempt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CurrentSigningAttempt == nil { - m.CurrentSigningAttempt = &SigningAttempt{} - } - if err := m.CurrentSigningAttempt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EVMSignature", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.EVMSignature == nil { - m.EVMSignature = &EVMSignature{} - } - if err := m.EVMSignature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReceivedPartialSignatures", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReceivedPartialSignatures = append(m.ReceivedPartialSignatures, PartialSignature{}) - if err := m.ReceivedPartialSignatures[len(m.ReceivedPartialSignatures)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SigningExpiration) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SigningExpiration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SigningExpiration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SigningID", wireType) - } - m.SigningID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SigningID |= SigningID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SigningAttempt", wireType) - } - m.SigningAttempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SigningAttempt |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SigningExpirations) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SigningExpirations: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SigningExpirations: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SigningExpirations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTss - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTss - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTss - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SigningExpirations = append(m.SigningExpirations, SigningExpiration{}) - if err := m.SigningExpirations[len(m.SigningExpirations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTss(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTss - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipTss(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTss - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTss - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTss - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthTss - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTss - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthTss - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthTss = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTss = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTss = fmt.Errorf("proto: unexpected end of group") -) diff --git a/internal/bandchain/tunnel/ibc_route.go b/internal/bandchain/tunnel/ibc_route.go deleted file mode 100644 index 04bf3d2..0000000 --- a/internal/bandchain/tunnel/ibc_route.go +++ /dev/null @@ -1,42 +0,0 @@ -package types - -import ( - feedstypes "github.com/bandprotocol/falcon/internal/bandchain/feeds" -) - -// IBCRoute defines the IBC route for the tunnel module -var _ RouteI = &IBCRoute{} - -// NewIBCRoute creates a new IBCRoute instance. -func NewIBCRoute(channelID string) *IBCRoute { - return &IBCRoute{ - ChannelID: channelID, - } -} - -// ValidateBasic validates the IBCRoute -func (r *IBCRoute) ValidateBasic() error { - return nil -} - -// NewIBCPacketReceipt creates a new IBCPacketReceipt instance. -func NewIBCPacketReceipt(sequence uint64) *IBCPacketReceipt { - return &IBCPacketReceipt{ - Sequence: sequence, - } -} - -// NewTunnelPricesPacketData creates a new TunnelPricesPacketData instance. -func NewTunnelPricesPacketData( - tunnelID uint64, - sequence uint64, - prices []feedstypes.Price, - createdAt int64, -) TunnelPricesPacketData { - return TunnelPricesPacketData{ - TunnelID: tunnelID, - Sequence: sequence, - Prices: prices, - CreatedAt: createdAt, - } -} diff --git a/internal/bandchain/tunnel/packet_receipt.go b/internal/bandchain/tunnel/packet_receipt.go deleted file mode 100644 index 5ab313a..0000000 --- a/internal/bandchain/tunnel/packet_receipt.go +++ /dev/null @@ -1,8 +0,0 @@ -package types - -import "github.com/cosmos/gogoproto/proto" - -// PacketReceiptI defines an interface for confirming the delivery of a packet to its destination via the specified route. -type PacketReceiptI interface { - proto.Message -} diff --git a/internal/bandchain/tunnel/params.pb.go b/internal/bandchain/tunnel/params.pb.go deleted file mode 100644 index 5de153a..0000000 --- a/internal/bandchain/tunnel/params.pb.go +++ /dev/null @@ -1,637 +0,0 @@ -package types - -import ( - "fmt" - "io" - "math" - math_bits "math/bits" - - "github.com/cosmos/cosmos-sdk/types" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/gogoproto/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Params is the data structure that keeps the parameters of the module. -type Params struct { - // min_deposit is the minimum deposit required to create a tunnel. - MinDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=min_deposit,json=minDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"min_deposit"` - // min_interval is the minimum interval in seconds. - MinInterval uint64 `protobuf:"varint,2,opt,name=min_interval,json=minInterval,proto3" json:"min_interval,omitempty"` - // max_interval is the maximum interval in seconds. - MaxInterval uint64 `protobuf:"varint,3,opt,name=max_interval,json=maxInterval,proto3" json:"max_interval,omitempty"` - // min_deviation_bps is the minimum deviation in basis points. - MinDeviationBPS uint64 `protobuf:"varint,4,opt,name=min_deviation_bps,json=minDeviationBps,proto3" json:"min_deviation_bps,omitempty"` - // max_deviation_bps is the maximum deviation in basis points. - MaxDeviationBPS uint64 `protobuf:"varint,5,opt,name=max_deviation_bps,json=maxDeviationBps,proto3" json:"max_deviation_bps,omitempty"` - // max_signals defines the maximum number of signals allowed per tunnel. - MaxSignals uint64 `protobuf:"varint,6,opt,name=max_signals,json=maxSignals,proto3" json:"max_signals,omitempty"` - // base_packet_fee is the base fee for each packet. - BasePacketFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,7,rep,name=base_packet_fee,json=basePacketFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"base_packet_fee"` -} - -func (m *Params) Reset() { *m = Params{} } -func (m *Params) String() string { return proto.CompactTextString(m) } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_842b3bf03f22bf82, []int{0} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func (m *Params) GetMinDeposit() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.MinDeposit - } - return nil -} - -func (m *Params) GetMinInterval() uint64 { - if m != nil { - return m.MinInterval - } - return 0 -} - -func (m *Params) GetMaxInterval() uint64 { - if m != nil { - return m.MaxInterval - } - return 0 -} - -func (m *Params) GetMinDeviationBPS() uint64 { - if m != nil { - return m.MinDeviationBPS - } - return 0 -} - -func (m *Params) GetMaxDeviationBPS() uint64 { - if m != nil { - return m.MaxDeviationBPS - } - return 0 -} - -func (m *Params) GetMaxSignals() uint64 { - if m != nil { - return m.MaxSignals - } - return 0 -} - -func (m *Params) GetBasePacketFee() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.BasePacketFee - } - return nil -} - -func init() { - proto.RegisterType((*Params)(nil), "band.tunnel.v1beta1.Params") -} - -func init() { proto.RegisterFile("band/tunnel/v1beta1/params.proto", fileDescriptor_842b3bf03f22bf82) } - -var fileDescriptor_842b3bf03f22bf82 = []byte{ - // 398 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x31, 0x8f, 0xda, 0x30, - 0x14, 0xc7, 0x93, 0x42, 0xa9, 0x64, 0x5a, 0xa1, 0x86, 0x0e, 0x29, 0x43, 0x42, 0x3b, 0xb1, 0x34, - 0x2e, 0x65, 0xeb, 0x52, 0x29, 0xad, 0x2a, 0x31, 0x54, 0x42, 0xb0, 0x75, 0x89, 0x9c, 0xe0, 0x06, - 0x8b, 0xc4, 0xb6, 0xb0, 0x89, 0xd2, 0x6f, 0x71, 0x1f, 0xe1, 0xe6, 0xfb, 0x24, 0x8c, 0x8c, 0xa7, - 0x1b, 0xb8, 0x53, 0x58, 0xee, 0x63, 0x9c, 0x6c, 0x07, 0x2e, 0x62, 0xbe, 0x29, 0xd1, 0x7b, 0x3f, - 0xff, 0xfe, 0x4f, 0x4f, 0x0f, 0x0c, 0x63, 0x44, 0x97, 0x50, 0x6e, 0x29, 0xc5, 0x19, 0x2c, 0xc6, - 0x31, 0x96, 0x68, 0x0c, 0x39, 0xda, 0xa0, 0x5c, 0x04, 0x7c, 0xc3, 0x24, 0x73, 0xfa, 0x8a, 0x08, - 0x0c, 0x11, 0xd4, 0xc4, 0xe0, 0x43, 0xca, 0x52, 0xa6, 0xfb, 0x50, 0xfd, 0x19, 0x74, 0xe0, 0x25, - 0x4c, 0xe4, 0x4c, 0xc0, 0x18, 0x09, 0x7c, 0x96, 0x25, 0x8c, 0x50, 0xd3, 0xff, 0x7c, 0xd7, 0x02, - 0x9d, 0x99, 0x76, 0x3b, 0x19, 0xe8, 0xe6, 0x84, 0x46, 0x4b, 0xcc, 0x99, 0x20, 0xd2, 0xb5, 0x87, - 0xad, 0x51, 0xf7, 0xdb, 0xc7, 0xc0, 0x08, 0x02, 0x25, 0x38, 0x65, 0x05, 0x3f, 0x19, 0xa1, 0xe1, - 0xd7, 0xdd, 0xc1, 0xb7, 0x6e, 0xee, 0xfd, 0x51, 0x4a, 0xe4, 0x6a, 0x1b, 0x07, 0x09, 0xcb, 0x61, - 0x9d, 0x66, 0x3e, 0x5f, 0xc4, 0x72, 0x0d, 0xe5, 0x7f, 0x8e, 0x85, 0x7e, 0x20, 0xe6, 0x20, 0x27, - 0xf4, 0x97, 0xd1, 0x3b, 0x9f, 0xc0, 0x5b, 0x95, 0x46, 0xa8, 0xc4, 0x9b, 0x02, 0x65, 0xee, 0xab, - 0xa1, 0x3d, 0x6a, 0xcf, 0xd5, 0x04, 0xd3, 0xba, 0xa4, 0x11, 0x54, 0x3e, 0x23, 0xad, 0x1a, 0x41, - 0xe5, 0x19, 0xf9, 0x01, 0xde, 0x9b, 0x99, 0x0b, 0x82, 0x24, 0x61, 0x34, 0x8a, 0xb9, 0x70, 0xdb, - 0x8a, 0x0b, 0xfb, 0xd5, 0xc1, 0xef, 0xfd, 0x51, 0x81, 0x75, 0x2f, 0x9c, 0x2d, 0xe6, 0xbd, 0xbc, - 0x59, 0xe0, 0x42, 0x0b, 0x50, 0x79, 0x21, 0x78, 0xdd, 0x10, 0xa0, 0xf2, 0x42, 0xd0, 0x2c, 0x70, - 0xe1, 0xf8, 0x40, 0x0d, 0x14, 0x09, 0x92, 0x52, 0x94, 0x09, 0xb7, 0xa3, 0x67, 0x04, 0x39, 0x2a, - 0x17, 0xa6, 0xe2, 0x08, 0xd0, 0x53, 0xbb, 0x8b, 0x38, 0x4a, 0xd6, 0x58, 0x46, 0xff, 0x30, 0x76, - 0xdf, 0xbc, 0xfc, 0x6a, 0xdf, 0x29, 0xc9, 0x4c, 0x47, 0xfc, 0xc6, 0xf8, 0x7b, 0xfb, 0xf1, 0xda, - 0xb7, 0xc3, 0xe9, 0xae, 0xf2, 0xec, 0x7d, 0xe5, 0xd9, 0x0f, 0x95, 0x67, 0x5f, 0x1d, 0x3d, 0x6b, - 0x7f, 0xf4, 0xac, 0xdb, 0xa3, 0x67, 0xfd, 0x85, 0x0d, 0xb1, 0x3a, 0x26, 0x7d, 0x0c, 0x09, 0xcb, - 0x60, 0xb2, 0x42, 0x84, 0xc2, 0x62, 0x02, 0xcb, 0xd3, 0x05, 0xea, 0x94, 0xb8, 0xa3, 0x89, 0xc9, - 0x53, 0x00, 0x00, 0x00, 0xff, 0xff, 0x57, 0x4c, 0x65, 0x68, 0x9d, 0x02, 0x00, 0x00, -} - -func (this *Params) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Params) - if !ok { - that2, ok := that.(Params) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.MinDeposit) != len(that1.MinDeposit) { - return false - } - for i := range this.MinDeposit { - if !this.MinDeposit[i].Equal(&that1.MinDeposit[i]) { - return false - } - } - if this.MinInterval != that1.MinInterval { - return false - } - if this.MaxInterval != that1.MaxInterval { - return false - } - if this.MinDeviationBPS != that1.MinDeviationBPS { - return false - } - if this.MaxDeviationBPS != that1.MaxDeviationBPS { - return false - } - if this.MaxSignals != that1.MaxSignals { - return false - } - if len(this.BasePacketFee) != len(that1.BasePacketFee) { - return false - } - for i := range this.BasePacketFee { - if !this.BasePacketFee[i].Equal(&that1.BasePacketFee[i]) { - return false - } - } - return true -} -func (m *Params) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BasePacketFee) > 0 { - for iNdEx := len(m.BasePacketFee) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.BasePacketFee[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - if m.MaxSignals != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.MaxSignals)) - i-- - dAtA[i] = 0x30 - } - if m.MaxDeviationBPS != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.MaxDeviationBPS)) - i-- - dAtA[i] = 0x28 - } - if m.MinDeviationBPS != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.MinDeviationBPS)) - i-- - dAtA[i] = 0x20 - } - if m.MaxInterval != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.MaxInterval)) - i-- - dAtA[i] = 0x18 - } - if m.MinInterval != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.MinInterval)) - i-- - dAtA[i] = 0x10 - } - if len(m.MinDeposit) > 0 { - for iNdEx := len(m.MinDeposit) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MinDeposit[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintParams(dAtA []byte, offset int, v uint64) int { - offset -= sovParams(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.MinDeposit) > 0 { - for _, e := range m.MinDeposit { - l = e.Size() - n += 1 + l + sovParams(uint64(l)) - } - } - if m.MinInterval != 0 { - n += 1 + sovParams(uint64(m.MinInterval)) - } - if m.MaxInterval != 0 { - n += 1 + sovParams(uint64(m.MaxInterval)) - } - if m.MinDeviationBPS != 0 { - n += 1 + sovParams(uint64(m.MinDeviationBPS)) - } - if m.MaxDeviationBPS != 0 { - n += 1 + sovParams(uint64(m.MaxDeviationBPS)) - } - if m.MaxSignals != 0 { - n += 1 + sovParams(uint64(m.MaxSignals)) - } - if len(m.BasePacketFee) > 0 { - for _, e := range m.BasePacketFee { - l = e.Size() - n += 1 + l + sovParams(uint64(l)) - } - } - return n -} - -func sovParams(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozParams(x uint64) (n int) { - return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Params) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MinDeposit", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MinDeposit = append(m.MinDeposit, types.Coin{}) - if err := m.MinDeposit[len(m.MinDeposit)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinInterval", wireType) - } - m.MinInterval = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinInterval |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxInterval", wireType) - } - m.MaxInterval = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxInterval |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinDeviationBPS", wireType) - } - m.MinDeviationBPS = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinDeviationBPS |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxDeviationBPS", wireType) - } - m.MaxDeviationBPS = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxDeviationBPS |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxSignals", wireType) - } - m.MaxSignals = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxSignals |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BasePacketFee", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BasePacketFee = append(m.BasePacketFee, types.Coin{}) - if err := m.BasePacketFee[len(m.BasePacketFee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipParams(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthParams - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupParams - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthParams - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") -) diff --git a/internal/bandchain/tunnel/query.pb.go b/internal/bandchain/tunnel/query.pb.go index d71eb5f..616b8d4 100644 --- a/internal/bandchain/tunnel/query.pb.go +++ b/internal/bandchain/tunnel/query.pb.go @@ -1,31 +1,13 @@ -package types +package tunnel import ( - "context" "fmt" "io" - "math" - math_bits "math/bits" "github.com/cosmos/cosmos-sdk/types/query" - grpc1 "github.com/cosmos/gogoproto/grpc" "github.com/cosmos/gogoproto/proto" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - // TunnelStatusFilter defines a filter for tunnel status. type TunnelStatusFilter int32 @@ -54,10 +36,6 @@ func (x TunnelStatusFilter) String() string { return proto.EnumName(TunnelStatusFilter_name, int32(x)) } -func (TunnelStatusFilter) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{0} -} - // QueryTunnelsRequest is the request type for the Query/Tunnels RPC method. type QueryTunnelsRequest struct { // status_filter is a flag to filter tunnels by status. @@ -69,43 +47,6 @@ type QueryTunnelsRequest struct { func (m *QueryTunnelsRequest) Reset() { *m = QueryTunnelsRequest{} } func (m *QueryTunnelsRequest) String() string { return proto.CompactTextString(m) } func (*QueryTunnelsRequest) ProtoMessage() {} -func (*QueryTunnelsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{0} -} -func (m *QueryTunnelsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryTunnelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryTunnelsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryTunnelsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTunnelsRequest.Merge(m, src) -} -func (m *QueryTunnelsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryTunnelsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTunnelsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTunnelsRequest proto.InternalMessageInfo - -func (m *QueryTunnelsRequest) GetStatusFilter() TunnelStatusFilter { - if m != nil { - return m.StatusFilter - } - return TUNNEL_STATUS_FILTER_UNSPECIFIED -} - func (m *QueryTunnelsRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination @@ -114,3092 +55,75 @@ func (m *QueryTunnelsRequest) GetPagination() *query.PageRequest { } // QueryTunnelsResponse is the response type for the Query/Tunnels RPC method. -type QueryTunnelsResponse struct { - // Tunnels is a list of tunnels. - Tunnels []*Tunnel `protobuf:"bytes,1,rep,name=tunnels,proto3" json:"tunnels,omitempty"` - // pagination defines an optional pagination for the response. - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryTunnelsResponse) Reset() { *m = QueryTunnelsResponse{} } -func (m *QueryTunnelsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryTunnelsResponse) ProtoMessage() {} -func (*QueryTunnelsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{1} -} -func (m *QueryTunnelsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryTunnelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryTunnelsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryTunnelsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTunnelsResponse.Merge(m, src) -} -func (m *QueryTunnelsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryTunnelsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTunnelsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTunnelsResponse proto.InternalMessageInfo - -func (m *QueryTunnelsResponse) GetTunnels() []*Tunnel { - if m != nil { - return m.Tunnels - } - return nil -} - -func (m *QueryTunnelsResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - -// QueryTunnelRequest is the request type for the Query/Tunnel RPC method. -type QueryTunnelRequest struct { - // tunnel_id is the ID of the tunnel to query. - TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` -} - -func (m *QueryTunnelRequest) Reset() { *m = QueryTunnelRequest{} } -func (m *QueryTunnelRequest) String() string { return proto.CompactTextString(m) } -func (*QueryTunnelRequest) ProtoMessage() {} -func (*QueryTunnelRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{2} -} -func (m *QueryTunnelRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryTunnelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryTunnelRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryTunnelRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTunnelRequest.Merge(m, src) -} -func (m *QueryTunnelRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryTunnelRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTunnelRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTunnelRequest proto.InternalMessageInfo - -func (m *QueryTunnelRequest) GetTunnelId() uint64 { - if m != nil { - return m.TunnelId - } - return 0 -} - -// QueryTunnelResponse is the response type for the Query/Tunnel RPC method. -type QueryTunnelResponse struct { - // tunnel is the tunnel with the given ID. - Tunnel Tunnel `protobuf:"bytes,1,opt,name=tunnel,proto3" json:"tunnel"` -} - -func (m *QueryTunnelResponse) Reset() { *m = QueryTunnelResponse{} } -func (m *QueryTunnelResponse) String() string { return proto.CompactTextString(m) } -func (*QueryTunnelResponse) ProtoMessage() {} -func (*QueryTunnelResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{3} -} -func (m *QueryTunnelResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryTunnelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryTunnelResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryTunnelResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTunnelResponse.Merge(m, src) -} -func (m *QueryTunnelResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryTunnelResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTunnelResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTunnelResponse proto.InternalMessageInfo - -func (m *QueryTunnelResponse) GetTunnel() Tunnel { - if m != nil { - return m.Tunnel - } - return Tunnel{} -} - -// QueryDepositsRequest is the request type for the Query/Deposits RPC method. -type QueryDepositsRequest struct { - // tunnel_id is the ID of the tunnel to query deposits. - TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryDepositsRequest) Reset() { *m = QueryDepositsRequest{} } -func (m *QueryDepositsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryDepositsRequest) ProtoMessage() {} -func (*QueryDepositsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{4} -} -func (m *QueryDepositsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryDepositsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryDepositsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryDepositsRequest.Merge(m, src) -} -func (m *QueryDepositsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryDepositsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryDepositsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryDepositsRequest proto.InternalMessageInfo - -func (m *QueryDepositsRequest) GetTunnelId() uint64 { - if m != nil { - return m.TunnelId - } - return 0 -} - -func (m *QueryDepositsRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - -// QueryDepositsResponse is the response type for the Query/Deposits RPC method. -type QueryDepositsResponse struct { - // deposits is a list of deposits. - Deposits []*Deposit `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits,omitempty"` - // pagination defines an optional pagination for the response. - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryDepositsResponse) Reset() { *m = QueryDepositsResponse{} } -func (m *QueryDepositsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryDepositsResponse) ProtoMessage() {} -func (*QueryDepositsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{5} -} -func (m *QueryDepositsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryDepositsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryDepositsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryDepositsResponse.Merge(m, src) -} -func (m *QueryDepositsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryDepositsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryDepositsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryDepositsResponse proto.InternalMessageInfo - -func (m *QueryDepositsResponse) GetDeposits() []*Deposit { - if m != nil { - return m.Deposits - } - return nil -} - -func (m *QueryDepositsResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - -// QueryDepositRequest is the request type for the Query/Deposit RPC method. -type QueryDepositRequest struct { - // tunnel_id is the ID of the tunnel to query. - TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` - // depositor is the address of the depositor to query. - Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` -} - -func (m *QueryDepositRequest) Reset() { *m = QueryDepositRequest{} } -func (m *QueryDepositRequest) String() string { return proto.CompactTextString(m) } -func (*QueryDepositRequest) ProtoMessage() {} -func (*QueryDepositRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{6} -} -func (m *QueryDepositRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryDepositRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryDepositRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryDepositRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryDepositRequest.Merge(m, src) -} -func (m *QueryDepositRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryDepositRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryDepositRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryDepositRequest proto.InternalMessageInfo - -func (m *QueryDepositRequest) GetTunnelId() uint64 { - if m != nil { - return m.TunnelId - } - return 0 -} - -func (m *QueryDepositRequest) GetDepositor() string { - if m != nil { - return m.Depositor - } - return "" -} - -// QueryDepositResponse is the response type for the Query/Deposit RPC method. -type QueryDepositResponse struct { - // deposit is the deposit with the given tunnel ID and depositor address. - Deposit Deposit `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit"` -} - -func (m *QueryDepositResponse) Reset() { *m = QueryDepositResponse{} } -func (m *QueryDepositResponse) String() string { return proto.CompactTextString(m) } -func (*QueryDepositResponse) ProtoMessage() {} -func (*QueryDepositResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{7} -} -func (m *QueryDepositResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryDepositResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryDepositResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryDepositResponse.Merge(m, src) -} -func (m *QueryDepositResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryDepositResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryDepositResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryDepositResponse proto.InternalMessageInfo - -func (m *QueryDepositResponse) GetDeposit() Deposit { - if m != nil { - return m.Deposit - } - return Deposit{} -} - -// QueryPacketsRequest is the request type for the Query/Packets RPC method. -type QueryPacketsRequest struct { - // tunnel_id is the ID of the tunnel to query packets. - TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` - // pagination defines an optional pagination for the request. - Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryPacketsRequest) Reset() { *m = QueryPacketsRequest{} } -func (m *QueryPacketsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryPacketsRequest) ProtoMessage() {} -func (*QueryPacketsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{8} -} -func (m *QueryPacketsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryPacketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryPacketsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryPacketsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPacketsRequest.Merge(m, src) -} -func (m *QueryPacketsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryPacketsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPacketsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryPacketsRequest proto.InternalMessageInfo - -func (m *QueryPacketsRequest) GetTunnelId() uint64 { - if m != nil { - return m.TunnelId - } - return 0 -} - -func (m *QueryPacketsRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - -// QueryPacketsResponse is the response type for the Query/Packets RPC method. -type QueryPacketsResponse struct { - // packets is a list of packets. - Packets []*Packet `protobuf:"bytes,1,rep,name=packets,proto3" json:"packets,omitempty"` - // pagination defines an optional pagination for the response. - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryPacketsResponse) Reset() { *m = QueryPacketsResponse{} } -func (m *QueryPacketsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryPacketsResponse) ProtoMessage() {} -func (*QueryPacketsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{9} -} -func (m *QueryPacketsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryPacketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryPacketsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryPacketsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPacketsResponse.Merge(m, src) -} -func (m *QueryPacketsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryPacketsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPacketsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryPacketsResponse proto.InternalMessageInfo - -func (m *QueryPacketsResponse) GetPackets() []*Packet { - if m != nil { - return m.Packets - } - return nil -} - -func (m *QueryPacketsResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - -// QueryPacketRequest is the request type for the Query/Packet RPC method. -type QueryPacketRequest struct { - // tunnel_id is the ID of the tunnel to query packets. - TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` - // sequence is the sequence of the packet to query. - Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (m *QueryPacketRequest) Reset() { *m = QueryPacketRequest{} } -func (m *QueryPacketRequest) String() string { return proto.CompactTextString(m) } -func (*QueryPacketRequest) ProtoMessage() {} -func (*QueryPacketRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{10} -} -func (m *QueryPacketRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryPacketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryPacketRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryPacketRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPacketRequest.Merge(m, src) -} -func (m *QueryPacketRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryPacketRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPacketRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryPacketRequest proto.InternalMessageInfo - -func (m *QueryPacketRequest) GetTunnelId() uint64 { - if m != nil { - return m.TunnelId - } - return 0 -} - -func (m *QueryPacketRequest) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -// QueryPacketResponse is the response type for the Query/Packet RPC method. -type QueryPacketResponse struct { - // packet is the packet with the given tunnel ID and sequence. - Packet *Packet `protobuf:"bytes,1,opt,name=packet,proto3" json:"packet,omitempty"` -} - -func (m *QueryPacketResponse) Reset() { *m = QueryPacketResponse{} } -func (m *QueryPacketResponse) String() string { return proto.CompactTextString(m) } -func (*QueryPacketResponse) ProtoMessage() {} -func (*QueryPacketResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{11} -} -func (m *QueryPacketResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryPacketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryPacketResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryPacketResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPacketResponse.Merge(m, src) -} -func (m *QueryPacketResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryPacketResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPacketResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryPacketResponse proto.InternalMessageInfo - -func (m *QueryPacketResponse) GetPacket() *Packet { - if m != nil { - return m.Packet - } - return nil -} - -// QueryTotalFeesRequest is the request type for the Query/TotalFees RPC method. -type QueryTotalFeesRequest struct { -} - -func (m *QueryTotalFeesRequest) Reset() { *m = QueryTotalFeesRequest{} } -func (m *QueryTotalFeesRequest) String() string { return proto.CompactTextString(m) } -func (*QueryTotalFeesRequest) ProtoMessage() {} -func (*QueryTotalFeesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{12} -} -func (m *QueryTotalFeesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryTotalFeesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryTotalFeesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryTotalFeesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTotalFeesRequest.Merge(m, src) -} -func (m *QueryTotalFeesRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryTotalFeesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTotalFeesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTotalFeesRequest proto.InternalMessageInfo - -// QueryTotalFeesResponse is the response type for the Query/TotalFees RPC method. -type QueryTotalFeesResponse struct { - // total_fees is the total fees collected by the tunnel. - TotalFees TotalFees `protobuf:"bytes,1,opt,name=total_fees,json=totalFees,proto3" json:"total_fees"` -} - -func (m *QueryTotalFeesResponse) Reset() { *m = QueryTotalFeesResponse{} } -func (m *QueryTotalFeesResponse) String() string { return proto.CompactTextString(m) } -func (*QueryTotalFeesResponse) ProtoMessage() {} -func (*QueryTotalFeesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{13} -} -func (m *QueryTotalFeesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryTotalFeesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryTotalFeesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryTotalFeesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTotalFeesResponse.Merge(m, src) -} -func (m *QueryTotalFeesResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryTotalFeesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTotalFeesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTotalFeesResponse proto.InternalMessageInfo - -func (m *QueryTotalFeesResponse) GetTotalFees() TotalFees { - if m != nil { - return m.TotalFees - } - return TotalFees{} -} - -// QueryParamsRequest is the request type for the Query/Params RPC method. -type QueryParamsRequest struct { -} - -func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } -func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryParamsRequest) ProtoMessage() {} -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{14} -} -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) -} -func (m *QueryParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo - -// QueryParamsResponse is the response type for the Query/Params RPC method. -type QueryParamsResponse struct { - // params is the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` -} - -func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } -func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryParamsResponse) ProtoMessage() {} -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80b85392d1440ac, []int{15} -} -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) -} -func (m *QueryParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo - -func (m *QueryParamsResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func init() { - proto.RegisterEnum("band.tunnel.v1beta1.TunnelStatusFilter", TunnelStatusFilter_name, TunnelStatusFilter_value) - proto.RegisterType((*QueryTunnelsRequest)(nil), "band.tunnel.v1beta1.QueryTunnelsRequest") - proto.RegisterType((*QueryTunnelsResponse)(nil), "band.tunnel.v1beta1.QueryTunnelsResponse") - proto.RegisterType((*QueryTunnelRequest)(nil), "band.tunnel.v1beta1.QueryTunnelRequest") - proto.RegisterType((*QueryTunnelResponse)(nil), "band.tunnel.v1beta1.QueryTunnelResponse") - proto.RegisterType((*QueryDepositsRequest)(nil), "band.tunnel.v1beta1.QueryDepositsRequest") - proto.RegisterType((*QueryDepositsResponse)(nil), "band.tunnel.v1beta1.QueryDepositsResponse") - proto.RegisterType((*QueryDepositRequest)(nil), "band.tunnel.v1beta1.QueryDepositRequest") - proto.RegisterType((*QueryDepositResponse)(nil), "band.tunnel.v1beta1.QueryDepositResponse") - proto.RegisterType((*QueryPacketsRequest)(nil), "band.tunnel.v1beta1.QueryPacketsRequest") - proto.RegisterType((*QueryPacketsResponse)(nil), "band.tunnel.v1beta1.QueryPacketsResponse") - proto.RegisterType((*QueryPacketRequest)(nil), "band.tunnel.v1beta1.QueryPacketRequest") - proto.RegisterType((*QueryPacketResponse)(nil), "band.tunnel.v1beta1.QueryPacketResponse") - proto.RegisterType((*QueryTotalFeesRequest)(nil), "band.tunnel.v1beta1.QueryTotalFeesRequest") - proto.RegisterType((*QueryTotalFeesResponse)(nil), "band.tunnel.v1beta1.QueryTotalFeesResponse") - proto.RegisterType((*QueryParamsRequest)(nil), "band.tunnel.v1beta1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "band.tunnel.v1beta1.QueryParamsResponse") -} - -func init() { proto.RegisterFile("band/tunnel/v1beta1/query.proto", fileDescriptor_f80b85392d1440ac) } - -var fileDescriptor_f80b85392d1440ac = []byte{ - // 944 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcf, 0x6f, 0x1b, 0x45, - 0x18, 0xf5, 0x84, 0x60, 0xc7, 0x53, 0x40, 0xd5, 0x34, 0xb4, 0x61, 0x13, 0x36, 0x66, 0xf9, 0x11, - 0x37, 0x81, 0x1d, 0x25, 0x01, 0x14, 0x10, 0x42, 0xb4, 0xa9, 0x8d, 0x8c, 0x42, 0x64, 0x36, 0x0e, - 0x07, 0x24, 0x64, 0xad, 0x9d, 0xa9, 0xbb, 0xc2, 0xd9, 0xd9, 0x7a, 0xd6, 0x15, 0xc5, 0x8a, 0x90, - 0x10, 0x87, 0x1e, 0x38, 0x20, 0x55, 0x02, 0x09, 0x2e, 0x48, 0x1c, 0xf9, 0x47, 0x7a, 0xac, 0xc4, - 0x85, 0x13, 0x42, 0x09, 0x7f, 0x08, 0xda, 0x99, 0x6f, 0xd6, 0x5e, 0x77, 0x59, 0x6f, 0xa4, 0xa8, - 0x37, 0x7b, 0xf6, 0x7d, 0xf3, 0xde, 0xf7, 0xbe, 0x99, 0xb7, 0x8b, 0x57, 0x3b, 0xae, 0x7f, 0x44, - 0xc3, 0xa1, 0xef, 0xb3, 0x3e, 0xbd, 0xb7, 0xd9, 0x61, 0xa1, 0xbb, 0x49, 0xef, 0x0e, 0xd9, 0xe0, - 0xbe, 0x1d, 0x0c, 0x78, 0xc8, 0xc9, 0x95, 0x08, 0x60, 0x2b, 0x80, 0x0d, 0x00, 0x63, 0xb1, 0xc7, - 0x7b, 0x5c, 0x3e, 0xa7, 0xd1, 0x2f, 0x05, 0x35, 0xd6, 0xbb, 0x5c, 0x1c, 0x73, 0x41, 0x3b, 0xae, - 0x60, 0x6a, 0x8f, 0x78, 0xc7, 0xc0, 0xed, 0x79, 0xbe, 0x1b, 0x7a, 0xdc, 0x07, 0xec, 0x4a, 0x8f, - 0xf3, 0x5e, 0x9f, 0x51, 0x37, 0xf0, 0xa8, 0xeb, 0xfb, 0x3c, 0x94, 0x0f, 0x05, 0x3c, 0xad, 0xa4, - 0xa9, 0x0a, 0xdc, 0x81, 0x7b, 0x9c, 0x89, 0x00, 0x95, 0x12, 0x61, 0xfd, 0x81, 0xf0, 0x95, 0xcf, - 0x22, 0x11, 0x2d, 0xb9, 0x2a, 0x1c, 0x76, 0x77, 0xc8, 0x44, 0x48, 0xf6, 0xf0, 0xf3, 0x22, 0x74, - 0xc3, 0xa1, 0x68, 0xdf, 0xf6, 0xfa, 0x21, 0x1b, 0x2c, 0xa1, 0x0a, 0xaa, 0xbe, 0xb0, 0xb5, 0x66, - 0xa7, 0x34, 0x6a, 0xab, 0xda, 0x03, 0x89, 0xaf, 0x4b, 0xb8, 0xf3, 0x9c, 0x98, 0xf8, 0x47, 0xea, - 0x18, 0x8f, 0x7b, 0x5b, 0x9a, 0xab, 0xa0, 0xea, 0xa5, 0xad, 0x37, 0x6c, 0x65, 0x84, 0x1d, 0x19, - 0x61, 0x2b, 0x33, 0xf5, 0x86, 0x4d, 0xb7, 0xc7, 0x40, 0x89, 0x33, 0x51, 0x69, 0xfd, 0x84, 0xf0, - 0x62, 0x52, 0xad, 0x08, 0xb8, 0x2f, 0x18, 0x79, 0x07, 0x97, 0x94, 0x26, 0xb1, 0x84, 0x2a, 0xcf, - 0x54, 0x2f, 0x6d, 0x2d, 0x67, 0x08, 0x75, 0x34, 0x96, 0x7c, 0x9c, 0xa2, 0x6b, 0x6d, 0xa6, 0x2e, - 0xc5, 0x99, 0x10, 0xb6, 0x89, 0xc9, 0x84, 0x2e, 0x6d, 0xe2, 0x32, 0x2e, 0x2b, 0xa6, 0xb6, 0x77, - 0x24, 0x0d, 0x9c, 0x77, 0x16, 0xd4, 0x42, 0xe3, 0xc8, 0x6a, 0x26, 0x8c, 0x8f, 0x3b, 0x79, 0x0f, - 0x17, 0x15, 0x44, 0x16, 0x64, 0x37, 0x72, 0x73, 0xfe, 0xd1, 0xdf, 0xab, 0x05, 0x07, 0x0a, 0xac, - 0x11, 0x98, 0x73, 0x8b, 0x05, 0x5c, 0x78, 0xa1, 0xc8, 0x23, 0xe3, 0xc2, 0x46, 0xf3, 0x0b, 0xc2, - 0x2f, 0x4e, 0xb1, 0x43, 0x47, 0x3b, 0x78, 0xe1, 0x08, 0xd6, 0x60, 0x38, 0x2b, 0xa9, 0x3d, 0x41, - 0xa1, 0x13, 0xa3, 0x2f, 0x6e, 0x3c, 0xda, 0x6b, 0x4d, 0x91, 0xc7, 0x98, 0x15, 0x5c, 0x06, 0x21, - 0x7c, 0x20, 0xb9, 0xcb, 0xce, 0x78, 0xc1, 0x6a, 0x25, 0xbd, 0x8e, 0x9b, 0xfd, 0x00, 0x97, 0x00, - 0x04, 0xf3, 0xcb, 0xec, 0x15, 0x06, 0xa8, 0x4b, 0xac, 0x6f, 0x40, 0x67, 0xd3, 0xed, 0x7e, 0xc5, - 0x9e, 0xf2, 0x00, 0xe3, 0xbb, 0x15, 0x93, 0x8f, 0xef, 0x56, 0xa0, 0x96, 0x32, 0xef, 0x96, 0x2a, - 0x73, 0x34, 0xf6, 0xe2, 0x86, 0xf7, 0x29, 0xdc, 0x2d, 0x20, 0xc8, 0xe3, 0x89, 0x81, 0x17, 0x44, - 0x84, 0xf3, 0xbb, 0x4c, 0x32, 0xcf, 0x3b, 0xf1, 0x7f, 0xeb, 0x93, 0x84, 0xc7, 0x71, 0x97, 0xdb, - 0xb8, 0xa8, 0x94, 0x67, 0xde, 0x3b, 0x28, 0x02, 0xa8, 0x75, 0x0d, 0xce, 0x7c, 0x8b, 0x87, 0x6e, - 0xbf, 0xce, 0x98, 0x9e, 0x98, 0xf5, 0x25, 0xbe, 0x3a, 0xfd, 0x00, 0x78, 0x76, 0x31, 0x0e, 0xa3, - 0xc5, 0xf6, 0x6d, 0xc6, 0x04, 0x70, 0x99, 0xe9, 0x77, 0x5c, 0xd7, 0xc2, 0x29, 0x29, 0x87, 0x7a, - 0xc1, 0x5a, 0x8c, 0x2d, 0x89, 0xc2, 0x5e, 0x93, 0x36, 0xe3, 0xce, 0xd4, 0xea, 0x38, 0x51, 0xd4, - 0x4b, 0x61, 0x46, 0x67, 0x11, 0x44, 0x27, 0x8a, 0x2a, 0x58, 0xff, 0x1e, 0x61, 0xf2, 0x64, 0xb8, - 0x93, 0xd7, 0x70, 0xa5, 0x75, 0xb8, 0xbf, 0x5f, 0xdb, 0x6b, 0x1f, 0xb4, 0x6e, 0xb4, 0x0e, 0x0f, - 0xda, 0xf5, 0xc6, 0x5e, 0xab, 0xe6, 0xb4, 0x0f, 0xf7, 0x0f, 0x9a, 0xb5, 0xdd, 0x46, 0xbd, 0x51, - 0xbb, 0x75, 0xb9, 0x40, 0x56, 0xf1, 0x72, 0x2a, 0xea, 0xc6, 0x6e, 0xab, 0xf1, 0x79, 0xed, 0x32, - 0x22, 0xaf, 0xe0, 0x97, 0x53, 0x01, 0x8d, 0x7d, 0x80, 0xcc, 0x19, 0xf3, 0x0f, 0x7e, 0x37, 0x0b, - 0x5b, 0x3f, 0x94, 0xf1, 0xb3, 0xb2, 0x33, 0xf2, 0x2d, 0x2e, 0x41, 0xf4, 0x93, 0x6a, 0x6a, 0x1b, - 0x29, 0xef, 0x32, 0xe3, 0x7a, 0x0e, 0xa4, 0xf2, 0xca, 0x5a, 0xfd, 0xee, 0xcf, 0x7f, 0x1f, 0xce, - 0xbd, 0x44, 0xae, 0xa5, 0xbf, 0x34, 0x05, 0x79, 0x80, 0x70, 0x51, 0x15, 0x91, 0xb5, 0x59, 0xdb, - 0x6a, 0xfe, 0xea, 0x6c, 0x20, 0xd0, 0x6f, 0x48, 0xfa, 0xd7, 0xc9, 0xab, 0xff, 0x43, 0x4f, 0x47, - 0xf1, 0x99, 0x3f, 0x21, 0x3f, 0x23, 0xbc, 0xa0, 0xc3, 0x96, 0x64, 0xf4, 0x38, 0xf5, 0x3a, 0x30, - 0xd6, 0xf3, 0x40, 0x41, 0xd0, 0xdb, 0x52, 0x90, 0x4d, 0xde, 0xcc, 0x21, 0x88, 0xc6, 0xb9, 0xfd, - 0x1b, 0xc2, 0x25, 0xd8, 0x2a, 0x6b, 0x4c, 0xc9, 0x34, 0x36, 0xae, 0xe7, 0x40, 0x82, 0xac, 0x8f, - 0xa4, 0xac, 0xf7, 0xc9, 0xce, 0x79, 0x64, 0xd1, 0x51, 0x1c, 0xdf, 0x27, 0xe4, 0x21, 0xc2, 0x25, - 0x08, 0xba, 0x2c, 0x89, 0xc9, 0x20, 0xce, 0x92, 0x38, 0x95, 0x9a, 0xd6, 0xb6, 0x94, 0xf8, 0x16, - 0xd9, 0xc8, 0x23, 0x51, 0x67, 0xe6, 0xaf, 0x08, 0x17, 0xd5, 0x46, 0x59, 0xa7, 0x2b, 0x11, 0x84, - 0x46, 0x75, 0x36, 0x10, 0x24, 0x7d, 0x28, 0x25, 0xed, 0x90, 0x77, 0xcf, 0x21, 0x89, 0x8e, 0x74, - 0x70, 0x9e, 0x44, 0x67, 0xbf, 0x1c, 0x87, 0x12, 0xc9, 0x38, 0x46, 0xd3, 0x71, 0x68, 0x6c, 0xe4, - 0xc2, 0x82, 0x4c, 0x4b, 0xca, 0x5c, 0x21, 0xc6, 0x13, 0x32, 0xe3, 0xdc, 0x24, 0xa3, 0xc8, 0xa7, - 0x28, 0xa2, 0xb2, 0x7d, 0x9a, 0x48, 0xc7, 0x6c, 0x9f, 0x26, 0x03, 0xd3, 0x32, 0xa5, 0x80, 0x25, - 0x72, 0x35, 0xfd, 0xdb, 0xfa, 0x66, 0xe3, 0xd1, 0xa9, 0x89, 0x1e, 0x9f, 0x9a, 0xe8, 0x9f, 0x53, - 0x13, 0xfd, 0x78, 0x66, 0x16, 0x1e, 0x9f, 0x99, 0x85, 0xbf, 0xce, 0xcc, 0xc2, 0x17, 0xb4, 0xe7, - 0x85, 0x77, 0x86, 0x1d, 0xbb, 0xcb, 0x8f, 0x69, 0xc4, 0x26, 0xbf, 0xb1, 0xbb, 0xbc, 0x4f, 0xbb, - 0x77, 0x5c, 0xcf, 0xa7, 0xf7, 0xb6, 0xe9, 0xd7, 0x7a, 0xcf, 0xf0, 0x7e, 0xc0, 0x44, 0xa7, 0x28, - 0x11, 0xdb, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x75, 0xeb, 0x1c, 0x48, 0x61, 0x0c, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // Tunnels is a RPC method that returns all tunnels. - Tunnels(ctx context.Context, in *QueryTunnelsRequest, opts ...grpc.CallOption) (*QueryTunnelsResponse, error) - // Tunnel is a RPC method that returns a tunnel by its ID. - Tunnel(ctx context.Context, in *QueryTunnelRequest, opts ...grpc.CallOption) (*QueryTunnelResponse, error) - // Deposits queries all deposits of a single tunnel. - Deposits(ctx context.Context, in *QueryDepositsRequest, opts ...grpc.CallOption) (*QueryDepositsResponse, error) - // Deposit queries single deposit information based tunnelID, depositAddr. - Deposit(ctx context.Context, in *QueryDepositRequest, opts ...grpc.CallOption) (*QueryDepositResponse, error) - // Packets is a RPC method that returns all packets of a tunnel. - Packets(ctx context.Context, in *QueryPacketsRequest, opts ...grpc.CallOption) (*QueryPacketsResponse, error) - // Packet is a RPC method that returns a packet by its tunnel ID and sequence. - Packet(ctx context.Context, in *QueryPacketRequest, opts ...grpc.CallOption) (*QueryPacketResponse, error) - // TotalFees is a RPC method that returns the total fees collected by the tunnel - TotalFees(ctx context.Context, in *QueryTotalFeesRequest, opts ...grpc.CallOption) (*QueryTotalFeesResponse, error) - // Params is a RPC method that returns all parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Tunnels( - ctx context.Context, - in *QueryTunnelsRequest, - opts ...grpc.CallOption, -) (*QueryTunnelsResponse, error) { - out := new(QueryTunnelsResponse) - err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Tunnels", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Tunnel( - ctx context.Context, - in *QueryTunnelRequest, - opts ...grpc.CallOption, -) (*QueryTunnelResponse, error) { - out := new(QueryTunnelResponse) - err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Tunnel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Deposits( - ctx context.Context, - in *QueryDepositsRequest, - opts ...grpc.CallOption, -) (*QueryDepositsResponse, error) { - out := new(QueryDepositsResponse) - err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Deposits", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Deposit( - ctx context.Context, - in *QueryDepositRequest, - opts ...grpc.CallOption, -) (*QueryDepositResponse, error) { - out := new(QueryDepositResponse) - err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Deposit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Packets( - ctx context.Context, - in *QueryPacketsRequest, - opts ...grpc.CallOption, -) (*QueryPacketsResponse, error) { - out := new(QueryPacketsResponse) - err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Packets", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Packet( - ctx context.Context, - in *QueryPacketRequest, - opts ...grpc.CallOption, -) (*QueryPacketResponse, error) { - out := new(QueryPacketResponse) - err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Packet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) TotalFees( - ctx context.Context, - in *QueryTotalFeesRequest, - opts ...grpc.CallOption, -) (*QueryTotalFeesResponse, error) { - out := new(QueryTotalFeesResponse) - err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/TotalFees", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Params( - ctx context.Context, - in *QueryParamsRequest, - opts ...grpc.CallOption, -) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/band.tunnel.v1beta1.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - // Tunnels is a RPC method that returns all tunnels. - Tunnels(context.Context, *QueryTunnelsRequest) (*QueryTunnelsResponse, error) - // Tunnel is a RPC method that returns a tunnel by its ID. - Tunnel(context.Context, *QueryTunnelRequest) (*QueryTunnelResponse, error) - // Deposits queries all deposits of a single tunnel. - Deposits(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error) - // Deposit queries single deposit information based tunnelID, depositAddr. - Deposit(context.Context, *QueryDepositRequest) (*QueryDepositResponse, error) - // Packets is a RPC method that returns all packets of a tunnel. - Packets(context.Context, *QueryPacketsRequest) (*QueryPacketsResponse, error) - // Packet is a RPC method that returns a packet by its tunnel ID and sequence. - Packet(context.Context, *QueryPacketRequest) (*QueryPacketResponse, error) - // TotalFees is a RPC method that returns the total fees collected by the tunnel - TotalFees(context.Context, *QueryTotalFeesRequest) (*QueryTotalFeesResponse, error) - // Params is a RPC method that returns all parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) Tunnels( - ctx context.Context, - req *QueryTunnelsRequest, -) (*QueryTunnelsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Tunnels not implemented") -} -func (*UnimplementedQueryServer) Tunnel(ctx context.Context, req *QueryTunnelRequest) (*QueryTunnelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Tunnel not implemented") -} - -func (*UnimplementedQueryServer) Deposits( - ctx context.Context, - req *QueryDepositsRequest, -) (*QueryDepositsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Deposits not implemented") -} - -func (*UnimplementedQueryServer) Deposit( - ctx context.Context, - req *QueryDepositRequest, -) (*QueryDepositResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Deposit not implemented") -} - -func (*UnimplementedQueryServer) Packets( - ctx context.Context, - req *QueryPacketsRequest, -) (*QueryPacketsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Packets not implemented") -} -func (*UnimplementedQueryServer) Packet(ctx context.Context, req *QueryPacketRequest) (*QueryPacketResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Packet not implemented") -} - -func (*UnimplementedQueryServer) TotalFees( - ctx context.Context, - req *QueryTotalFeesRequest, -) (*QueryTotalFeesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TotalFees not implemented") -} -func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_Tunnels_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryTunnelsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Tunnels(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.tunnel.v1beta1.Query/Tunnels", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Tunnels(ctx, req.(*QueryTunnelsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Tunnel_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryTunnelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Tunnel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.tunnel.v1beta1.Query/Tunnel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Tunnel(ctx, req.(*QueryTunnelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Deposits_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryDepositsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Deposits(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.tunnel.v1beta1.Query/Deposits", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Deposits(ctx, req.(*QueryDepositsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Deposit_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryDepositRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Deposit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.tunnel.v1beta1.Query/Deposit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Deposit(ctx, req.(*QueryDepositRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Packets_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryPacketsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Packets(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.tunnel.v1beta1.Query/Packets", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Packets(ctx, req.(*QueryPacketsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Packet_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryPacketRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Packet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.tunnel.v1beta1.Query/Packet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Packet(ctx, req.(*QueryPacketRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_TotalFees_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryTotalFeesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).TotalFees(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.tunnel.v1beta1.Query/TotalFees", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).TotalFees(ctx, req.(*QueryTotalFeesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Params_Handler( - srv interface{}, - ctx context.Context, - dec func(interface{}) error, - interceptor grpc.UnaryServerInterceptor, -) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/band.tunnel.v1beta1.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "band.tunnel.v1beta1.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Tunnels", - Handler: _Query_Tunnels_Handler, - }, - { - MethodName: "Tunnel", - Handler: _Query_Tunnel_Handler, - }, - { - MethodName: "Deposits", - Handler: _Query_Deposits_Handler, - }, - { - MethodName: "Deposit", - Handler: _Query_Deposit_Handler, - }, - { - MethodName: "Packets", - Handler: _Query_Packets_Handler, - }, - { - MethodName: "Packet", - Handler: _Query_Packet_Handler, - }, - { - MethodName: "TotalFees", - Handler: _Query_TotalFees_Handler, - }, - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "band/tunnel/v1beta1/query.proto", -} - -func (m *QueryTunnelsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryTunnelsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryTunnelsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.StatusFilter != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.StatusFilter)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryTunnelsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryTunnelsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryTunnelsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Tunnels) > 0 { - for iNdEx := len(m.Tunnels) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tunnels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryTunnelRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryTunnelRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryTunnelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TunnelId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TunnelId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryTunnelResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryTunnelResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryTunnelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Tunnel.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryDepositsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryDepositsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.TunnelId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TunnelId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryDepositsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryDepositsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Deposits) > 0 { - for iNdEx := len(m.Deposits) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Deposits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryDepositRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryDepositRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryDepositRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Depositor) > 0 { - i -= len(m.Depositor) - copy(dAtA[i:], m.Depositor) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Depositor))) - i-- - dAtA[i] = 0x12 - } - if m.TunnelId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TunnelId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryDepositResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryDepositResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Deposit.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryPacketsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryPacketsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryPacketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.TunnelId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TunnelId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryPacketsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryPacketsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryPacketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Packets) > 0 { - for iNdEx := len(m.Packets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Packets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryPacketRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryPacketRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryPacketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Sequence != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Sequence)) - i-- - dAtA[i] = 0x10 - } - if m.TunnelId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TunnelId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryPacketResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryPacketResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryPacketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Packet != nil { - { - size, err := m.Packet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryTotalFeesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryTotalFeesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryTotalFeesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryTotalFeesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryTotalFeesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryTotalFeesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.TotalFees.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryTunnelsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StatusFilter != 0 { - n += 1 + sovQuery(uint64(m.StatusFilter)) - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryTunnelsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Tunnels) > 0 { - for _, e := range m.Tunnels { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryTunnelRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TunnelId != 0 { - n += 1 + sovQuery(uint64(m.TunnelId)) - } - return n -} - -func (m *QueryTunnelResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Tunnel.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryDepositsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TunnelId != 0 { - n += 1 + sovQuery(uint64(m.TunnelId)) - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryDepositsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Deposits) > 0 { - for _, e := range m.Deposits { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryDepositRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TunnelId != 0 { - n += 1 + sovQuery(uint64(m.TunnelId)) - } - l = len(m.Depositor) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryDepositResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Deposit.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryPacketsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TunnelId != 0 { - n += 1 + sovQuery(uint64(m.TunnelId)) - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryPacketsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Packets) > 0 { - for _, e := range m.Packets { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryPacketRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TunnelId != 0 { - n += 1 + sovQuery(uint64(m.TunnelId)) - } - if m.Sequence != 0 { - n += 1 + sovQuery(uint64(m.Sequence)) - } - return n -} - -func (m *QueryPacketResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Packet != nil { - l = m.Packet.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryTotalFeesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryTotalFeesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.TotalFees.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryTunnelsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryTunnelsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTunnelsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StatusFilter", wireType) - } - m.StatusFilter = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StatusFilter |= TunnelStatusFilter(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryTunnelsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryTunnelsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTunnelsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tunnels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tunnels = append(m.Tunnels, &Tunnel{}) - if err := m.Tunnels[len(m.Tunnels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryTunnelRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryTunnelRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTunnelRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) - } - m.TunnelId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TunnelId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryTunnelResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryTunnelResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTunnelResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tunnel", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Tunnel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryDepositsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryDepositsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDepositsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) - } - m.TunnelId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TunnelId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryDepositsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryDepositsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDepositsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Deposits", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Deposits = append(m.Deposits, &Deposit{}) - if err := m.Deposits[len(m.Deposits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryDepositRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryDepositRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDepositRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) - } - m.TunnelId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TunnelId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Depositor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Depositor = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryDepositResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryDepositResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Deposit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryPacketsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryPacketsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPacketsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) - } - m.TunnelId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TunnelId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryPacketsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryPacketsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPacketsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Packets = append(m.Packets, &Packet{}) - if err := m.Packets[len(m.Packets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +type QueryTunnelsResponse struct { + // Tunnels is a list of tunnels. + Tunnels []*Tunnel `protobuf:"bytes,1,rep,name=tunnels,proto3" json:"tunnels,omitempty"` + // pagination defines an optional pagination for the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (m *QueryTunnelsResponse) Reset() { *m = QueryTunnelsResponse{} } +func (m *QueryTunnelsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTunnelsResponse) ProtoMessage() {} +func (m *QueryTunnelsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTunnelsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination } return nil } -func (m *QueryPacketRequest) Unmarshal(dAtA []byte) error { + +// QueryTunnelRequest is the request type for the Query/Tunnel RPC method. +type QueryTunnelRequest struct { + // tunnel_id is the ID of the tunnel to query. + TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` +} + +func (m *QueryTunnelRequest) Reset() { *m = QueryTunnelRequest{} } +func (m *QueryTunnelRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTunnelRequest) ProtoMessage() {} + +// QueryTunnelResponse is the response type for the Query/Tunnel RPC method. +type QueryTunnelResponse struct { + // tunnel is the tunnel with the given ID. + Tunnel Tunnel `protobuf:"bytes,1,opt,name=tunnel,proto3" json:"tunnel"` +} + +func (m *QueryTunnelResponse) Reset() { *m = QueryTunnelResponse{} } +func (m *QueryTunnelResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTunnelResponse) ProtoMessage() {} +func (m *QueryTunnelResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} + +// QueryPacketRequest is the request type for the Query/Packet RPC method. +type QueryPacketRequest struct { + // tunnel_id is the ID of the tunnel to query packets. + TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` + // sequence is the sequence of the packet to query. + Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` +} + +func (m *QueryPacketRequest) Reset() { *m = QueryPacketRequest{} } +func (m *QueryPacketRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPacketRequest) ProtoMessage() {} + +// QueryPacketResponse is the response type for the Query/Packet RPC method. +type QueryPacketResponse struct { + // packet is the packet with the given tunnel ID and sequence. + Packet *Packet `protobuf:"bytes,1,opt,name=packet,proto3" json:"packet,omitempty"` +} + +func (m *QueryPacketResponse) Reset() { *m = QueryPacketResponse{} } +func (m *QueryPacketResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPacketResponse) ProtoMessage() {} +func (m *QueryPacketResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} + +func (m *QueryTunnelsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3222,36 +146,17 @@ func (m *QueryPacketRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPacketRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTunnelsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPacketRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTunnelsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) - } - m.TunnelId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TunnelId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tunnels", wireType) } - m.Sequence = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3261,64 +166,29 @@ func (m *QueryPacketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Sequence |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryPacketResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Tunnels = append(m.Tunnels, &Tunnel{}) + if err := m.Tunnels[len(m.Tunnels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryPacketResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPacketResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3345,10 +215,10 @@ func (m *QueryPacketResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Packet == nil { - m.Packet = &Packet{} + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} } - if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3373,57 +243,8 @@ func (m *QueryPacketResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTotalFeesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryTotalFeesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTotalFeesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryTotalFeesResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTunnelResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3446,15 +267,15 @@ func (m *QueryTotalFeesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTotalFeesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTunnelResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTotalFeesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTunnelResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalFees", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tunnel", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3481,7 +302,7 @@ func (m *QueryTotalFeesResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.TotalFees.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Tunnel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3506,57 +327,8 @@ func (m *QueryTotalFeesResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPacketResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3579,15 +351,15 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPacketResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPacketResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3614,7 +386,10 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Packet == nil { + m.Packet = &Packet{} + } + if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/internal/bandchain/tunnel/route.go b/internal/bandchain/tunnel/route.go index 4beb343..059ce39 100644 --- a/internal/bandchain/tunnel/route.go +++ b/internal/bandchain/tunnel/route.go @@ -1,10 +1,52 @@ -package types +package tunnel -import "github.com/cosmos/gogoproto/proto" +import ( + "github.com/cosmos/gogoproto/proto" + + bandtsstypes "github.com/bandprotocol/falcon/internal/bandchain/bandtss" + feedstypes "github.com/bandprotocol/falcon/internal/bandchain/feeds" +) + +// PacketReceiptI defines an interface for confirming the delivery of a packet to its destination via the specified route. +type PacketReceiptI interface { + proto.Message +} // RouteI defines a routing path to deliver data to the destination. type RouteI interface { proto.Message +} + +// NewTSSRoute return a new TSSRoute instance. +func NewTSSRoute( + destinationChainID string, + destinationContractAddress string, + encoder feedstypes.Encoder, +) TSSRoute { + return TSSRoute{ + DestinationChainID: destinationChainID, + DestinationContractAddress: destinationContractAddress, + Encoder: encoder, + } +} + +// NewTSSPacketReceipt creates a new TSSPacketReceipt instance. +func NewTSSPacketReceipt(signingID bandtsstypes.SigningID) *TSSPacketReceipt { + return &TSSPacketReceipt{ + SigningID: signingID, + } +} + +// NewIBCRoute creates a new IBCRoute instance. +func NewIBCRoute(channelID string) *IBCRoute { + return &IBCRoute{ + ChannelID: channelID, + } +} - ValidateBasic() error +// NewIBCPacketReceipt creates a new IBCPacketReceipt instance. +func NewIBCPacketReceipt(sequence uint64) *IBCPacketReceipt { + return &IBCPacketReceipt{ + Sequence: sequence, + } } diff --git a/internal/bandchain/tunnel/route.pb.go b/internal/bandchain/tunnel/route.pb.go index 0545018..3040bdd 100644 --- a/internal/bandchain/tunnel/route.pb.go +++ b/internal/bandchain/tunnel/route.pb.go @@ -1,27 +1,20 @@ -package types +package tunnel import ( - "fmt" - "io" - "math" - math_bits "math/bits" - "github.com/cosmos/gogoproto/proto" - github_com_bandprotocol_chain_v3_x_bandtss_types "github.com/bandprotocol/falcon/internal/bandchain/bandtss" - types "github.com/bandprotocol/falcon/internal/bandchain/feeds" + bandtsstypes "github.com/bandprotocol/falcon/internal/bandchain/bandtss" + feedstypes "github.com/bandprotocol/falcon/internal/bandchain/feeds" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// register concrete types. +func init() { + proto.RegisterType((*TSSRoute)(nil), "band.tunnel.v1beta1.TSSRoute") + proto.RegisterType((*TSSPacketReceipt)(nil), "band.tunnel.v1beta1.TSSPacketReceipt") + proto.RegisterType((*IBCRoute)(nil), "band.tunnel.v1beta1.IBCRoute") + proto.RegisterType((*IBCPacketReceipt)(nil), "band.tunnel.v1beta1.IBCPacketReceipt") + proto.RegisterType((*TunnelPricesPacketData)(nil), "band.tunnel.v1beta1.TunnelPricesPacketData") +} // TSSRoute represents a route for TSS packets and implements the RouteI interface. type TSSRoute struct { @@ -30,108 +23,22 @@ type TSSRoute struct { // destination_contract_address is the destination contract address DestinationContractAddress string `protobuf:"bytes,2,opt,name=destination_contract_address,json=destinationContractAddress,proto3" json:"destination_contract_address,omitempty"` // encoder is the mode of encoding packet data. - Encoder types.Encoder `protobuf:"varint,3,opt,name=encoder,proto3,enum=band.feeds.v1beta1.Encoder" json:"encoder,omitempty"` + Encoder feedstypes.Encoder `protobuf:"varint,3,opt,name=encoder,proto3,enum=band.feeds.v1beta1.Encoder" json:"encoder,omitempty"` } func (m *TSSRoute) Reset() { *m = TSSRoute{} } func (m *TSSRoute) String() string { return proto.CompactTextString(m) } func (*TSSRoute) ProtoMessage() {} -func (*TSSRoute) Descriptor() ([]byte, []int) { - return fileDescriptor_543238289d94b7a6, []int{0} -} -func (m *TSSRoute) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TSSRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TSSRoute.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *TSSRoute) XXX_Merge(src proto.Message) { - xxx_messageInfo_TSSRoute.Merge(m, src) -} -func (m *TSSRoute) XXX_Size() int { - return m.Size() -} -func (m *TSSRoute) XXX_DiscardUnknown() { - xxx_messageInfo_TSSRoute.DiscardUnknown(m) -} - -var xxx_messageInfo_TSSRoute proto.InternalMessageInfo - -func (m *TSSRoute) GetDestinationChainID() string { - if m != nil { - return m.DestinationChainID - } - return "" -} - -func (m *TSSRoute) GetDestinationContractAddress() string { - if m != nil { - return m.DestinationContractAddress - } - return "" -} - -func (m *TSSRoute) GetEncoder() types.Encoder { - if m != nil { - return m.Encoder - } - return types.ENCODER_UNSPECIFIED -} // TSSPacketReceipt represents a receipt for a TSS packet and implements the PacketReceiptI interface. type TSSPacketReceipt struct { // signing_id is the signing ID - SigningID github_com_bandprotocol_chain_v3_x_bandtss_types.SigningID `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3,casttype=github.com/bandprotocol/chain/v3/x/bandtss/types.SigningID" json:"signing_id,omitempty"` + SigningID bandtsstypes.SigningID `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3,casttype=github.com/bandprotocol/falcon/internal/bandchain/bandtss.SigningID" json:"signing_id,omitempty"` } func (m *TSSPacketReceipt) Reset() { *m = TSSPacketReceipt{} } func (m *TSSPacketReceipt) String() string { return proto.CompactTextString(m) } func (*TSSPacketReceipt) ProtoMessage() {} -func (*TSSPacketReceipt) Descriptor() ([]byte, []int) { - return fileDescriptor_543238289d94b7a6, []int{1} -} -func (m *TSSPacketReceipt) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TSSPacketReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TSSPacketReceipt.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *TSSPacketReceipt) XXX_Merge(src proto.Message) { - xxx_messageInfo_TSSPacketReceipt.Merge(m, src) -} -func (m *TSSPacketReceipt) XXX_Size() int { - return m.Size() -} -func (m *TSSPacketReceipt) XXX_DiscardUnknown() { - xxx_messageInfo_TSSPacketReceipt.DiscardUnknown(m) -} - -var xxx_messageInfo_TSSPacketReceipt proto.InternalMessageInfo - -func (m *TSSPacketReceipt) GetSigningID() github_com_bandprotocol_chain_v3_x_bandtss_types.SigningID { - if m != nil { - return m.SigningID - } - return 0 -} // IBCRoute represents a route for IBC packets and implements the RouteI interface. type IBCRoute struct { @@ -142,42 +49,6 @@ type IBCRoute struct { func (m *IBCRoute) Reset() { *m = IBCRoute{} } func (m *IBCRoute) String() string { return proto.CompactTextString(m) } func (*IBCRoute) ProtoMessage() {} -func (*IBCRoute) Descriptor() ([]byte, []int) { - return fileDescriptor_543238289d94b7a6, []int{2} -} -func (m *IBCRoute) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IBCRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IBCRoute.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *IBCRoute) XXX_Merge(src proto.Message) { - xxx_messageInfo_IBCRoute.Merge(m, src) -} -func (m *IBCRoute) XXX_Size() int { - return m.Size() -} -func (m *IBCRoute) XXX_DiscardUnknown() { - xxx_messageInfo_IBCRoute.DiscardUnknown(m) -} - -var xxx_messageInfo_IBCRoute proto.InternalMessageInfo - -func (m *IBCRoute) GetChannelID() string { - if m != nil { - return m.ChannelID - } - return "" -} // IBCPacketReceipt represents a receipt for a IBC packet and implements the PacketReceiptI interface. type IBCPacketReceipt struct { @@ -188,42 +59,6 @@ type IBCPacketReceipt struct { func (m *IBCPacketReceipt) Reset() { *m = IBCPacketReceipt{} } func (m *IBCPacketReceipt) String() string { return proto.CompactTextString(m) } func (*IBCPacketReceipt) ProtoMessage() {} -func (*IBCPacketReceipt) Descriptor() ([]byte, []int) { - return fileDescriptor_543238289d94b7a6, []int{3} -} -func (m *IBCPacketReceipt) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IBCPacketReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IBCPacketReceipt.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *IBCPacketReceipt) XXX_Merge(src proto.Message) { - xxx_messageInfo_IBCPacketReceipt.Merge(m, src) -} -func (m *IBCPacketReceipt) XXX_Size() int { - return m.Size() -} -func (m *IBCPacketReceipt) XXX_DiscardUnknown() { - xxx_messageInfo_IBCPacketReceipt.DiscardUnknown(m) -} - -var xxx_messageInfo_IBCPacketReceipt proto.InternalMessageInfo - -func (m *IBCPacketReceipt) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} // TunnelPricesPacketData represents the IBC packet payload for the tunnel packet. type TunnelPricesPacketData struct { @@ -232,7 +67,7 @@ type TunnelPricesPacketData struct { // sequence is representing the sequence of the tunnel packet. Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` // prices is the list of prices information from feeds module. - Prices []types.Price `protobuf:"bytes,3,rep,name=prices,proto3" json:"prices"` + Prices []feedstypes.Price `protobuf:"bytes,3,rep,name=prices,proto3" json:"prices"` // created_at is the timestamp when the packet is created CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` } @@ -240,1105 +75,3 @@ type TunnelPricesPacketData struct { func (m *TunnelPricesPacketData) Reset() { *m = TunnelPricesPacketData{} } func (m *TunnelPricesPacketData) String() string { return proto.CompactTextString(m) } func (*TunnelPricesPacketData) ProtoMessage() {} -func (*TunnelPricesPacketData) Descriptor() ([]byte, []int) { - return fileDescriptor_543238289d94b7a6, []int{4} -} -func (m *TunnelPricesPacketData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TunnelPricesPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TunnelPricesPacketData.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *TunnelPricesPacketData) XXX_Merge(src proto.Message) { - xxx_messageInfo_TunnelPricesPacketData.Merge(m, src) -} -func (m *TunnelPricesPacketData) XXX_Size() int { - return m.Size() -} -func (m *TunnelPricesPacketData) XXX_DiscardUnknown() { - xxx_messageInfo_TunnelPricesPacketData.DiscardUnknown(m) -} - -var xxx_messageInfo_TunnelPricesPacketData proto.InternalMessageInfo - -func (m *TunnelPricesPacketData) GetTunnelID() uint64 { - if m != nil { - return m.TunnelID - } - return 0 -} - -func (m *TunnelPricesPacketData) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *TunnelPricesPacketData) GetPrices() []types.Price { - if m != nil { - return m.Prices - } - return nil -} - -func (m *TunnelPricesPacketData) GetCreatedAt() int64 { - if m != nil { - return m.CreatedAt - } - return 0 -} - -func init() { - proto.RegisterType((*TSSRoute)(nil), "band.tunnel.v1beta1.TSSRoute") - proto.RegisterType((*TSSPacketReceipt)(nil), "band.tunnel.v1beta1.TSSPacketReceipt") - proto.RegisterType((*IBCRoute)(nil), "band.tunnel.v1beta1.IBCRoute") - proto.RegisterType((*IBCPacketReceipt)(nil), "band.tunnel.v1beta1.IBCPacketReceipt") - proto.RegisterType((*TunnelPricesPacketData)(nil), "band.tunnel.v1beta1.TunnelPricesPacketData") -} - -func init() { proto.RegisterFile("band/tunnel/v1beta1/route.proto", fileDescriptor_543238289d94b7a6) } - -var fileDescriptor_543238289d94b7a6 = []byte{ - // 542 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x6e, 0xd3, 0x30, - 0x18, 0xc7, 0xeb, 0xb5, 0x2a, 0xad, 0x81, 0x69, 0x32, 0xd3, 0xd4, 0x15, 0x48, 0xaa, 0x9e, 0x8a, - 0xc4, 0x12, 0x6d, 0x13, 0x42, 0xea, 0x89, 0xa5, 0x41, 0x22, 0x42, 0x48, 0x53, 0xda, 0x13, 0x97, - 0xca, 0xb5, 0x4d, 0x1b, 0xd8, 0xec, 0x12, 0xbb, 0x13, 0xbc, 0x05, 0xe2, 0x29, 0x78, 0x80, 0x49, - 0xbc, 0xc2, 0xb4, 0xd3, 0x8e, 0x70, 0x89, 0x50, 0xfa, 0x16, 0x9c, 0x50, 0x6c, 0xaf, 0x25, 0xa8, - 0x07, 0x6e, 0xf5, 0xff, 0xfb, 0xe5, 0xfb, 0x7f, 0xff, 0xcf, 0x2e, 0x74, 0x27, 0x98, 0x53, 0x5f, - 0x2d, 0x38, 0x67, 0x67, 0xfe, 0xc5, 0xe1, 0x84, 0x29, 0x7c, 0xe8, 0xa7, 0x62, 0xa1, 0x98, 0x37, - 0x4f, 0x85, 0x12, 0xe8, 0x41, 0x01, 0x78, 0x06, 0xf0, 0x2c, 0xd0, 0xde, 0x27, 0x42, 0x9e, 0x0b, - 0x39, 0xd6, 0x88, 0x6f, 0x0e, 0x86, 0x6f, 0xef, 0x4e, 0xc5, 0x54, 0x18, 0xbd, 0xf8, 0x65, 0xd5, - 0x8e, 0xb6, 0x79, 0xc7, 0x18, 0x95, 0x2b, 0x17, 0xc6, 0x89, 0xa0, 0x2c, 0xb5, 0x84, 0xb3, 0x81, - 0xd0, 0x27, 0x53, 0xef, 0xfe, 0x04, 0xb0, 0x31, 0x1a, 0x0e, 0xe3, 0x62, 0x34, 0xf4, 0x0a, 0xee, - 0x52, 0x26, 0x55, 0xc2, 0xb1, 0x4a, 0x04, 0x1f, 0x93, 0x19, 0x4e, 0xf8, 0x38, 0xa1, 0x2d, 0xd0, - 0x01, 0xbd, 0x66, 0xb0, 0x97, 0x67, 0x2e, 0x0a, 0xd7, 0xf5, 0x41, 0x51, 0x8e, 0xc2, 0x18, 0xd1, - 0x7f, 0x35, 0x8a, 0x5e, 0xc0, 0x47, 0xa5, 0x4e, 0x82, 0xab, 0x14, 0x13, 0x35, 0xc6, 0x94, 0xa6, - 0x4c, 0xca, 0xd6, 0x56, 0xd1, 0x31, 0x6e, 0xff, 0xfd, 0xa5, 0x45, 0x4e, 0x0c, 0x81, 0x9e, 0xc1, - 0x3b, 0x36, 0x49, 0xab, 0xda, 0x01, 0xbd, 0xed, 0xa3, 0x87, 0x9e, 0x5e, 0x99, 0x19, 0xde, 0x46, - 0xf1, 0x5e, 0x1a, 0x24, 0xbe, 0x65, 0xfb, 0xf0, 0xfa, 0xf2, 0xa0, 0xae, 0xd3, 0x44, 0xdd, 0xaf, - 0x00, 0xee, 0x8c, 0x86, 0xc3, 0x53, 0x4c, 0x3e, 0x30, 0x15, 0x33, 0xc2, 0x92, 0xb9, 0x42, 0xef, - 0x21, 0x94, 0xc9, 0x94, 0x27, 0x7c, 0x7a, 0x9b, 0xac, 0x16, 0xbc, 0xce, 0x33, 0xb7, 0x39, 0x34, - 0x6a, 0x14, 0xfe, 0xce, 0xdc, 0xfe, 0x34, 0x51, 0xb3, 0xc5, 0xc4, 0x23, 0xe2, 0xdc, 0x2f, 0x5c, - 0xf5, 0xae, 0x88, 0x38, 0xf3, 0xf5, 0x4a, 0xfc, 0x8b, 0x63, 0xff, 0x93, 0xd6, 0x95, 0x94, 0xbe, - 0xfa, 0x3c, 0x67, 0xd2, 0x5b, 0x7d, 0x1d, 0x37, 0x6d, 0xfb, 0x88, 0xf6, 0xd1, 0xf5, 0xe5, 0xc1, - 0x76, 0xc9, 0x3e, 0xea, 0x86, 0xb0, 0x11, 0x05, 0x03, 0xb3, 0xef, 0xa7, 0x10, 0x92, 0x19, 0x2e, - 0x9e, 0xc0, 0x7a, 0xcb, 0xf7, 0x8b, 0x59, 0x06, 0x46, 0x2d, 0xba, 0x59, 0x20, 0xa2, 0xa5, 0x68, - 0x01, 0xdc, 0x89, 0x82, 0x41, 0x39, 0x59, 0x1b, 0x36, 0x24, 0xfb, 0xb8, 0x60, 0x9c, 0x30, 0x93, - 0x2b, 0x5e, 0x9d, 0x37, 0x4e, 0xf2, 0x1d, 0xc0, 0xbd, 0x91, 0x7e, 0x80, 0xa7, 0x69, 0x42, 0x98, - 0x34, 0xe5, 0x10, 0x2b, 0x8c, 0x9e, 0xc0, 0xa6, 0x79, 0x9a, 0xeb, 0x1d, 0xdd, 0xcb, 0x33, 0xb7, - 0x61, 0xf0, 0x28, 0x8c, 0x1b, 0xa6, 0x1c, 0xd1, 0x92, 0xeb, 0x56, 0xd9, 0x15, 0x3d, 0x87, 0xf5, - 0xb9, 0x6e, 0xdd, 0xaa, 0x76, 0xaa, 0xbd, 0xbb, 0x47, 0xfb, 0x9b, 0xae, 0x50, 0x9b, 0x07, 0xb5, - 0xab, 0xcc, 0xad, 0xc4, 0x16, 0x47, 0x8f, 0x21, 0x24, 0x29, 0xc3, 0x8a, 0xd1, 0x31, 0x56, 0xad, - 0x5a, 0x07, 0xf4, 0xaa, 0x71, 0xd3, 0x2a, 0x27, 0x2a, 0x78, 0xf3, 0x2d, 0x77, 0xc0, 0x55, 0xee, - 0x80, 0x9b, 0xdc, 0x01, 0xbf, 0x72, 0x07, 0x7c, 0x59, 0x3a, 0x95, 0x9b, 0xa5, 0x53, 0xf9, 0xb1, - 0x74, 0x2a, 0x6f, 0xfd, 0xff, 0xb8, 0x3c, 0xfb, 0xcf, 0xd4, 0x77, 0x37, 0xa9, 0x6b, 0xe2, 0xf8, - 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xce, 0xc1, 0x97, 0x14, 0xb5, 0x03, 0x00, 0x00, -} - -func (this *TSSRoute) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*TSSRoute) - if !ok { - that2, ok := that.(TSSRoute) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DestinationChainID != that1.DestinationChainID { - return false - } - if this.DestinationContractAddress != that1.DestinationContractAddress { - return false - } - if this.Encoder != that1.Encoder { - return false - } - return true -} -func (this *TSSPacketReceipt) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*TSSPacketReceipt) - if !ok { - that2, ok := that.(TSSPacketReceipt) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.SigningID != that1.SigningID { - return false - } - return true -} -func (this *IBCRoute) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*IBCRoute) - if !ok { - that2, ok := that.(IBCRoute) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ChannelID != that1.ChannelID { - return false - } - return true -} -func (this *IBCPacketReceipt) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*IBCPacketReceipt) - if !ok { - that2, ok := that.(IBCPacketReceipt) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Sequence != that1.Sequence { - return false - } - return true -} -func (this *TunnelPricesPacketData) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*TunnelPricesPacketData) - if !ok { - that2, ok := that.(TunnelPricesPacketData) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.TunnelID != that1.TunnelID { - return false - } - if this.Sequence != that1.Sequence { - return false - } - if len(this.Prices) != len(that1.Prices) { - return false - } - for i := range this.Prices { - if !this.Prices[i].Equal(&that1.Prices[i]) { - return false - } - } - if this.CreatedAt != that1.CreatedAt { - return false - } - return true -} -func (m *TSSRoute) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TSSRoute) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TSSRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Encoder != 0 { - i = encodeVarintRoute(dAtA, i, uint64(m.Encoder)) - i-- - dAtA[i] = 0x18 - } - if len(m.DestinationContractAddress) > 0 { - i -= len(m.DestinationContractAddress) - copy(dAtA[i:], m.DestinationContractAddress) - i = encodeVarintRoute(dAtA, i, uint64(len(m.DestinationContractAddress))) - i-- - dAtA[i] = 0x12 - } - if len(m.DestinationChainID) > 0 { - i -= len(m.DestinationChainID) - copy(dAtA[i:], m.DestinationChainID) - i = encodeVarintRoute(dAtA, i, uint64(len(m.DestinationChainID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TSSPacketReceipt) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TSSPacketReceipt) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TSSPacketReceipt) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SigningID != 0 { - i = encodeVarintRoute(dAtA, i, uint64(m.SigningID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *IBCRoute) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IBCRoute) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IBCRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ChannelID) > 0 { - i -= len(m.ChannelID) - copy(dAtA[i:], m.ChannelID) - i = encodeVarintRoute(dAtA, i, uint64(len(m.ChannelID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *IBCPacketReceipt) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IBCPacketReceipt) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IBCPacketReceipt) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Sequence != 0 { - i = encodeVarintRoute(dAtA, i, uint64(m.Sequence)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *TunnelPricesPacketData) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TunnelPricesPacketData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TunnelPricesPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CreatedAt != 0 { - i = encodeVarintRoute(dAtA, i, uint64(m.CreatedAt)) - i-- - dAtA[i] = 0x20 - } - if len(m.Prices) > 0 { - for iNdEx := len(m.Prices) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Prices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRoute(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.Sequence != 0 { - i = encodeVarintRoute(dAtA, i, uint64(m.Sequence)) - i-- - dAtA[i] = 0x10 - } - if m.TunnelID != 0 { - i = encodeVarintRoute(dAtA, i, uint64(m.TunnelID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintRoute(dAtA []byte, offset int, v uint64) int { - offset -= sovRoute(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *TSSRoute) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DestinationChainID) - if l > 0 { - n += 1 + l + sovRoute(uint64(l)) - } - l = len(m.DestinationContractAddress) - if l > 0 { - n += 1 + l + sovRoute(uint64(l)) - } - if m.Encoder != 0 { - n += 1 + sovRoute(uint64(m.Encoder)) - } - return n -} - -func (m *TSSPacketReceipt) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SigningID != 0 { - n += 1 + sovRoute(uint64(m.SigningID)) - } - return n -} - -func (m *IBCRoute) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChannelID) - if l > 0 { - n += 1 + l + sovRoute(uint64(l)) - } - return n -} - -func (m *IBCPacketReceipt) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Sequence != 0 { - n += 1 + sovRoute(uint64(m.Sequence)) - } - return n -} - -func (m *TunnelPricesPacketData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TunnelID != 0 { - n += 1 + sovRoute(uint64(m.TunnelID)) - } - if m.Sequence != 0 { - n += 1 + sovRoute(uint64(m.Sequence)) - } - if len(m.Prices) > 0 { - for _, e := range m.Prices { - l = e.Size() - n += 1 + l + sovRoute(uint64(l)) - } - } - if m.CreatedAt != 0 { - n += 1 + sovRoute(uint64(m.CreatedAt)) - } - return n -} - -func sovRoute(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozRoute(x uint64) (n int) { - return sovRoute(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *TSSRoute) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TSSRoute: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TSSRoute: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DestinationChainID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRoute - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRoute - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DestinationChainID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DestinationContractAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRoute - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRoute - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DestinationContractAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Encoder", wireType) - } - m.Encoder = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Encoder |= types.Encoder(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipRoute(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRoute - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TSSPacketReceipt) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TSSPacketReceipt: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TSSPacketReceipt: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SigningID", wireType) - } - m.SigningID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SigningID |= github_com_bandprotocol_chain_v3_x_bandtss_types.SigningID(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipRoute(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRoute - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IBCRoute) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IBCRoute: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IBCRoute: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRoute - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRoute - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChannelID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipRoute(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRoute - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IBCPacketReceipt) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IBCPacketReceipt: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IBCPacketReceipt: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) - } - m.Sequence = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sequence |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipRoute(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRoute - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TunnelPricesPacketData) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TunnelPricesPacketData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TunnelPricesPacketData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TunnelID", wireType) - } - m.TunnelID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TunnelID |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) - } - m.Sequence = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sequence |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthRoute - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRoute - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Prices = append(m.Prices, types.Price{}) - if err := m.Prices[len(m.Prices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) - } - m.CreatedAt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRoute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CreatedAt |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipRoute(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRoute - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipRoute(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowRoute - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowRoute - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowRoute - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthRoute - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupRoute - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthRoute - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthRoute = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRoute = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupRoute = fmt.Errorf("proto: unexpected end of group") -) diff --git a/internal/bandchain/tunnel/tss_route.go b/internal/bandchain/tunnel/tss_route.go deleted file mode 100644 index 4a3ea41..0000000 --- a/internal/bandchain/tunnel/tss_route.go +++ /dev/null @@ -1,33 +0,0 @@ -package types - -import ( - bandtsstypes "github.com/bandprotocol/falcon/internal/bandchain/bandtss" - feedstypes "github.com/bandprotocol/falcon/internal/bandchain/feeds" -) - -var _ RouteI = &TSSRoute{} - -// NewTSSRoute return a new TSSRoute instance. -func NewTSSRoute( - destinationChainID string, - destinationContractAddress string, - encoder feedstypes.Encoder, -) TSSRoute { - return TSSRoute{ - DestinationChainID: destinationChainID, - DestinationContractAddress: destinationContractAddress, - Encoder: encoder, - } -} - -// ValidateBasic performs basic validation of the TSSRoute fields. -func (r *TSSRoute) ValidateBasic() error { - return nil -} - -// NewTSSPacketReceipt creates a new TSSPacketReceipt instance. -func NewTSSPacketReceipt(signingID bandtsstypes.SigningID) *TSSPacketReceipt { - return &TSSPacketReceipt{ - SigningID: signingID, - } -} diff --git a/internal/bandchain/tunnel/tunnel.pb.go b/internal/bandchain/tunnel/tunnel.pb.go index 10ff03c..8c67f06 100644 --- a/internal/bandchain/tunnel/tunnel.pb.go +++ b/internal/bandchain/tunnel/tunnel.pb.go @@ -1,30 +1,16 @@ -package types +package tunnel import ( "fmt" "io" - "math" - math_bits "math/bits" "github.com/cosmos/cosmos-sdk/codec/types" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types1 "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/gogoproto/proto" - types2 "github.com/bandprotocol/falcon/internal/bandchain/feeds" + feedstypes "github.com/bandprotocol/falcon/internal/bandchain/feeds" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - // Tunnel contains the information of the tunnel that is created by the user type Tunnel struct { // id is the tunnel ID @@ -40,7 +26,7 @@ type Tunnel struct { // interval is the interval for delivering the signal prices Interval uint64 `protobuf:"varint,6,opt,name=interval,proto3" json:"interval,omitempty"` // total_deposit is the total deposit on the tunnel. - TotalDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,7,rep,name=total_deposit,json=totalDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_deposit"` + TotalDeposit sdk.Coins `protobuf:"bytes,7,rep,name=total_deposit,json=totalDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_deposit"` // is_active is the flag to indicate if the tunnel is active IsActive bool `protobuf:"varint,8,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` // created_at is the timestamp when the tunnel is created @@ -52,215 +38,9 @@ type Tunnel struct { func (m *Tunnel) Reset() { *m = Tunnel{} } func (m *Tunnel) String() string { return proto.CompactTextString(m) } func (*Tunnel) ProtoMessage() {} -func (*Tunnel) Descriptor() ([]byte, []int) { - return fileDescriptor_6bb6151451ba2f25, []int{0} -} func (m *Tunnel) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Tunnel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Tunnel.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Tunnel) XXX_Merge(src proto.Message) { - xxx_messageInfo_Tunnel.Merge(m, src) -} -func (m *Tunnel) XXX_Size() int { - return m.Size() -} -func (m *Tunnel) XXX_DiscardUnknown() { - xxx_messageInfo_Tunnel.DiscardUnknown(m) -} - -var xxx_messageInfo_Tunnel proto.InternalMessageInfo - -func (m *Tunnel) GetID() uint64 { - if m != nil { - return m.ID - } - return 0 -} - -func (m *Tunnel) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *Tunnel) GetRoute() *types.Any { - if m != nil { - return m.Route - } - return nil -} - -func (m *Tunnel) GetFeePayer() string { - if m != nil { - return m.FeePayer - } - return "" -} - -func (m *Tunnel) GetSignalDeviations() []SignalDeviation { - if m != nil { - return m.SignalDeviations - } - return nil -} - -func (m *Tunnel) GetInterval() uint64 { - if m != nil { - return m.Interval - } - return 0 -} - -func (m *Tunnel) GetTotalDeposit() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.TotalDeposit - } - return nil -} - -func (m *Tunnel) GetIsActive() bool { - if m != nil { - return m.IsActive - } - return false -} - -func (m *Tunnel) GetCreatedAt() int64 { - if m != nil { - return m.CreatedAt - } - return 0 -} - -func (m *Tunnel) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -// LatestPrices is the type for prices that tunnel produces -type LatestPrices struct { - // tunnel_id is the tunnel ID - TunnelID uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` - // prices is the list of prices information from feeds module. - Prices []types2.Price `protobuf:"bytes,2,rep,name=prices,proto3" json:"prices"` - // last_interval is the last interval when the signal prices are produced by interval trigger - LastInterval int64 `protobuf:"varint,3,opt,name=last_interval,json=lastInterval,proto3" json:"last_interval,omitempty"` -} - -func (m *LatestPrices) Reset() { *m = LatestPrices{} } -func (m *LatestPrices) String() string { return proto.CompactTextString(m) } -func (*LatestPrices) ProtoMessage() {} -func (*LatestPrices) Descriptor() ([]byte, []int) { - return fileDescriptor_6bb6151451ba2f25, []int{1} -} -func (m *LatestPrices) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LatestPrices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LatestPrices.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *LatestPrices) XXX_Merge(src proto.Message) { - xxx_messageInfo_LatestPrices.Merge(m, src) -} -func (m *LatestPrices) XXX_Size() int { - return m.Size() -} -func (m *LatestPrices) XXX_DiscardUnknown() { - xxx_messageInfo_LatestPrices.DiscardUnknown(m) -} - -var xxx_messageInfo_LatestPrices proto.InternalMessageInfo - -func (m *LatestPrices) GetTunnelID() uint64 { - if m != nil { - return m.TunnelID - } - return 0 -} - -func (m *LatestPrices) GetPrices() []types2.Price { - if m != nil { - return m.Prices - } - return nil -} - -func (m *LatestPrices) GetLastInterval() int64 { - if m != nil { - return m.LastInterval - } - return 0 -} - -// TotalFees is the type for the total fees collected by the tunnel -type TotalFees struct { - // total_base_packet_fee is the total base packet fee collected by the tunnel - TotalBasePacketFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=total_base_packet_fee,json=totalBasePacketFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_base_packet_fee"` -} - -func (m *TotalFees) Reset() { *m = TotalFees{} } -func (m *TotalFees) String() string { return proto.CompactTextString(m) } -func (*TotalFees) ProtoMessage() {} -func (*TotalFees) Descriptor() ([]byte, []int) { - return fileDescriptor_6bb6151451ba2f25, []int{2} -} -func (m *TotalFees) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TotalFees) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TotalFees.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *TotalFees) XXX_Merge(src proto.Message) { - xxx_messageInfo_TotalFees.Merge(m, src) -} -func (m *TotalFees) XXX_Size() int { - return m.Size() -} -func (m *TotalFees) XXX_DiscardUnknown() { - xxx_messageInfo_TotalFees.DiscardUnknown(m) -} - -var xxx_messageInfo_TotalFees proto.InternalMessageInfo - -func (m *TotalFees) GetTotalBasePacketFee() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.TotalBasePacketFee - } - return nil -} // Packet is the packet that tunnel produces type Packet struct { @@ -269,7 +49,7 @@ type Packet struct { // sequence is representing the sequence of the tunnel packet. Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` // prices is the list of prices information from feeds module. - Prices []types2.Price `protobuf:"bytes,3,rep,name=prices,proto3" json:"prices"` + Prices []feedstypes.Price `protobuf:"bytes,3,rep,name=prices,proto3" json:"prices"` // receipt represents the confirmation of the packet delivery to the destination via the specified route. Receipt *types.Any `protobuf:"bytes,4,opt,name=receipt,proto3" json:"receipt,omitempty"` // created_at is the timestamp when the packet is created @@ -279,1874 +59,25 @@ type Packet struct { func (m *Packet) Reset() { *m = Packet{} } func (m *Packet) String() string { return proto.CompactTextString(m) } func (*Packet) ProtoMessage() {} -func (*Packet) Descriptor() ([]byte, []int) { - return fileDescriptor_6bb6151451ba2f25, []int{3} -} func (m *Packet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Packet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Packet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Packet) XXX_Merge(src proto.Message) { - xxx_messageInfo_Packet.Merge(m, src) -} -func (m *Packet) XXX_Size() int { - return m.Size() -} -func (m *Packet) XXX_DiscardUnknown() { - xxx_messageInfo_Packet.DiscardUnknown(m) -} - -var xxx_messageInfo_Packet proto.InternalMessageInfo - -func (m *Packet) GetTunnelID() uint64 { - if m != nil { - return m.TunnelID - } - return 0 -} - -func (m *Packet) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *Packet) GetPrices() []types2.Price { - if m != nil { - return m.Prices - } - return nil -} - -func (m *Packet) GetReceipt() *types.Any { - if m != nil { - return m.Receipt - } - return nil -} - -func (m *Packet) GetCreatedAt() int64 { - if m != nil { - return m.CreatedAt - } - return 0 -} - -// Deposit defines an amount deposited by an account address to the tunnel. -type Deposit struct { - // tunnel_id defines the unique id of the tunnel. - TunnelID uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` - // depositor defines the deposit addresses from the proposals. - Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` - // amount to be deposited by depositor. - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` -} - -func (m *Deposit) Reset() { *m = Deposit{} } -func (m *Deposit) String() string { return proto.CompactTextString(m) } -func (*Deposit) ProtoMessage() {} -func (*Deposit) Descriptor() ([]byte, []int) { - return fileDescriptor_6bb6151451ba2f25, []int{4} -} -func (m *Deposit) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Deposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Deposit.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Deposit) XXX_Merge(src proto.Message) { - xxx_messageInfo_Deposit.Merge(m, src) -} -func (m *Deposit) XXX_Size() int { - return m.Size() -} -func (m *Deposit) XXX_DiscardUnknown() { - xxx_messageInfo_Deposit.DiscardUnknown(m) -} - -var xxx_messageInfo_Deposit proto.InternalMessageInfo - -func (m *Deposit) GetTunnelID() uint64 { - if m != nil { - return m.TunnelID - } - return 0 -} - -func (m *Deposit) GetDepositor() string { - if m != nil { - return m.Depositor - } - return "" -} - -func (m *Deposit) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Amount - } - return nil -} // SignalDeviation is the type for a signal with soft and hard deviation type SignalDeviation struct { // signal_id is the signal ID SignalID string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` - // soft_deviation_bps is the soft deviation in basis points - SoftDeviationBPS uint64 `protobuf:"varint,2,opt,name=soft_deviation_bps,json=softDeviationBps,proto3" json:"soft_deviation_bps,omitempty"` - // hard_deviation_bps is the hard deviation in basis points - HardDeviationBPS uint64 `protobuf:"varint,3,opt,name=hard_deviation_bps,json=hardDeviationBps,proto3" json:"hard_deviation_bps,omitempty"` -} - -func (m *SignalDeviation) Reset() { *m = SignalDeviation{} } -func (m *SignalDeviation) String() string { return proto.CompactTextString(m) } -func (*SignalDeviation) ProtoMessage() {} -func (*SignalDeviation) Descriptor() ([]byte, []int) { - return fileDescriptor_6bb6151451ba2f25, []int{5} -} -func (m *SignalDeviation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SignalDeviation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SignalDeviation.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SignalDeviation) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalDeviation.Merge(m, src) -} -func (m *SignalDeviation) XXX_Size() int { - return m.Size() -} -func (m *SignalDeviation) XXX_DiscardUnknown() { - xxx_messageInfo_SignalDeviation.DiscardUnknown(m) -} - -var xxx_messageInfo_SignalDeviation proto.InternalMessageInfo - -func (m *SignalDeviation) GetSignalID() string { - if m != nil { - return m.SignalID - } - return "" -} - -func (m *SignalDeviation) GetSoftDeviationBPS() uint64 { - if m != nil { - return m.SoftDeviationBPS - } - return 0 -} - -func (m *SignalDeviation) GetHardDeviationBPS() uint64 { - if m != nil { - return m.HardDeviationBPS - } - return 0 -} - -// TunnelSignatureOrder defines a general signature order for sending signature to tss group. -type TunnelSignatureOrder struct { - // sequence is the sequence of the packet - Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"` - // prices is the list of prices information from feeds module. - Prices []types2.Price `protobuf:"bytes,2,rep,name=prices,proto3" json:"prices"` - // created_at is the timestamp when the packet is created - CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - // encoder is the mode of encoding data. - Encoder types2.Encoder `protobuf:"varint,4,opt,name=encoder,proto3,enum=band.feeds.v1beta1.Encoder" json:"encoder,omitempty"` -} - -func (m *TunnelSignatureOrder) Reset() { *m = TunnelSignatureOrder{} } -func (m *TunnelSignatureOrder) String() string { return proto.CompactTextString(m) } -func (*TunnelSignatureOrder) ProtoMessage() {} -func (*TunnelSignatureOrder) Descriptor() ([]byte, []int) { - return fileDescriptor_6bb6151451ba2f25, []int{6} -} -func (m *TunnelSignatureOrder) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TunnelSignatureOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TunnelSignatureOrder.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *TunnelSignatureOrder) XXX_Merge(src proto.Message) { - xxx_messageInfo_TunnelSignatureOrder.Merge(m, src) -} -func (m *TunnelSignatureOrder) XXX_Size() int { - return m.Size() -} -func (m *TunnelSignatureOrder) XXX_DiscardUnknown() { - xxx_messageInfo_TunnelSignatureOrder.DiscardUnknown(m) -} - -var xxx_messageInfo_TunnelSignatureOrder proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Tunnel)(nil), "band.tunnel.v1beta1.Tunnel") - proto.RegisterType((*LatestPrices)(nil), "band.tunnel.v1beta1.LatestPrices") - proto.RegisterType((*TotalFees)(nil), "band.tunnel.v1beta1.TotalFees") - proto.RegisterType((*Packet)(nil), "band.tunnel.v1beta1.Packet") - proto.RegisterType((*Deposit)(nil), "band.tunnel.v1beta1.Deposit") - proto.RegisterType((*SignalDeviation)(nil), "band.tunnel.v1beta1.SignalDeviation") - proto.RegisterType((*TunnelSignatureOrder)(nil), "band.tunnel.v1beta1.TunnelSignatureOrder") -} - -func init() { proto.RegisterFile("band/tunnel/v1beta1/tunnel.proto", fileDescriptor_6bb6151451ba2f25) } - -var fileDescriptor_6bb6151451ba2f25 = []byte{ - // 898 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xf7, 0xd8, 0x8e, 0xed, 0x9d, 0xa6, 0x25, 0x1d, 0x0c, 0xda, 0xa6, 0xc2, 0xb6, 0x02, 0x07, - 0x83, 0x94, 0x5d, 0x9a, 0x2a, 0x45, 0xea, 0x2d, 0x4b, 0xa8, 0xb0, 0x04, 0x22, 0xda, 0x54, 0x42, - 0xe2, 0xb2, 0x1a, 0xef, 0x3e, 0xdb, 0xa3, 0x3a, 0x3b, 0xcb, 0xcc, 0xd8, 0x22, 0x17, 0xce, 0x5c, - 0x90, 0xe0, 0x03, 0x20, 0xf5, 0x58, 0x71, 0xe2, 0x90, 0xef, 0x40, 0x95, 0x53, 0xc5, 0x89, 0x03, - 0x0a, 0xc8, 0x39, 0x80, 0xc4, 0x97, 0x40, 0x3b, 0x33, 0x6b, 0x63, 0x2b, 0x6d, 0x64, 0xa9, 0x97, - 0xc4, 0xef, 0xbd, 0xdf, 0xbc, 0x7f, 0xbf, 0xdf, 0xcc, 0xe2, 0x4e, 0x9f, 0xa6, 0x89, 0xaf, 0x26, - 0x69, 0x0a, 0x63, 0x7f, 0x7a, 0xaf, 0x0f, 0x8a, 0xde, 0xb3, 0xa6, 0x97, 0x09, 0xae, 0x38, 0x79, - 0x33, 0x47, 0x78, 0xd6, 0x65, 0x11, 0xdb, 0xb7, 0xe9, 0x09, 0x4b, 0xb9, 0xaf, 0xff, 0x1a, 0xdc, - 0x76, 0x2b, 0xe6, 0xf2, 0x84, 0x4b, 0xbf, 0x4f, 0x25, 0xcc, 0x33, 0xc5, 0x9c, 0xa5, 0x36, 0x7e, - 0xc7, 0xc4, 0x23, 0x6d, 0xf9, 0xc6, 0xb0, 0xa1, 0xe6, 0x90, 0x0f, 0xb9, 0xf1, 0xe7, 0xbf, 0x8a, - 0x03, 0x43, 0xce, 0x87, 0x63, 0xf0, 0xb5, 0xd5, 0x9f, 0x0c, 0x7c, 0x9a, 0x9e, 0xda, 0x90, 0xe9, - 0x7a, 0x00, 0x90, 0xc8, 0x79, 0x29, 0x48, 0x63, 0x9e, 0x80, 0x28, 0xba, 0xb9, 0x02, 0xa1, 0x2d, - 0x13, 0xdf, 0xf9, 0xbe, 0x8a, 0x6b, 0x8f, 0xf5, 0x4c, 0xe4, 0x6d, 0x5c, 0x66, 0x89, 0x8b, 0x3a, - 0xa8, 0x5b, 0x0d, 0x6a, 0xb3, 0x8b, 0x76, 0xb9, 0x77, 0x18, 0x96, 0x59, 0x42, 0xb6, 0x71, 0x43, - 0xc2, 0xd7, 0x13, 0x48, 0x63, 0x70, 0xcb, 0x79, 0x34, 0x9c, 0xdb, 0xe4, 0x01, 0xde, 0x10, 0x7c, - 0xa2, 0xc0, 0xad, 0x74, 0x50, 0xf7, 0xc6, 0x5e, 0xd3, 0x33, 0xbd, 0x7a, 0x45, 0xaf, 0xde, 0x41, - 0x7a, 0x1a, 0xe0, 0xf3, 0xb3, 0xdd, 0x5a, 0x98, 0xc3, 0x7a, 0xa1, 0x81, 0x93, 0x7d, 0xec, 0x0c, - 0x00, 0xa2, 0x8c, 0x9e, 0x82, 0x70, 0xab, 0x1d, 0xd4, 0x75, 0x02, 0xf7, 0xb7, 0xb3, 0xdd, 0xa6, - 0x5d, 0xc7, 0x41, 0x92, 0x08, 0x90, 0xf2, 0x58, 0x09, 0x96, 0x0e, 0xc3, 0xc6, 0x00, 0xe0, 0x28, - 0x47, 0x92, 0x2f, 0xf1, 0x6d, 0xc9, 0x86, 0x29, 0x1d, 0x47, 0x09, 0x4c, 0x19, 0x55, 0x8c, 0xa7, - 0xd2, 0xdd, 0xe8, 0x54, 0xba, 0x37, 0xf6, 0xde, 0xf3, 0xae, 0xe0, 0xc7, 0x3b, 0xd6, 0xe8, 0xc3, - 0x02, 0x1c, 0x54, 0x9f, 0x5f, 0xb4, 0x4b, 0xe1, 0x96, 0x5c, 0x76, 0xcb, 0x7c, 0x46, 0x96, 0x2a, - 0x10, 0x53, 0x3a, 0x76, 0x6b, 0x66, 0xc6, 0xc2, 0x26, 0x13, 0x7c, 0x53, 0x71, 0xa5, 0x6b, 0x66, - 0x5c, 0x32, 0xe5, 0xd6, 0x75, 0xc1, 0x3b, 0x9e, 0x6d, 0x36, 0x27, 0x7a, 0x5e, 0xf0, 0x63, 0xce, - 0xd2, 0x60, 0x3f, 0xaf, 0xf2, 0xf3, 0x9f, 0xed, 0xee, 0x90, 0xa9, 0xd1, 0xa4, 0xef, 0xc5, 0xfc, - 0xc4, 0x12, 0x6d, 0xff, 0xed, 0xca, 0xe4, 0x89, 0xaf, 0x4e, 0x33, 0x90, 0xfa, 0x80, 0x7c, 0xf6, - 0xf7, 0x2f, 0x1f, 0xa0, 0x70, 0x53, 0x97, 0x39, 0x34, 0x55, 0xc8, 0x5d, 0xec, 0x30, 0x19, 0xd1, - 0x58, 0xb1, 0x29, 0xb8, 0x8d, 0x0e, 0xea, 0x36, 0xc2, 0x06, 0x93, 0x07, 0xda, 0x26, 0xef, 0x60, - 0x1c, 0x0b, 0xa0, 0x0a, 0x92, 0x88, 0x2a, 0xd7, 0xe9, 0xa0, 0x6e, 0x25, 0x74, 0xac, 0xe7, 0x40, - 0x91, 0x3d, 0x5c, 0xd7, 0x06, 0x17, 0x2e, 0xbe, 0x66, 0xb9, 0x05, 0xf0, 0x61, 0xf5, 0x9f, 0xa7, - 0x6d, 0xb4, 0xf3, 0x13, 0xc2, 0x9b, 0x9f, 0x51, 0x05, 0x52, 0x1d, 0x09, 0x16, 0x83, 0x24, 0xef, - 0x63, 0xc7, 0xec, 0x34, 0x9a, 0x8b, 0x63, 0x73, 0x76, 0xd1, 0x6e, 0x18, 0xd1, 0xf4, 0x0e, 0xc3, - 0x86, 0x09, 0xf7, 0x12, 0xf2, 0x11, 0xae, 0x65, 0xfa, 0x90, 0x5b, 0xb6, 0x1b, 0xd2, 0x94, 0x18, - 0xb9, 0x15, 0x0b, 0xd2, 0x69, 0x2d, 0x0f, 0x16, 0x4e, 0xde, 0xc5, 0x37, 0xc7, 0x54, 0xaa, 0x68, - 0x4e, 0x41, 0x45, 0x0f, 0xb4, 0x99, 0x3b, 0x7b, 0xd6, 0x67, 0xfb, 0xfb, 0x11, 0x61, 0xe7, 0x71, - 0xbe, 0xa6, 0x47, 0x00, 0x92, 0x7c, 0x8b, 0xdf, 0x32, 0xd4, 0xe4, 0x1c, 0x44, 0x19, 0x8d, 0x9f, - 0x80, 0x8a, 0x06, 0x00, 0x2e, 0xba, 0x8e, 0xa2, 0x0f, 0xd7, 0xa5, 0x28, 0x24, 0xba, 0x52, 0x40, - 0x25, 0x1c, 0xe9, 0x3a, 0x8f, 0x00, 0x6c, 0x4f, 0xff, 0x22, 0x5c, 0x33, 0xbe, 0x75, 0xb6, 0xf5, - 0xaa, 0x6b, 0xb5, 0xd8, 0x64, 0x65, 0xbd, 0x4d, 0x06, 0xb8, 0x2e, 0x20, 0x06, 0x96, 0x29, 0x7d, - 0xab, 0x5e, 0x76, 0x23, 0xc9, 0xf9, 0xd9, 0xee, 0x2d, 0xd3, 0x72, 0x68, 0xe0, 0xbd, 0xb0, 0x38, - 0xb8, 0xa2, 0xad, 0x8d, 0x15, 0x6d, 0xed, 0xfc, 0x81, 0x70, 0xbd, 0xd0, 0xe8, 0x1a, 0xe3, 0x3e, - 0xc0, 0x8e, 0xbd, 0x3f, 0x5c, 0xe8, 0x79, 0x5f, 0x25, 0xca, 0x05, 0x94, 0x8c, 0x70, 0x8d, 0x9e, - 0xf0, 0x49, 0xaa, 0xe6, 0xab, 0x78, 0xdd, 0xd7, 0xce, 0xe6, 0xb7, 0x64, 0x9e, 0x23, 0xfc, 0xc6, - 0xca, 0xab, 0x91, 0x8f, 0x69, 0x9f, 0x1d, 0x3b, 0xa6, 0x63, 0xc6, 0x34, 0xb8, 0x7c, 0x4c, 0x13, - 0xee, 0x25, 0x24, 0xc0, 0x44, 0xf2, 0x81, 0x5a, 0xbc, 0x4f, 0x51, 0x3f, 0x93, 0x86, 0xdf, 0xa0, - 0x39, 0xbb, 0x68, 0x6f, 0x1d, 0xf3, 0x81, 0x5a, 0xbc, 0x47, 0x47, 0xc7, 0xe1, 0x96, 0x5c, 0xf2, - 0x64, 0x39, 0x89, 0x64, 0x44, 0x45, 0xb2, 0x92, 0xa3, 0xb2, 0xc8, 0xf1, 0x29, 0x15, 0xc9, 0x72, - 0x8e, 0xd1, 0x92, 0x27, 0x93, 0x76, 0x98, 0x5f, 0x11, 0x6e, 0x1a, 0x2e, 0x74, 0xab, 0x6a, 0x22, - 0xe0, 0x0b, 0x91, 0x80, 0x58, 0x12, 0x1f, 0x7a, 0xa9, 0xf8, 0xd6, 0xbc, 0xc6, 0xcb, 0xc2, 0xa9, - 0xac, 0x3e, 0x4a, 0xfb, 0xb8, 0x6e, 0xbf, 0x4d, 0x5a, 0x9b, 0xb7, 0xf6, 0xee, 0x5e, 0x95, 0xf8, - 0x13, 0x03, 0x09, 0x0b, 0xec, 0xc3, 0xea, 0x77, 0x4f, 0xdb, 0xa5, 0xe0, 0xf3, 0x67, 0xb3, 0x16, - 0x7a, 0x3e, 0x6b, 0xa1, 0x17, 0xb3, 0x16, 0xfa, 0x6b, 0xd6, 0x42, 0x3f, 0x5c, 0xb6, 0x4a, 0x2f, - 0x2e, 0x5b, 0xa5, 0xdf, 0x2f, 0x5b, 0xa5, 0xaf, 0xfc, 0xff, 0x31, 0x9e, 0xe7, 0xd4, 0x62, 0x8f, - 0xf9, 0xd8, 0x8f, 0x47, 0x94, 0xa5, 0xfe, 0xf4, 0xbe, 0xff, 0x4d, 0xf1, 0x6d, 0xd7, 0xf4, 0xf7, - 0x6b, 0x1a, 0x71, 0xff, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x38, 0x1b, 0xc5, 0xfa, 0xf7, 0x07, - 0x00, 0x00, -} - -func (this *Tunnel) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Tunnel) - if !ok { - that2, ok := that.(Tunnel) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ID != that1.ID { - return false - } - if this.Sequence != that1.Sequence { - return false - } - if !this.Route.Equal(that1.Route) { - return false - } - if this.FeePayer != that1.FeePayer { - return false - } - if len(this.SignalDeviations) != len(that1.SignalDeviations) { - return false - } - for i := range this.SignalDeviations { - if !this.SignalDeviations[i].Equal(&that1.SignalDeviations[i]) { - return false - } - } - if this.Interval != that1.Interval { - return false - } - if len(this.TotalDeposit) != len(that1.TotalDeposit) { - return false - } - for i := range this.TotalDeposit { - if !this.TotalDeposit[i].Equal(&that1.TotalDeposit[i]) { - return false - } - } - if this.IsActive != that1.IsActive { - return false - } - if this.CreatedAt != that1.CreatedAt { - return false - } - if this.Creator != that1.Creator { - return false - } - return true -} -func (this *LatestPrices) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*LatestPrices) - if !ok { - that2, ok := that.(LatestPrices) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.TunnelID != that1.TunnelID { - return false - } - if len(this.Prices) != len(that1.Prices) { - return false - } - for i := range this.Prices { - if !this.Prices[i].Equal(&that1.Prices[i]) { - return false - } - } - if this.LastInterval != that1.LastInterval { - return false - } - return true -} -func (this *TotalFees) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*TotalFees) - if !ok { - that2, ok := that.(TotalFees) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.TotalBasePacketFee) != len(that1.TotalBasePacketFee) { - return false - } - for i := range this.TotalBasePacketFee { - if !this.TotalBasePacketFee[i].Equal(&that1.TotalBasePacketFee[i]) { - return false - } - } - return true -} -func (this *Packet) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Packet) - if !ok { - that2, ok := that.(Packet) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.TunnelID != that1.TunnelID { - return false - } - if this.Sequence != that1.Sequence { - return false - } - if len(this.Prices) != len(that1.Prices) { - return false - } - for i := range this.Prices { - if !this.Prices[i].Equal(&that1.Prices[i]) { - return false - } - } - if !this.Receipt.Equal(that1.Receipt) { - return false - } - if this.CreatedAt != that1.CreatedAt { - return false - } - return true -} -func (this *Deposit) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Deposit) - if !ok { - that2, ok := that.(Deposit) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.TunnelID != that1.TunnelID { - return false - } - if this.Depositor != that1.Depositor { - return false - } - if len(this.Amount) != len(that1.Amount) { - return false - } - for i := range this.Amount { - if !this.Amount[i].Equal(&that1.Amount[i]) { - return false - } - } - return true -} -func (this *SignalDeviation) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SignalDeviation) - if !ok { - that2, ok := that.(SignalDeviation) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.SignalID != that1.SignalID { - return false - } - if this.SoftDeviationBPS != that1.SoftDeviationBPS { - return false - } - if this.HardDeviationBPS != that1.HardDeviationBPS { - return false - } - return true -} -func (this *TunnelSignatureOrder) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*TunnelSignatureOrder) - if !ok { - that2, ok := that.(TunnelSignatureOrder) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Sequence != that1.Sequence { - return false - } - if len(this.Prices) != len(that1.Prices) { - return false - } - for i := range this.Prices { - if !this.Prices[i].Equal(&that1.Prices[i]) { - return false - } - } - if this.CreatedAt != that1.CreatedAt { - return false - } - if this.Encoder != that1.Encoder { - return false - } - return true -} -func (m *Tunnel) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Tunnel) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Tunnel) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTunnel(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0x52 - } - if m.CreatedAt != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.CreatedAt)) - i-- - dAtA[i] = 0x48 - } - if m.IsActive { - i-- - if m.IsActive { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if len(m.TotalDeposit) > 0 { - for iNdEx := len(m.TotalDeposit) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TotalDeposit[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTunnel(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - if m.Interval != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.Interval)) - i-- - dAtA[i] = 0x30 - } - if len(m.SignalDeviations) > 0 { - for iNdEx := len(m.SignalDeviations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SignalDeviations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTunnel(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.FeePayer) > 0 { - i -= len(m.FeePayer) - copy(dAtA[i:], m.FeePayer) - i = encodeVarintTunnel(dAtA, i, uint64(len(m.FeePayer))) - i-- - dAtA[i] = 0x22 - } - if m.Route != nil { - { - size, err := m.Route.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTunnel(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Sequence != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.Sequence)) - i-- - dAtA[i] = 0x10 - } - if m.ID != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.ID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *LatestPrices) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LatestPrices) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LatestPrices) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LastInterval != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.LastInterval)) - i-- - dAtA[i] = 0x18 - } - if len(m.Prices) > 0 { - for iNdEx := len(m.Prices) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Prices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTunnel(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.TunnelID != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.TunnelID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *TotalFees) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TotalFees) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TotalFees) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TotalBasePacketFee) > 0 { - for iNdEx := len(m.TotalBasePacketFee) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TotalBasePacketFee[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTunnel(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Packet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Packet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Packet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CreatedAt != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.CreatedAt)) - i-- - dAtA[i] = 0x28 - } - if m.Receipt != nil { - { - size, err := m.Receipt.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTunnel(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Prices) > 0 { - for iNdEx := len(m.Prices) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Prices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTunnel(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.Sequence != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.Sequence)) - i-- - dAtA[i] = 0x10 - } - if m.TunnelID != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.TunnelID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Deposit) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Deposit) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Deposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Amount) > 0 { - for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTunnel(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Depositor) > 0 { - i -= len(m.Depositor) - copy(dAtA[i:], m.Depositor) - i = encodeVarintTunnel(dAtA, i, uint64(len(m.Depositor))) - i-- - dAtA[i] = 0x12 - } - if m.TunnelID != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.TunnelID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *SignalDeviation) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignalDeviation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignalDeviation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.HardDeviationBPS != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.HardDeviationBPS)) - i-- - dAtA[i] = 0x18 - } - if m.SoftDeviationBPS != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.SoftDeviationBPS)) - i-- - dAtA[i] = 0x10 - } - if len(m.SignalID) > 0 { - i -= len(m.SignalID) - copy(dAtA[i:], m.SignalID) - i = encodeVarintTunnel(dAtA, i, uint64(len(m.SignalID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TunnelSignatureOrder) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TunnelSignatureOrder) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TunnelSignatureOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Encoder != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.Encoder)) - i-- - dAtA[i] = 0x20 - } - if m.CreatedAt != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.CreatedAt)) - i-- - dAtA[i] = 0x18 - } - if len(m.Prices) > 0 { - for iNdEx := len(m.Prices) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Prices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTunnel(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.Sequence != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.Sequence)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintTunnel(dAtA []byte, offset int, v uint64) int { - offset -= sovTunnel(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Tunnel) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ID != 0 { - n += 1 + sovTunnel(uint64(m.ID)) - } - if m.Sequence != 0 { - n += 1 + sovTunnel(uint64(m.Sequence)) - } - if m.Route != nil { - l = m.Route.Size() - n += 1 + l + sovTunnel(uint64(l)) - } - l = len(m.FeePayer) - if l > 0 { - n += 1 + l + sovTunnel(uint64(l)) - } - if len(m.SignalDeviations) > 0 { - for _, e := range m.SignalDeviations { - l = e.Size() - n += 1 + l + sovTunnel(uint64(l)) - } - } - if m.Interval != 0 { - n += 1 + sovTunnel(uint64(m.Interval)) - } - if len(m.TotalDeposit) > 0 { - for _, e := range m.TotalDeposit { - l = e.Size() - n += 1 + l + sovTunnel(uint64(l)) - } - } - if m.IsActive { - n += 2 - } - if m.CreatedAt != 0 { - n += 1 + sovTunnel(uint64(m.CreatedAt)) - } - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTunnel(uint64(l)) - } - return n -} - -func (m *LatestPrices) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TunnelID != 0 { - n += 1 + sovTunnel(uint64(m.TunnelID)) - } - if len(m.Prices) > 0 { - for _, e := range m.Prices { - l = e.Size() - n += 1 + l + sovTunnel(uint64(l)) - } - } - if m.LastInterval != 0 { - n += 1 + sovTunnel(uint64(m.LastInterval)) - } - return n -} - -func (m *TotalFees) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.TotalBasePacketFee) > 0 { - for _, e := range m.TotalBasePacketFee { - l = e.Size() - n += 1 + l + sovTunnel(uint64(l)) - } - } - return n -} - -func (m *Packet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TunnelID != 0 { - n += 1 + sovTunnel(uint64(m.TunnelID)) - } - if m.Sequence != 0 { - n += 1 + sovTunnel(uint64(m.Sequence)) - } - if len(m.Prices) > 0 { - for _, e := range m.Prices { - l = e.Size() - n += 1 + l + sovTunnel(uint64(l)) - } - } - if m.Receipt != nil { - l = m.Receipt.Size() - n += 1 + l + sovTunnel(uint64(l)) - } - if m.CreatedAt != 0 { - n += 1 + sovTunnel(uint64(m.CreatedAt)) - } - return n -} - -func (m *Deposit) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TunnelID != 0 { - n += 1 + sovTunnel(uint64(m.TunnelID)) - } - l = len(m.Depositor) - if l > 0 { - n += 1 + l + sovTunnel(uint64(l)) - } - if len(m.Amount) > 0 { - for _, e := range m.Amount { - l = e.Size() - n += 1 + l + sovTunnel(uint64(l)) - } - } - return n -} - -func (m *SignalDeviation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SignalID) - if l > 0 { - n += 1 + l + sovTunnel(uint64(l)) - } - if m.SoftDeviationBPS != 0 { - n += 1 + sovTunnel(uint64(m.SoftDeviationBPS)) - } - if m.HardDeviationBPS != 0 { - n += 1 + sovTunnel(uint64(m.HardDeviationBPS)) - } - return n -} - -func (m *TunnelSignatureOrder) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Sequence != 0 { - n += 1 + sovTunnel(uint64(m.Sequence)) - } - if len(m.Prices) > 0 { - for _, e := range m.Prices { - l = e.Size() - n += 1 + l + sovTunnel(uint64(l)) - } - } - if m.CreatedAt != 0 { - n += 1 + sovTunnel(uint64(m.CreatedAt)) - } - if m.Encoder != 0 { - n += 1 + sovTunnel(uint64(m.Encoder)) - } - return n -} - -func sovTunnel(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTunnel(x uint64) (n int) { - return sovTunnel(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Tunnel) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Tunnel: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Tunnel: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - m.ID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ID |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) - } - m.Sequence = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sequence |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTunnel - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTunnel - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Route == nil { - m.Route = &types.Any{} - } - if err := m.Route.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FeePayer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTunnel - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTunnel - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FeePayer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalDeviations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTunnel - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTunnel - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignalDeviations = append(m.SignalDeviations, SignalDeviation{}) - if err := m.SignalDeviations[len(m.SignalDeviations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) - } - m.Interval = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Interval |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalDeposit", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTunnel - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTunnel - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TotalDeposit = append(m.TotalDeposit, types1.Coin{}) - if err := m.TotalDeposit[len(m.TotalDeposit)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsActive = bool(v != 0) - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) - } - m.CreatedAt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CreatedAt |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTunnel - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTunnel - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTunnel(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTunnel - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LatestPrices) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LatestPrices: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LatestPrices: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TunnelID", wireType) - } - m.TunnelID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TunnelID |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTunnel - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTunnel - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Prices = append(m.Prices, types2.Price{}) - if err := m.Prices[len(m.Prices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastInterval", wireType) - } - m.LastInterval = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastInterval |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipTunnel(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTunnel - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TotalFees) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TotalFees: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TotalFees: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalBasePacketFee", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTunnel - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTunnel - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TotalBasePacketFee = append(m.TotalBasePacketFee, types1.Coin{}) - if err := m.TotalBasePacketFee[len(m.TotalBasePacketFee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTunnel(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTunnel - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Packet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Packet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Packet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TunnelID", wireType) - } - m.TunnelID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TunnelID |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) - } - m.Sequence = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sequence |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTunnel - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTunnel - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Prices = append(m.Prices, types2.Price{}) - if err := m.Prices[len(m.Prices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Receipt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTunnel - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTunnel - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Receipt == nil { - m.Receipt = &types.Any{} - } - if err := m.Receipt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) - } - m.CreatedAt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CreatedAt |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipTunnel(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTunnel - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + // soft_deviation_bps is the soft deviation in basis points + SoftDeviationBPS uint64 `protobuf:"varint,2,opt,name=soft_deviation_bps,json=softDeviationBps,proto3" json:"soft_deviation_bps,omitempty"` + // hard_deviation_bps is the hard deviation in basis points + HardDeviationBPS uint64 `protobuf:"varint,3,opt,name=hard_deviation_bps,json=hardDeviationBps,proto3" json:"hard_deviation_bps,omitempty"` } -func (m *Deposit) Unmarshal(dAtA []byte) error { + +func (m *SignalDeviation) Reset() { *m = SignalDeviation{} } +func (m *SignalDeviation) String() string { return proto.CompactTextString(m) } +func (*SignalDeviation) ProtoMessage() {} + +func (m *Tunnel) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2169,17 +100,17 @@ func (m *Deposit) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Deposit: wiretype end group for non-group") + return fmt.Errorf("proto: Tunnel: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Deposit: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Tunnel: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TunnelID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) } - m.TunnelID = 0 + m.ID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTunnel @@ -2189,14 +120,69 @@ func (m *Deposit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TunnelID |= uint64(b&0x7F) << shift + m.ID |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + } + m.Sequence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Route == nil { + m.Route = &types.Any{} + } + if err := m.Route.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Depositor", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FeePayer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2224,11 +210,11 @@ func (m *Deposit) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Depositor = string(dAtA[iNdEx:postIndex]) + m.FeePayer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SignalDeviations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2255,66 +241,35 @@ func (m *Deposit) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Amount = append(m.Amount, types1.Coin{}) - if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.SignalDeviations = append(m.SignalDeviations, SignalDeviation{}) + if err := proto.Unmarshal(dAtA[iNdEx:postIndex], &m.SignalDeviations[len(m.SignalDeviations)-1]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTunnel(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTunnel - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalDeviation) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Interval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Interval |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalDeviation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalDeviation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TotalDeposit", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTunnel @@ -2324,29 +279,31 @@ func (m *SignalDeviation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthTunnel } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthTunnel } if postIndex > l { return io.ErrUnexpectedEOF } - m.SignalID = string(dAtA[iNdEx:postIndex]) + m.TotalDeposit = append(m.TotalDeposit, sdk.Coin{}) + if err := m.TotalDeposit[len(m.TotalDeposit)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: + case 8: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SoftDeviationBPS", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) } - m.SoftDeviationBPS = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTunnel @@ -2356,16 +313,36 @@ func (m *SignalDeviation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SoftDeviationBPS |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 3: + m.IsActive = bool(v != 0) + case 9: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HardDeviationBPS", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) + } + m.CreatedAt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CreatedAt |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) } - m.HardDeviationBPS = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTunnel @@ -2375,11 +352,24 @@ func (m *SignalDeviation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HardDeviationBPS |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTunnel(dAtA[iNdEx:]) @@ -2401,7 +391,7 @@ func (m *SignalDeviation) Unmarshal(dAtA []byte) error { } return nil } -func (m *TunnelSignatureOrder) Unmarshal(dAtA []byte) error { +func (m *Packet) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2424,13 +414,32 @@ func (m *TunnelSignatureOrder) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TunnelSignatureOrder: wiretype end group for non-group") + return fmt.Errorf("proto: Packet: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TunnelSignatureOrder: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Packet: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelID", wireType) + } + m.TunnelID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TunnelID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) } @@ -2449,7 +458,7 @@ func (m *TunnelSignatureOrder) Unmarshal(dAtA []byte) error { break } } - case 2: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) } @@ -2478,16 +487,16 @@ func (m *TunnelSignatureOrder) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Prices = append(m.Prices, types2.Price{}) - if err := m.Prices[len(m.Prices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Prices = append(m.Prices, feedstypes.Price{}) + if err := proto.Unmarshal(dAtA[iNdEx:postIndex], &m.Prices[len(m.Prices)-1]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receipt", wireType) } - m.CreatedAt = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTunnel @@ -2497,16 +506,33 @@ func (m *TunnelSignatureOrder) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CreatedAt |= int64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 4: + if msglen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Receipt == nil { + m.Receipt = &types.Any{} + } + if err := m.Receipt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Encoder", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) } - m.Encoder = 0 + m.CreatedAt = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTunnel @@ -2516,7 +542,7 @@ func (m *TunnelSignatureOrder) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Encoder |= types2.Encoder(b&0x7F) << shift + m.CreatedAt |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2542,6 +568,7 @@ func (m *TunnelSignatureOrder) Unmarshal(dAtA []byte) error { } return nil } + func skipTunnel(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 From 4787832cb534dcf9888f7aeeb345ccb38663d61b Mon Sep 17 00:00:00 2001 From: nkitlabs Date: Wed, 22 Jan 2025 10:43:08 +0700 Subject: [PATCH 03/14] fix package name --- internal/bandchain/feeds/encoder.pb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/bandchain/feeds/encoder.pb.go b/internal/bandchain/feeds/encoder.pb.go index 7049a9c..7128356 100644 --- a/internal/bandchain/feeds/encoder.pb.go +++ b/internal/bandchain/feeds/encoder.pb.go @@ -1,4 +1,4 @@ -package types +package feeds import "github.com/cosmos/gogoproto/proto" From 436e975cd9a4155b412f6e6a75140dcf80fffad2 Mon Sep 17 00:00:00 2001 From: Tanut Lertwarachai Date: Thu, 23 Jan 2025 15:26:27 +0700 Subject: [PATCH 04/14] try artifacts --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..af32f10 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: 'Release' + +# on: +# push: +# tags: +# - '*' # Run release on any tag. Will be marked as draft by default anyway. + +on: pull_request + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22' + + - name: setup release environment + run: |- + echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env + - name: release publish + run: make release From b841a090b7dbd9408b913079b09a0b998316c887 Mon Sep 17 00:00:00 2001 From: Tanut Lertwarachai Date: Thu, 23 Jan 2025 16:26:28 +0700 Subject: [PATCH 05/14] upload artifacts --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af32f10..3d9fd7d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,5 +24,30 @@ jobs: - name: setup release environment run: |- echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env + - name: release publish run: make release + + # upload resulting binaries linux_amd64 + - name: upload binaries + uses: actions/upload-artifact@v4 + with: + name: falcon_linux_amd64 + path: ./build/falcon_linux_amd64 + + # upload resulting binaries + - name: upload binaries + uses: actions/upload-artifact@v4 + with: + name: falcon_darwin_amd64 + path: ./build/falcon_darwin_amd64 + + # upload resulting binaries + - name: upload binaries + uses: actions/upload-artifact@v4 + with: + name: falcon_windows_amd64 + path: ./build/falcon_windows_amd64 + + + From a4013f8d1f978c11babd064649f5b28485166590 Mon Sep 17 00:00:00 2001 From: Tanut Lertwarachai Date: Thu, 23 Jan 2025 16:42:19 +0700 Subject: [PATCH 06/14] action when release --- .github/workflows/release.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d9fd7d..f0d88eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,9 @@ name: 'Release' -# on: -# push: -# tags: -# - '*' # Run release on any tag. Will be marked as draft by default anyway. - -on: pull_request +on: + push: + tags: + - '*' # Run release on any tag. Will be marked as draft by default anyway. jobs: goreleaser: @@ -24,25 +22,25 @@ jobs: - name: setup release environment run: |- echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env - + - name: release publish run: make release - # upload resulting binaries linux_amd64 + # upload linux_amd64 binaries - name: upload binaries uses: actions/upload-artifact@v4 with: name: falcon_linux_amd64 path: ./build/falcon_linux_amd64 - # upload resulting binaries + # upload darwin_amd64 binaries - name: upload binaries uses: actions/upload-artifact@v4 with: name: falcon_darwin_amd64 path: ./build/falcon_darwin_amd64 - # upload resulting binaries + # upload windows_amd64 binaries - name: upload binaries uses: actions/upload-artifact@v4 with: From 015299ba45a5882dd2f1613ee2030ec66545b861 Mon Sep 17 00:00:00 2001 From: Tanut Lertwarachai Date: Fri, 24 Jan 2025 14:04:33 +0700 Subject: [PATCH 07/14] add goreleaser yml --- .github/workflows/release.yml | 27 +-------------------------- .goreleaser.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 26 deletions(-) create mode 100644 .goreleaser.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f0d88eb..86fa39d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,35 +17,10 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.22' + go-version: '1.22.3' - name: setup release environment run: |- echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env - - name: release publish run: make release - - # upload linux_amd64 binaries - - name: upload binaries - uses: actions/upload-artifact@v4 - with: - name: falcon_linux_amd64 - path: ./build/falcon_linux_amd64 - - # upload darwin_amd64 binaries - - name: upload binaries - uses: actions/upload-artifact@v4 - with: - name: falcon_darwin_amd64 - path: ./build/falcon_darwin_amd64 - - # upload windows_amd64 binaries - - name: upload binaries - uses: actions/upload-artifact@v4 - with: - name: falcon_windows_amd64 - path: ./build/falcon_windows_amd64 - - - diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..6c12c49 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,32 @@ +# .goreleaser.yml +project_name: falcon + +builds: + - id: linux_amd64 + goos: linux + goarch: amd64 + binary: falcon_linux_amd64 + - id: darwin_amd64 + goos: darwin + goarch: amd64 + binary: falcon_darwin_amd64 + - id: windows_amd64 + goos: windows + goarch: amd64 + binary: falcon_windows_amd64 + +archives: + - id: golang-cross + builds: + - linux-amd64 + - darwin-amd64 + - windows_amd64 + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + format: tar.gz + wrap_in_directory: true + +release: + github: + token: "{{ .Env.GITHUB_TOKEN }}" + draft: true + prerelease: true \ No newline at end of file From 504cf27697afe1e93358f24d9a655182a0196134 Mon Sep 17 00:00:00 2001 From: Tanut Lertwarachai Date: Fri, 24 Jan 2025 15:06:21 +0700 Subject: [PATCH 08/14] use action-gh --- .github/workflows/release.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86fa39d..71f64e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,10 +17,20 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.22.3' + go-version: '1.22' - name: setup release environment run: |- echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env + - name: release publish run: make release + + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: | + ./build/falcon_linux_amd64 + ./build/falcon_darwin_amd64 + ./build/falcon_windows_amd64 + \ No newline at end of file From 1c63d69818e038c0e422733edf2c2809d70ffc1d Mon Sep 17 00:00:00 2001 From: Tanut Lertwarachai Date: Fri, 24 Jan 2025 16:09:06 +0700 Subject: [PATCH 09/14] add os --- .github/workflows/release.yml | 7 ++----- Makefile | 6 ++++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 71f64e1..ce69e55 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,10 +19,6 @@ jobs: with: go-version: '1.22' - - name: setup release environment - run: |- - echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env - - name: release publish run: make release @@ -31,6 +27,7 @@ jobs: with: files: | ./build/falcon_linux_amd64 + ./build/falcon_linux_arm64 ./build/falcon_darwin_amd64 - ./build/falcon_windows_amd64 + ./build/falcon_darwin_arm64 \ No newline at end of file diff --git a/Makefile b/Makefile index 15d7663..915846b 100644 --- a/Makefile +++ b/Makefile @@ -37,10 +37,12 @@ install: go.sum release: go.sum env GOOS=linux GOARCH=amd64 \ go build -mod=readonly -o ./build/falcon_linux_amd64 $(BUILD_FLAGS) main.go + env GOOS=linux GOARCH=arm64 \ + go build -mod=readonly -o ./build/falcon_linux_arm64 $(BUILD_FLAGS) main.go env GOOS=darwin GOARCH=amd64 \ go build -mod=readonly -o ./build/falcon_darwin_amd64 $(BUILD_FLAGS) main.go - env GOOS=windows GOARCH=amd64 \ - go build -mod=readonly -o ./build/falcon_windows_amd64 $(BUILD_FLAGS) main.go + env GOOS=darwin GOARCH=arm64 \ + go build -mod=readonly -o ./build/falcon_darwin_arm64 $(BUILD_FLAGS) main.go mocks: @go install go.uber.org/mock/mockgen@latest From 19ab1dd076e932720b32d02e97b400638ccde487 Mon Sep 17 00:00:00 2001 From: Tanut Lertwarachai Date: Fri, 24 Jan 2025 17:12:14 +0700 Subject: [PATCH 10/14] rename filename --- .github/workflows/release.yml | 21 +++++++++++++-------- .goreleaser.yml | 32 -------------------------------- 2 files changed, 13 insertions(+), 40 deletions(-) delete mode 100644 .goreleaser.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce69e55..437756e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,23 +11,28 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - with: - fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.22' + go-version: '1.22.3' - name: release publish - run: make release + run: | + make release + mkdir artifacts + mv ./build/falcon_linux_amd64 artifacts/falcon-${{ github.ref_name }}-linux-amd64 + mv ./build/falcon_linux_arm64 artifacts/falcon-${{ github.ref_name }}-linux-arm64 + mv ./build/falcon_darwin_amd64 artifacts/falcon-${{ github.ref_name }}-darwin-amd64 + mv ./build/falcon_darwin_arm64 artifacts/falcon-${{ github.ref_name }}-darwin-arm64 + - name: Create checksums + working-directory: artifacts + run: sha256sum * > checksums.txt && cat checksums.txt + - name: Release uses: softprops/action-gh-release@v2 with: files: | - ./build/falcon_linux_amd64 - ./build/falcon_linux_arm64 - ./build/falcon_darwin_amd64 - ./build/falcon_darwin_arm64 + artifacts/** \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index 6c12c49..0000000 --- a/.goreleaser.yml +++ /dev/null @@ -1,32 +0,0 @@ -# .goreleaser.yml -project_name: falcon - -builds: - - id: linux_amd64 - goos: linux - goarch: amd64 - binary: falcon_linux_amd64 - - id: darwin_amd64 - goos: darwin - goarch: amd64 - binary: falcon_darwin_amd64 - - id: windows_amd64 - goos: windows - goarch: amd64 - binary: falcon_windows_amd64 - -archives: - - id: golang-cross - builds: - - linux-amd64 - - darwin-amd64 - - windows_amd64 - name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" - format: tar.gz - wrap_in_directory: true - -release: - github: - token: "{{ .Env.GITHUB_TOKEN }}" - draft: true - prerelease: true \ No newline at end of file From 329dd9127aaf1586da0fa48ef991c75d4a358788 Mon Sep 17 00:00:00 2001 From: Tanut Lertwarachai Date: Mon, 3 Feb 2025 17:49:49 +0700 Subject: [PATCH 11/14] use goreleaser-action --- .github/workflows/release.yml | 28 ++++--------- .gitignore | 2 + .goreleaser.yaml | 78 +++++++++++++++++++++++++++++++++++ Makefile | 29 +++++++++---- 4 files changed, 108 insertions(+), 29 deletions(-) create mode 100644 .goreleaser.yaml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 437756e..c8dbf5a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,29 +10,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.22.3' + - name: setup release environment + run: |- + echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env - name: release publish - run: | - make release - mkdir artifacts - mv ./build/falcon_linux_amd64 artifacts/falcon-${{ github.ref_name }}-linux-amd64 - mv ./build/falcon_linux_arm64 artifacts/falcon-${{ github.ref_name }}-linux-arm64 - mv ./build/falcon_darwin_amd64 artifacts/falcon-${{ github.ref_name }}-darwin-amd64 - mv ./build/falcon_darwin_arm64 artifacts/falcon-${{ github.ref_name }}-darwin-arm64 - - - name: Create checksums - working-directory: artifacts - run: sha256sum * > checksums.txt && cat checksums.txt - - - name: Release - uses: softprops/action-gh-release@v2 - with: - files: | - artifacts/** - \ No newline at end of file + run: make release diff --git a/.gitignore b/.gitignore index 90dfc13..a693f74 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,5 @@ coverage.out # Configuration files .env +# Added by goreleaser init: +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..a936499 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,78 @@ +project_name: Falcon + +builds: + - id: darwin-amd64 + main: ./main.go + binary: falcon + goos: + - darwin + goarch: + - amd64 + env: + - CC=o64-clang + - CXX=o64-clang++ + flags: + - -mod=readonly + ldflags: + - -s -w -X github.com/bandprotocol/falcon/cmd.Version={{ .Tag }} + - id: darwin-arm64 + main: ./main.go + binary: falcon + goos: + - darwin + goarch: + - arm64 + env: + - CC=oa64-clang + - CXX=oa64-clang++ + flags: + - -mod=readonly + ldflags: + - -s -w -X github.com/bandprotocol/falcon/cmd.Version={{ .Tag }} + - id: linux-amd64 + main: ./main.go + binary: falcon + goos: + - linux + goarch: + - amd64 + env: + - CC=x86_64-linux-gnu-gcc + - CXX=x86_64-linux-gnu-g++ + flags: + - -mod=readonly + ldflags: + - -s -w -X github.com/bandprotocol/falcon/cmd.Version={{ .Tag }} + - id: linux-arm64 + main: ./main.go + binary: falcon + goos: + - linux + goarch: + - arm64 + env: + - CC=aarch64-linux-gnu-gcc + - CXX=aarch64-linux-gnu-g++ + flags: + - -mod=readonly + ldflags: + - -s -w -X github.com/bandprotocol/falcon/cmd.Version={{ .Tag }} + +archives: + - id: golang-cross + builds: + - darwin-amd64 + - darwin-arm64 + - linux-amd64 + - linux-arm64 + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + format: tar.gz + wrap_in_directory: true + +checksum: + name_template: SHA256SUMS-{{.Version}}.txt + algorithm: sha256 + +release: + prerelease: auto + draft: true diff --git a/Makefile b/Makefile index 915846b..8149e71 100644 --- a/Makefile +++ b/Makefile @@ -28,21 +28,32 @@ ldflags := $(strip $(ldflags)) BUILD_FLAGS := -tags "$(build_tags_comma_sep)" -ldflags '$(ldflags)' +PACKAGE_NAME := github.com/bandprotocol/falcon +GOLANG_CROSS_VERSION ?= latest + all: install install: go.sum @echo "installing falcon binary..." @go build -mod=readonly $(BUILD_FLAGS) -o $(GOBIN)/falcon main.go -release: go.sum - env GOOS=linux GOARCH=amd64 \ - go build -mod=readonly -o ./build/falcon_linux_amd64 $(BUILD_FLAGS) main.go - env GOOS=linux GOARCH=arm64 \ - go build -mod=readonly -o ./build/falcon_linux_arm64 $(BUILD_FLAGS) main.go - env GOOS=darwin GOARCH=amd64 \ - go build -mod=readonly -o ./build/falcon_darwin_amd64 $(BUILD_FLAGS) main.go - env GOOS=darwin GOARCH=arm64 \ - go build -mod=readonly -o ./build/falcon_darwin_arm64 $(BUILD_FLAGS) main.go +.PHONY: release +#? release: Run goreleaser to build and release cross-platform falcon binary version +release: + @if [ ! -f ".release-env" ]; then \ + echo "\033[91m.release-env is required for release\033[0m";\ + exit 1;\ + fi + docker run \ + --rm \ + -e CGO_ENABLED=1 \ + --env-file .release-env \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v `pwd`:/go/src/$(PACKAGE_NAME) \ + -v `pwd`/sysroot:/sysroot \ + -w /go/src/$(PACKAGE_NAME) \ + goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \ + release --clean mocks: @go install go.uber.org/mock/mockgen@latest From 436f7969e37e2c5602e5fd576988100e7aeec190 Mon Sep 17 00:00:00 2001 From: Tanut Lertwarachai Date: Mon, 3 Feb 2025 17:59:41 +0700 Subject: [PATCH 12/14] add rly-env to gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index a693f74..16bd13f 100644 --- a/.gitignore +++ b/.gitignore @@ -18,5 +18,7 @@ coverage.out # Configuration files .env +.release-env + # Added by goreleaser init: dist/ From 80547ace47df04121d43f9e888560aec55922f23 Mon Sep 17 00:00:00 2001 From: Tanut Lertwarachai Date: Mon, 3 Feb 2025 18:23:18 +0700 Subject: [PATCH 13/14] change deprecated setting --- .goreleaser.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a936499..f3803e7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -66,7 +66,7 @@ archives: - linux-amd64 - linux-arm64 name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" - format: tar.gz + formats: tar.gz wrap_in_directory: true checksum: From a316b45a9816c836ef4b1843eeecc25489162158 Mon Sep 17 00:00:00 2001 From: Tanut Lertwarachai Date: Mon, 3 Feb 2025 18:48:34 +0700 Subject: [PATCH 14/14] changelog.md --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c8dbf5a..d18a992 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,8 @@ jobs: with: go-version: '1.22.3' + - run: echo https://github.com/bandprotocol/falcon/blob/${GITHUB_REF#refs/tags/}/CHANGELOG.md#${GITHUB_REF#refs/tags/} > ../release_notes.md + - name: setup release environment run: |- echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env